com.amazonaws.services.backup.model.CreateLogicallyAirGappedBackupVaultResult Maven / Gradle / Ivy
/*
* 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;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateLogicallyAirGappedBackupVaultResult extends com.amazonaws.AmazonWebServiceResult implements Serializable,
Cloneable {
/**
*
* The name of a logical container where backups are stored. Logically air-gapped backup vaults are identified by
* names that are unique to the account used to create them and the Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*
*/
private String backupVaultName;
/**
*
* This is the ARN (Amazon Resource Name) of the vault being created.
*
*/
private String backupVaultArn;
/**
*
* The date and time when the vault was created.
*
*
* This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the
* value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*
*/
private java.util.Date creationDate;
/**
*
* This is the current state of the vault.
*
*/
private String vaultState;
/**
*
* The name of a logical container where backups are stored. Logically air-gapped backup vaults are identified by
* names that are unique to the account used to create them and the Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*
*
* @param backupVaultName
* The name of a logical container where backups are stored. Logically air-gapped backup vaults are
* identified by names that are unique to the account used to create them and the Region where they are
* created. They consist of lowercase letters, numbers, and hyphens.
*/
public void setBackupVaultName(String backupVaultName) {
this.backupVaultName = backupVaultName;
}
/**
*
* The name of a logical container where backups are stored. Logically air-gapped backup vaults are identified by
* names that are unique to the account used to create them and the Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*
*
* @return The name of a logical container where backups are stored. Logically air-gapped backup vaults are
* identified by names that are unique to the account used to create them and the Region where they are
* created. They consist of lowercase letters, numbers, and hyphens.
*/
public String getBackupVaultName() {
return this.backupVaultName;
}
/**
*
* The name of a logical container where backups are stored. Logically air-gapped backup vaults are identified by
* names that are unique to the account used to create them and the Region where they are created. They consist of
* lowercase letters, numbers, and hyphens.
*
*
* @param backupVaultName
* The name of a logical container where backups are stored. Logically air-gapped backup vaults are
* identified by names that are unique to the account used to create them and the Region where they are
* created. They consist of lowercase letters, numbers, and hyphens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLogicallyAirGappedBackupVaultResult withBackupVaultName(String backupVaultName) {
setBackupVaultName(backupVaultName);
return this;
}
/**
*
* This is the ARN (Amazon Resource Name) of the vault being created.
*
*
* @param backupVaultArn
* This is the ARN (Amazon Resource Name) of the vault being created.
*/
public void setBackupVaultArn(String backupVaultArn) {
this.backupVaultArn = backupVaultArn;
}
/**
*
* This is the ARN (Amazon Resource Name) of the vault being created.
*
*
* @return This is the ARN (Amazon Resource Name) of the vault being created.
*/
public String getBackupVaultArn() {
return this.backupVaultArn;
}
/**
*
* This is the ARN (Amazon Resource Name) of the vault being created.
*
*
* @param backupVaultArn
* This is the ARN (Amazon Resource Name) of the vault being created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLogicallyAirGappedBackupVaultResult withBackupVaultArn(String backupVaultArn) {
setBackupVaultArn(backupVaultArn);
return this;
}
/**
*
* The date and time when the vault was created.
*
*
* This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the
* value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @param creationDate
* The date and time when the vault was created.
*
* This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public void setCreationDate(java.util.Date creationDate) {
this.creationDate = creationDate;
}
/**
*
* The date and time when the vault was created.
*
*
* This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the
* value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @return The date and time when the vault was created.
*
* This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For
* example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*/
public java.util.Date getCreationDate() {
return this.creationDate;
}
/**
*
* The date and time when the vault was created.
*
*
* This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example, the
* value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
*
*
* @param creationDate
* The date and time when the vault was created.
*
* This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds. For example,
* the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateLogicallyAirGappedBackupVaultResult withCreationDate(java.util.Date creationDate) {
setCreationDate(creationDate);
return this;
}
/**
*
* This is the current state of the vault.
*
*
* @param vaultState
* This is the current state of the vault.
* @see VaultState
*/
public void setVaultState(String vaultState) {
this.vaultState = vaultState;
}
/**
*
* This is the current state of the vault.
*
*
* @return This is the current state of the vault.
* @see VaultState
*/
public String getVaultState() {
return this.vaultState;
}
/**
*
* This is the current state of the vault.
*
*
* @param vaultState
* This is the current state of the vault.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VaultState
*/
public CreateLogicallyAirGappedBackupVaultResult withVaultState(String vaultState) {
setVaultState(vaultState);
return this;
}
/**
*
* This is the current state of the vault.
*
*
* @param vaultState
* This is the current state of the vault.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VaultState
*/
public CreateLogicallyAirGappedBackupVaultResult withVaultState(VaultState vaultState) {
this.vaultState = vaultState.toString();
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 (getBackupVaultName() != null)
sb.append("BackupVaultName: ").append(getBackupVaultName()).append(",");
if (getBackupVaultArn() != null)
sb.append("BackupVaultArn: ").append(getBackupVaultArn()).append(",");
if (getCreationDate() != null)
sb.append("CreationDate: ").append(getCreationDate()).append(",");
if (getVaultState() != null)
sb.append("VaultState: ").append(getVaultState());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateLogicallyAirGappedBackupVaultResult == false)
return false;
CreateLogicallyAirGappedBackupVaultResult other = (CreateLogicallyAirGappedBackupVaultResult) obj;
if (other.getBackupVaultName() == null ^ this.getBackupVaultName() == null)
return false;
if (other.getBackupVaultName() != null && other.getBackupVaultName().equals(this.getBackupVaultName()) == false)
return false;
if (other.getBackupVaultArn() == null ^ this.getBackupVaultArn() == null)
return false;
if (other.getBackupVaultArn() != null && other.getBackupVaultArn().equals(this.getBackupVaultArn()) == false)
return false;
if (other.getCreationDate() == null ^ this.getCreationDate() == null)
return false;
if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false)
return false;
if (other.getVaultState() == null ^ this.getVaultState() == null)
return false;
if (other.getVaultState() != null && other.getVaultState().equals(this.getVaultState()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBackupVaultName() == null) ? 0 : getBackupVaultName().hashCode());
hashCode = prime * hashCode + ((getBackupVaultArn() == null) ? 0 : getBackupVaultArn().hashCode());
hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
hashCode = prime * hashCode + ((getVaultState() == null) ? 0 : getVaultState().hashCode());
return hashCode;
}
@Override
public CreateLogicallyAirGappedBackupVaultResult clone() {
try {
return (CreateLogicallyAirGappedBackupVaultResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}