* The type of encryption used for the encryption configuration. *
*/ private String encryptionType; /** *
* The Key ARN of the KMS key used for KMS encryption if you use KMS_BASED_ENCRYPTION
.
*
* The status of the account configuration. This contains the ConfigurationState
. If there is an error,
* it also contains the ErrorDetails
.
*
* The type of encryption used for the encryption configuration. *
* * @param encryptionType * The type of encryption used for the encryption configuration. * @see EncryptionType */ public void setEncryptionType(String encryptionType) { this.encryptionType = encryptionType; } /** ** The type of encryption used for the encryption configuration. *
* * @return The type of encryption used for the encryption configuration. * @see EncryptionType */ public String getEncryptionType() { return this.encryptionType; } /** ** The type of encryption used for the encryption configuration. *
* * @param encryptionType * The type of encryption used for the encryption configuration. * @return Returns a reference to this object so that method calls can be chained together. * @see EncryptionType */ public PutDefaultEncryptionConfigurationResult withEncryptionType(String encryptionType) { setEncryptionType(encryptionType); return this; } /** ** The type of encryption used for the encryption configuration. *
* * @param encryptionType * The type of encryption used for the encryption configuration. * @return Returns a reference to this object so that method calls can be chained together. * @see EncryptionType */ public PutDefaultEncryptionConfigurationResult withEncryptionType(EncryptionType encryptionType) { this.encryptionType = encryptionType.toString(); return this; } /** *
* The Key ARN of the KMS key used for KMS encryption if you use KMS_BASED_ENCRYPTION
.
*
KMS_BASED_ENCRYPTION
.
*/
public void setKmsKeyArn(String kmsKeyArn) {
this.kmsKeyArn = kmsKeyArn;
}
/**
*
* The Key ARN of the KMS key used for KMS encryption if you use KMS_BASED_ENCRYPTION
.
*
KMS_BASED_ENCRYPTION
.
*/
public String getKmsKeyArn() {
return this.kmsKeyArn;
}
/**
*
* The Key ARN of the KMS key used for KMS encryption if you use KMS_BASED_ENCRYPTION
.
*
KMS_BASED_ENCRYPTION
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutDefaultEncryptionConfigurationResult withKmsKeyArn(String kmsKeyArn) {
setKmsKeyArn(kmsKeyArn);
return this;
}
/**
*
* The status of the account configuration. This contains the ConfigurationState
. If there is an error,
* it also contains the ErrorDetails
.
*
ConfigurationState
. If there is an
* error, it also contains the ErrorDetails
.
*/
public void setConfigurationStatus(ConfigurationStatus configurationStatus) {
this.configurationStatus = configurationStatus;
}
/**
*
* The status of the account configuration. This contains the ConfigurationState
. If there is an error,
* it also contains the ErrorDetails
.
*
ConfigurationState
. If there is
* an error, it also contains the ErrorDetails
.
*/
public ConfigurationStatus getConfigurationStatus() {
return this.configurationStatus;
}
/**
*
* The status of the account configuration. This contains the ConfigurationState
. If there is an error,
* it also contains the ErrorDetails
.
*
ConfigurationState
. If there is an
* error, it also contains the ErrorDetails
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PutDefaultEncryptionConfigurationResult withConfigurationStatus(ConfigurationStatus configurationStatus) {
setConfigurationStatus(configurationStatus);
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 (getEncryptionType() != null)
sb.append("EncryptionType: ").append(getEncryptionType()).append(",");
if (getKmsKeyArn() != null)
sb.append("KmsKeyArn: ").append(getKmsKeyArn()).append(",");
if (getConfigurationStatus() != null)
sb.append("ConfigurationStatus: ").append(getConfigurationStatus());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof PutDefaultEncryptionConfigurationResult == false)
return false;
PutDefaultEncryptionConfigurationResult other = (PutDefaultEncryptionConfigurationResult) obj;
if (other.getEncryptionType() == null ^ this.getEncryptionType() == null)
return false;
if (other.getEncryptionType() != null && other.getEncryptionType().equals(this.getEncryptionType()) == false)
return false;
if (other.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null)
return false;
if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == false)
return false;
if (other.getConfigurationStatus() == null ^ this.getConfigurationStatus() == null)
return false;
if (other.getConfigurationStatus() != null && other.getConfigurationStatus().equals(this.getConfigurationStatus()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEncryptionType() == null) ? 0 : getEncryptionType().hashCode());
hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().hashCode());
hashCode = prime * hashCode + ((getConfigurationStatus() == null) ? 0 : getConfigurationStatus().hashCode());
return hashCode;
}
@Override
public PutDefaultEncryptionConfigurationResult clone() {
try {
return (PutDefaultEncryptionConfigurationResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}