Class OwnerRequestBody
java.lang.Object
org.odpi.openmetadata.accessservices.assetowner.rest.AssetOwnerOMASAPIRequestBody
org.odpi.openmetadata.accessservices.assetowner.rest.OwnerRequestBody
- All Implemented Interfaces:
Serializable
OwnerRequestBody provides a structure for passing information about an asset owner as a request body over a REST API.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault 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.Deprecated.int
hashCode()
Return hash code for this objectvoid
setOwnerId
(String ownerId) Set up the owner id.void
setOwnerPropertyName
(String ownerPropertyName) void
setOwnerType
(OwnerType ownerType) Deprecated.void
setOwnerTypeName
(String ownerTypeName) toString()
JSON-style toString.
-
Constructor Details
-
OwnerRequestBody
public OwnerRequestBody()Default constructor -
OwnerRequestBody
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getOwnerType
Deprecated.Return the type of owner.- Returns:
- string
-
setOwnerType
Deprecated.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.
-
getOwnerTypeName
-
setOwnerTypeName
-
getOwnerPropertyName
-
setOwnerPropertyName
-
toString
JSON-style toString.- Overrides:
toString
in 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
-