@Generated(value="OracleSDKGenerator", comments="API Version: 20220901") public final class Attachment extends ExplicitlySetBmcModel
Description of Attachment.
Note: Objects should always be created or deserialized using the Attachment.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 Attachment.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 |
Attachment.Builder |
static class |
Attachment.LifecycleState
The current state of the Offer.
|
static class |
Attachment.Type
The type of offer attachment.
|
Constructor and Description |
---|
Attachment(String id,
String sellerCompartmentId,
String offerId,
String buyerCompartmentId,
String mimeType,
String displayName,
Attachment.Type type,
Date timeCreated,
Attachment.LifecycleState lifecycleState,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Attachment.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getBuyerCompartmentId()
OCID of the buyer’s tenancy (root compartment).
|
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 Offer.
|
String |
getMimeType()
The MIME type of the uploaded data.
|
String |
getOfferId()
Unique identifier of the associated offer that is immutable on creation
|
String |
getSellerCompartmentId()
OCID of the seller’s tenancy (root compartment).
|
Date |
getTimeCreated()
The time the the Offer was created.
|
Attachment.Type |
getType()
The type of offer attachment.
|
int |
hashCode() |
Attachment.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","sellerCompartmentId","offerId","buyerCompartmentId","mimeType","displayName","type","timeCreated","lifecycleState","freeformTags","definedTags"}) public Attachment(String id, String sellerCompartmentId, String offerId, String buyerCompartmentId, String mimeType, String displayName, Attachment.Type type, Date timeCreated, Attachment.LifecycleState lifecycleState, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags)
public static Attachment.Builder builder()
Create a new builder.
public Attachment.Builder toBuilder()
public String getId()
Unique identifier that is immutable on creation
public String getSellerCompartmentId()
OCID of the seller’s tenancy (root compartment).
public String getOfferId()
Unique identifier of the associated offer that is immutable on creation
public String getBuyerCompartmentId()
OCID of the buyer’s tenancy (root compartment).
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 Date getTimeCreated()
The time the the Offer was created. An RFC3339 formatted datetime string
public Attachment.LifecycleState getLifecycleState()
The current state of the Offer.
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.