com.amazonaws.services.securityhub.model.AwsDynamoDbTableSseDescription Maven / Gradle / Ivy
Show all versions of aws-java-sdk-securityhub Show documentation
/*
* Copyright 2016-2021 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.securityhub.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Information about the server-side encryption for the table.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AwsDynamoDbTableSseDescription implements Serializable, Cloneable, StructuredPojo {
/**
*
* If the key is inaccessible, the date and time when DynamoDB detected that the key was inaccessible.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*/
private String inaccessibleEncryptionDateTime;
/**
*
* The status of the server-side encryption.
*
*/
private String status;
/**
*
* The type of server-side encryption.
*
*/
private String sseType;
/**
*
* The ARN of the KMS key that is used for the KMS encryption.
*
*/
private String kmsMasterKeyArn;
/**
*
* If the key is inaccessible, the date and time when DynamoDB detected that the key was inaccessible.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*
* @param inaccessibleEncryptionDateTime
* If the key is inaccessible, the date and time when DynamoDB detected that the key was inaccessible.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
*/
public void setInaccessibleEncryptionDateTime(String inaccessibleEncryptionDateTime) {
this.inaccessibleEncryptionDateTime = inaccessibleEncryptionDateTime;
}
/**
*
* If the key is inaccessible, the date and time when DynamoDB detected that the key was inaccessible.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*
* @return If the key is inaccessible, the date and time when DynamoDB detected that the key was inaccessible.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
*/
public String getInaccessibleEncryptionDateTime() {
return this.inaccessibleEncryptionDateTime;
}
/**
*
* If the key is inaccessible, the date and time when DynamoDB detected that the key was inaccessible.
*
*
* Uses the date-time
format specified in RFC
* 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example,
* 2020-03-22T13:22:13.933Z
.
*
*
* @param inaccessibleEncryptionDateTime
* If the key is inaccessible, the date and time when DynamoDB detected that the key was inaccessible.
*
* Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
* Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDynamoDbTableSseDescription withInaccessibleEncryptionDateTime(String inaccessibleEncryptionDateTime) {
setInaccessibleEncryptionDateTime(inaccessibleEncryptionDateTime);
return this;
}
/**
*
* The status of the server-side encryption.
*
*
* @param status
* The status of the server-side encryption.
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the server-side encryption.
*
*
* @return The status of the server-side encryption.
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the server-side encryption.
*
*
* @param status
* The status of the server-side encryption.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDynamoDbTableSseDescription withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The type of server-side encryption.
*
*
* @param sseType
* The type of server-side encryption.
*/
public void setSseType(String sseType) {
this.sseType = sseType;
}
/**
*
* The type of server-side encryption.
*
*
* @return The type of server-side encryption.
*/
public String getSseType() {
return this.sseType;
}
/**
*
* The type of server-side encryption.
*
*
* @param sseType
* The type of server-side encryption.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDynamoDbTableSseDescription withSseType(String sseType) {
setSseType(sseType);
return this;
}
/**
*
* The ARN of the KMS key that is used for the KMS encryption.
*
*
* @param kmsMasterKeyArn
* The ARN of the KMS key that is used for the KMS encryption.
*/
public void setKmsMasterKeyArn(String kmsMasterKeyArn) {
this.kmsMasterKeyArn = kmsMasterKeyArn;
}
/**
*
* The ARN of the KMS key that is used for the KMS encryption.
*
*
* @return The ARN of the KMS key that is used for the KMS encryption.
*/
public String getKmsMasterKeyArn() {
return this.kmsMasterKeyArn;
}
/**
*
* The ARN of the KMS key that is used for the KMS encryption.
*
*
* @param kmsMasterKeyArn
* The ARN of the KMS key that is used for the KMS encryption.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsDynamoDbTableSseDescription withKmsMasterKeyArn(String kmsMasterKeyArn) {
setKmsMasterKeyArn(kmsMasterKeyArn);
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 (getInaccessibleEncryptionDateTime() != null)
sb.append("InaccessibleEncryptionDateTime: ").append(getInaccessibleEncryptionDateTime()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getSseType() != null)
sb.append("SseType: ").append(getSseType()).append(",");
if (getKmsMasterKeyArn() != null)
sb.append("KmsMasterKeyArn: ").append(getKmsMasterKeyArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AwsDynamoDbTableSseDescription == false)
return false;
AwsDynamoDbTableSseDescription other = (AwsDynamoDbTableSseDescription) obj;
if (other.getInaccessibleEncryptionDateTime() == null ^ this.getInaccessibleEncryptionDateTime() == null)
return false;
if (other.getInaccessibleEncryptionDateTime() != null
&& other.getInaccessibleEncryptionDateTime().equals(this.getInaccessibleEncryptionDateTime()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getSseType() == null ^ this.getSseType() == null)
return false;
if (other.getSseType() != null && other.getSseType().equals(this.getSseType()) == false)
return false;
if (other.getKmsMasterKeyArn() == null ^ this.getKmsMasterKeyArn() == null)
return false;
if (other.getKmsMasterKeyArn() != null && other.getKmsMasterKeyArn().equals(this.getKmsMasterKeyArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getInaccessibleEncryptionDateTime() == null) ? 0 : getInaccessibleEncryptionDateTime().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getSseType() == null) ? 0 : getSseType().hashCode());
hashCode = prime * hashCode + ((getKmsMasterKeyArn() == null) ? 0 : getKmsMasterKeyArn().hashCode());
return hashCode;
}
@Override
public AwsDynamoDbTableSseDescription clone() {
try {
return (AwsDynamoDbTableSseDescription) 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.securityhub.model.transform.AwsDynamoDbTableSseDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}