
com.amazonaws.services.rds.model.StartDBInstanceAutomatedBackupsReplicationRequest Maven / Gradle / Ivy
/*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.rds.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class StartDBInstanceAutomatedBackupsReplicationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for example,
* arn:aws:rds:us-west-2:123456789012:db:mydatabase
.
*
*/
private String sourceDBInstanceArn;
/**
*
* The retention period for the replicated automated backups.
*
*/
private Integer backupRetentionPeriod;
/**
*
* The Amazon Web Services KMS key identifier for encryption of the replicated automated backups. The KMS key ID is
* the Amazon Resource Name (ARN) for the KMS encryption key in the destination Amazon Web Services Region, for
* example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE
.
*
*/
private String kmsKeyId;
/**
*
* In an Amazon Web Services GovCloud (US) Region, an URL that contains a Signature Version 4 signed request for the
* StartDBInstanceAutomatedBackupsReplication
operation to call in the Amazon Web Services Region of
* the source DB instance. The presigned URL must be a valid request for the
* StartDBInstanceAutomatedBackupsReplication
API operation that can run in the Amazon Web Services
* Region that contains the source DB instance.
*
*
* This setting applies only to Amazon Web Services GovCloud (US) Regions. It's ignored in other Amazon Web Services
* Regions.
*
*
* To learn how to generate a Signature Version 4 signed request, see Authenticating Requests:
* Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing
* Process.
*
*
*
* If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
(or
* --source-region
for the CLI) instead of specifying PreSignedUrl
manually. Specifying
* SourceRegion
autogenerates a presigned URL that is a valid request for the operation that can run in
* the source Amazon Web Services Region.
*
*
*/
private String preSignedUrl;
/** The region where the source instance is located. */
private String sourceRegion;
/**
*
* The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for example,
* arn:aws:rds:us-west-2:123456789012:db:mydatabase
.
*
*
* @param sourceDBInstanceArn
* The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for
* example, arn:aws:rds:us-west-2:123456789012:db:mydatabase
.
*/
public void setSourceDBInstanceArn(String sourceDBInstanceArn) {
this.sourceDBInstanceArn = sourceDBInstanceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for example,
* arn:aws:rds:us-west-2:123456789012:db:mydatabase
.
*
*
* @return The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for
* example, arn:aws:rds:us-west-2:123456789012:db:mydatabase
.
*/
public String getSourceDBInstanceArn() {
return this.sourceDBInstanceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for example,
* arn:aws:rds:us-west-2:123456789012:db:mydatabase
.
*
*
* @param sourceDBInstanceArn
* The Amazon Resource Name (ARN) of the source DB instance for the replicated automated backups, for
* example, arn:aws:rds:us-west-2:123456789012:db:mydatabase
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartDBInstanceAutomatedBackupsReplicationRequest withSourceDBInstanceArn(String sourceDBInstanceArn) {
setSourceDBInstanceArn(sourceDBInstanceArn);
return this;
}
/**
*
* The retention period for the replicated automated backups.
*
*
* @param backupRetentionPeriod
* The retention period for the replicated automated backups.
*/
public void setBackupRetentionPeriod(Integer backupRetentionPeriod) {
this.backupRetentionPeriod = backupRetentionPeriod;
}
/**
*
* The retention period for the replicated automated backups.
*
*
* @return The retention period for the replicated automated backups.
*/
public Integer getBackupRetentionPeriod() {
return this.backupRetentionPeriod;
}
/**
*
* The retention period for the replicated automated backups.
*
*
* @param backupRetentionPeriod
* The retention period for the replicated automated backups.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartDBInstanceAutomatedBackupsReplicationRequest withBackupRetentionPeriod(Integer backupRetentionPeriod) {
setBackupRetentionPeriod(backupRetentionPeriod);
return this;
}
/**
*
* The Amazon Web Services KMS key identifier for encryption of the replicated automated backups. The KMS key ID is
* the Amazon Resource Name (ARN) for the KMS encryption key in the destination Amazon Web Services Region, for
* example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE
.
*
*
* @param kmsKeyId
* The Amazon Web Services KMS key identifier for encryption of the replicated automated backups. The KMS key
* ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination Amazon Web Services
* Region, for example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE
.
*/
public void setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = kmsKeyId;
}
/**
*
* The Amazon Web Services KMS key identifier for encryption of the replicated automated backups. The KMS key ID is
* the Amazon Resource Name (ARN) for the KMS encryption key in the destination Amazon Web Services Region, for
* example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE
.
*
*
* @return The Amazon Web Services KMS key identifier for encryption of the replicated automated backups. The KMS
* key ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination Amazon Web
* Services Region, for example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE
.
*/
public String getKmsKeyId() {
return this.kmsKeyId;
}
/**
*
* The Amazon Web Services KMS key identifier for encryption of the replicated automated backups. The KMS key ID is
* the Amazon Resource Name (ARN) for the KMS encryption key in the destination Amazon Web Services Region, for
* example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE
.
*
*
* @param kmsKeyId
* The Amazon Web Services KMS key identifier for encryption of the replicated automated backups. The KMS key
* ID is the Amazon Resource Name (ARN) for the KMS encryption key in the destination Amazon Web Services
* Region, for example, arn:aws:kms:us-east-1:123456789012:key/AKIAIOSFODNN7EXAMPLE
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartDBInstanceAutomatedBackupsReplicationRequest withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
*
* In an Amazon Web Services GovCloud (US) Region, an URL that contains a Signature Version 4 signed request for the
* StartDBInstanceAutomatedBackupsReplication
operation to call in the Amazon Web Services Region of
* the source DB instance. The presigned URL must be a valid request for the
* StartDBInstanceAutomatedBackupsReplication
API operation that can run in the Amazon Web Services
* Region that contains the source DB instance.
*
*
* This setting applies only to Amazon Web Services GovCloud (US) Regions. It's ignored in other Amazon Web Services
* Regions.
*
*
* To learn how to generate a Signature Version 4 signed request, see Authenticating Requests:
* Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing
* Process.
*
*
*
* If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
(or
* --source-region
for the CLI) instead of specifying PreSignedUrl
manually. Specifying
* SourceRegion
autogenerates a presigned URL that is a valid request for the operation that can run in
* the source Amazon Web Services Region.
*
*
*
* @param preSignedUrl
* In an Amazon Web Services GovCloud (US) Region, an URL that contains a Signature Version 4 signed request
* for the StartDBInstanceAutomatedBackupsReplication
operation to call in the Amazon Web
* Services Region of the source DB instance. The presigned URL must be a valid request for the
* StartDBInstanceAutomatedBackupsReplication
API operation that can run in the Amazon Web
* Services Region that contains the source DB instance.
*
* This setting applies only to Amazon Web Services GovCloud (US) Regions. It's ignored in other Amazon Web
* Services Regions.
*
*
* To learn how to generate a Signature Version 4 signed request, see Authenticating
* Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing
* Process.
*
*
*
* If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
(or
* --source-region
for the CLI) instead of specifying PreSignedUrl
manually.
* Specifying SourceRegion
autogenerates a presigned URL that is a valid request for the
* operation that can run in the source Amazon Web Services Region.
*
*/
public void setPreSignedUrl(String preSignedUrl) {
this.preSignedUrl = preSignedUrl;
}
/**
*
* In an Amazon Web Services GovCloud (US) Region, an URL that contains a Signature Version 4 signed request for the
* StartDBInstanceAutomatedBackupsReplication
operation to call in the Amazon Web Services Region of
* the source DB instance. The presigned URL must be a valid request for the
* StartDBInstanceAutomatedBackupsReplication
API operation that can run in the Amazon Web Services
* Region that contains the source DB instance.
*
*
* This setting applies only to Amazon Web Services GovCloud (US) Regions. It's ignored in other Amazon Web Services
* Regions.
*
*
* To learn how to generate a Signature Version 4 signed request, see Authenticating Requests:
* Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing
* Process.
*
*
*
* If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
(or
* --source-region
for the CLI) instead of specifying PreSignedUrl
manually. Specifying
* SourceRegion
autogenerates a presigned URL that is a valid request for the operation that can run in
* the source Amazon Web Services Region.
*
*
*
* @return In an Amazon Web Services GovCloud (US) Region, an URL that contains a Signature Version 4 signed request
* for the StartDBInstanceAutomatedBackupsReplication
operation to call in the Amazon Web
* Services Region of the source DB instance. The presigned URL must be a valid request for the
* StartDBInstanceAutomatedBackupsReplication
API operation that can run in the Amazon Web
* Services Region that contains the source DB instance.
*
* This setting applies only to Amazon Web Services GovCloud (US) Regions. It's ignored in other Amazon Web
* Services Regions.
*
*
* To learn how to generate a Signature Version 4 signed request, see Authenticating
* Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4
* Signing Process.
*
*
*
* If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
* (or --source-region
for the CLI) instead of specifying PreSignedUrl
manually.
* Specifying SourceRegion
autogenerates a presigned URL that is a valid request for the
* operation that can run in the source Amazon Web Services Region.
*
*/
public String getPreSignedUrl() {
return this.preSignedUrl;
}
/**
*
* In an Amazon Web Services GovCloud (US) Region, an URL that contains a Signature Version 4 signed request for the
* StartDBInstanceAutomatedBackupsReplication
operation to call in the Amazon Web Services Region of
* the source DB instance. The presigned URL must be a valid request for the
* StartDBInstanceAutomatedBackupsReplication
API operation that can run in the Amazon Web Services
* Region that contains the source DB instance.
*
*
* This setting applies only to Amazon Web Services GovCloud (US) Regions. It's ignored in other Amazon Web Services
* Regions.
*
*
* To learn how to generate a Signature Version 4 signed request, see Authenticating Requests:
* Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing
* Process.
*
*
*
* If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
(or
* --source-region
for the CLI) instead of specifying PreSignedUrl
manually. Specifying
* SourceRegion
autogenerates a presigned URL that is a valid request for the operation that can run in
* the source Amazon Web Services Region.
*
*
*
* @param preSignedUrl
* In an Amazon Web Services GovCloud (US) Region, an URL that contains a Signature Version 4 signed request
* for the StartDBInstanceAutomatedBackupsReplication
operation to call in the Amazon Web
* Services Region of the source DB instance. The presigned URL must be a valid request for the
* StartDBInstanceAutomatedBackupsReplication
API operation that can run in the Amazon Web
* Services Region that contains the source DB instance.
*
* This setting applies only to Amazon Web Services GovCloud (US) Regions. It's ignored in other Amazon Web
* Services Regions.
*
*
* To learn how to generate a Signature Version 4 signed request, see Authenticating
* Requests: Using Query Parameters (Amazon Web Services Signature Version 4) and Signature Version 4 Signing
* Process.
*
*
*
* If you are using an Amazon Web Services SDK tool or the CLI, you can specify SourceRegion
(or
* --source-region
for the CLI) instead of specifying PreSignedUrl
manually.
* Specifying SourceRegion
autogenerates a presigned URL that is a valid request for the
* operation that can run in the source Amazon Web Services Region.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartDBInstanceAutomatedBackupsReplicationRequest withPreSignedUrl(String preSignedUrl) {
setPreSignedUrl(preSignedUrl);
return this;
}
/**
* The region where the source instance is located.
*
* @param sourceRegion
* The region where the source instance is located.
*/
public void setSourceRegion(String sourceRegion) {
this.sourceRegion = sourceRegion;
}
/**
* The region where the source instance is located.
*
* @return The region where the source instance is located.
*/
public String getSourceRegion() {
return this.sourceRegion;
}
/**
* The region where the source instance is located.
*
* @param sourceRegion
* The region where the source instance is located.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public StartDBInstanceAutomatedBackupsReplicationRequest withSourceRegion(String sourceRegion) {
setSourceRegion(sourceRegion);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getSourceDBInstanceArn() != null)
sb.append("SourceDBInstanceArn: ").append(getSourceDBInstanceArn()).append(",");
if (getBackupRetentionPeriod() != null)
sb.append("BackupRetentionPeriod: ").append(getBackupRetentionPeriod()).append(",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: ").append(getKmsKeyId()).append(",");
if (getPreSignedUrl() != null)
sb.append("PreSignedUrl: ").append(getPreSignedUrl()).append(",");
if (getSourceRegion() != null)
sb.append("SourceRegion: ").append(getSourceRegion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof StartDBInstanceAutomatedBackupsReplicationRequest == false)
return false;
StartDBInstanceAutomatedBackupsReplicationRequest other = (StartDBInstanceAutomatedBackupsReplicationRequest) obj;
if (other.getSourceDBInstanceArn() == null ^ this.getSourceDBInstanceArn() == null)
return false;
if (other.getSourceDBInstanceArn() != null && other.getSourceDBInstanceArn().equals(this.getSourceDBInstanceArn()) == false)
return false;
if (other.getBackupRetentionPeriod() == null ^ this.getBackupRetentionPeriod() == null)
return false;
if (other.getBackupRetentionPeriod() != null && other.getBackupRetentionPeriod().equals(this.getBackupRetentionPeriod()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
if (other.getPreSignedUrl() == null ^ this.getPreSignedUrl() == null)
return false;
if (other.getPreSignedUrl() != null && other.getPreSignedUrl().equals(this.getPreSignedUrl()) == false)
return false;
if (other.getSourceRegion() == null ^ this.getSourceRegion() == null)
return false;
if (other.getSourceRegion() != null && other.getSourceRegion().equals(this.getSourceRegion()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSourceDBInstanceArn() == null) ? 0 : getSourceDBInstanceArn().hashCode());
hashCode = prime * hashCode + ((getBackupRetentionPeriod() == null) ? 0 : getBackupRetentionPeriod().hashCode());
hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
hashCode = prime * hashCode + ((getPreSignedUrl() == null) ? 0 : getPreSignedUrl().hashCode());
hashCode = prime * hashCode + ((getSourceRegion() == null) ? 0 : getSourceRegion().hashCode());
return hashCode;
}
@Override
public StartDBInstanceAutomatedBackupsReplicationRequest clone() {
return (StartDBInstanceAutomatedBackupsReplicationRequest) super.clone();
}
}