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

com.amazonaws.services.kinesisfirehose.model.DeliveryStreamEncryptionConfiguration Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.765
Show newest version
/*
 * 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.kinesisfirehose.model;

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

/**
 * 

* Contains information about the server-side encryption (SSE) status for the delivery stream, the type customer master * key (CMK) in use, if any, and the ARN of the CMK. You can get DeliveryStreamEncryptionConfiguration by * invoking the DescribeDeliveryStream operation. *

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

* If KeyType is CUSTOMER_MANAGED_CMK, this field contains the ARN of the customer managed * CMK. If KeyType is Amazon Web Services_OWNED_CMK, * DeliveryStreamEncryptionConfiguration doesn't contain a value for KeyARN. *

*/ private String keyARN; /** *

* Indicates the type of customer master key (CMK) that is used for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). *

*/ private String keyType; /** *

* This is the server-side encryption (SSE) status for the delivery stream. For a full description of the different * values of this status, see StartDeliveryStreamEncryption and StopDeliveryStreamEncryption. If this * status is ENABLING_FAILED or DISABLING_FAILED, it is the status of the most recent * attempt to enable or disable SSE, respectively. *

*/ private String status; /** *

* Provides details in case one of the following operations fails due to an error related to KMS: * CreateDeliveryStream, DeleteDeliveryStream, StartDeliveryStreamEncryption, * StopDeliveryStreamEncryption. *

*/ private FailureDescription failureDescription; /** *

* If KeyType is CUSTOMER_MANAGED_CMK, this field contains the ARN of the customer managed * CMK. If KeyType is Amazon Web Services_OWNED_CMK, * DeliveryStreamEncryptionConfiguration doesn't contain a value for KeyARN. *

* * @param keyARN * If KeyType is CUSTOMER_MANAGED_CMK, this field contains the ARN of the customer * managed CMK. If KeyType is Amazon Web Services_OWNED_CMK, * DeliveryStreamEncryptionConfiguration doesn't contain a value for KeyARN. */ public void setKeyARN(String keyARN) { this.keyARN = keyARN; } /** *

* If KeyType is CUSTOMER_MANAGED_CMK, this field contains the ARN of the customer managed * CMK. If KeyType is Amazon Web Services_OWNED_CMK, * DeliveryStreamEncryptionConfiguration doesn't contain a value for KeyARN. *

* * @return If KeyType is CUSTOMER_MANAGED_CMK, this field contains the ARN of the customer * managed CMK. If KeyType is Amazon Web Services_OWNED_CMK, * DeliveryStreamEncryptionConfiguration doesn't contain a value for KeyARN. */ public String getKeyARN() { return this.keyARN; } /** *

* If KeyType is CUSTOMER_MANAGED_CMK, this field contains the ARN of the customer managed * CMK. If KeyType is Amazon Web Services_OWNED_CMK, * DeliveryStreamEncryptionConfiguration doesn't contain a value for KeyARN. *

* * @param keyARN * If KeyType is CUSTOMER_MANAGED_CMK, this field contains the ARN of the customer * managed CMK. If KeyType is Amazon Web Services_OWNED_CMK, * DeliveryStreamEncryptionConfiguration doesn't contain a value for KeyARN. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamEncryptionConfiguration withKeyARN(String keyARN) { setKeyARN(keyARN); return this; } /** *

* Indicates the type of customer master key (CMK) that is used for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). *

* * @param keyType * Indicates the type of customer master key (CMK) that is used for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master * Keys (CMKs). * @see KeyType */ public void setKeyType(String keyType) { this.keyType = keyType; } /** *

* Indicates the type of customer master key (CMK) that is used for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). *

* * @return Indicates the type of customer master key (CMK) that is used for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master * Keys (CMKs). * @see KeyType */ public String getKeyType() { return this.keyType; } /** *

* Indicates the type of customer master key (CMK) that is used for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). *

* * @param keyType * Indicates the type of customer master key (CMK) that is used for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master * Keys (CMKs). * @return Returns a reference to this object so that method calls can be chained together. * @see KeyType */ public DeliveryStreamEncryptionConfiguration withKeyType(String keyType) { setKeyType(keyType); return this; } /** *

* Indicates the type of customer master key (CMK) that is used for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master Keys * (CMKs). *

* * @param keyType * Indicates the type of customer master key (CMK) that is used for encryption. The default setting is * Amazon Web Services_OWNED_CMK. For more information about CMKs, see Customer Master * Keys (CMKs). * @return Returns a reference to this object so that method calls can be chained together. * @see KeyType */ public DeliveryStreamEncryptionConfiguration withKeyType(KeyType keyType) { this.keyType = keyType.toString(); return this; } /** *

* This is the server-side encryption (SSE) status for the delivery stream. For a full description of the different * values of this status, see StartDeliveryStreamEncryption and StopDeliveryStreamEncryption. If this * status is ENABLING_FAILED or DISABLING_FAILED, it is the status of the most recent * attempt to enable or disable SSE, respectively. *

* * @param status * This is the server-side encryption (SSE) status for the delivery stream. For a full description of the * different values of this status, see StartDeliveryStreamEncryption and * StopDeliveryStreamEncryption. If this status is ENABLING_FAILED or * DISABLING_FAILED, it is the status of the most recent attempt to enable or disable SSE, * respectively. * @see DeliveryStreamEncryptionStatus */ public void setStatus(String status) { this.status = status; } /** *

* This is the server-side encryption (SSE) status for the delivery stream. For a full description of the different * values of this status, see StartDeliveryStreamEncryption and StopDeliveryStreamEncryption. If this * status is ENABLING_FAILED or DISABLING_FAILED, it is the status of the most recent * attempt to enable or disable SSE, respectively. *

* * @return This is the server-side encryption (SSE) status for the delivery stream. For a full description of the * different values of this status, see StartDeliveryStreamEncryption and * StopDeliveryStreamEncryption. If this status is ENABLING_FAILED or * DISABLING_FAILED, it is the status of the most recent attempt to enable or disable SSE, * respectively. * @see DeliveryStreamEncryptionStatus */ public String getStatus() { return this.status; } /** *

* This is the server-side encryption (SSE) status for the delivery stream. For a full description of the different * values of this status, see StartDeliveryStreamEncryption and StopDeliveryStreamEncryption. If this * status is ENABLING_FAILED or DISABLING_FAILED, it is the status of the most recent * attempt to enable or disable SSE, respectively. *

* * @param status * This is the server-side encryption (SSE) status for the delivery stream. For a full description of the * different values of this status, see StartDeliveryStreamEncryption and * StopDeliveryStreamEncryption. If this status is ENABLING_FAILED or * DISABLING_FAILED, it is the status of the most recent attempt to enable or disable SSE, * respectively. * @return Returns a reference to this object so that method calls can be chained together. * @see DeliveryStreamEncryptionStatus */ public DeliveryStreamEncryptionConfiguration withStatus(String status) { setStatus(status); return this; } /** *

* This is the server-side encryption (SSE) status for the delivery stream. For a full description of the different * values of this status, see StartDeliveryStreamEncryption and StopDeliveryStreamEncryption. If this * status is ENABLING_FAILED or DISABLING_FAILED, it is the status of the most recent * attempt to enable or disable SSE, respectively. *

* * @param status * This is the server-side encryption (SSE) status for the delivery stream. For a full description of the * different values of this status, see StartDeliveryStreamEncryption and * StopDeliveryStreamEncryption. If this status is ENABLING_FAILED or * DISABLING_FAILED, it is the status of the most recent attempt to enable or disable SSE, * respectively. * @return Returns a reference to this object so that method calls can be chained together. * @see DeliveryStreamEncryptionStatus */ public DeliveryStreamEncryptionConfiguration withStatus(DeliveryStreamEncryptionStatus status) { this.status = status.toString(); return this; } /** *

* Provides details in case one of the following operations fails due to an error related to KMS: * CreateDeliveryStream, DeleteDeliveryStream, StartDeliveryStreamEncryption, * StopDeliveryStreamEncryption. *

* * @param failureDescription * Provides details in case one of the following operations fails due to an error related to KMS: * CreateDeliveryStream, DeleteDeliveryStream, StartDeliveryStreamEncryption, * StopDeliveryStreamEncryption. */ public void setFailureDescription(FailureDescription failureDescription) { this.failureDescription = failureDescription; } /** *

* Provides details in case one of the following operations fails due to an error related to KMS: * CreateDeliveryStream, DeleteDeliveryStream, StartDeliveryStreamEncryption, * StopDeliveryStreamEncryption. *

* * @return Provides details in case one of the following operations fails due to an error related to KMS: * CreateDeliveryStream, DeleteDeliveryStream, StartDeliveryStreamEncryption, * StopDeliveryStreamEncryption. */ public FailureDescription getFailureDescription() { return this.failureDescription; } /** *

* Provides details in case one of the following operations fails due to an error related to KMS: * CreateDeliveryStream, DeleteDeliveryStream, StartDeliveryStreamEncryption, * StopDeliveryStreamEncryption. *

* * @param failureDescription * Provides details in case one of the following operations fails due to an error related to KMS: * CreateDeliveryStream, DeleteDeliveryStream, StartDeliveryStreamEncryption, * StopDeliveryStreamEncryption. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamEncryptionConfiguration withFailureDescription(FailureDescription failureDescription) { setFailureDescription(failureDescription); 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 (getKeyARN() != null) sb.append("KeyARN: ").append(getKeyARN()).append(","); if (getKeyType() != null) sb.append("KeyType: ").append(getKeyType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getFailureDescription() != null) sb.append("FailureDescription: ").append(getFailureDescription()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeliveryStreamEncryptionConfiguration == false) return false; DeliveryStreamEncryptionConfiguration other = (DeliveryStreamEncryptionConfiguration) obj; if (other.getKeyARN() == null ^ this.getKeyARN() == null) return false; if (other.getKeyARN() != null && other.getKeyARN().equals(this.getKeyARN()) == false) return false; if (other.getKeyType() == null ^ this.getKeyType() == null) return false; if (other.getKeyType() != null && other.getKeyType().equals(this.getKeyType()) == 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.getFailureDescription() == null ^ this.getFailureDescription() == null) return false; if (other.getFailureDescription() != null && other.getFailureDescription().equals(this.getFailureDescription()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getKeyARN() == null) ? 0 : getKeyARN().hashCode()); hashCode = prime * hashCode + ((getKeyType() == null) ? 0 : getKeyType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getFailureDescription() == null) ? 0 : getFailureDescription().hashCode()); return hashCode; } @Override public DeliveryStreamEncryptionConfiguration clone() { try { return (DeliveryStreamEncryptionConfiguration) 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.kinesisfirehose.model.transform.DeliveryStreamEncryptionConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy