@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class CopyObjectDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The parameters required by Object Storage to process a request to copy an object to another bucket.
To use any of the API operations, you must be authorized in an IAM policy. If you are not
authorized, talk to an administrator. If you are an administrator who needs to write policies to
give users access, see [Getting Started with
Policies](https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm).
Note: Objects should always be created or deserialized using the CopyObjectDetails.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 CopyObjectDetails.Builder
, which maintain a
set of all explicitly set fields called CopyObjectDetails.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
CopyObjectDetails.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
CopyObjectDetails(String sourceObjectName,
String sourceObjectIfMatchETag,
String sourceVersionId,
String destinationRegion,
String destinationNamespace,
String destinationBucket,
String destinationObjectName,
String destinationObjectIfMatchETag,
String destinationObjectIfNoneMatchETag,
Map<String,String> destinationObjectMetadata,
StorageTier destinationObjectStorageTier)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CopyObjectDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getDestinationBucket()
The destination bucket the object will be copied to.
|
String |
getDestinationNamespace()
The destination Object Storage namespace the object will be copied to.
|
String |
getDestinationObjectIfMatchETag()
The entity tag (ETag) to match against that of the destination object (an object intended to
be overwritten).
|
String |
getDestinationObjectIfNoneMatchETag()
The entity tag (ETag) to avoid matching.
|
Map<String,String> |
getDestinationObjectMetadata()
Arbitrary string keys and values for the user-defined metadata for the object.
|
String |
getDestinationObjectName()
The name of the destination object resulting from the copy operation.
|
StorageTier |
getDestinationObjectStorageTier()
The storage tier that the object should be stored in.
|
String |
getDestinationRegion()
The destination region the object will be copied to, for example “us-ashburn-1”.
|
String |
getSourceObjectIfMatchETag()
The entity tag (ETag) to match against that of the source object.
|
String |
getSourceObjectName()
The name of the object to be copied.
|
String |
getSourceVersionId()
VersionId of the object to copy.
|
int |
hashCode() |
CopyObjectDetails.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"sourceObjectName","sourceObjectIfMatchETag","sourceVersionId","destinationRegion","destinationNamespace","destinationBucket","destinationObjectName","destinationObjectIfMatchETag","destinationObjectIfNoneMatchETag","destinationObjectMetadata","destinationObjectStorageTier"}) public CopyObjectDetails(String sourceObjectName, String sourceObjectIfMatchETag, String sourceVersionId, String destinationRegion, String destinationNamespace, String destinationBucket, String destinationObjectName, String destinationObjectIfMatchETag, String destinationObjectIfNoneMatchETag, Map<String,String> destinationObjectMetadata, StorageTier destinationObjectStorageTier)
public static CopyObjectDetails.Builder builder()
Create a new builder.
public CopyObjectDetails.Builder toBuilder()
public String getSourceObjectName()
The name of the object to be copied.
public String getSourceObjectIfMatchETag()
The entity tag (ETag) to match against that of the source object. Used to confirm that the source object with a given name is the version of that object storing a specified ETag.
public String getSourceVersionId()
VersionId of the object to copy. If not provided then current version is copied by default.
public String getDestinationRegion()
The destination region the object will be copied to, for example “us-ashburn-1”.
public String getDestinationNamespace()
The destination Object Storage namespace the object will be copied to.
public String getDestinationBucket()
The destination bucket the object will be copied to.
public String getDestinationObjectName()
The name of the destination object resulting from the copy operation. Avoid entering confidential information.
public String getDestinationObjectIfMatchETag()
The entity tag (ETag) to match against that of the destination object (an object intended to be overwritten). Used to confirm that the destination object stored under a given name is the version of that object storing a specified entity tag.
public String getDestinationObjectIfNoneMatchETag()
The entity tag (ETag) to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the object already exists in the destination bucket.
public Map<String,String> getDestinationObjectMetadata()
Arbitrary string keys and values for the user-defined metadata for the object. Keys must be in “opc-meta-*” format. Avoid entering confidential information. Metadata key-value pairs entered in this field are assigned to the destination object. If you enter no metadata values, the destination object will inherit any existing metadata values associated with the source object.
public StorageTier getDestinationObjectStorageTier()
The storage tier that the object should be stored in. If not specified, the object will be stored in the same storage tier as the bucket.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.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 com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.