&& value) { SetNewObjectTagging(std::move(value)); return *this;}
/**
*
*/
inline S3CopyObjectOperation& AddNewObjectTagging(const S3Tag& value) { m_newObjectTaggingHasBeenSet = true; m_newObjectTagging.push_back(value); return *this; }
/**
*
*/
inline S3CopyObjectOperation& AddNewObjectTagging(S3Tag&& value) { m_newObjectTaggingHasBeenSet = true; m_newObjectTagging.push_back(std::move(value)); return *this; }
/**
*
*/
inline const Aws::String& GetRedirectLocation() const{ return m_redirectLocation; }
/**
*
*/
inline bool RedirectLocationHasBeenSet() const { return m_redirectLocationHasBeenSet; }
/**
*
*/
inline void SetRedirectLocation(const Aws::String& value) { m_redirectLocationHasBeenSet = true; m_redirectLocation = value; }
/**
*
*/
inline void SetRedirectLocation(Aws::String&& value) { m_redirectLocationHasBeenSet = true; m_redirectLocation = std::move(value); }
/**
*
*/
inline void SetRedirectLocation(const char* value) { m_redirectLocationHasBeenSet = true; m_redirectLocation.assign(value); }
/**
*
*/
inline S3CopyObjectOperation& WithRedirectLocation(const Aws::String& value) { SetRedirectLocation(value); return *this;}
/**
*
*/
inline S3CopyObjectOperation& WithRedirectLocation(Aws::String&& value) { SetRedirectLocation(std::move(value)); return *this;}
/**
*
*/
inline S3CopyObjectOperation& WithRedirectLocation(const char* value) { SetRedirectLocation(value); return *this;}
/**
*
*/
inline bool GetRequesterPays() const{ return m_requesterPays; }
/**
*
*/
inline bool RequesterPaysHasBeenSet() const { return m_requesterPaysHasBeenSet; }
/**
*
*/
inline void SetRequesterPays(bool value) { m_requesterPaysHasBeenSet = true; m_requesterPays = value; }
/**
*
*/
inline S3CopyObjectOperation& WithRequesterPays(bool value) { SetRequesterPays(value); return *this;}
/**
*
*/
inline const S3StorageClass& GetStorageClass() const{ return m_storageClass; }
/**
*
*/
inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
/**
*
*/
inline void SetStorageClass(const S3StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
/**
*
*/
inline void SetStorageClass(S3StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
/**
*
*/
inline S3CopyObjectOperation& WithStorageClass(const S3StorageClass& value) { SetStorageClass(value); return *this;}
/**
*
*/
inline S3CopyObjectOperation& WithStorageClass(S3StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
/**
*
*/
inline const Aws::Utils::DateTime& GetUnModifiedSinceConstraint() const{ return m_unModifiedSinceConstraint; }
/**
*
*/
inline bool UnModifiedSinceConstraintHasBeenSet() const { return m_unModifiedSinceConstraintHasBeenSet; }
/**
*
*/
inline void SetUnModifiedSinceConstraint(const Aws::Utils::DateTime& value) { m_unModifiedSinceConstraintHasBeenSet = true; m_unModifiedSinceConstraint = value; }
/**
*
*/
inline void SetUnModifiedSinceConstraint(Aws::Utils::DateTime&& value) { m_unModifiedSinceConstraintHasBeenSet = true; m_unModifiedSinceConstraint = std::move(value); }
/**
*
*/
inline S3CopyObjectOperation& WithUnModifiedSinceConstraint(const Aws::Utils::DateTime& value) { SetUnModifiedSinceConstraint(value); return *this;}
/**
*
*/
inline S3CopyObjectOperation& WithUnModifiedSinceConstraint(Aws::Utils::DateTime&& value) { SetUnModifiedSinceConstraint(std::move(value)); return *this;}
/**
*
*/
inline const Aws::String& GetSSEAwsKmsKeyId() const{ return m_sSEAwsKmsKeyId; }
/**
*
*/
inline bool SSEAwsKmsKeyIdHasBeenSet() const { return m_sSEAwsKmsKeyIdHasBeenSet; }
/**
*
*/
inline void SetSSEAwsKmsKeyId(const Aws::String& value) { m_sSEAwsKmsKeyIdHasBeenSet = true; m_sSEAwsKmsKeyId = value; }
/**
*
*/
inline void SetSSEAwsKmsKeyId(Aws::String&& value) { m_sSEAwsKmsKeyIdHasBeenSet = true; m_sSEAwsKmsKeyId = std::move(value); }
/**
*
*/
inline void SetSSEAwsKmsKeyId(const char* value) { m_sSEAwsKmsKeyIdHasBeenSet = true; m_sSEAwsKmsKeyId.assign(value); }
/**
*
*/
inline S3CopyObjectOperation& WithSSEAwsKmsKeyId(const Aws::String& value) { SetSSEAwsKmsKeyId(value); return *this;}
/**
*
*/
inline S3CopyObjectOperation& WithSSEAwsKmsKeyId(Aws::String&& value) { SetSSEAwsKmsKeyId(std::move(value)); return *this;}
/**
*
*/
inline S3CopyObjectOperation& WithSSEAwsKmsKeyId(const char* value) { SetSSEAwsKmsKeyId(value); return *this;}
/**
*
*/
inline const Aws::String& GetTargetKeyPrefix() const{ return m_targetKeyPrefix; }
/**
*
*/
inline bool TargetKeyPrefixHasBeenSet() const { return m_targetKeyPrefixHasBeenSet; }
/**
*
*/
inline void SetTargetKeyPrefix(const Aws::String& value) { m_targetKeyPrefixHasBeenSet = true; m_targetKeyPrefix = value; }
/**
*
*/
inline void SetTargetKeyPrefix(Aws::String&& value) { m_targetKeyPrefixHasBeenSet = true; m_targetKeyPrefix = std::move(value); }
/**
*
*/
inline void SetTargetKeyPrefix(const char* value) { m_targetKeyPrefixHasBeenSet = true; m_targetKeyPrefix.assign(value); }
/**
*
*/
inline S3CopyObjectOperation& WithTargetKeyPrefix(const Aws::String& value) { SetTargetKeyPrefix(value); return *this;}
/**
*
*/
inline S3CopyObjectOperation& WithTargetKeyPrefix(Aws::String&& value) { SetTargetKeyPrefix(std::move(value)); return *this;}
/**
*
*/
inline S3CopyObjectOperation& WithTargetKeyPrefix(const char* value) { SetTargetKeyPrefix(value); return *this;}
/**
* The Legal Hold status to be applied to all objects in the Batch Operations
* job.
*/
inline const S3ObjectLockLegalHoldStatus& GetObjectLockLegalHoldStatus() const{ return m_objectLockLegalHoldStatus; }
/**
* The Legal Hold status to be applied to all objects in the Batch Operations
* job.
*/
inline bool ObjectLockLegalHoldStatusHasBeenSet() const { return m_objectLockLegalHoldStatusHasBeenSet; }
/**
* The Legal Hold status to be applied to all objects in the Batch Operations
* job.
*/
inline void SetObjectLockLegalHoldStatus(const S3ObjectLockLegalHoldStatus& value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = value; }
/**
* The Legal Hold status to be applied to all objects in the Batch Operations
* job.
*/
inline void SetObjectLockLegalHoldStatus(S3ObjectLockLegalHoldStatus&& value) { m_objectLockLegalHoldStatusHasBeenSet = true; m_objectLockLegalHoldStatus = std::move(value); }
/**
* The Legal Hold status to be applied to all objects in the Batch Operations
* job.
*/
inline S3CopyObjectOperation& WithObjectLockLegalHoldStatus(const S3ObjectLockLegalHoldStatus& value) { SetObjectLockLegalHoldStatus(value); return *this;}
/**
* The Legal Hold status to be applied to all objects in the Batch Operations
* job.
*/
inline S3CopyObjectOperation& WithObjectLockLegalHoldStatus(S3ObjectLockLegalHoldStatus&& value) { SetObjectLockLegalHoldStatus(std::move(value)); return *this;}
/**
* The Retention mode to be applied to all objects in the Batch Operations
* job.
*/
inline const S3ObjectLockMode& GetObjectLockMode() const{ return m_objectLockMode; }
/**
* The Retention mode to be applied to all objects in the Batch Operations
* job.
*/
inline bool ObjectLockModeHasBeenSet() const { return m_objectLockModeHasBeenSet; }
/**
* The Retention mode to be applied to all objects in the Batch Operations
* job.
*/
inline void SetObjectLockMode(const S3ObjectLockMode& value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = value; }
/**
* The Retention mode to be applied to all objects in the Batch Operations
* job.
*/
inline void SetObjectLockMode(S3ObjectLockMode&& value) { m_objectLockModeHasBeenSet = true; m_objectLockMode = std::move(value); }
/**
* The Retention mode to be applied to all objects in the Batch Operations
* job.
*/
inline S3CopyObjectOperation& WithObjectLockMode(const S3ObjectLockMode& value) { SetObjectLockMode(value); return *this;}
/**
* The Retention mode to be applied to all objects in the Batch Operations
* job.
*/
inline S3CopyObjectOperation& WithObjectLockMode(S3ObjectLockMode&& value) { SetObjectLockMode(std::move(value)); return *this;}
/**
* The date when the applied Object Retention configuration will expire on all
* objects in the Batch Operations job.
*/
inline const Aws::Utils::DateTime& GetObjectLockRetainUntilDate() const{ return m_objectLockRetainUntilDate; }
/**
* The date when the applied Object Retention configuration will expire on all
* objects in the Batch Operations job.
*/
inline bool ObjectLockRetainUntilDateHasBeenSet() const { return m_objectLockRetainUntilDateHasBeenSet; }
/**
* The date when the applied Object Retention configuration will expire on all
* objects in the Batch Operations job.
*/
inline void SetObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = value; }
/**
* The date when the applied Object Retention configuration will expire on all
* objects in the Batch Operations job.
*/
inline void SetObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { m_objectLockRetainUntilDateHasBeenSet = true; m_objectLockRetainUntilDate = std::move(value); }
/**
* The date when the applied Object Retention configuration will expire on all
* objects in the Batch Operations job.
*/
inline S3CopyObjectOperation& WithObjectLockRetainUntilDate(const Aws::Utils::DateTime& value) { SetObjectLockRetainUntilDate(value); return *this;}
/**
* The date when the applied Object Retention configuration will expire on all
* objects in the Batch Operations job.
*/
inline S3CopyObjectOperation& WithObjectLockRetainUntilDate(Aws::Utils::DateTime&& value) { SetObjectLockRetainUntilDate(std::move(value)); return *this;}
private:
Aws::String m_targetResource;
bool m_targetResourceHasBeenSet;
S3CannedAccessControlList m_cannedAccessControlList;
bool m_cannedAccessControlListHasBeenSet;
Aws::Vector m_accessControlGrants;
bool m_accessControlGrantsHasBeenSet;
S3MetadataDirective m_metadataDirective;
bool m_metadataDirectiveHasBeenSet;
Aws::Utils::DateTime m_modifiedSinceConstraint;
bool m_modifiedSinceConstraintHasBeenSet;
S3ObjectMetadata m_newObjectMetadata;
bool m_newObjectMetadataHasBeenSet;
Aws::Vector m_newObjectTagging;
bool m_newObjectTaggingHasBeenSet;
Aws::String m_redirectLocation;
bool m_redirectLocationHasBeenSet;
bool m_requesterPays;
bool m_requesterPaysHasBeenSet;
S3StorageClass m_storageClass;
bool m_storageClassHasBeenSet;
Aws::Utils::DateTime m_unModifiedSinceConstraint;
bool m_unModifiedSinceConstraintHasBeenSet;
Aws::String m_sSEAwsKmsKeyId;
bool m_sSEAwsKmsKeyIdHasBeenSet;
Aws::String m_targetKeyPrefix;
bool m_targetKeyPrefixHasBeenSet;
S3ObjectLockLegalHoldStatus m_objectLockLegalHoldStatus;
bool m_objectLockLegalHoldStatusHasBeenSet;
S3ObjectLockMode m_objectLockMode;
bool m_objectLockModeHasBeenSet;
Aws::Utils::DateTime m_objectLockRetainUntilDate;
bool m_objectLockRetainUntilDateHasBeenSet;
};
} // namespace Model
} // namespace S3Control
} // namespace Aws