Class NewAttachmentRequestBody
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
org.odpi.openmetadata.commonservices.ffdc.rest.NewAttachmentRequestBody
- Direct Known Subclasses:
NewFeedbackRequestBody
NewAttachmentRequestBody provides a structure used when creating new elements where the parent relationship is fixed.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEquals method that returns true if containing properties are the same.Return the map of classification names to classification properties to include in the entity creation request.Return the properties of the new element.inthashCode()Return hash code for this objectvoidsetInitialClassifications(Map<String, ClassificationProperties> initialClassifications) Set up map of classification names to classification properties to include in the entity creation request.voidsetProperties(OpenMetadataRootProperties properties) Set up the properties of the new element.toString()JSON-style toString.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.MetadataSourceOptions
getExternalSourceGUID, getExternalSourceName, setExternalSourceGUID, setExternalSourceNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.search.BasicOptions
getEffectiveTime, getForDuplicateProcessing, getForLineage, getGovernanceZoneFilter, setEffectiveTime, setForDuplicateProcessing, setForLineage, setGovernanceZoneFilter
-
Constructor Details
-
NewAttachmentRequestBody
public NewAttachmentRequestBody()Default constructor -
NewAttachmentRequestBody
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getProperties
Return the properties of the new element.- Returns:
- properties
-
setProperties
Set up the properties of the new element.- Parameters:
properties- properties
-
getInitialClassifications
Return the map of classification names to classification properties to include in the entity creation request.- Returns:
- map
-
setInitialClassifications
Set up map of classification names to classification properties to include in the entity creation request.- Parameters:
initialClassifications- map
-
toString
JSON-style toString.- Overrides:
toStringin classMetadataSourceOptions- Returns:
- list of properties and their values.
-
equals
Equals method that returns true if containing properties are the same.- Overrides:
equalsin classMetadataSourceOptions- Parameters:
objectToCompare- object to compare- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code for this object- Overrides:
hashCodein classMetadataSourceOptions- Returns:
- int hash code
-