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

com.amazonaws.services.kafka.model.EncryptionInTransit 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.kafka.model;

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

/**
 * 
 

* The settings for encrypting data in transit. *

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

* Indicates the encryption setting for data in transit between clients and brokers. The following are the possible * values. *

*

* TLS means that client-broker communication is enabled with TLS only. *

*

* TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext * data. *

*

* PLAINTEXT means that client-broker communication is enabled in plaintext only. *

*

* The default value is TLS_PLAINTEXT. *

*/ private String clientBroker; /** *

* When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. When * set to false, the communication happens in plaintext. *

*

* The default value is true. *

*/ private Boolean inCluster; /** *

* Indicates the encryption setting for data in transit between clients and brokers. The following are the possible * values. *

*

* TLS means that client-broker communication is enabled with TLS only. *

*

* TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext * data. *

*

* PLAINTEXT means that client-broker communication is enabled in plaintext only. *

*

* The default value is TLS_PLAINTEXT. *

* * @param clientBroker *

* Indicates the encryption setting for data in transit between clients and brokers. The following are the * possible values. *

*

* TLS means that client-broker communication is enabled with TLS only. *

*

* TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as * plaintext data. *

*

* PLAINTEXT means that client-broker communication is enabled in plaintext only. *

*

* The default value is TLS_PLAINTEXT. *

* @see ClientBroker */ public void setClientBroker(String clientBroker) { this.clientBroker = clientBroker; } /** *

* Indicates the encryption setting for data in transit between clients and brokers. The following are the possible * values. *

*

* TLS means that client-broker communication is enabled with TLS only. *

*

* TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext * data. *

*

* PLAINTEXT means that client-broker communication is enabled in plaintext only. *

*

* The default value is TLS_PLAINTEXT. *

* * @return

* Indicates the encryption setting for data in transit between clients and brokers. The following are the * possible values. *

*

* TLS means that client-broker communication is enabled with TLS only. *

*

* TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as * plaintext data. *

*

* PLAINTEXT means that client-broker communication is enabled in plaintext only. *

*

* The default value is TLS_PLAINTEXT. *

* @see ClientBroker */ public String getClientBroker() { return this.clientBroker; } /** *

* Indicates the encryption setting for data in transit between clients and brokers. The following are the possible * values. *

*

* TLS means that client-broker communication is enabled with TLS only. *

*

* TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext * data. *

*

* PLAINTEXT means that client-broker communication is enabled in plaintext only. *

*

* The default value is TLS_PLAINTEXT. *

* * @param clientBroker *

* Indicates the encryption setting for data in transit between clients and brokers. The following are the * possible values. *

*

* TLS means that client-broker communication is enabled with TLS only. *

*

* TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as * plaintext data. *

*

* PLAINTEXT means that client-broker communication is enabled in plaintext only. *

*

* The default value is TLS_PLAINTEXT. *

* @return Returns a reference to this object so that method calls can be chained together. * @see ClientBroker */ public EncryptionInTransit withClientBroker(String clientBroker) { setClientBroker(clientBroker); return this; } /** *

* Indicates the encryption setting for data in transit between clients and brokers. The following are the possible * values. *

*

* TLS means that client-broker communication is enabled with TLS only. *

*

* TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext * data. *

*

* PLAINTEXT means that client-broker communication is enabled in plaintext only. *

*

* The default value is TLS_PLAINTEXT. *

* * @param clientBroker *

* Indicates the encryption setting for data in transit between clients and brokers. The following are the * possible values. *

*

* TLS means that client-broker communication is enabled with TLS only. *

*

* TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as * plaintext data. *

*

* PLAINTEXT means that client-broker communication is enabled in plaintext only. *

*

* The default value is TLS_PLAINTEXT. *

* @return Returns a reference to this object so that method calls can be chained together. * @see ClientBroker */ public EncryptionInTransit withClientBroker(ClientBroker clientBroker) { this.clientBroker = clientBroker.toString(); return this; } /** *

* When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. When * set to false, the communication happens in plaintext. *

*

* The default value is true. *

* * @param inCluster *

* When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. * When set to false, the communication happens in plaintext. *

*

* The default value is true. *

*/ public void setInCluster(Boolean inCluster) { this.inCluster = inCluster; } /** *

* When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. When * set to false, the communication happens in plaintext. *

*

* The default value is true. *

* * @return

* When set to true, it indicates that data communication among the broker nodes of the cluster is * encrypted. When set to false, the communication happens in plaintext. *

*

* The default value is true. *

*/ public Boolean getInCluster() { return this.inCluster; } /** *

* When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. When * set to false, the communication happens in plaintext. *

*

* The default value is true. *

* * @param inCluster *

* When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. * When set to false, the communication happens in plaintext. *

*

* The default value is true. *

* @return Returns a reference to this object so that method calls can be chained together. */ public EncryptionInTransit withInCluster(Boolean inCluster) { setInCluster(inCluster); return this; } /** *

* When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. When * set to false, the communication happens in plaintext. *

*

* The default value is true. *

* * @return

* When set to true, it indicates that data communication among the broker nodes of the cluster is * encrypted. When set to false, the communication happens in plaintext. *

*

* The default value is true. *

*/ public Boolean isInCluster() { return this.inCluster; } /** * 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 (getClientBroker() != null) sb.append("ClientBroker: ").append(getClientBroker()).append(","); if (getInCluster() != null) sb.append("InCluster: ").append(getInCluster()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EncryptionInTransit == false) return false; EncryptionInTransit other = (EncryptionInTransit) obj; if (other.getClientBroker() == null ^ this.getClientBroker() == null) return false; if (other.getClientBroker() != null && other.getClientBroker().equals(this.getClientBroker()) == false) return false; if (other.getInCluster() == null ^ this.getInCluster() == null) return false; if (other.getInCluster() != null && other.getInCluster().equals(this.getInCluster()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientBroker() == null) ? 0 : getClientBroker().hashCode()); hashCode = prime * hashCode + ((getInCluster() == null) ? 0 : getInCluster().hashCode()); return hashCode; } @Override public EncryptionInTransit clone() { try { return (EncryptionInTransit) 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.kafka.model.transform.EncryptionInTransitMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy