/* * Copyright 2010-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.iot.model; import java.io.Serializable; public class DescribeDomainConfigurationResult implements Serializable { /** *
* The name of the domain configuration. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [\w.:-]+
*/
private String domainConfigurationName;
/**
*
* The ARN of the domain configuration. *
*/ private String domainConfigurationArn; /** ** The name of the domain. *
*
* Constraints:
* Length: 1 - 253
* Pattern: [\s\S]*
*/
private String domainName;
/**
*
* A list containing summary information about the server certificate * included in the domain configuration. *
*/ private java.util.List* An object that specifies the authorization service for a domain. *
*/ private AuthorizerConfig authorizerConfig; /** ** A Boolean value that specifies the current state of the domain * configuration. *
*
* Constraints:
* Allowed Values: ENABLED, DISABLED
*/
private String domainConfigurationStatus;
/**
*
* The type of service delivered by the endpoint. *
*
* Constraints:
* Allowed Values: DATA, CREDENTIAL_PROVIDER, JOBS
*/
private String serviceType;
/**
*
* The type of the domain. *
*
* Constraints:
* Allowed Values: ENDPOINT, AWS_MANAGED, CUSTOMER_MANAGED
*/
private String domainType;
/**
*
* The date and time the domain configuration's status was last changed. *
*/ private java.util.Date lastStatusChangeDate; /** ** An object that specifies the TLS configuration for a domain. *
*/ private TlsConfig tlsConfig; /** ** The name of the domain configuration. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [\w.:-]+
*
* @return
* The name of the domain configuration. *
*/ public String getDomainConfigurationName() { return domainConfigurationName; } /** ** The name of the domain configuration. *
*
* Constraints:
* Length: 1 - 128
* Pattern: [\w.:-]+
*
* @param domainConfigurationName
* The name of the domain configuration. *
*/ public void setDomainConfigurationName(String domainConfigurationName) { this.domainConfigurationName = domainConfigurationName; } /** ** The name of the domain configuration. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 128
* Pattern: [\w.:-]+
*
* @param domainConfigurationName
* The name of the domain configuration. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeDomainConfigurationResult withDomainConfigurationName( String domainConfigurationName) { this.domainConfigurationName = domainConfigurationName; return this; } /** ** The ARN of the domain configuration. *
* * @return* The ARN of the domain configuration. *
*/ public String getDomainConfigurationArn() { return domainConfigurationArn; } /** ** The ARN of the domain configuration. *
* * @param domainConfigurationArn* The ARN of the domain configuration. *
*/ public void setDomainConfigurationArn(String domainConfigurationArn) { this.domainConfigurationArn = domainConfigurationArn; } /** ** The ARN of the domain configuration. *
** Returns a reference to this object so that method calls can be chained * together. * * @param domainConfigurationArn
* The ARN of the domain configuration. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeDomainConfigurationResult withDomainConfigurationArn( String domainConfigurationArn) { this.domainConfigurationArn = domainConfigurationArn; return this; } /** ** The name of the domain. *
*
* Constraints:
* Length: 1 - 253
* Pattern: [\s\S]*
*
* @return
* The name of the domain. *
*/ public String getDomainName() { return domainName; } /** ** The name of the domain. *
*
* Constraints:
* Length: 1 - 253
* Pattern: [\s\S]*
*
* @param domainName
* The name of the domain. *
*/ public void setDomainName(String domainName) { this.domainName = domainName; } /** ** The name of the domain. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 1 - 253
* Pattern: [\s\S]*
*
* @param domainName
* The name of the domain. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeDomainConfigurationResult withDomainName(String domainName) { this.domainName = domainName; return this; } /** ** A list containing summary information about the server certificate * included in the domain configuration. *
* * @return* A list containing summary information about the server * certificate included in the domain configuration. *
*/ public java.util.List* A list containing summary information about the server certificate * included in the domain configuration. *
* * @param serverCertificates* A list containing summary information about the server * certificate included in the domain configuration. *
*/ public void setServerCertificates( java.util.Collection* A list containing summary information about the server certificate * included in the domain configuration. *
** Returns a reference to this object so that method calls can be chained * together. * * @param serverCertificates
* A list containing summary information about the server * certificate included in the domain configuration. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeDomainConfigurationResult withServerCertificates( ServerCertificateSummary... serverCertificates) { if (getServerCertificates() == null) { this.serverCertificates = new java.util.ArrayList* A list containing summary information about the server certificate * included in the domain configuration. *
** Returns a reference to this object so that method calls can be chained * together. * * @param serverCertificates
* A list containing summary information about the server * certificate included in the domain configuration. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeDomainConfigurationResult withServerCertificates( java.util.Collection* An object that specifies the authorization service for a domain. *
* * @return* An object that specifies the authorization service for a domain. *
*/ public AuthorizerConfig getAuthorizerConfig() { return authorizerConfig; } /** ** An object that specifies the authorization service for a domain. *
* * @param authorizerConfig* An object that specifies the authorization service for a * domain. *
*/ public void setAuthorizerConfig(AuthorizerConfig authorizerConfig) { this.authorizerConfig = authorizerConfig; } /** ** An object that specifies the authorization service for a domain. *
** Returns a reference to this object so that method calls can be chained * together. * * @param authorizerConfig
* An object that specifies the authorization service for a * domain. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeDomainConfigurationResult withAuthorizerConfig(AuthorizerConfig authorizerConfig) { this.authorizerConfig = authorizerConfig; return this; } /** ** A Boolean value that specifies the current state of the domain * configuration. *
*
* Constraints:
* Allowed Values: ENABLED, DISABLED
*
* @return
* A Boolean value that specifies the current state of the domain * configuration. *
* @see DomainConfigurationStatus */ public String getDomainConfigurationStatus() { return domainConfigurationStatus; } /** ** A Boolean value that specifies the current state of the domain * configuration. *
*
* Constraints:
* Allowed Values: ENABLED, DISABLED
*
* @param domainConfigurationStatus
* A Boolean value that specifies the current state of the domain * configuration. *
* @see DomainConfigurationStatus */ public void setDomainConfigurationStatus(String domainConfigurationStatus) { this.domainConfigurationStatus = domainConfigurationStatus; } /** ** A Boolean value that specifies the current state of the domain * configuration. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: ENABLED, DISABLED
*
* @param domainConfigurationStatus
* A Boolean value that specifies the current state of the domain * configuration. *
* @return A reference to this updated object so that method calls can be * chained together. * @see DomainConfigurationStatus */ public DescribeDomainConfigurationResult withDomainConfigurationStatus( String domainConfigurationStatus) { this.domainConfigurationStatus = domainConfigurationStatus; return this; } /** ** A Boolean value that specifies the current state of the domain * configuration. *
*
* Constraints:
* Allowed Values: ENABLED, DISABLED
*
* @param domainConfigurationStatus
* A Boolean value that specifies the current state of the domain * configuration. *
* @see DomainConfigurationStatus */ public void setDomainConfigurationStatus(DomainConfigurationStatus domainConfigurationStatus) { this.domainConfigurationStatus = domainConfigurationStatus.toString(); } /** ** A Boolean value that specifies the current state of the domain * configuration. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: ENABLED, DISABLED
*
* @param domainConfigurationStatus
* A Boolean value that specifies the current state of the domain * configuration. *
* @return A reference to this updated object so that method calls can be * chained together. * @see DomainConfigurationStatus */ public DescribeDomainConfigurationResult withDomainConfigurationStatus( DomainConfigurationStatus domainConfigurationStatus) { this.domainConfigurationStatus = domainConfigurationStatus.toString(); return this; } /** ** The type of service delivered by the endpoint. *
*
* Constraints:
* Allowed Values: DATA, CREDENTIAL_PROVIDER, JOBS
*
* @return
* The type of service delivered by the endpoint. *
* @see ServiceType */ public String getServiceType() { return serviceType; } /** ** The type of service delivered by the endpoint. *
*
* Constraints:
* Allowed Values: DATA, CREDENTIAL_PROVIDER, JOBS
*
* @param serviceType
* The type of service delivered by the endpoint. *
* @see ServiceType */ public void setServiceType(String serviceType) { this.serviceType = serviceType; } /** ** The type of service delivered by the endpoint. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: DATA, CREDENTIAL_PROVIDER, JOBS
*
* @param serviceType
* The type of service delivered by the endpoint. *
* @return A reference to this updated object so that method calls can be * chained together. * @see ServiceType */ public DescribeDomainConfigurationResult withServiceType(String serviceType) { this.serviceType = serviceType; return this; } /** ** The type of service delivered by the endpoint. *
*
* Constraints:
* Allowed Values: DATA, CREDENTIAL_PROVIDER, JOBS
*
* @param serviceType
* The type of service delivered by the endpoint. *
* @see ServiceType */ public void setServiceType(ServiceType serviceType) { this.serviceType = serviceType.toString(); } /** ** The type of service delivered by the endpoint. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: DATA, CREDENTIAL_PROVIDER, JOBS
*
* @param serviceType
* The type of service delivered by the endpoint. *
* @return A reference to this updated object so that method calls can be * chained together. * @see ServiceType */ public DescribeDomainConfigurationResult withServiceType(ServiceType serviceType) { this.serviceType = serviceType.toString(); return this; } /** ** The type of the domain. *
*
* Constraints:
* Allowed Values: ENDPOINT, AWS_MANAGED, CUSTOMER_MANAGED
*
* @return
* The type of the domain. *
* @see DomainType */ public String getDomainType() { return domainType; } /** ** The type of the domain. *
*
* Constraints:
* Allowed Values: ENDPOINT, AWS_MANAGED, CUSTOMER_MANAGED
*
* @param domainType
* The type of the domain. *
* @see DomainType */ public void setDomainType(String domainType) { this.domainType = domainType; } /** ** The type of the domain. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: ENDPOINT, AWS_MANAGED, CUSTOMER_MANAGED
*
* @param domainType
* The type of the domain. *
* @return A reference to this updated object so that method calls can be * chained together. * @see DomainType */ public DescribeDomainConfigurationResult withDomainType(String domainType) { this.domainType = domainType; return this; } /** ** The type of the domain. *
*
* Constraints:
* Allowed Values: ENDPOINT, AWS_MANAGED, CUSTOMER_MANAGED
*
* @param domainType
* The type of the domain. *
* @see DomainType */ public void setDomainType(DomainType domainType) { this.domainType = domainType.toString(); } /** ** The type of the domain. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: ENDPOINT, AWS_MANAGED, CUSTOMER_MANAGED
*
* @param domainType
* The type of the domain. *
* @return A reference to this updated object so that method calls can be * chained together. * @see DomainType */ public DescribeDomainConfigurationResult withDomainType(DomainType domainType) { this.domainType = domainType.toString(); return this; } /** ** The date and time the domain configuration's status was last changed. *
* * @return* The date and time the domain configuration's status was last * changed. *
*/ public java.util.Date getLastStatusChangeDate() { return lastStatusChangeDate; } /** ** The date and time the domain configuration's status was last changed. *
* * @param lastStatusChangeDate* The date and time the domain configuration's status was last * changed. *
*/ public void setLastStatusChangeDate(java.util.Date lastStatusChangeDate) { this.lastStatusChangeDate = lastStatusChangeDate; } /** ** The date and time the domain configuration's status was last changed. *
** Returns a reference to this object so that method calls can be chained * together. * * @param lastStatusChangeDate
* The date and time the domain configuration's status was last * changed. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeDomainConfigurationResult withLastStatusChangeDate( java.util.Date lastStatusChangeDate) { this.lastStatusChangeDate = lastStatusChangeDate; return this; } /** ** An object that specifies the TLS configuration for a domain. *
* * @return* An object that specifies the TLS configuration for a domain. *
*/ public TlsConfig getTlsConfig() { return tlsConfig; } /** ** An object that specifies the TLS configuration for a domain. *
* * @param tlsConfig* An object that specifies the TLS configuration for a domain. *
*/ public void setTlsConfig(TlsConfig tlsConfig) { this.tlsConfig = tlsConfig; } /** ** An object that specifies the TLS configuration for a domain. *
** Returns a reference to this object so that method calls can be chained * together. * * @param tlsConfig
* An object that specifies the TLS configuration for a domain. *
* @return A reference to this updated object so that method calls can be * chained together. */ public DescribeDomainConfigurationResult withTlsConfig(TlsConfig tlsConfig) { this.tlsConfig = tlsConfig; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDomainConfigurationName() != null) sb.append("domainConfigurationName: " + getDomainConfigurationName() + ","); if (getDomainConfigurationArn() != null) sb.append("domainConfigurationArn: " + getDomainConfigurationArn() + ","); if (getDomainName() != null) sb.append("domainName: " + getDomainName() + ","); if (getServerCertificates() != null) sb.append("serverCertificates: " + getServerCertificates() + ","); if (getAuthorizerConfig() != null) sb.append("authorizerConfig: " + getAuthorizerConfig() + ","); if (getDomainConfigurationStatus() != null) sb.append("domainConfigurationStatus: " + getDomainConfigurationStatus() + ","); if (getServiceType() != null) sb.append("serviceType: " + getServiceType() + ","); if (getDomainType() != null) sb.append("domainType: " + getDomainType() + ","); if (getLastStatusChangeDate() != null) sb.append("lastStatusChangeDate: " + getLastStatusChangeDate() + ","); if (getTlsConfig() != null) sb.append("tlsConfig: " + getTlsConfig()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDomainConfigurationName() == null) ? 0 : getDomainConfigurationName() .hashCode()); hashCode = prime * hashCode + ((getDomainConfigurationArn() == null) ? 0 : getDomainConfigurationArn() .hashCode()); hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getServerCertificates() == null) ? 0 : getServerCertificates().hashCode()); hashCode = prime * hashCode + ((getAuthorizerConfig() == null) ? 0 : getAuthorizerConfig().hashCode()); hashCode = prime * hashCode + ((getDomainConfigurationStatus() == null) ? 0 : getDomainConfigurationStatus() .hashCode()); hashCode = prime * hashCode + ((getServiceType() == null) ? 0 : getServiceType().hashCode()); hashCode = prime * hashCode + ((getDomainType() == null) ? 0 : getDomainType().hashCode()); hashCode = prime * hashCode + ((getLastStatusChangeDate() == null) ? 0 : getLastStatusChangeDate().hashCode()); hashCode = prime * hashCode + ((getTlsConfig() == null) ? 0 : getTlsConfig().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDomainConfigurationResult == false) return false; DescribeDomainConfigurationResult other = (DescribeDomainConfigurationResult) obj; if (other.getDomainConfigurationName() == null ^ this.getDomainConfigurationName() == null) return false; if (other.getDomainConfigurationName() != null && other.getDomainConfigurationName().equals(this.getDomainConfigurationName()) == false) return false; if (other.getDomainConfigurationArn() == null ^ this.getDomainConfigurationArn() == null) return false; if (other.getDomainConfigurationArn() != null && other.getDomainConfigurationArn().equals(this.getDomainConfigurationArn()) == false) return false; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getServerCertificates() == null ^ this.getServerCertificates() == null) return false; if (other.getServerCertificates() != null && other.getServerCertificates().equals(this.getServerCertificates()) == false) return false; if (other.getAuthorizerConfig() == null ^ this.getAuthorizerConfig() == null) return false; if (other.getAuthorizerConfig() != null && other.getAuthorizerConfig().equals(this.getAuthorizerConfig()) == false) return false; if (other.getDomainConfigurationStatus() == null ^ this.getDomainConfigurationStatus() == null) return false; if (other.getDomainConfigurationStatus() != null && other.getDomainConfigurationStatus().equals(this.getDomainConfigurationStatus()) == false) return false; if (other.getServiceType() == null ^ this.getServiceType() == null) return false; if (other.getServiceType() != null && other.getServiceType().equals(this.getServiceType()) == false) return false; if (other.getDomainType() == null ^ this.getDomainType() == null) return false; if (other.getDomainType() != null && other.getDomainType().equals(this.getDomainType()) == false) return false; if (other.getLastStatusChangeDate() == null ^ this.getLastStatusChangeDate() == null) return false; if (other.getLastStatusChangeDate() != null && other.getLastStatusChangeDate().equals(this.getLastStatusChangeDate()) == false) return false; if (other.getTlsConfig() == null ^ this.getTlsConfig() == null) return false; if (other.getTlsConfig() != null && other.getTlsConfig().equals(this.getTlsConfig()) == false) return false; return true; } }