@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class CopyObjectDetails extends Object
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.
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 __explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take __explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
CopyObjectDetails.Builder |
Constructor and Description |
---|
CopyObjectDetails(String sourceObjectName,
String sourceObjectIfMatchETag,
String destinationRegion,
String destinationNamespace,
String destinationBucket,
String destinationObjectName,
String destinationObjectIfMatchETag,
String destinationObjectIfNoneMatchETag,
Map<String,String> destinationObjectMetadata)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CopyObjectDetails.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
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.
|
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.
|
int |
hashCode() |
String |
toString() |
@ConstructorProperties(value={"sourceObjectName","sourceObjectIfMatchETag","destinationRegion","destinationNamespace","destinationBucket","destinationObjectName","destinationObjectIfMatchETag","destinationObjectIfNoneMatchETag","destinationObjectMetadata"}) @Deprecated public CopyObjectDetails(String sourceObjectName, String sourceObjectIfMatchETag, String destinationRegion, String destinationNamespace, String destinationBucket, String destinationObjectName, String destinationObjectIfMatchETag, String destinationObjectIfNoneMatchETag, Map<String,String> destinationObjectMetadata)
public static CopyObjectDetails.Builder builder()
Create a new builder.
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 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.
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.
Copyright © 2016–2019. All rights reserved.