@Generated(value="OracleSDKGenerator", comments="API Version: 20220901") public final class AttachmentSummary extends ExplicitlySetBmcModel
Description of Attachment.
Note: Objects should always be created or deserialized using the AttachmentSummary.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the AttachmentSummary.Builder
, which maintain a set of all explicitly set fields called
ExplicitlySetBmcModel.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
ExplicitlySetBmcModel.__explicitlySet__
into account. The constructor, on the other hand, does not set ExplicitlySetBmcModel.__explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
AttachmentSummary.Builder |
Constructor and Description |
---|
AttachmentSummary(String id,
String offerId,
String mimeType,
String displayName,
Attachment.Type type,
Attachment.LifecycleState lifecycleState,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AttachmentSummary.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getDisplayName()
The name used to refer to the uploaded data.
|
Map<String,String> |
getFreeformTags()
Simple key-value pair that is applied without any predefined name, type or scope.
|
String |
getId()
Unique identifier that is immutable on creation
|
Attachment.LifecycleState |
getLifecycleState()
The current state of the Attachment.
|
String |
getMimeType()
The MIME type of the uploaded data.
|
String |
getOfferId()
Unique identifier of the associated offer that is immutable on creation
|
Attachment.Type |
getType()
The type of offer attachment.
|
int |
hashCode() |
AttachmentSummary.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","offerId","mimeType","displayName","type","lifecycleState","freeformTags","definedTags"}) public AttachmentSummary(String id, String offerId, String mimeType, String displayName, Attachment.Type type, Attachment.LifecycleState lifecycleState, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags)
public static AttachmentSummary.Builder builder()
Create a new builder.
public AttachmentSummary.Builder toBuilder()
public String getId()
Unique identifier that is immutable on creation
public String getOfferId()
Unique identifier of the associated offer that is immutable on creation
public String getMimeType()
The MIME type of the uploaded data.
public String getDisplayName()
The name used to refer to the uploaded data.
public Attachment.Type getType()
The type of offer attachment.
public Attachment.LifecycleState getLifecycleState()
The current state of the Attachment.
public Map<String,String> getFreeformTags()
Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
Example: {"bar-key": "value"}
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"foo-namespace": {"bar-key": "value"}}
public String toString()
toString
in class ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class ExplicitlySetBmcModel
public int hashCode()
hashCode
in class ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.