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

com.amazonaws.services.elasticloadbalancingv2.model.MutualAuthenticationAttributes Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Elastic Load Balancing module holds the client classes that are used for communicating with Elastic Load Balancing Service (API Version 2015-12-01)

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.elasticloadbalancingv2.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* Information about the mutual authentication attributes of a listener. *

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

* The client certificate handling method. Options are off, passthrough or * verify. The default value is off. *

*/ private String mode; /** *

* The Amazon Resource Name (ARN) of the trust store. *

*/ private String trustStoreArn; /** *

* Indicates whether expired client certificates are ignored. *

*/ private Boolean ignoreClientCertificateExpiry; /** *

* Indicates a shared trust stores association status. *

*/ private String trustStoreAssociationStatus; /** *

* The client certificate handling method. Options are off, passthrough or * verify. The default value is off. *

* * @param mode * The client certificate handling method. Options are off, passthrough or * verify. The default value is off. */ public void setMode(String mode) { this.mode = mode; } /** *

* The client certificate handling method. Options are off, passthrough or * verify. The default value is off. *

* * @return The client certificate handling method. Options are off, passthrough or * verify. The default value is off. */ public String getMode() { return this.mode; } /** *

* The client certificate handling method. Options are off, passthrough or * verify. The default value is off. *

* * @param mode * The client certificate handling method. Options are off, passthrough or * verify. The default value is off. * @return Returns a reference to this object so that method calls can be chained together. */ public MutualAuthenticationAttributes withMode(String mode) { setMode(mode); return this; } /** *

* The Amazon Resource Name (ARN) of the trust store. *

* * @param trustStoreArn * The Amazon Resource Name (ARN) of the trust store. */ public void setTrustStoreArn(String trustStoreArn) { this.trustStoreArn = trustStoreArn; } /** *

* The Amazon Resource Name (ARN) of the trust store. *

* * @return The Amazon Resource Name (ARN) of the trust store. */ public String getTrustStoreArn() { return this.trustStoreArn; } /** *

* The Amazon Resource Name (ARN) of the trust store. *

* * @param trustStoreArn * The Amazon Resource Name (ARN) of the trust store. * @return Returns a reference to this object so that method calls can be chained together. */ public MutualAuthenticationAttributes withTrustStoreArn(String trustStoreArn) { setTrustStoreArn(trustStoreArn); return this; } /** *

* Indicates whether expired client certificates are ignored. *

* * @param ignoreClientCertificateExpiry * Indicates whether expired client certificates are ignored. */ public void setIgnoreClientCertificateExpiry(Boolean ignoreClientCertificateExpiry) { this.ignoreClientCertificateExpiry = ignoreClientCertificateExpiry; } /** *

* Indicates whether expired client certificates are ignored. *

* * @return Indicates whether expired client certificates are ignored. */ public Boolean getIgnoreClientCertificateExpiry() { return this.ignoreClientCertificateExpiry; } /** *

* Indicates whether expired client certificates are ignored. *

* * @param ignoreClientCertificateExpiry * Indicates whether expired client certificates are ignored. * @return Returns a reference to this object so that method calls can be chained together. */ public MutualAuthenticationAttributes withIgnoreClientCertificateExpiry(Boolean ignoreClientCertificateExpiry) { setIgnoreClientCertificateExpiry(ignoreClientCertificateExpiry); return this; } /** *

* Indicates whether expired client certificates are ignored. *

* * @return Indicates whether expired client certificates are ignored. */ public Boolean isIgnoreClientCertificateExpiry() { return this.ignoreClientCertificateExpiry; } /** *

* Indicates a shared trust stores association status. *

* * @param trustStoreAssociationStatus * Indicates a shared trust stores association status. * @see TrustStoreAssociationStatusEnum */ public void setTrustStoreAssociationStatus(String trustStoreAssociationStatus) { this.trustStoreAssociationStatus = trustStoreAssociationStatus; } /** *

* Indicates a shared trust stores association status. *

* * @return Indicates a shared trust stores association status. * @see TrustStoreAssociationStatusEnum */ public String getTrustStoreAssociationStatus() { return this.trustStoreAssociationStatus; } /** *

* Indicates a shared trust stores association status. *

* * @param trustStoreAssociationStatus * Indicates a shared trust stores association status. * @return Returns a reference to this object so that method calls can be chained together. * @see TrustStoreAssociationStatusEnum */ public MutualAuthenticationAttributes withTrustStoreAssociationStatus(String trustStoreAssociationStatus) { setTrustStoreAssociationStatus(trustStoreAssociationStatus); return this; } /** *

* Indicates a shared trust stores association status. *

* * @param trustStoreAssociationStatus * Indicates a shared trust stores association status. * @return Returns a reference to this object so that method calls can be chained together. * @see TrustStoreAssociationStatusEnum */ public MutualAuthenticationAttributes withTrustStoreAssociationStatus(TrustStoreAssociationStatusEnum trustStoreAssociationStatus) { this.trustStoreAssociationStatus = trustStoreAssociationStatus.toString(); 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 (getMode() != null) sb.append("Mode: ").append(getMode()).append(","); if (getTrustStoreArn() != null) sb.append("TrustStoreArn: ").append(getTrustStoreArn()).append(","); if (getIgnoreClientCertificateExpiry() != null) sb.append("IgnoreClientCertificateExpiry: ").append(getIgnoreClientCertificateExpiry()).append(","); if (getTrustStoreAssociationStatus() != null) sb.append("TrustStoreAssociationStatus: ").append(getTrustStoreAssociationStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MutualAuthenticationAttributes == false) return false; MutualAuthenticationAttributes other = (MutualAuthenticationAttributes) obj; if (other.getMode() == null ^ this.getMode() == null) return false; if (other.getMode() != null && other.getMode().equals(this.getMode()) == false) return false; if (other.getTrustStoreArn() == null ^ this.getTrustStoreArn() == null) return false; if (other.getTrustStoreArn() != null && other.getTrustStoreArn().equals(this.getTrustStoreArn()) == false) return false; if (other.getIgnoreClientCertificateExpiry() == null ^ this.getIgnoreClientCertificateExpiry() == null) return false; if (other.getIgnoreClientCertificateExpiry() != null && other.getIgnoreClientCertificateExpiry().equals(this.getIgnoreClientCertificateExpiry()) == false) return false; if (other.getTrustStoreAssociationStatus() == null ^ this.getTrustStoreAssociationStatus() == null) return false; if (other.getTrustStoreAssociationStatus() != null && other.getTrustStoreAssociationStatus().equals(this.getTrustStoreAssociationStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMode() == null) ? 0 : getMode().hashCode()); hashCode = prime * hashCode + ((getTrustStoreArn() == null) ? 0 : getTrustStoreArn().hashCode()); hashCode = prime * hashCode + ((getIgnoreClientCertificateExpiry() == null) ? 0 : getIgnoreClientCertificateExpiry().hashCode()); hashCode = prime * hashCode + ((getTrustStoreAssociationStatus() == null) ? 0 : getTrustStoreAssociationStatus().hashCode()); return hashCode; } @Override public MutualAuthenticationAttributes clone() { try { return (MutualAuthenticationAttributes) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy