Class ConnectionRequestBody
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetowner.rest.AssetOwnerOMASAPIRequestBody
-
- org.odpi.openmetadata.accessservices.assetowner.rest.ConnectionRequestBody
-
- All Implemented Interfaces:
Serializable
public class ConnectionRequestBody extends AssetOwnerOMASAPIRequestBody
ConnectionRequestBody carries the parameters for created a new asset.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Connectionconnectionprotected StringshortDescription
-
Constructor Summary
Constructors Constructor Description ConnectionRequestBody()Default constructorConnectionRequestBody(ConnectionRequestBody template)Copy/clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.ConnectiongetConnection()Return the Connection object.StringgetShortDescription()Returns the short description of the asset from relationship with Connection.inthashCode()Return has code based on properties.voidsetConnection(Connection connection)Set up the Connection object.voidsetShortDescription(String shortDescription)Set up the short description of the asset from relationship with Connection.StringtoString()Standard toString method.
-
-
-
Field Detail
-
shortDescription
protected String shortDescription
-
connection
protected Connection connection
-
-
Constructor Detail
-
ConnectionRequestBody
public ConnectionRequestBody()
Default constructor
-
ConnectionRequestBody
public ConnectionRequestBody(ConnectionRequestBody template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getShortDescription
public String getShortDescription()
Returns the short description of the asset from relationship with Connection.- Returns:
- shortDescription String
-
setShortDescription
public void setShortDescription(String shortDescription)
Set up the short description of the asset from relationship with Connection.- Parameters:
shortDescription- String text
-
getConnection
public Connection getConnection()
Return the Connection object.- Returns:
- connection
-
setConnection
public void setConnection(Connection connection)
Set up the Connection object.- Parameters:
connection- - connection object
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classAssetOwnerOMASAPIRequestBody- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.
-
-