Class OwnerRequestBody
java.lang.Object
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.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 Id.org.odpi.openmetadata.frameworks.openmetadata.enums.AssetOwnerTypeReturn the type of owner.inthashCode()Return hash code for this objectvoidsetOwnerId(String ownerId) Set up the owner id.voidsetOwnerType(org.odpi.openmetadata.frameworks.openmetadata.enums.AssetOwnerType ownerType) Set up the type of owner.toString()JSON-style toString.
-
Constructor Details
-
OwnerRequestBody
public OwnerRequestBody()Default constructor -
OwnerRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getOwnerType
public org.odpi.openmetadata.frameworks.openmetadata.enums.AssetOwnerType getOwnerType()Return the type of owner.- Returns:
- string
-
setOwnerType
public void setOwnerType(org.odpi.openmetadata.frameworks.openmetadata.enums.AssetOwnerType ownerType) Set up the type of owner.- Parameters:
ownerType- string
-
getOwnerId
Return the owner Id.- Returns:
- string identifier
-
setOwnerId
Set up the owner id.- Parameters:
ownerId- identifier.
-
toString
JSON-style toString.- Overrides:
toStringin classOCFOMASAPIRequestBody- 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
-