Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iot Update models to latest #3238

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ public class CreateDomainConfigurationRequest extends AmazonWebServiceRequest im
*/
private java.util.List<Tag> tags;

/**
* <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*/
private TlsConfig tlsConfig;

/**
* <p>
* The name of the domain configuration. This value must be unique to a
Expand Down Expand Up @@ -808,6 +815,51 @@ public CreateDomainConfigurationRequest withTags(java.util.Collection<Tag> tags)
return this;
}

/**
* <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*
* @return <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*/
public TlsConfig getTlsConfig() {
return tlsConfig;
}

/**
* <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*
* @param tlsConfig <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*/
public void setTlsConfig(TlsConfig tlsConfig) {
this.tlsConfig = tlsConfig;
}

/**
* <p>
* An object that specifies the TLS configuration for a domain.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param tlsConfig <p>
* An object that specifies the TLS configuration for a domain.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateDomainConfigurationRequest withTlsConfig(TlsConfig tlsConfig) {
this.tlsConfig = tlsConfig;
return this;
}

/**
* Returns a string representation of this object; useful for testing and
* debugging.
Expand All @@ -832,7 +884,9 @@ public String toString() {
if (getServiceType() != null)
sb.append("serviceType: " + getServiceType() + ",");
if (getTags() != null)
sb.append("tags: " + getTags());
sb.append("tags: " + getTags() + ",");
if (getTlsConfig() != null)
sb.append("tlsConfig: " + getTlsConfig());
sb.append("}");
return sb.toString();
}
Expand All @@ -859,6 +913,7 @@ public int hashCode() {
hashCode = prime * hashCode
+ ((getServiceType() == null) ? 0 : getServiceType().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getTlsConfig() == null) ? 0 : getTlsConfig().hashCode());
return hashCode;
}

Expand Down Expand Up @@ -908,6 +963,11 @@ public boolean equals(Object obj) {
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == 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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ public class DescribeDomainConfigurationResult implements Serializable {
*/
private java.util.Date lastStatusChangeDate;

/**
* <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*/
private TlsConfig tlsConfig;

/**
* <p>
* The name of the domain configuration.
Expand Down Expand Up @@ -747,6 +754,51 @@ public DescribeDomainConfigurationResult withLastStatusChangeDate(
return this;
}

/**
* <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*
* @return <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*/
public TlsConfig getTlsConfig() {
return tlsConfig;
}

/**
* <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*
* @param tlsConfig <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*/
public void setTlsConfig(TlsConfig tlsConfig) {
this.tlsConfig = tlsConfig;
}

/**
* <p>
* An object that specifies the TLS configuration for a domain.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param tlsConfig <p>
* An object that specifies the TLS configuration for a domain.
* </p>
* @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.
Expand Down Expand Up @@ -775,7 +827,9 @@ public String toString() {
if (getDomainType() != null)
sb.append("domainType: " + getDomainType() + ",");
if (getLastStatusChangeDate() != null)
sb.append("lastStatusChangeDate: " + getLastStatusChangeDate());
sb.append("lastStatusChangeDate: " + getLastStatusChangeDate() + ",");
if (getTlsConfig() != null)
sb.append("tlsConfig: " + getTlsConfig());
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -807,6 +861,7 @@ public int 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;
}

Expand Down Expand Up @@ -867,6 +922,11 @@ public boolean equals(Object obj) {
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;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
/*
* 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;

/**
* <p>
* An object that specifies the TLS configuration for a domain.
* </p>
*/
public class TlsConfig implements Serializable {
/**
* <p>
* The security policy for a domain configuration. For more information, see
* <a href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
* >Security policies </a> in the <i>Amazon Web Services IoT Core developer
* guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 128<br/>
* <b>Pattern: </b>[\s\S]*<br/>
*/
private String securityPolicy;

/**
* <p>
* The security policy for a domain configuration. For more information, see
* <a href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
* >Security policies </a> in the <i>Amazon Web Services IoT Core developer
* guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 128<br/>
* <b>Pattern: </b>[\s\S]*<br/>
*
* @return <p>
* The security policy for a domain configuration. For more
* information, see <a href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
* >Security policies </a> in the <i>Amazon Web Services IoT Core
* developer guide</i>.
* </p>
*/
public String getSecurityPolicy() {
return securityPolicy;
}

/**
* <p>
* The security policy for a domain configuration. For more information, see
* <a href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
* >Security policies </a> in the <i>Amazon Web Services IoT Core developer
* guide</i>.
* </p>
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 128<br/>
* <b>Pattern: </b>[\s\S]*<br/>
*
* @param securityPolicy <p>
* The security policy for a domain configuration. For more
* information, see <a href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
* >Security policies </a> in the <i>Amazon Web Services IoT Core
* developer guide</i>.
* </p>
*/
public void setSecurityPolicy(String securityPolicy) {
this.securityPolicy = securityPolicy;
}

/**
* <p>
* The security policy for a domain configuration. For more information, see
* <a href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
* >Security policies </a> in the <i>Amazon Web Services IoT Core developer
* guide</i>.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
* <p>
* <b>Constraints:</b><br/>
* <b>Length: </b> - 128<br/>
* <b>Pattern: </b>[\s\S]*<br/>
*
* @param securityPolicy <p>
* The security policy for a domain configuration. For more
* information, see <a href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
* >Security policies </a> in the <i>Amazon Web Services IoT Core
* developer guide</i>.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public TlsConfig withSecurityPolicy(String securityPolicy) {
this.securityPolicy = securityPolicy;
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 (getSecurityPolicy() != null)
sb.append("securityPolicy: " + getSecurityPolicy());
sb.append("}");
return sb.toString();
}

@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;

hashCode = prime * hashCode
+ ((getSecurityPolicy() == null) ? 0 : getSecurityPolicy().hashCode());
return hashCode;
}

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;

if (obj instanceof TlsConfig == false)
return false;
TlsConfig other = (TlsConfig) obj;

if (other.getSecurityPolicy() == null ^ this.getSecurityPolicy() == null)
return false;
if (other.getSecurityPolicy() != null
&& other.getSecurityPolicy().equals(this.getSecurityPolicy()) == false)
return false;
return true;
}
}
Loading