Class ContactMethodProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
-
- org.odpi.openmetadata.accessservices.communityprofile.properties.ContactMethodProperties
-
- All Implemented Interfaces:
Serializable
public class ContactMethodProperties extends ReferenceableProperties
ContactMethodProperties describes a single mechanism that can be used to contact an individual.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ContactMethodProperties()Default constructorContactMethodProperties(ContactMethodProperties template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Equals method that returns true if containing properties are the same.StringgetService()Return the URL of the service used to contact the individual.ContactMethodTypegetType()Return the type of the contact method.StringgetValue()Return the account name or similar value used to direct the message to the individual.inthashCode()Hash code for this objectvoidsetService(String service)Set up theURL of the service used to contact the individual.voidsetType(ContactMethodType type)Set up the type of the contact method.voidsetValue(String value)Set up the account name or similar value used to direct the message to the individual.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.accessservices.communityprofile.properties.ReferenceableProperties
getAdditionalProperties, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
-
-
-
Constructor Detail
-
ContactMethodProperties
public ContactMethodProperties()
Default constructor
-
ContactMethodProperties
public ContactMethodProperties(ContactMethodProperties template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getType
public ContactMethodType getType()
Return the type of the contact method.- Returns:
- contact method type enum
-
setType
public void setType(ContactMethodType type)
Set up the type of the contact method.- Parameters:
type- contact method type enum
-
getService
public String getService()
Return the URL of the service used to contact the individual.- Returns:
- service URL
-
setService
public void setService(String service)
Set up theURL of the service used to contact the individual.- Parameters:
service- service URL
-
getValue
public String getValue()
Return the account name or similar value used to direct the message to the individual.- Returns:
- value string
-
setValue
public void setValue(String value)
Set up the account name or similar value used to direct the message to the individual.- Parameters:
value- value string
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classReferenceableProperties- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classReferenceableProperties- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Hash code for this object- Overrides:
hashCodein classReferenceableProperties- Returns:
- int
-
-