Skip to content

Commit b3b60ac

Browse files
authored
feat(aws-android-sdk-iot): update models to latest (#2631)
1 parent bee2e50 commit b3b60ac

File tree

8 files changed

+649
-8
lines changed

8 files changed

+649
-8
lines changed

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

Lines changed: 110 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ public class Action implements Serializable {
113113
* <p>
114114
* Write data to an Amazon Elasticsearch Service domain.
115115
* </p>
116+
* <note>
117+
* <p>
118+
* This action is deprecated. Use the <a href=
119+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
120+
* >OpenSearch action</a> instead.
121+
* </p>
122+
* </note>
116123
*/
117124
private ElasticsearchAction elasticsearch;
118125

@@ -178,6 +185,13 @@ public class Action implements Serializable {
178185
*/
179186
private KafkaAction kafka;
180187

188+
/**
189+
* <p>
190+
* Write data to an Amazon OpenSearch Service domain.
191+
* </p>
192+
*/
193+
private OpenSearchAction openSearch;
194+
181195
/**
182196
* <p>
183197
* Write to a DynamoDB table.
@@ -734,10 +748,24 @@ public Action withCloudwatchLogs(CloudwatchLogsAction cloudwatchLogs) {
734748
* <p>
735749
* Write data to an Amazon Elasticsearch Service domain.
736750
* </p>
751+
* <note>
752+
* <p>
753+
* This action is deprecated. Use the <a href=
754+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
755+
* >OpenSearch action</a> instead.
756+
* </p>
757+
* </note>
737758
*
738759
* @return <p>
739760
* Write data to an Amazon Elasticsearch Service domain.
740761
* </p>
762+
* <note>
763+
* <p>
764+
* This action is deprecated. Use the <a href=
765+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
766+
* >OpenSearch action</a> instead.
767+
* </p>
768+
* </note>
741769
*/
742770
public ElasticsearchAction getElasticsearch() {
743771
return elasticsearch;
@@ -747,10 +775,24 @@ public ElasticsearchAction getElasticsearch() {
747775
* <p>
748776
* Write data to an Amazon Elasticsearch Service domain.
749777
* </p>
778+
* <note>
779+
* <p>
780+
* This action is deprecated. Use the <a href=
781+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
782+
* >OpenSearch action</a> instead.
783+
* </p>
784+
* </note>
750785
*
751786
* @param elasticsearch <p>
752787
* Write data to an Amazon Elasticsearch Service domain.
753788
* </p>
789+
* <note>
790+
* <p>
791+
* This action is deprecated. Use the <a href=
792+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
793+
* >OpenSearch action</a> instead.
794+
* </p>
795+
* </note>
754796
*/
755797
public void setElasticsearch(ElasticsearchAction elasticsearch) {
756798
this.elasticsearch = elasticsearch;
@@ -760,13 +802,27 @@ public void setElasticsearch(ElasticsearchAction elasticsearch) {
760802
* <p>
761803
* Write data to an Amazon Elasticsearch Service domain.
762804
* </p>
805+
* <note>
806+
* <p>
807+
* This action is deprecated. Use the <a href=
808+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
809+
* >OpenSearch action</a> instead.
810+
* </p>
811+
* </note>
763812
* <p>
764813
* Returns a reference to this object so that method calls can be chained
765814
* together.
766815
*
767816
* @param elasticsearch <p>
768817
* Write data to an Amazon Elasticsearch Service domain.
769818
* </p>
819+
* <note>
820+
* <p>
821+
* This action is deprecated. Use the <a href=
822+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
823+
* >OpenSearch action</a> instead.
824+
* </p>
825+
* </note>
770826
* @return A reference to this updated object so that method calls can be
771827
* chained together.
772828
*/
@@ -1171,6 +1227,51 @@ public Action withKafka(KafkaAction kafka) {
11711227
return this;
11721228
}
11731229

1230+
/**
1231+
* <p>
1232+
* Write data to an Amazon OpenSearch Service domain.
1233+
* </p>
1234+
*
1235+
* @return <p>
1236+
* Write data to an Amazon OpenSearch Service domain.
1237+
* </p>
1238+
*/
1239+
public OpenSearchAction getOpenSearch() {
1240+
return openSearch;
1241+
}
1242+
1243+
/**
1244+
* <p>
1245+
* Write data to an Amazon OpenSearch Service domain.
1246+
* </p>
1247+
*
1248+
* @param openSearch <p>
1249+
* Write data to an Amazon OpenSearch Service domain.
1250+
* </p>
1251+
*/
1252+
public void setOpenSearch(OpenSearchAction openSearch) {
1253+
this.openSearch = openSearch;
1254+
}
1255+
1256+
/**
1257+
* <p>
1258+
* Write data to an Amazon OpenSearch Service domain.
1259+
* </p>
1260+
* <p>
1261+
* Returns a reference to this object so that method calls can be chained
1262+
* together.
1263+
*
1264+
* @param openSearch <p>
1265+
* Write data to an Amazon OpenSearch Service domain.
1266+
* </p>
1267+
* @return A reference to this updated object so that method calls can be
1268+
* chained together.
1269+
*/
1270+
public Action withOpenSearch(OpenSearchAction openSearch) {
1271+
this.openSearch = openSearch;
1272+
return this;
1273+
}
1274+
11741275
/**
11751276
* Returns a string representation of this object; useful for testing and
11761277
* debugging.
@@ -1223,7 +1324,9 @@ public String toString() {
12231324
if (getHttp() != null)
12241325
sb.append("http: " + getHttp() + ",");
12251326
if (getKafka() != null)
1226-
sb.append("kafka: " + getKafka());
1327+
sb.append("kafka: " + getKafka() + ",");
1328+
if (getOpenSearch() != null)
1329+
sb.append("openSearch: " + getOpenSearch());
12271330
sb.append("}");
12281331
return sb.toString();
12291332
}
@@ -1261,6 +1364,7 @@ public int hashCode() {
12611364
hashCode = prime * hashCode + ((getTimestream() == null) ? 0 : getTimestream().hashCode());
12621365
hashCode = prime * hashCode + ((getHttp() == null) ? 0 : getHttp().hashCode());
12631366
hashCode = prime * hashCode + ((getKafka() == null) ? 0 : getKafka().hashCode());
1367+
hashCode = prime * hashCode + ((getOpenSearch() == null) ? 0 : getOpenSearch().hashCode());
12641368
return hashCode;
12651369
}
12661370

@@ -1371,6 +1475,11 @@ public boolean equals(Object obj) {
13711475
return false;
13721476
if (other.getKafka() != null && other.getKafka().equals(this.getKafka()) == false)
13731477
return false;
1478+
if (other.getOpenSearch() == null ^ this.getOpenSearch() == null)
1479+
return false;
1480+
if (other.getOpenSearch() != null
1481+
&& other.getOpenSearch().equals(this.getOpenSearch()) == false)
1482+
return false;
13741483
return true;
13751484
}
13761485
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
* Describes an action that writes data to an Amazon Elasticsearch Service
2323
* domain.
2424
* </p>
25+
* <note>
26+
* <p>
27+
* This action is deprecated. Use the <a href=
28+
* "https://docs.aws.amazon.com/iot/latest/apireference/API_OpenSearchAction.html"
29+
* >OpenSearch action</a> instead.
30+
* </p>
31+
* </note>
2532
*/
2633
public class ElasticsearchAction implements Serializable {
2734
/**

0 commit comments

Comments
 (0)