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

com.amazonaws.services.securityhub.model.AwsMskClusterClusterInfoClientAuthenticationDetails Maven / Gradle / Ivy

Go to download

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

The newest version!
/*
 * 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.securityhub.model;

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

/**
 * 

* Provides details about different modes of client authentication. *

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

* Provides details for client authentication using SASL. *

*/ private AwsMskClusterClusterInfoClientAuthenticationSaslDetails sasl; /** *

* Provides details for allowing no client authentication. *

*/ private AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails unauthenticated; /** *

* Provides details for client authentication using TLS. *

*/ private AwsMskClusterClusterInfoClientAuthenticationTlsDetails tls; /** *

* Provides details for client authentication using SASL. *

* * @param sasl * Provides details for client authentication using SASL. */ public void setSasl(AwsMskClusterClusterInfoClientAuthenticationSaslDetails sasl) { this.sasl = sasl; } /** *

* Provides details for client authentication using SASL. *

* * @return Provides details for client authentication using SASL. */ public AwsMskClusterClusterInfoClientAuthenticationSaslDetails getSasl() { return this.sasl; } /** *

* Provides details for client authentication using SASL. *

* * @param sasl * Provides details for client authentication using SASL. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsMskClusterClusterInfoClientAuthenticationDetails withSasl(AwsMskClusterClusterInfoClientAuthenticationSaslDetails sasl) { setSasl(sasl); return this; } /** *

* Provides details for allowing no client authentication. *

* * @param unauthenticated * Provides details for allowing no client authentication. */ public void setUnauthenticated(AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails unauthenticated) { this.unauthenticated = unauthenticated; } /** *

* Provides details for allowing no client authentication. *

* * @return Provides details for allowing no client authentication. */ public AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails getUnauthenticated() { return this.unauthenticated; } /** *

* Provides details for allowing no client authentication. *

* * @param unauthenticated * Provides details for allowing no client authentication. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsMskClusterClusterInfoClientAuthenticationDetails withUnauthenticated( AwsMskClusterClusterInfoClientAuthenticationUnauthenticatedDetails unauthenticated) { setUnauthenticated(unauthenticated); return this; } /** *

* Provides details for client authentication using TLS. *

* * @param tls * Provides details for client authentication using TLS. */ public void setTls(AwsMskClusterClusterInfoClientAuthenticationTlsDetails tls) { this.tls = tls; } /** *

* Provides details for client authentication using TLS. *

* * @return Provides details for client authentication using TLS. */ public AwsMskClusterClusterInfoClientAuthenticationTlsDetails getTls() { return this.tls; } /** *

* Provides details for client authentication using TLS. *

* * @param tls * Provides details for client authentication using TLS. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsMskClusterClusterInfoClientAuthenticationDetails withTls(AwsMskClusterClusterInfoClientAuthenticationTlsDetails tls) { setTls(tls); 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 (getSasl() != null) sb.append("Sasl: ").append(getSasl()).append(","); if (getUnauthenticated() != null) sb.append("Unauthenticated: ").append(getUnauthenticated()).append(","); if (getTls() != null) sb.append("Tls: ").append(getTls()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsMskClusterClusterInfoClientAuthenticationDetails == false) return false; AwsMskClusterClusterInfoClientAuthenticationDetails other = (AwsMskClusterClusterInfoClientAuthenticationDetails) obj; if (other.getSasl() == null ^ this.getSasl() == null) return false; if (other.getSasl() != null && other.getSasl().equals(this.getSasl()) == false) return false; if (other.getUnauthenticated() == null ^ this.getUnauthenticated() == null) return false; if (other.getUnauthenticated() != null && other.getUnauthenticated().equals(this.getUnauthenticated()) == false) return false; if (other.getTls() == null ^ this.getTls() == null) return false; if (other.getTls() != null && other.getTls().equals(this.getTls()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSasl() == null) ? 0 : getSasl().hashCode()); hashCode = prime * hashCode + ((getUnauthenticated() == null) ? 0 : getUnauthenticated().hashCode()); hashCode = prime * hashCode + ((getTls() == null) ? 0 : getTls().hashCode()); return hashCode; } @Override public AwsMskClusterClusterInfoClientAuthenticationDetails clone() { try { return (AwsMskClusterClusterInfoClientAuthenticationDetails) 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.AwsMskClusterClusterInfoClientAuthenticationDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy