All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.backup.model.RecoveryPointCreator Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Backup module holds the client classes that are used for communicating with AWS Backup Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.backup.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains information about the backup plan and rule that Backup used to initiate the recovery point backup. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RecoveryPointCreator implements Serializable, Cloneable, StructuredPojo { /** *

* Uniquely identifies a backup plan. *

*/ private String backupPlanId; /** *

* An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. *

*/ private String backupPlanArn; /** *

* Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. * They cannot be edited. *

*/ private String backupPlanVersion; /** *

* Uniquely identifies a rule used to schedule the backup of a selection of resources. *

*/ private String backupRuleId; /** *

* Uniquely identifies a backup plan. *

* * @param backupPlanId * Uniquely identifies a backup plan. */ public void setBackupPlanId(String backupPlanId) { this.backupPlanId = backupPlanId; } /** *

* Uniquely identifies a backup plan. *

* * @return Uniquely identifies a backup plan. */ public String getBackupPlanId() { return this.backupPlanId; } /** *

* Uniquely identifies a backup plan. *

* * @param backupPlanId * Uniquely identifies a backup plan. * @return Returns a reference to this object so that method calls can be chained together. */ public RecoveryPointCreator withBackupPlanId(String backupPlanId) { setBackupPlanId(backupPlanId); return this; } /** *

* An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. *

* * @param backupPlanArn * An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. */ public void setBackupPlanArn(String backupPlanArn) { this.backupPlanArn = backupPlanArn; } /** *

* An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. *

* * @return An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. */ public String getBackupPlanArn() { return this.backupPlanArn; } /** *

* An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. *

* * @param backupPlanArn * An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example, * arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50. * @return Returns a reference to this object so that method calls can be chained together. */ public RecoveryPointCreator withBackupPlanArn(String backupPlanArn) { setBackupPlanArn(backupPlanArn); return this; } /** *

* Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. * They cannot be edited. *

* * @param backupPlanVersion * Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes * long. They cannot be edited. */ public void setBackupPlanVersion(String backupPlanVersion) { this.backupPlanVersion = backupPlanVersion; } /** *

* Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. * They cannot be edited. *

* * @return Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes * long. They cannot be edited. */ public String getBackupPlanVersion() { return this.backupPlanVersion; } /** *

* Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes long. * They cannot be edited. *

* * @param backupPlanVersion * Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024 bytes * long. They cannot be edited. * @return Returns a reference to this object so that method calls can be chained together. */ public RecoveryPointCreator withBackupPlanVersion(String backupPlanVersion) { setBackupPlanVersion(backupPlanVersion); return this; } /** *

* Uniquely identifies a rule used to schedule the backup of a selection of resources. *

* * @param backupRuleId * Uniquely identifies a rule used to schedule the backup of a selection of resources. */ public void setBackupRuleId(String backupRuleId) { this.backupRuleId = backupRuleId; } /** *

* Uniquely identifies a rule used to schedule the backup of a selection of resources. *

* * @return Uniquely identifies a rule used to schedule the backup of a selection of resources. */ public String getBackupRuleId() { return this.backupRuleId; } /** *

* Uniquely identifies a rule used to schedule the backup of a selection of resources. *

* * @param backupRuleId * Uniquely identifies a rule used to schedule the backup of a selection of resources. * @return Returns a reference to this object so that method calls can be chained together. */ public RecoveryPointCreator withBackupRuleId(String backupRuleId) { setBackupRuleId(backupRuleId); 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 (getBackupPlanId() != null) sb.append("BackupPlanId: ").append(getBackupPlanId()).append(","); if (getBackupPlanArn() != null) sb.append("BackupPlanArn: ").append(getBackupPlanArn()).append(","); if (getBackupPlanVersion() != null) sb.append("BackupPlanVersion: ").append(getBackupPlanVersion()).append(","); if (getBackupRuleId() != null) sb.append("BackupRuleId: ").append(getBackupRuleId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RecoveryPointCreator == false) return false; RecoveryPointCreator other = (RecoveryPointCreator) obj; if (other.getBackupPlanId() == null ^ this.getBackupPlanId() == null) return false; if (other.getBackupPlanId() != null && other.getBackupPlanId().equals(this.getBackupPlanId()) == false) return false; if (other.getBackupPlanArn() == null ^ this.getBackupPlanArn() == null) return false; if (other.getBackupPlanArn() != null && other.getBackupPlanArn().equals(this.getBackupPlanArn()) == false) return false; if (other.getBackupPlanVersion() == null ^ this.getBackupPlanVersion() == null) return false; if (other.getBackupPlanVersion() != null && other.getBackupPlanVersion().equals(this.getBackupPlanVersion()) == false) return false; if (other.getBackupRuleId() == null ^ this.getBackupRuleId() == null) return false; if (other.getBackupRuleId() != null && other.getBackupRuleId().equals(this.getBackupRuleId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBackupPlanId() == null) ? 0 : getBackupPlanId().hashCode()); hashCode = prime * hashCode + ((getBackupPlanArn() == null) ? 0 : getBackupPlanArn().hashCode()); hashCode = prime * hashCode + ((getBackupPlanVersion() == null) ? 0 : getBackupPlanVersion().hashCode()); hashCode = prime * hashCode + ((getBackupRuleId() == null) ? 0 : getBackupRuleId().hashCode()); return hashCode; } @Override public RecoveryPointCreator clone() { try { return (RecoveryPointCreator) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.backup.model.transform.RecoveryPointCreatorMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy