Class OwnerRequestBody
java.lang.Object
org.odpi.openmetadata.accessservices.assetowner.rest.AssetOwnerOMASAPIRequestBody
org.odpi.openmetadata.accessservices.assetowner.rest.OwnerRequestBody
OwnerRequestBody provides a structure for passing information about an asset owner as a request body over a REST API.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorOwnerRequestBody(OwnerRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return the owner identifier.Return the property name used to identify the owner.Return the type of element used to represent the owner.inthashCode()Return hash code for this objectvoidsetOwnerId(String ownerId) Set up the owner id.voidsetOwnerPropertyName(String ownerPropertyName) Set up the property name used to identify the owner.voidsetOwnerTypeName(String ownerTypeName) Set up the type of element used to represent the owner.toString()JSON-style toString.
-
Constructor Details
-
OwnerRequestBody
public OwnerRequestBody()Default constructor -
OwnerRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getOwnerId
Return the owner identifier.- Returns:
- string identifier
-
setOwnerId
Set up the owner id.- Parameters:
ownerId- identifier.
-
getOwnerTypeName
Return the type of element used to represent the owner.- Returns:
- string type name
-
setOwnerTypeName
Set up the type of element used to represent the owner.- Parameters:
ownerTypeName- string type name
-
getOwnerPropertyName
Return the property name used to identify the owner. For example guid or qualifiedName.- Returns:
- string property name
-
setOwnerPropertyName
Set up the property name used to identify the owner. For example guid or qualifiedName.- Parameters:
ownerPropertyName- string property name
-
toString
JSON-style toString.- Overrides:
toStringin classAssetOwnerOMASAPIRequestBody- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same. -
hashCode
public int hashCode()Return hash code for this object
-