Class OwnerRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OCFOMASAPIRequestBody
-
- org.odpi.openmetadata.commonservices.ocf.metadatamanagement.rest.OwnerRequestBody
-
- All Implemented Interfaces:
Serializable
public class OwnerRequestBody extends OCFOMASAPIRequestBody
OwnerRequestBody provides a structure for passing information about an asset owner as a request body over a REST API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OwnerRequestBody()Default constructorOwnerRequestBody(OwnerRequestBody 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.StringgetOwnerId()Return the owner Id.OwnerTypegetOwnerType()Return the type of owner.inthashCode()Return hash code for this objectvoidsetOwnerId(String ownerId)Set up the owner id.voidsetOwnerType(OwnerType ownerType)Set up the type of owner.StringtoString()JSON-style toString.
-
-
-
Constructor Detail
-
OwnerRequestBody
public OwnerRequestBody()
Default constructor
-
OwnerRequestBody
public OwnerRequestBody(OwnerRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getOwnerType
public OwnerType getOwnerType()
Return the type of owner.- Returns:
- string
-
setOwnerType
public void setOwnerType(OwnerType ownerType)
Set up the type of owner.- Parameters:
ownerType- string
-
getOwnerId
public String getOwnerId()
Return the owner Id.- Returns:
- string identifier
-
setOwnerId
public void setOwnerId(String ownerId)
Set up the owner id.- Parameters:
ownerId- identifier.
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classOCFOMASAPIRequestBody- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Equals method that returns true if containing properties are the same.
-
-