Skip to content

Commit ed989cc

Browse files
authored
feat(aws-android-sdk-iot): update models to latest (#3238)
1 parent fefa99a commit ed989cc

9 files changed

+464
-3
lines changed

aws-android-sdk-iot/src/main/java/com/amazonaws/services/iot/model/CreateDomainConfigurationRequest.java

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ public class CreateDomainConfigurationRequest extends AmazonWebServiceRequest im
122122
*/
123123
private java.util.List<Tag> tags;
124124

125+
/**
126+
* <p>
127+
* An object that specifies the TLS configuration for a domain.
128+
* </p>
129+
*/
130+
private TlsConfig tlsConfig;
131+
125132
/**
126133
* <p>
127134
* The name of the domain configuration. This value must be unique to a
@@ -808,6 +815,51 @@ public CreateDomainConfigurationRequest withTags(java.util.Collection<Tag> tags)
808815
return this;
809816
}
810817

818+
/**
819+
* <p>
820+
* An object that specifies the TLS configuration for a domain.
821+
* </p>
822+
*
823+
* @return <p>
824+
* An object that specifies the TLS configuration for a domain.
825+
* </p>
826+
*/
827+
public TlsConfig getTlsConfig() {
828+
return tlsConfig;
829+
}
830+
831+
/**
832+
* <p>
833+
* An object that specifies the TLS configuration for a domain.
834+
* </p>
835+
*
836+
* @param tlsConfig <p>
837+
* An object that specifies the TLS configuration for a domain.
838+
* </p>
839+
*/
840+
public void setTlsConfig(TlsConfig tlsConfig) {
841+
this.tlsConfig = tlsConfig;
842+
}
843+
844+
/**
845+
* <p>
846+
* An object that specifies the TLS configuration for a domain.
847+
* </p>
848+
* <p>
849+
* Returns a reference to this object so that method calls can be chained
850+
* together.
851+
*
852+
* @param tlsConfig <p>
853+
* An object that specifies the TLS configuration for a domain.
854+
* </p>
855+
* @return A reference to this updated object so that method calls can be
856+
* chained together.
857+
*/
858+
public CreateDomainConfigurationRequest withTlsConfig(TlsConfig tlsConfig) {
859+
this.tlsConfig = tlsConfig;
860+
return this;
861+
}
862+
811863
/**
812864
* Returns a string representation of this object; useful for testing and
813865
* debugging.
@@ -832,7 +884,9 @@ public String toString() {
832884
if (getServiceType() != null)
833885
sb.append("serviceType: " + getServiceType() + ",");
834886
if (getTags() != null)
835-
sb.append("tags: " + getTags());
887+
sb.append("tags: " + getTags() + ",");
888+
if (getTlsConfig() != null)
889+
sb.append("tlsConfig: " + getTlsConfig());
836890
sb.append("}");
837891
return sb.toString();
838892
}
@@ -859,6 +913,7 @@ public int hashCode() {
859913
hashCode = prime * hashCode
860914
+ ((getServiceType() == null) ? 0 : getServiceType().hashCode());
861915
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
916+
hashCode = prime * hashCode + ((getTlsConfig() == null) ? 0 : getTlsConfig().hashCode());
862917
return hashCode;
863918
}
864919

@@ -908,6 +963,11 @@ public boolean equals(Object obj) {
908963
return false;
909964
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
910965
return false;
966+
if (other.getTlsConfig() == null ^ this.getTlsConfig() == null)
967+
return false;
968+
if (other.getTlsConfig() != null
969+
&& other.getTlsConfig().equals(this.getTlsConfig()) == false)
970+
return false;
911971
return true;
912972
}
913973
}

aws-android-sdk-iot/src/main/java/com/amazonaws/services/iot/model/DescribeDomainConfigurationResult.java

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ public class DescribeDomainConfigurationResult implements Serializable {
100100
*/
101101
private java.util.Date lastStatusChangeDate;
102102

103+
/**
104+
* <p>
105+
* An object that specifies the TLS configuration for a domain.
106+
* </p>
107+
*/
108+
private TlsConfig tlsConfig;
109+
103110
/**
104111
* <p>
105112
* The name of the domain configuration.
@@ -747,6 +754,51 @@ public DescribeDomainConfigurationResult withLastStatusChangeDate(
747754
return this;
748755
}
749756

757+
/**
758+
* <p>
759+
* An object that specifies the TLS configuration for a domain.
760+
* </p>
761+
*
762+
* @return <p>
763+
* An object that specifies the TLS configuration for a domain.
764+
* </p>
765+
*/
766+
public TlsConfig getTlsConfig() {
767+
return tlsConfig;
768+
}
769+
770+
/**
771+
* <p>
772+
* An object that specifies the TLS configuration for a domain.
773+
* </p>
774+
*
775+
* @param tlsConfig <p>
776+
* An object that specifies the TLS configuration for a domain.
777+
* </p>
778+
*/
779+
public void setTlsConfig(TlsConfig tlsConfig) {
780+
this.tlsConfig = tlsConfig;
781+
}
782+
783+
/**
784+
* <p>
785+
* An object that specifies the TLS configuration for a domain.
786+
* </p>
787+
* <p>
788+
* Returns a reference to this object so that method calls can be chained
789+
* together.
790+
*
791+
* @param tlsConfig <p>
792+
* An object that specifies the TLS configuration for a domain.
793+
* </p>
794+
* @return A reference to this updated object so that method calls can be
795+
* chained together.
796+
*/
797+
public DescribeDomainConfigurationResult withTlsConfig(TlsConfig tlsConfig) {
798+
this.tlsConfig = tlsConfig;
799+
return this;
800+
}
801+
750802
/**
751803
* Returns a string representation of this object; useful for testing and
752804
* debugging.
@@ -775,7 +827,9 @@ public String toString() {
775827
if (getDomainType() != null)
776828
sb.append("domainType: " + getDomainType() + ",");
777829
if (getLastStatusChangeDate() != null)
778-
sb.append("lastStatusChangeDate: " + getLastStatusChangeDate());
830+
sb.append("lastStatusChangeDate: " + getLastStatusChangeDate() + ",");
831+
if (getTlsConfig() != null)
832+
sb.append("tlsConfig: " + getTlsConfig());
779833
sb.append("}");
780834
return sb.toString();
781835
}
@@ -807,6 +861,7 @@ public int hashCode() {
807861
hashCode = prime * hashCode + ((getDomainType() == null) ? 0 : getDomainType().hashCode());
808862
hashCode = prime * hashCode
809863
+ ((getLastStatusChangeDate() == null) ? 0 : getLastStatusChangeDate().hashCode());
864+
hashCode = prime * hashCode + ((getTlsConfig() == null) ? 0 : getTlsConfig().hashCode());
810865
return hashCode;
811866
}
812867

@@ -867,6 +922,11 @@ public boolean equals(Object obj) {
867922
if (other.getLastStatusChangeDate() != null
868923
&& other.getLastStatusChangeDate().equals(this.getLastStatusChangeDate()) == false)
869924
return false;
925+
if (other.getTlsConfig() == null ^ this.getTlsConfig() == null)
926+
return false;
927+
if (other.getTlsConfig() != null
928+
&& other.getTlsConfig().equals(this.getTlsConfig()) == false)
929+
return false;
870930
return true;
871931
}
872932
}
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
/*
2+
* Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package com.amazonaws.services.iot.model;
17+
18+
import java.io.Serializable;
19+
20+
/**
21+
* <p>
22+
* An object that specifies the TLS configuration for a domain.
23+
* </p>
24+
*/
25+
public class TlsConfig implements Serializable {
26+
/**
27+
* <p>
28+
* The security policy for a domain configuration. For more information, see
29+
* <a href=
30+
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
31+
* >Security policies </a> in the <i>Amazon Web Services IoT Core developer
32+
* guide</i>.
33+
* </p>
34+
* <p>
35+
* <b>Constraints:</b><br/>
36+
* <b>Length: </b> - 128<br/>
37+
* <b>Pattern: </b>[\s\S]*<br/>
38+
*/
39+
private String securityPolicy;
40+
41+
/**
42+
* <p>
43+
* The security policy for a domain configuration. For more information, see
44+
* <a href=
45+
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
46+
* >Security policies </a> in the <i>Amazon Web Services IoT Core developer
47+
* guide</i>.
48+
* </p>
49+
* <p>
50+
* <b>Constraints:</b><br/>
51+
* <b>Length: </b> - 128<br/>
52+
* <b>Pattern: </b>[\s\S]*<br/>
53+
*
54+
* @return <p>
55+
* The security policy for a domain configuration. For more
56+
* information, see <a href=
57+
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
58+
* >Security policies </a> in the <i>Amazon Web Services IoT Core
59+
* developer guide</i>.
60+
* </p>
61+
*/
62+
public String getSecurityPolicy() {
63+
return securityPolicy;
64+
}
65+
66+
/**
67+
* <p>
68+
* The security policy for a domain configuration. For more information, see
69+
* <a href=
70+
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
71+
* >Security policies </a> in the <i>Amazon Web Services IoT Core developer
72+
* guide</i>.
73+
* </p>
74+
* <p>
75+
* <b>Constraints:</b><br/>
76+
* <b>Length: </b> - 128<br/>
77+
* <b>Pattern: </b>[\s\S]*<br/>
78+
*
79+
* @param securityPolicy <p>
80+
* The security policy for a domain configuration. For more
81+
* information, see <a href=
82+
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
83+
* >Security policies </a> in the <i>Amazon Web Services IoT Core
84+
* developer guide</i>.
85+
* </p>
86+
*/
87+
public void setSecurityPolicy(String securityPolicy) {
88+
this.securityPolicy = securityPolicy;
89+
}
90+
91+
/**
92+
* <p>
93+
* The security policy for a domain configuration. For more information, see
94+
* <a href=
95+
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
96+
* >Security policies </a> in the <i>Amazon Web Services IoT Core developer
97+
* guide</i>.
98+
* </p>
99+
* <p>
100+
* Returns a reference to this object so that method calls can be chained
101+
* together.
102+
* <p>
103+
* <b>Constraints:</b><br/>
104+
* <b>Length: </b> - 128<br/>
105+
* <b>Pattern: </b>[\s\S]*<br/>
106+
*
107+
* @param securityPolicy <p>
108+
* The security policy for a domain configuration. For more
109+
* information, see <a href=
110+
* "https://docs.aws.amazon.com/iot/latest/developerguide/transport-security.html#tls-policy-table"
111+
* >Security policies </a> in the <i>Amazon Web Services IoT Core
112+
* developer guide</i>.
113+
* </p>
114+
* @return A reference to this updated object so that method calls can be
115+
* chained together.
116+
*/
117+
public TlsConfig withSecurityPolicy(String securityPolicy) {
118+
this.securityPolicy = securityPolicy;
119+
return this;
120+
}
121+
122+
/**
123+
* Returns a string representation of this object; useful for testing and
124+
* debugging.
125+
*
126+
* @return A string representation of this object.
127+
* @see java.lang.Object#toString()
128+
*/
129+
@Override
130+
public String toString() {
131+
StringBuilder sb = new StringBuilder();
132+
sb.append("{");
133+
if (getSecurityPolicy() != null)
134+
sb.append("securityPolicy: " + getSecurityPolicy());
135+
sb.append("}");
136+
return sb.toString();
137+
}
138+
139+
@Override
140+
public int hashCode() {
141+
final int prime = 31;
142+
int hashCode = 1;
143+
144+
hashCode = prime * hashCode
145+
+ ((getSecurityPolicy() == null) ? 0 : getSecurityPolicy().hashCode());
146+
return hashCode;
147+
}
148+
149+
@Override
150+
public boolean equals(Object obj) {
151+
if (this == obj)
152+
return true;
153+
if (obj == null)
154+
return false;
155+
156+
if (obj instanceof TlsConfig == false)
157+
return false;
158+
TlsConfig other = (TlsConfig) obj;
159+
160+
if (other.getSecurityPolicy() == null ^ this.getSecurityPolicy() == null)
161+
return false;
162+
if (other.getSecurityPolicy() != null
163+
&& other.getSecurityPolicy().equals(this.getSecurityPolicy()) == false)
164+
return false;
165+
return true;
166+
}
167+
}

0 commit comments

Comments
 (0)