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
ConstructorDescriptionDefault constructorOwnerRequestBody
(OwnerRequestBody template) Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Equals method that returns true if containing properties are the same.Return the owner Id.Return the type of owner.int
hashCode()
Return hash code for this objectvoid
setOwnerId
(String ownerId) Set up the owner id.void
setOwnerType
(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
Return the type of owner.- Returns:
- string
-
setOwnerType
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:
toString
in 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
-