clazz) {
+ if (json == null) {
+ return null;
+ }
+ try {
+ return objectMapper.readValue(json, clazz);
+ } catch (IOException e) {
+ // If underlying exception is a json parsing issue, clear out the location so that the exception message
+ // does not contain the raw json
+ if (e instanceof JsonProcessingException) {
+ log.debug("Failed to parse JSON string.", e);
+ throw new SdkClientException("Unable to parse Json string. See debug-level logs for the exact error " +
+ "details, which may include sensitive information.");
+ }
+ throw new SdkClientException("Unable to parse Json String.", e);
+ }
+ }
+
public static JsonNode jsonNodeOf(String json) {
return fromJsonString(json, JsonNode.class);
}
diff --git a/aws-java-sdk-core/src/main/resources/com/amazonaws/partitions/endpoints.json b/aws-java-sdk-core/src/main/resources/com/amazonaws/partitions/endpoints.json
index b1b7701d2399..ac92fd1fe1e2 100644
--- a/aws-java-sdk-core/src/main/resources/com/amazonaws/partitions/endpoints.json
+++ b/aws-java-sdk-core/src/main/resources/com/amazonaws/partitions/endpoints.json
@@ -849,7 +849,10 @@
},
"comprehendmedical" : {
"endpoints" : {
+ "ap-southeast-2" : { },
+ "ca-central-1" : { },
"eu-west-1" : { },
+ "eu-west-2" : { },
"us-east-1" : { },
"us-east-2" : { },
"us-west-2" : { }
@@ -1567,6 +1570,20 @@
"us-west-2" : { }
}
},
+ "iotthingsgraph" : {
+ "defaults" : {
+ "credentialScope" : {
+ "service" : "iotthingsgraph"
+ }
+ },
+ "endpoints" : {
+ "ap-northeast-1" : { },
+ "ap-southeast-2" : { },
+ "eu-west-1" : { },
+ "us-east-1" : { },
+ "us-west-2" : { }
+ }
+ },
"kafka" : {
"endpoints" : {
"ap-northeast-1" : { },
diff --git a/aws-java-sdk-core/src/main/resources/com/amazonaws/sdk/versionInfo.properties b/aws-java-sdk-core/src/main/resources/com/amazonaws/sdk/versionInfo.properties
index 2d5a743c8263..f4930625c225 100644
--- a/aws-java-sdk-core/src/main/resources/com/amazonaws/sdk/versionInfo.properties
+++ b/aws-java-sdk-core/src/main/resources/com/amazonaws/sdk/versionInfo.properties
@@ -1,4 +1,4 @@
-#Wed May 29 19:58:47 UTC 2019
+#Thu May 30 20:47:21 UTC 2019
platform=java
-version=1.11.562
-internalVersion=5817786500
+version=1.11.563
+internalVersion=5817986601
diff --git a/aws-java-sdk-core/src/test/java/com/amazonaws/auth/ContainerCredentialsProviderTest.java b/aws-java-sdk-core/src/test/java/com/amazonaws/auth/ContainerCredentialsProviderTest.java
index 98bbab7ad07f..a59ab317896a 100644
--- a/aws-java-sdk-core/src/test/java/com/amazonaws/auth/ContainerCredentialsProviderTest.java
+++ b/aws-java-sdk-core/src/test/java/com/amazonaws/auth/ContainerCredentialsProviderTest.java
@@ -15,6 +15,7 @@
package com.amazonaws.auth;
import static com.github.tomakehurst.wiremock.client.WireMock.aResponse;
+import static com.github.tomakehurst.wiremock.client.WireMock.equalTo;
import static com.github.tomakehurst.wiremock.client.WireMock.get;
import static com.github.tomakehurst.wiremock.client.WireMock.stubFor;
import static com.github.tomakehurst.wiremock.client.WireMock.urlPathEqualTo;
@@ -25,6 +26,7 @@
import java.net.URI;
import java.net.URISyntaxException;
+import org.apache.commons.lang.exception.ExceptionUtils;
import org.joda.time.DateTime;
import org.junit.Assert;
import org.junit.Before;
@@ -93,6 +95,24 @@ public void testGetCredentialsReturnsValidResponseFromEcsEndpoint() {
Assert.assertEquals(new DateTime(EXPIRATION_DATE).toDate(), containerCredentialsProvider.getCredentialsExpiration());
}
+ /**
+ * Tests that the getCredentials won't leak credentials data if the response from ECS is corrupted.
+ */
+ @Test
+ public void getCredentialsWithCorruptResponseDoesNotIncludeCredentialsInExceptionMessage() {
+ stubForCorruptedSuccessResponse();
+
+ try {
+ containerCredentialsProvider.getCredentials();
+ Assert.fail();
+ } catch (Exception e) {
+ String stackTrace = ExceptionUtils.getStackTrace(e);
+ Assert.assertFalse(stackTrace.contains("ACCESS_KEY_ID"));
+ Assert.assertFalse(stackTrace.contains("SECRET_ACCESS_KEY"));
+ Assert.assertFalse(stackTrace.contains("TOKEN_TOKEN_TOKEN"));
+ }
+ }
+
/**
* Tests when the response is 404 Not found,
* then getCredentials method throws an AmazonClientException.
@@ -125,17 +145,29 @@ public void testGetCredentialsThrowsAseForNon200AndNon404ErrorResponse() {
}
}
+ private void stubForSuccessResponse() {
+ stubFor200Response(getSuccessfulBody());
+ }
+
+ private void stubForCorruptedSuccessResponse() {
+ String body = getSuccessfulBody();
+ stubFor200Response(body.substring(0, body.length() - 2));
+ }
+ private void stubFor200Response(String body) {
+ stubFor(get(urlPathEqualTo(CREDENTIALS_PATH))
+ .willReturn(aResponse()
+ .withStatus(200)
+ .withHeader("Content-Type", "application/json")
+ .withHeader("charset", "utf-8")
+ .withBody(body)));
+ }
- private void stubForSuccessResponse() {
- stubFor(
- get(urlPathEqualTo(CREDENTIALS_PATH))
- .willReturn(aResponse()
- .withStatus(200)
- .withHeader("Content-Type", "application/json")
- .withHeader("charset", "utf-8")
- .withBody("{\"AccessKeyId\":\"ACCESS_KEY_ID\",\"SecretAccessKey\":\"SECRET_ACCESS_KEY\",\"Token\":\"TOKEN_TOKEN_TOKEN\","
- + "\"Expiration\":\"3000-05-03T04:55:54Z\"}")));
+ private String getSuccessfulBody() {
+ return "{\"AccessKeyId\":\"ACCESS_KEY_ID\"," +
+ "\"SecretAccessKey\":\"SECRET_ACCESS_KEY\"," +
+ "\"Token\":\"TOKEN_TOKEN_TOKEN\"," +
+ "\"Expiration\":\"3000-05-03T04:55:54Z\"}";
}
private void stubForErrorResponse(int statusCode) {
diff --git a/aws-java-sdk-costandusagereport/pom.xml b/aws-java-sdk-costandusagereport/pom.xml
index 186ebc5b90bb..b6a044133674 100644
--- a/aws-java-sdk-costandusagereport/pom.xml
+++ b/aws-java-sdk-costandusagereport/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-costandusagereport
diff --git a/aws-java-sdk-costexplorer/pom.xml b/aws-java-sdk-costexplorer/pom.xml
index 897a22a81ce0..ff9417c7bbeb 100644
--- a/aws-java-sdk-costexplorer/pom.xml
+++ b/aws-java-sdk-costexplorer/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-costexplorer
diff --git a/aws-java-sdk-datapipeline/pom.xml b/aws-java-sdk-datapipeline/pom.xml
index 2b8be959b165..434f5f67197b 100644
--- a/aws-java-sdk-datapipeline/pom.xml
+++ b/aws-java-sdk-datapipeline/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-datapipeline
diff --git a/aws-java-sdk-datasync/pom.xml b/aws-java-sdk-datasync/pom.xml
index ddc10b721584..76f526fd4959 100644
--- a/aws-java-sdk-datasync/pom.xml
+++ b/aws-java-sdk-datasync/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-datasync
diff --git a/aws-java-sdk-dax/pom.xml b/aws-java-sdk-dax/pom.xml
index d20658de6c83..035a77140501 100644
--- a/aws-java-sdk-dax/pom.xml
+++ b/aws-java-sdk-dax/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-dax
diff --git a/aws-java-sdk-devicefarm/pom.xml b/aws-java-sdk-devicefarm/pom.xml
index b61b6fcbfdd4..20dbb2553136 100644
--- a/aws-java-sdk-devicefarm/pom.xml
+++ b/aws-java-sdk-devicefarm/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-devicefarm
diff --git a/aws-java-sdk-directconnect/pom.xml b/aws-java-sdk-directconnect/pom.xml
index 03dd94eae62f..94fac7c99d11 100644
--- a/aws-java-sdk-directconnect/pom.xml
+++ b/aws-java-sdk-directconnect/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-directconnect
diff --git a/aws-java-sdk-directory/pom.xml b/aws-java-sdk-directory/pom.xml
index 78efa6dbd051..1cb703d7867e 100644
--- a/aws-java-sdk-directory/pom.xml
+++ b/aws-java-sdk-directory/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-directory
diff --git a/aws-java-sdk-discovery/pom.xml b/aws-java-sdk-discovery/pom.xml
index 3b5b12eb6ee5..38ed89e00a8b 100644
--- a/aws-java-sdk-discovery/pom.xml
+++ b/aws-java-sdk-discovery/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-discovery
diff --git a/aws-java-sdk-dlm/pom.xml b/aws-java-sdk-dlm/pom.xml
index 19473ca14f7a..d7d172baac49 100644
--- a/aws-java-sdk-dlm/pom.xml
+++ b/aws-java-sdk-dlm/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-dlm
diff --git a/aws-java-sdk-dms/pom.xml b/aws-java-sdk-dms/pom.xml
index 3cc5d32d43e6..41a87125d730 100644
--- a/aws-java-sdk-dms/pom.xml
+++ b/aws-java-sdk-dms/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-dms
diff --git a/aws-java-sdk-docdb/pom.xml b/aws-java-sdk-docdb/pom.xml
index 5110c01cde39..2a32b324da34 100644
--- a/aws-java-sdk-docdb/pom.xml
+++ b/aws-java-sdk-docdb/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-docdb
diff --git a/aws-java-sdk-dynamodb/pom.xml b/aws-java-sdk-dynamodb/pom.xml
index 0bc31d9c390d..b7ab359a3eab 100644
--- a/aws-java-sdk-dynamodb/pom.xml
+++ b/aws-java-sdk-dynamodb/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-dynamodb
diff --git a/aws-java-sdk-ec2/pom.xml b/aws-java-sdk-ec2/pom.xml
index 2ba5567d2809..11422920e8d3 100644
--- a/aws-java-sdk-ec2/pom.xml
+++ b/aws-java-sdk-ec2/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-ec2
diff --git a/aws-java-sdk-ecr/pom.xml b/aws-java-sdk-ecr/pom.xml
index b4b38e2e99de..0551d2c21a2f 100644
--- a/aws-java-sdk-ecr/pom.xml
+++ b/aws-java-sdk-ecr/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-ecr
diff --git a/aws-java-sdk-ecs/pom.xml b/aws-java-sdk-ecs/pom.xml
index b22522472abb..68f8dc188afd 100644
--- a/aws-java-sdk-ecs/pom.xml
+++ b/aws-java-sdk-ecs/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-ecs
diff --git a/aws-java-sdk-efs/pom.xml b/aws-java-sdk-efs/pom.xml
index ca653cfe2840..fd21282964ac 100644
--- a/aws-java-sdk-efs/pom.xml
+++ b/aws-java-sdk-efs/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-efs
diff --git a/aws-java-sdk-eks/pom.xml b/aws-java-sdk-eks/pom.xml
index 22153863c786..4e40f55d4b77 100644
--- a/aws-java-sdk-eks/pom.xml
+++ b/aws-java-sdk-eks/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-eks
diff --git a/aws-java-sdk-elasticache/pom.xml b/aws-java-sdk-elasticache/pom.xml
index 982533596ceb..1c1fc541b46c 100644
--- a/aws-java-sdk-elasticache/pom.xml
+++ b/aws-java-sdk-elasticache/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-elasticache
diff --git a/aws-java-sdk-elasticbeanstalk/pom.xml b/aws-java-sdk-elasticbeanstalk/pom.xml
index d9af534072fb..70d5a6e1ddee 100644
--- a/aws-java-sdk-elasticbeanstalk/pom.xml
+++ b/aws-java-sdk-elasticbeanstalk/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-elasticbeanstalk
diff --git a/aws-java-sdk-elasticloadbalancing/pom.xml b/aws-java-sdk-elasticloadbalancing/pom.xml
index 1537770141c6..761a64a950cc 100644
--- a/aws-java-sdk-elasticloadbalancing/pom.xml
+++ b/aws-java-sdk-elasticloadbalancing/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-elasticloadbalancing
diff --git a/aws-java-sdk-elasticloadbalancingv2/pom.xml b/aws-java-sdk-elasticloadbalancingv2/pom.xml
index 2a4c782f2325..ce9254d79baf 100644
--- a/aws-java-sdk-elasticloadbalancingv2/pom.xml
+++ b/aws-java-sdk-elasticloadbalancingv2/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-elasticloadbalancingv2
diff --git a/aws-java-sdk-elasticsearch/pom.xml b/aws-java-sdk-elasticsearch/pom.xml
index 3161e5bddb72..a213ea8fc233 100644
--- a/aws-java-sdk-elasticsearch/pom.xml
+++ b/aws-java-sdk-elasticsearch/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-elasticsearch
diff --git a/aws-java-sdk-elastictranscoder/pom.xml b/aws-java-sdk-elastictranscoder/pom.xml
index 1ef862ed79da..9d11537d7855 100644
--- a/aws-java-sdk-elastictranscoder/pom.xml
+++ b/aws-java-sdk-elastictranscoder/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-elastictranscoder
diff --git a/aws-java-sdk-emr/pom.xml b/aws-java-sdk-emr/pom.xml
index aa970887f3ae..3622b29dfedc 100644
--- a/aws-java-sdk-emr/pom.xml
+++ b/aws-java-sdk-emr/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-emr
diff --git a/aws-java-sdk-events/pom.xml b/aws-java-sdk-events/pom.xml
index 9e1a2d9eff55..343ff3206943 100644
--- a/aws-java-sdk-events/pom.xml
+++ b/aws-java-sdk-events/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-events
diff --git a/aws-java-sdk-fms/pom.xml b/aws-java-sdk-fms/pom.xml
index b23a66b1e6cb..fa5371b09fee 100644
--- a/aws-java-sdk-fms/pom.xml
+++ b/aws-java-sdk-fms/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-fms
diff --git a/aws-java-sdk-fsx/pom.xml b/aws-java-sdk-fsx/pom.xml
index 154b2625132b..babdbf5e14bf 100644
--- a/aws-java-sdk-fsx/pom.xml
+++ b/aws-java-sdk-fsx/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-fsx
diff --git a/aws-java-sdk-gamelift/pom.xml b/aws-java-sdk-gamelift/pom.xml
index 188ba0e6017c..1eb14e7ae435 100644
--- a/aws-java-sdk-gamelift/pom.xml
+++ b/aws-java-sdk-gamelift/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-gamelift
diff --git a/aws-java-sdk-glacier/pom.xml b/aws-java-sdk-glacier/pom.xml
index 498750832583..37e1d141fbea 100644
--- a/aws-java-sdk-glacier/pom.xml
+++ b/aws-java-sdk-glacier/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-glacier
diff --git a/aws-java-sdk-globalaccelerator/pom.xml b/aws-java-sdk-globalaccelerator/pom.xml
index 0108b1416c6b..c3d6b92436c9 100644
--- a/aws-java-sdk-globalaccelerator/pom.xml
+++ b/aws-java-sdk-globalaccelerator/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-globalaccelerator
diff --git a/aws-java-sdk-glue/pom.xml b/aws-java-sdk-glue/pom.xml
index d35d36842eca..0c3e018bcf01 100644
--- a/aws-java-sdk-glue/pom.xml
+++ b/aws-java-sdk-glue/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-glue
diff --git a/aws-java-sdk-greengrass/pom.xml b/aws-java-sdk-greengrass/pom.xml
index ec78838bd6a4..53cbf40eac6e 100644
--- a/aws-java-sdk-greengrass/pom.xml
+++ b/aws-java-sdk-greengrass/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-greengrass
diff --git a/aws-java-sdk-groundstation/pom.xml b/aws-java-sdk-groundstation/pom.xml
index 2690df60bf15..b1af8ed5c5b6 100644
--- a/aws-java-sdk-groundstation/pom.xml
+++ b/aws-java-sdk-groundstation/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-groundstation
diff --git a/aws-java-sdk-guardduty/pom.xml b/aws-java-sdk-guardduty/pom.xml
index f539fa38f4d3..ad44c66eedb3 100644
--- a/aws-java-sdk-guardduty/pom.xml
+++ b/aws-java-sdk-guardduty/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-guardduty
diff --git a/aws-java-sdk-health/pom.xml b/aws-java-sdk-health/pom.xml
index 122582e0258c..34caad1a19c3 100644
--- a/aws-java-sdk-health/pom.xml
+++ b/aws-java-sdk-health/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-health
diff --git a/aws-java-sdk-iam/pom.xml b/aws-java-sdk-iam/pom.xml
index 1efa9ef8c089..dc19a3773206 100644
--- a/aws-java-sdk-iam/pom.xml
+++ b/aws-java-sdk-iam/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-iam
diff --git a/aws-java-sdk-importexport/pom.xml b/aws-java-sdk-importexport/pom.xml
index 2a74321c25f7..30527a058bf8 100644
--- a/aws-java-sdk-importexport/pom.xml
+++ b/aws-java-sdk-importexport/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-importexport
diff --git a/aws-java-sdk-inspector/pom.xml b/aws-java-sdk-inspector/pom.xml
index 10cc992df754..0d3356c43a2f 100644
--- a/aws-java-sdk-inspector/pom.xml
+++ b/aws-java-sdk-inspector/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-inspector
diff --git a/aws-java-sdk-iot/pom.xml b/aws-java-sdk-iot/pom.xml
index ef979c8105c5..d9982a665acd 100644
--- a/aws-java-sdk-iot/pom.xml
+++ b/aws-java-sdk-iot/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-iot
diff --git a/aws-java-sdk-iot1clickdevices/pom.xml b/aws-java-sdk-iot1clickdevices/pom.xml
index 4216160ce79d..e4fa847143e8 100644
--- a/aws-java-sdk-iot1clickdevices/pom.xml
+++ b/aws-java-sdk-iot1clickdevices/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-iot1clickdevices
diff --git a/aws-java-sdk-iot1clickprojects/pom.xml b/aws-java-sdk-iot1clickprojects/pom.xml
index b361ed93d11e..46dde8256a98 100644
--- a/aws-java-sdk-iot1clickprojects/pom.xml
+++ b/aws-java-sdk-iot1clickprojects/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-iot1clickprojects
diff --git a/aws-java-sdk-iotanalytics/pom.xml b/aws-java-sdk-iotanalytics/pom.xml
index 16bf3a57a7f4..f4001f5b96cb 100644
--- a/aws-java-sdk-iotanalytics/pom.xml
+++ b/aws-java-sdk-iotanalytics/pom.xml
@@ -5,7 +5,7 @@
com.amazonaws
aws-java-sdk-pom
- 1.11.563-SNAPSHOT
+ 1.11.563
com.amazonaws
aws-java-sdk-iotanalytics
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/Channel.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/Channel.java
index 4904f4a582bf..07310e46ac43 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/Channel.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/Channel.java
@@ -35,6 +35,12 @@ public class Channel implements Serializable, Cloneable, StructuredPojo {
*
*/
private String name;
+ /**
+ *
+ * Where channel data is stored.
+ *
+ */
+ private ChannelStorage storage;
/**
*
* The ARN of the channel.
@@ -106,6 +112,46 @@ public Channel withName(String name) {
return this;
}
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @param storage
+ * Where channel data is stored.
+ */
+
+ public void setStorage(ChannelStorage storage) {
+ this.storage = storage;
+ }
+
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @return Where channel data is stored.
+ */
+
+ public ChannelStorage getStorage() {
+ return this.storage;
+ }
+
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @param storage
+ * Where channel data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public Channel withStorage(ChannelStorage storage) {
+ setStorage(storage);
+ return this;
+ }
+
/**
*
* The ARN of the channel.
@@ -339,6 +385,8 @@ public String toString() {
sb.append("{");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
+ if (getStorage() != null)
+ sb.append("Storage: ").append(getStorage()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getStatus() != null)
@@ -367,6 +415,10 @@ public boolean equals(Object obj) {
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
+ if (other.getStorage() == null ^ this.getStorage() == null)
+ return false;
+ if (other.getStorage() != null && other.getStorage().equals(this.getStorage()) == false)
+ return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
@@ -396,6 +448,7 @@ public int hashCode() {
int hashCode = 1;
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
+ hashCode = prime * hashCode + ((getStorage() == null) ? 0 : getStorage().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode());
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelStorage.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelStorage.java
new file mode 100644
index 000000000000..4148a3bc5c15
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelStorage.java
@@ -0,0 +1,189 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @see AWS API
+ * Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ChannelStorage implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ *
+ * Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ */
+ private ServiceManagedChannelS3Storage serviceManagedS3;
+ /**
+ *
+ * Use this to store channel data in an S3 bucket that you manage.
+ *
+ */
+ private CustomerManagedChannelS3Storage customerManagedS3;
+
+ /**
+ *
+ * Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @param serviceManagedS3
+ * Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ */
+
+ public void setServiceManagedS3(ServiceManagedChannelS3Storage serviceManagedS3) {
+ this.serviceManagedS3 = serviceManagedS3;
+ }
+
+ /**
+ *
+ * Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @return Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ */
+
+ public ServiceManagedChannelS3Storage getServiceManagedS3() {
+ return this.serviceManagedS3;
+ }
+
+ /**
+ *
+ * Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @param serviceManagedS3
+ * Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public ChannelStorage withServiceManagedS3(ServiceManagedChannelS3Storage serviceManagedS3) {
+ setServiceManagedS3(serviceManagedS3);
+ return this;
+ }
+
+ /**
+ *
+ * Use this to store channel data in an S3 bucket that you manage.
+ *
+ *
+ * @param customerManagedS3
+ * Use this to store channel data in an S3 bucket that you manage.
+ */
+
+ public void setCustomerManagedS3(CustomerManagedChannelS3Storage customerManagedS3) {
+ this.customerManagedS3 = customerManagedS3;
+ }
+
+ /**
+ *
+ * Use this to store channel data in an S3 bucket that you manage.
+ *
+ *
+ * @return Use this to store channel data in an S3 bucket that you manage.
+ */
+
+ public CustomerManagedChannelS3Storage getCustomerManagedS3() {
+ return this.customerManagedS3;
+ }
+
+ /**
+ *
+ * Use this to store channel data in an S3 bucket that you manage.
+ *
+ *
+ * @param customerManagedS3
+ * Use this to store channel data in an S3 bucket that you manage.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public ChannelStorage withCustomerManagedS3(CustomerManagedChannelS3Storage customerManagedS3) {
+ setCustomerManagedS3(customerManagedS3);
+ 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 (getServiceManagedS3() != null)
+ sb.append("ServiceManagedS3: ").append(getServiceManagedS3()).append(",");
+ if (getCustomerManagedS3() != null)
+ sb.append("CustomerManagedS3: ").append(getCustomerManagedS3());
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof ChannelStorage == false)
+ return false;
+ ChannelStorage other = (ChannelStorage) obj;
+ if (other.getServiceManagedS3() == null ^ this.getServiceManagedS3() == null)
+ return false;
+ if (other.getServiceManagedS3() != null && other.getServiceManagedS3().equals(this.getServiceManagedS3()) == false)
+ return false;
+ if (other.getCustomerManagedS3() == null ^ this.getCustomerManagedS3() == null)
+ return false;
+ if (other.getCustomerManagedS3() != null && other.getCustomerManagedS3().equals(this.getCustomerManagedS3()) == false)
+ return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ hashCode = prime * hashCode + ((getServiceManagedS3() == null) ? 0 : getServiceManagedS3().hashCode());
+ hashCode = prime * hashCode + ((getCustomerManagedS3() == null) ? 0 : getCustomerManagedS3().hashCode());
+ return hashCode;
+ }
+
+ @Override
+ public ChannelStorage clone() {
+ try {
+ return (ChannelStorage) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.ChannelStorageMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelStorageSummary.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelStorageSummary.java
new file mode 100644
index 000000000000..a11697a4c206
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelStorageSummary.java
@@ -0,0 +1,189 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @see AWS
+ * API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ChannelStorageSummary implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ *
+ * Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ */
+ private ServiceManagedChannelS3StorageSummary serviceManagedS3;
+ /**
+ *
+ * Used to store channel data in an S3 bucket that you manage.
+ *
+ */
+ private CustomerManagedChannelS3StorageSummary customerManagedS3;
+
+ /**
+ *
+ * Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @param serviceManagedS3
+ * Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ */
+
+ public void setServiceManagedS3(ServiceManagedChannelS3StorageSummary serviceManagedS3) {
+ this.serviceManagedS3 = serviceManagedS3;
+ }
+
+ /**
+ *
+ * Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @return Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ */
+
+ public ServiceManagedChannelS3StorageSummary getServiceManagedS3() {
+ return this.serviceManagedS3;
+ }
+
+ /**
+ *
+ * Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @param serviceManagedS3
+ * Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public ChannelStorageSummary withServiceManagedS3(ServiceManagedChannelS3StorageSummary serviceManagedS3) {
+ setServiceManagedS3(serviceManagedS3);
+ return this;
+ }
+
+ /**
+ *
+ * Used to store channel data in an S3 bucket that you manage.
+ *
+ *
+ * @param customerManagedS3
+ * Used to store channel data in an S3 bucket that you manage.
+ */
+
+ public void setCustomerManagedS3(CustomerManagedChannelS3StorageSummary customerManagedS3) {
+ this.customerManagedS3 = customerManagedS3;
+ }
+
+ /**
+ *
+ * Used to store channel data in an S3 bucket that you manage.
+ *
+ *
+ * @return Used to store channel data in an S3 bucket that you manage.
+ */
+
+ public CustomerManagedChannelS3StorageSummary getCustomerManagedS3() {
+ return this.customerManagedS3;
+ }
+
+ /**
+ *
+ * Used to store channel data in an S3 bucket that you manage.
+ *
+ *
+ * @param customerManagedS3
+ * Used to store channel data in an S3 bucket that you manage.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public ChannelStorageSummary withCustomerManagedS3(CustomerManagedChannelS3StorageSummary customerManagedS3) {
+ setCustomerManagedS3(customerManagedS3);
+ 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 (getServiceManagedS3() != null)
+ sb.append("ServiceManagedS3: ").append(getServiceManagedS3()).append(",");
+ if (getCustomerManagedS3() != null)
+ sb.append("CustomerManagedS3: ").append(getCustomerManagedS3());
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof ChannelStorageSummary == false)
+ return false;
+ ChannelStorageSummary other = (ChannelStorageSummary) obj;
+ if (other.getServiceManagedS3() == null ^ this.getServiceManagedS3() == null)
+ return false;
+ if (other.getServiceManagedS3() != null && other.getServiceManagedS3().equals(this.getServiceManagedS3()) == false)
+ return false;
+ if (other.getCustomerManagedS3() == null ^ this.getCustomerManagedS3() == null)
+ return false;
+ if (other.getCustomerManagedS3() != null && other.getCustomerManagedS3().equals(this.getCustomerManagedS3()) == false)
+ return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ hashCode = prime * hashCode + ((getServiceManagedS3() == null) ? 0 : getServiceManagedS3().hashCode());
+ hashCode = prime * hashCode + ((getCustomerManagedS3() == null) ? 0 : getCustomerManagedS3().hashCode());
+ return hashCode;
+ }
+
+ @Override
+ public ChannelStorageSummary clone() {
+ try {
+ return (ChannelStorageSummary) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.ChannelStorageSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelSummary.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelSummary.java
index 076803eaa4fc..66dcd9508e67 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelSummary.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ChannelSummary.java
@@ -34,6 +34,12 @@ public class ChannelSummary implements Serializable, Cloneable, StructuredPojo {
*
*/
private String channelName;
+ /**
+ *
+ * Where channel data is stored.
+ *
+ */
+ private ChannelStorageSummary channelStorage;
/**
*
* The status of the channel.
@@ -93,6 +99,46 @@ public ChannelSummary withChannelName(String channelName) {
return this;
}
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @param channelStorage
+ * Where channel data is stored.
+ */
+
+ public void setChannelStorage(ChannelStorageSummary channelStorage) {
+ this.channelStorage = channelStorage;
+ }
+
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @return Where channel data is stored.
+ */
+
+ public ChannelStorageSummary getChannelStorage() {
+ return this.channelStorage;
+ }
+
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @param channelStorage
+ * Where channel data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public ChannelSummary withChannelStorage(ChannelStorageSummary channelStorage) {
+ setChannelStorage(channelStorage);
+ return this;
+ }
+
/**
*
* The status of the channel.
@@ -246,6 +292,8 @@ public String toString() {
sb.append("{");
if (getChannelName() != null)
sb.append("ChannelName: ").append(getChannelName()).append(",");
+ if (getChannelStorage() != null)
+ sb.append("ChannelStorage: ").append(getChannelStorage()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCreationTime() != null)
@@ -270,6 +318,10 @@ public boolean equals(Object obj) {
return false;
if (other.getChannelName() != null && other.getChannelName().equals(this.getChannelName()) == false)
return false;
+ if (other.getChannelStorage() == null ^ this.getChannelStorage() == null)
+ return false;
+ if (other.getChannelStorage() != null && other.getChannelStorage().equals(this.getChannelStorage()) == false)
+ return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
@@ -291,6 +343,7 @@ public int hashCode() {
int hashCode = 1;
hashCode = prime * hashCode + ((getChannelName() == null) ? 0 : getChannelName().hashCode());
+ hashCode = prime * hashCode + ((getChannelStorage() == null) ? 0 : getChannelStorage().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode());
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CreateChannelRequest.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CreateChannelRequest.java
index ffc7704f6041..d40eac7c69eb 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CreateChannelRequest.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CreateChannelRequest.java
@@ -31,6 +31,12 @@ public class CreateChannelRequest extends com.amazonaws.AmazonWebServiceRequest
*
*/
private String channelName;
+ /**
+ *
+ * Where channel data is stored.
+ *
+ */
+ private ChannelStorage channelStorage;
/**
*
* How long, in days, message data is kept for the channel.
@@ -84,6 +90,46 @@ public CreateChannelRequest withChannelName(String channelName) {
return this;
}
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @param channelStorage
+ * Where channel data is stored.
+ */
+
+ public void setChannelStorage(ChannelStorage channelStorage) {
+ this.channelStorage = channelStorage;
+ }
+
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @return Where channel data is stored.
+ */
+
+ public ChannelStorage getChannelStorage() {
+ return this.channelStorage;
+ }
+
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @param channelStorage
+ * Where channel data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CreateChannelRequest withChannelStorage(ChannelStorage channelStorage) {
+ setChannelStorage(channelStorage);
+ return this;
+ }
+
/**
*
* How long, in days, message data is kept for the channel.
@@ -208,6 +254,8 @@ public String toString() {
sb.append("{");
if (getChannelName() != null)
sb.append("ChannelName: ").append(getChannelName()).append(",");
+ if (getChannelStorage() != null)
+ sb.append("ChannelStorage: ").append(getChannelStorage()).append(",");
if (getRetentionPeriod() != null)
sb.append("RetentionPeriod: ").append(getRetentionPeriod()).append(",");
if (getTags() != null)
@@ -230,6 +278,10 @@ public boolean equals(Object obj) {
return false;
if (other.getChannelName() != null && other.getChannelName().equals(this.getChannelName()) == false)
return false;
+ if (other.getChannelStorage() == null ^ this.getChannelStorage() == null)
+ return false;
+ if (other.getChannelStorage() != null && other.getChannelStorage().equals(this.getChannelStorage()) == false)
+ return false;
if (other.getRetentionPeriod() == null ^ this.getRetentionPeriod() == null)
return false;
if (other.getRetentionPeriod() != null && other.getRetentionPeriod().equals(this.getRetentionPeriod()) == false)
@@ -247,6 +299,7 @@ public int hashCode() {
int hashCode = 1;
hashCode = prime * hashCode + ((getChannelName() == null) ? 0 : getChannelName().hashCode());
+ hashCode = prime * hashCode + ((getChannelStorage() == null) ? 0 : getChannelStorage().hashCode());
hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CreateDatastoreRequest.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CreateDatastoreRequest.java
index 831e37807495..c8fa2a436ffb 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CreateDatastoreRequest.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CreateDatastoreRequest.java
@@ -31,6 +31,12 @@ public class CreateDatastoreRequest extends com.amazonaws.AmazonWebServiceReques
*
*/
private String datastoreName;
+ /**
+ *
+ * Where data store data is stored.
+ *
+ */
+ private DatastoreStorage datastoreStorage;
/**
*
* How long, in days, message data is kept for the data store.
@@ -84,6 +90,46 @@ public CreateDatastoreRequest withDatastoreName(String datastoreName) {
return this;
}
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @param datastoreStorage
+ * Where data store data is stored.
+ */
+
+ public void setDatastoreStorage(DatastoreStorage datastoreStorage) {
+ this.datastoreStorage = datastoreStorage;
+ }
+
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @return Where data store data is stored.
+ */
+
+ public DatastoreStorage getDatastoreStorage() {
+ return this.datastoreStorage;
+ }
+
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @param datastoreStorage
+ * Where data store data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CreateDatastoreRequest withDatastoreStorage(DatastoreStorage datastoreStorage) {
+ setDatastoreStorage(datastoreStorage);
+ return this;
+ }
+
/**
*
* How long, in days, message data is kept for the data store.
@@ -208,6 +254,8 @@ public String toString() {
sb.append("{");
if (getDatastoreName() != null)
sb.append("DatastoreName: ").append(getDatastoreName()).append(",");
+ if (getDatastoreStorage() != null)
+ sb.append("DatastoreStorage: ").append(getDatastoreStorage()).append(",");
if (getRetentionPeriod() != null)
sb.append("RetentionPeriod: ").append(getRetentionPeriod()).append(",");
if (getTags() != null)
@@ -230,6 +278,10 @@ public boolean equals(Object obj) {
return false;
if (other.getDatastoreName() != null && other.getDatastoreName().equals(this.getDatastoreName()) == false)
return false;
+ if (other.getDatastoreStorage() == null ^ this.getDatastoreStorage() == null)
+ return false;
+ if (other.getDatastoreStorage() != null && other.getDatastoreStorage().equals(this.getDatastoreStorage()) == false)
+ return false;
if (other.getRetentionPeriod() == null ^ this.getRetentionPeriod() == null)
return false;
if (other.getRetentionPeriod() != null && other.getRetentionPeriod().equals(this.getRetentionPeriod()) == false)
@@ -247,6 +299,7 @@ public int hashCode() {
int hashCode = 1;
hashCode = prime * hashCode + ((getDatastoreName() == null) ? 0 : getDatastoreName().hashCode());
+ hashCode = prime * hashCode + ((getDatastoreStorage() == null) ? 0 : getDatastoreStorage().hashCode());
hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
return hashCode;
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedChannelS3Storage.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedChannelS3Storage.java
new file mode 100644
index 000000000000..93b6ae0ed725
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedChannelS3Storage.java
@@ -0,0 +1,249 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Use this to store channel data in an S3 bucket that you manage.
+ *
+ *
+ * @see AWS API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class CustomerManagedChannelS3Storage implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ *
+ */
+ private String bucket;
+ /**
+ *
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that
+ * is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ */
+ private String keyPrefix;
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ */
+ private String roleArn;
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ *
+ *
+ * @param bucket
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ */
+
+ public void setBucket(String bucket) {
+ this.bucket = bucket;
+ }
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ *
+ *
+ * @return The name of the Amazon S3 bucket in which channel data is stored.
+ */
+
+ public String getBucket() {
+ return this.bucket;
+ }
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ *
+ *
+ * @param bucket
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedChannelS3Storage withBucket(String bucket) {
+ setBucket(bucket);
+ return this;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that
+ * is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @param keyPrefix
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a
+ * key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ */
+
+ public void setKeyPrefix(String keyPrefix) {
+ this.keyPrefix = keyPrefix;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that
+ * is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @return The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a
+ * key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ */
+
+ public String getKeyPrefix() {
+ return this.keyPrefix;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that
+ * is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @param keyPrefix
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a
+ * key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedChannelS3Storage withKeyPrefix(String keyPrefix) {
+ setKeyPrefix(keyPrefix);
+ return this;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @param roleArn
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ */
+
+ public void setRoleArn(String roleArn) {
+ this.roleArn = roleArn;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @return The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ */
+
+ public String getRoleArn() {
+ return this.roleArn;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @param roleArn
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedChannelS3Storage withRoleArn(String roleArn) {
+ setRoleArn(roleArn);
+ 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 (getBucket() != null)
+ sb.append("Bucket: ").append(getBucket()).append(",");
+ if (getKeyPrefix() != null)
+ sb.append("KeyPrefix: ").append(getKeyPrefix()).append(",");
+ if (getRoleArn() != null)
+ sb.append("RoleArn: ").append(getRoleArn());
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof CustomerManagedChannelS3Storage == false)
+ return false;
+ CustomerManagedChannelS3Storage other = (CustomerManagedChannelS3Storage) obj;
+ if (other.getBucket() == null ^ this.getBucket() == null)
+ return false;
+ if (other.getBucket() != null && other.getBucket().equals(this.getBucket()) == false)
+ return false;
+ if (other.getKeyPrefix() == null ^ this.getKeyPrefix() == null)
+ return false;
+ if (other.getKeyPrefix() != null && other.getKeyPrefix().equals(this.getKeyPrefix()) == false)
+ return false;
+ if (other.getRoleArn() == null ^ this.getRoleArn() == null)
+ return false;
+ if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
+ return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ hashCode = prime * hashCode + ((getBucket() == null) ? 0 : getBucket().hashCode());
+ hashCode = prime * hashCode + ((getKeyPrefix() == null) ? 0 : getKeyPrefix().hashCode());
+ hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
+ return hashCode;
+ }
+
+ @Override
+ public CustomerManagedChannelS3Storage clone() {
+ try {
+ return (CustomerManagedChannelS3Storage) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.CustomerManagedChannelS3StorageMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedChannelS3StorageSummary.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedChannelS3StorageSummary.java
new file mode 100644
index 000000000000..3049954ebeed
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedChannelS3StorageSummary.java
@@ -0,0 +1,249 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Used to store channel data in an S3 bucket that you manage.
+ *
+ *
+ * @see AWS API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class CustomerManagedChannelS3StorageSummary implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ *
+ */
+ private String bucket;
+ /**
+ *
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that
+ * is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ */
+ private String keyPrefix;
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ */
+ private String roleArn;
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ *
+ *
+ * @param bucket
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ */
+
+ public void setBucket(String bucket) {
+ this.bucket = bucket;
+ }
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ *
+ *
+ * @return The name of the Amazon S3 bucket in which channel data is stored.
+ */
+
+ public String getBucket() {
+ return this.bucket;
+ }
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ *
+ *
+ * @param bucket
+ * The name of the Amazon S3 bucket in which channel data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedChannelS3StorageSummary withBucket(String bucket) {
+ setBucket(bucket);
+ return this;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that
+ * is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @param keyPrefix
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a
+ * key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ */
+
+ public void setKeyPrefix(String keyPrefix) {
+ this.keyPrefix = keyPrefix;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that
+ * is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @return The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a
+ * key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ */
+
+ public String getKeyPrefix() {
+ return this.keyPrefix;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a key that
+ * is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @param keyPrefix
+ * The prefix used to create the keys of the channel data objects. Each object in an Amazon S3 bucket has a
+ * key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedChannelS3StorageSummary withKeyPrefix(String keyPrefix) {
+ setKeyPrefix(keyPrefix);
+ return this;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @param roleArn
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ */
+
+ public void setRoleArn(String roleArn) {
+ this.roleArn = roleArn;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @return The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ */
+
+ public String getRoleArn() {
+ return this.roleArn;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @param roleArn
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedChannelS3StorageSummary withRoleArn(String roleArn) {
+ setRoleArn(roleArn);
+ 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 (getBucket() != null)
+ sb.append("Bucket: ").append(getBucket()).append(",");
+ if (getKeyPrefix() != null)
+ sb.append("KeyPrefix: ").append(getKeyPrefix()).append(",");
+ if (getRoleArn() != null)
+ sb.append("RoleArn: ").append(getRoleArn());
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof CustomerManagedChannelS3StorageSummary == false)
+ return false;
+ CustomerManagedChannelS3StorageSummary other = (CustomerManagedChannelS3StorageSummary) obj;
+ if (other.getBucket() == null ^ this.getBucket() == null)
+ return false;
+ if (other.getBucket() != null && other.getBucket().equals(this.getBucket()) == false)
+ return false;
+ if (other.getKeyPrefix() == null ^ this.getKeyPrefix() == null)
+ return false;
+ if (other.getKeyPrefix() != null && other.getKeyPrefix().equals(this.getKeyPrefix()) == false)
+ return false;
+ if (other.getRoleArn() == null ^ this.getRoleArn() == null)
+ return false;
+ if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
+ return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ hashCode = prime * hashCode + ((getBucket() == null) ? 0 : getBucket().hashCode());
+ hashCode = prime * hashCode + ((getKeyPrefix() == null) ? 0 : getKeyPrefix().hashCode());
+ hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
+ return hashCode;
+ }
+
+ @Override
+ public CustomerManagedChannelS3StorageSummary clone() {
+ try {
+ return (CustomerManagedChannelS3StorageSummary) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.CustomerManagedChannelS3StorageSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedDatastoreS3Storage.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedDatastoreS3Storage.java
new file mode 100644
index 000000000000..eda47cf505ab
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedDatastoreS3Storage.java
@@ -0,0 +1,249 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Use this to store data store data in an S3 bucket that you manage.
+ *
+ *
+ * @see AWS API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class CustomerManagedDatastoreS3Storage implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ *
+ */
+ private String bucket;
+ /**
+ *
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key
+ * that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ */
+ private String keyPrefix;
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ */
+ private String roleArn;
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ *
+ *
+ * @param bucket
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ */
+
+ public void setBucket(String bucket) {
+ this.bucket = bucket;
+ }
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ *
+ *
+ * @return The name of the Amazon S3 bucket in which data store data is stored.
+ */
+
+ public String getBucket() {
+ return this.bucket;
+ }
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ *
+ *
+ * @param bucket
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedDatastoreS3Storage withBucket(String bucket) {
+ setBucket(bucket);
+ return this;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key
+ * that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @param keyPrefix
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has
+ * a key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ */
+
+ public void setKeyPrefix(String keyPrefix) {
+ this.keyPrefix = keyPrefix;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key
+ * that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @return The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has
+ * a key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ */
+
+ public String getKeyPrefix() {
+ return this.keyPrefix;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key
+ * that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @param keyPrefix
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has
+ * a key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedDatastoreS3Storage withKeyPrefix(String keyPrefix) {
+ setKeyPrefix(keyPrefix);
+ return this;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @param roleArn
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ */
+
+ public void setRoleArn(String roleArn) {
+ this.roleArn = roleArn;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @return The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ */
+
+ public String getRoleArn() {
+ return this.roleArn;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @param roleArn
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedDatastoreS3Storage withRoleArn(String roleArn) {
+ setRoleArn(roleArn);
+ 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 (getBucket() != null)
+ sb.append("Bucket: ").append(getBucket()).append(",");
+ if (getKeyPrefix() != null)
+ sb.append("KeyPrefix: ").append(getKeyPrefix()).append(",");
+ if (getRoleArn() != null)
+ sb.append("RoleArn: ").append(getRoleArn());
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof CustomerManagedDatastoreS3Storage == false)
+ return false;
+ CustomerManagedDatastoreS3Storage other = (CustomerManagedDatastoreS3Storage) obj;
+ if (other.getBucket() == null ^ this.getBucket() == null)
+ return false;
+ if (other.getBucket() != null && other.getBucket().equals(this.getBucket()) == false)
+ return false;
+ if (other.getKeyPrefix() == null ^ this.getKeyPrefix() == null)
+ return false;
+ if (other.getKeyPrefix() != null && other.getKeyPrefix().equals(this.getKeyPrefix()) == false)
+ return false;
+ if (other.getRoleArn() == null ^ this.getRoleArn() == null)
+ return false;
+ if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
+ return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ hashCode = prime * hashCode + ((getBucket() == null) ? 0 : getBucket().hashCode());
+ hashCode = prime * hashCode + ((getKeyPrefix() == null) ? 0 : getKeyPrefix().hashCode());
+ hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
+ return hashCode;
+ }
+
+ @Override
+ public CustomerManagedDatastoreS3Storage clone() {
+ try {
+ return (CustomerManagedDatastoreS3Storage) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.CustomerManagedDatastoreS3StorageMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedDatastoreS3StorageSummary.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedDatastoreS3StorageSummary.java
new file mode 100644
index 000000000000..3bd21f4f11bf
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/CustomerManagedDatastoreS3StorageSummary.java
@@ -0,0 +1,250 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Used to store data store data in an S3 bucket that you manage.
+ *
+ *
+ * @see AWS API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class CustomerManagedDatastoreS3StorageSummary implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ *
+ */
+ private String bucket;
+ /**
+ *
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key
+ * that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ */
+ private String keyPrefix;
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ */
+ private String roleArn;
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ *
+ *
+ * @param bucket
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ */
+
+ public void setBucket(String bucket) {
+ this.bucket = bucket;
+ }
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ *
+ *
+ * @return The name of the Amazon S3 bucket in which data store data is stored.
+ */
+
+ public String getBucket() {
+ return this.bucket;
+ }
+
+ /**
+ *
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ *
+ *
+ * @param bucket
+ * The name of the Amazon S3 bucket in which data store data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedDatastoreS3StorageSummary withBucket(String bucket) {
+ setBucket(bucket);
+ return this;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key
+ * that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @param keyPrefix
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has
+ * a key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ */
+
+ public void setKeyPrefix(String keyPrefix) {
+ this.keyPrefix = keyPrefix;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key
+ * that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @return The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has
+ * a key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ */
+
+ public String getKeyPrefix() {
+ return this.keyPrefix;
+ }
+
+ /**
+ *
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has a key
+ * that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ *
+ *
+ * @param keyPrefix
+ * The prefix used to create the keys of the data store data objects. Each object in an Amazon S3 bucket has
+ * a key that is its unique identifier within the bucket (each object in a bucket has exactly one key).
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedDatastoreS3StorageSummary withKeyPrefix(String keyPrefix) {
+ setKeyPrefix(keyPrefix);
+ return this;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @param roleArn
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ */
+
+ public void setRoleArn(String roleArn) {
+ this.roleArn = roleArn;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @return The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ */
+
+ public String getRoleArn() {
+ return this.roleArn;
+ }
+
+ /**
+ *
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ *
+ *
+ * @param roleArn
+ * The ARN of the role which grants AWS IoT Analytics permission to interact with your Amazon S3 resources.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public CustomerManagedDatastoreS3StorageSummary withRoleArn(String roleArn) {
+ setRoleArn(roleArn);
+ 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 (getBucket() != null)
+ sb.append("Bucket: ").append(getBucket()).append(",");
+ if (getKeyPrefix() != null)
+ sb.append("KeyPrefix: ").append(getKeyPrefix()).append(",");
+ if (getRoleArn() != null)
+ sb.append("RoleArn: ").append(getRoleArn());
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof CustomerManagedDatastoreS3StorageSummary == false)
+ return false;
+ CustomerManagedDatastoreS3StorageSummary other = (CustomerManagedDatastoreS3StorageSummary) obj;
+ if (other.getBucket() == null ^ this.getBucket() == null)
+ return false;
+ if (other.getBucket() != null && other.getBucket().equals(this.getBucket()) == false)
+ return false;
+ if (other.getKeyPrefix() == null ^ this.getKeyPrefix() == null)
+ return false;
+ if (other.getKeyPrefix() != null && other.getKeyPrefix().equals(this.getKeyPrefix()) == false)
+ return false;
+ if (other.getRoleArn() == null ^ this.getRoleArn() == null)
+ return false;
+ if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false)
+ return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ hashCode = prime * hashCode + ((getBucket() == null) ? 0 : getBucket().hashCode());
+ hashCode = prime * hashCode + ((getKeyPrefix() == null) ? 0 : getKeyPrefix().hashCode());
+ hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode());
+ return hashCode;
+ }
+
+ @Override
+ public CustomerManagedDatastoreS3StorageSummary clone() {
+ try {
+ return (CustomerManagedDatastoreS3StorageSummary) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.CustomerManagedDatastoreS3StorageSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/Datastore.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/Datastore.java
index d592e553a8e2..5cb63234611f 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/Datastore.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/Datastore.java
@@ -34,6 +34,12 @@ public class Datastore implements Serializable, Cloneable, StructuredPojo {
*
*/
private String name;
+ /**
+ *
+ * Where data store data is stored.
+ *
+ */
+ private DatastoreStorage storage;
/**
*
* The ARN of the data store.
@@ -125,6 +131,46 @@ public Datastore withName(String name) {
return this;
}
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @param storage
+ * Where data store data is stored.
+ */
+
+ public void setStorage(DatastoreStorage storage) {
+ this.storage = storage;
+ }
+
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @return Where data store data is stored.
+ */
+
+ public DatastoreStorage getStorage() {
+ return this.storage;
+ }
+
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @param storage
+ * Where data store data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public Datastore withStorage(DatastoreStorage storage) {
+ setStorage(storage);
+ return this;
+ }
+
/**
*
* The ARN of the data store.
@@ -514,6 +560,8 @@ public String toString() {
sb.append("{");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
+ if (getStorage() != null)
+ sb.append("Storage: ").append(getStorage()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getStatus() != null)
@@ -542,6 +590,10 @@ public boolean equals(Object obj) {
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
+ if (other.getStorage() == null ^ this.getStorage() == null)
+ return false;
+ if (other.getStorage() != null && other.getStorage().equals(this.getStorage()) == false)
+ return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
@@ -571,6 +623,7 @@ public int hashCode() {
int hashCode = 1;
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
+ hashCode = prime * hashCode + ((getStorage() == null) ? 0 : getStorage().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode());
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreStorage.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreStorage.java
new file mode 100644
index 000000000000..04cad7de6e8a
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreStorage.java
@@ -0,0 +1,189 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @see AWS API
+ * Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class DatastoreStorage implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ *
+ * Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ */
+ private ServiceManagedDatastoreS3Storage serviceManagedS3;
+ /**
+ *
+ * Use this to store data store data in an S3 bucket that you manage.
+ *
+ */
+ private CustomerManagedDatastoreS3Storage customerManagedS3;
+
+ /**
+ *
+ * Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @param serviceManagedS3
+ * Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ */
+
+ public void setServiceManagedS3(ServiceManagedDatastoreS3Storage serviceManagedS3) {
+ this.serviceManagedS3 = serviceManagedS3;
+ }
+
+ /**
+ *
+ * Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @return Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ */
+
+ public ServiceManagedDatastoreS3Storage getServiceManagedS3() {
+ return this.serviceManagedS3;
+ }
+
+ /**
+ *
+ * Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @param serviceManagedS3
+ * Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public DatastoreStorage withServiceManagedS3(ServiceManagedDatastoreS3Storage serviceManagedS3) {
+ setServiceManagedS3(serviceManagedS3);
+ return this;
+ }
+
+ /**
+ *
+ * Use this to store data store data in an S3 bucket that you manage.
+ *
+ *
+ * @param customerManagedS3
+ * Use this to store data store data in an S3 bucket that you manage.
+ */
+
+ public void setCustomerManagedS3(CustomerManagedDatastoreS3Storage customerManagedS3) {
+ this.customerManagedS3 = customerManagedS3;
+ }
+
+ /**
+ *
+ * Use this to store data store data in an S3 bucket that you manage.
+ *
+ *
+ * @return Use this to store data store data in an S3 bucket that you manage.
+ */
+
+ public CustomerManagedDatastoreS3Storage getCustomerManagedS3() {
+ return this.customerManagedS3;
+ }
+
+ /**
+ *
+ * Use this to store data store data in an S3 bucket that you manage.
+ *
+ *
+ * @param customerManagedS3
+ * Use this to store data store data in an S3 bucket that you manage.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public DatastoreStorage withCustomerManagedS3(CustomerManagedDatastoreS3Storage customerManagedS3) {
+ setCustomerManagedS3(customerManagedS3);
+ 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 (getServiceManagedS3() != null)
+ sb.append("ServiceManagedS3: ").append(getServiceManagedS3()).append(",");
+ if (getCustomerManagedS3() != null)
+ sb.append("CustomerManagedS3: ").append(getCustomerManagedS3());
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof DatastoreStorage == false)
+ return false;
+ DatastoreStorage other = (DatastoreStorage) obj;
+ if (other.getServiceManagedS3() == null ^ this.getServiceManagedS3() == null)
+ return false;
+ if (other.getServiceManagedS3() != null && other.getServiceManagedS3().equals(this.getServiceManagedS3()) == false)
+ return false;
+ if (other.getCustomerManagedS3() == null ^ this.getCustomerManagedS3() == null)
+ return false;
+ if (other.getCustomerManagedS3() != null && other.getCustomerManagedS3().equals(this.getCustomerManagedS3()) == false)
+ return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ hashCode = prime * hashCode + ((getServiceManagedS3() == null) ? 0 : getServiceManagedS3().hashCode());
+ hashCode = prime * hashCode + ((getCustomerManagedS3() == null) ? 0 : getCustomerManagedS3().hashCode());
+ return hashCode;
+ }
+
+ @Override
+ public DatastoreStorage clone() {
+ try {
+ return (DatastoreStorage) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.DatastoreStorageMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreStorageSummary.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreStorageSummary.java
new file mode 100644
index 000000000000..5e7d66724a95
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreStorageSummary.java
@@ -0,0 +1,189 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @see AWS API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class DatastoreStorageSummary implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ *
+ * Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ */
+ private ServiceManagedDatastoreS3StorageSummary serviceManagedS3;
+ /**
+ *
+ * Used to store data store data in an S3 bucket that you manage.
+ *
+ */
+ private CustomerManagedDatastoreS3StorageSummary customerManagedS3;
+
+ /**
+ *
+ * Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @param serviceManagedS3
+ * Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ */
+
+ public void setServiceManagedS3(ServiceManagedDatastoreS3StorageSummary serviceManagedS3) {
+ this.serviceManagedS3 = serviceManagedS3;
+ }
+
+ /**
+ *
+ * Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @return Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ */
+
+ public ServiceManagedDatastoreS3StorageSummary getServiceManagedS3() {
+ return this.serviceManagedS3;
+ }
+
+ /**
+ *
+ * Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @param serviceManagedS3
+ * Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public DatastoreStorageSummary withServiceManagedS3(ServiceManagedDatastoreS3StorageSummary serviceManagedS3) {
+ setServiceManagedS3(serviceManagedS3);
+ return this;
+ }
+
+ /**
+ *
+ * Used to store data store data in an S3 bucket that you manage.
+ *
+ *
+ * @param customerManagedS3
+ * Used to store data store data in an S3 bucket that you manage.
+ */
+
+ public void setCustomerManagedS3(CustomerManagedDatastoreS3StorageSummary customerManagedS3) {
+ this.customerManagedS3 = customerManagedS3;
+ }
+
+ /**
+ *
+ * Used to store data store data in an S3 bucket that you manage.
+ *
+ *
+ * @return Used to store data store data in an S3 bucket that you manage.
+ */
+
+ public CustomerManagedDatastoreS3StorageSummary getCustomerManagedS3() {
+ return this.customerManagedS3;
+ }
+
+ /**
+ *
+ * Used to store data store data in an S3 bucket that you manage.
+ *
+ *
+ * @param customerManagedS3
+ * Used to store data store data in an S3 bucket that you manage.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public DatastoreStorageSummary withCustomerManagedS3(CustomerManagedDatastoreS3StorageSummary customerManagedS3) {
+ setCustomerManagedS3(customerManagedS3);
+ 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 (getServiceManagedS3() != null)
+ sb.append("ServiceManagedS3: ").append(getServiceManagedS3()).append(",");
+ if (getCustomerManagedS3() != null)
+ sb.append("CustomerManagedS3: ").append(getCustomerManagedS3());
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof DatastoreStorageSummary == false)
+ return false;
+ DatastoreStorageSummary other = (DatastoreStorageSummary) obj;
+ if (other.getServiceManagedS3() == null ^ this.getServiceManagedS3() == null)
+ return false;
+ if (other.getServiceManagedS3() != null && other.getServiceManagedS3().equals(this.getServiceManagedS3()) == false)
+ return false;
+ if (other.getCustomerManagedS3() == null ^ this.getCustomerManagedS3() == null)
+ return false;
+ if (other.getCustomerManagedS3() != null && other.getCustomerManagedS3().equals(this.getCustomerManagedS3()) == false)
+ return false;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ hashCode = prime * hashCode + ((getServiceManagedS3() == null) ? 0 : getServiceManagedS3().hashCode());
+ hashCode = prime * hashCode + ((getCustomerManagedS3() == null) ? 0 : getCustomerManagedS3().hashCode());
+ return hashCode;
+ }
+
+ @Override
+ public DatastoreStorageSummary clone() {
+ try {
+ return (DatastoreStorageSummary) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.DatastoreStorageSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreSummary.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreSummary.java
index 81521f4dcc2c..679fbd23beb8 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreSummary.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatastoreSummary.java
@@ -34,6 +34,12 @@ public class DatastoreSummary implements Serializable, Cloneable, StructuredPojo
*
*/
private String datastoreName;
+ /**
+ *
+ * Where data store data is stored.
+ *
+ */
+ private DatastoreStorageSummary datastoreStorage;
/**
*
* The status of the data store.
@@ -93,6 +99,46 @@ public DatastoreSummary withDatastoreName(String datastoreName) {
return this;
}
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @param datastoreStorage
+ * Where data store data is stored.
+ */
+
+ public void setDatastoreStorage(DatastoreStorageSummary datastoreStorage) {
+ this.datastoreStorage = datastoreStorage;
+ }
+
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @return Where data store data is stored.
+ */
+
+ public DatastoreStorageSummary getDatastoreStorage() {
+ return this.datastoreStorage;
+ }
+
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @param datastoreStorage
+ * Where data store data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public DatastoreSummary withDatastoreStorage(DatastoreStorageSummary datastoreStorage) {
+ setDatastoreStorage(datastoreStorage);
+ return this;
+ }
+
/**
*
* The status of the data store.
@@ -246,6 +292,8 @@ public String toString() {
sb.append("{");
if (getDatastoreName() != null)
sb.append("DatastoreName: ").append(getDatastoreName()).append(",");
+ if (getDatastoreStorage() != null)
+ sb.append("DatastoreStorage: ").append(getDatastoreStorage()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getCreationTime() != null)
@@ -270,6 +318,10 @@ public boolean equals(Object obj) {
return false;
if (other.getDatastoreName() != null && other.getDatastoreName().equals(this.getDatastoreName()) == false)
return false;
+ if (other.getDatastoreStorage() == null ^ this.getDatastoreStorage() == null)
+ return false;
+ if (other.getDatastoreStorage() != null && other.getDatastoreStorage().equals(this.getDatastoreStorage()) == false)
+ return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
@@ -291,6 +343,7 @@ public int hashCode() {
int hashCode = 1;
hashCode = prime * hashCode + ((getDatastoreName() == null) ? 0 : getDatastoreName().hashCode());
+ hashCode = prime * hashCode + ((getDatastoreStorage() == null) ? 0 : getDatastoreStorage().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLastUpdateTime() == null) ? 0 : getLastUpdateTime().hashCode());
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedChannelS3Storage.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedChannelS3Storage.java
new file mode 100644
index 000000000000..9cd53d5b9c51
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedChannelS3Storage.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Use this to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @see AWS API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ServiceManagedChannelS3Storage implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ * 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("{");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof ServiceManagedChannelS3Storage == false)
+ return false;
+ ServiceManagedChannelS3Storage other = (ServiceManagedChannelS3Storage) obj;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ return hashCode;
+ }
+
+ @Override
+ public ServiceManagedChannelS3Storage clone() {
+ try {
+ return (ServiceManagedChannelS3Storage) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.ServiceManagedChannelS3StorageMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedChannelS3StorageSummary.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedChannelS3StorageSummary.java
new file mode 100644
index 000000000000..ff226d0eae1f
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedChannelS3StorageSummary.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Used to store channel data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @see AWS API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ServiceManagedChannelS3StorageSummary implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ * 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("{");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof ServiceManagedChannelS3StorageSummary == false)
+ return false;
+ ServiceManagedChannelS3StorageSummary other = (ServiceManagedChannelS3StorageSummary) obj;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ return hashCode;
+ }
+
+ @Override
+ public ServiceManagedChannelS3StorageSummary clone() {
+ try {
+ return (ServiceManagedChannelS3StorageSummary) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.ServiceManagedChannelS3StorageSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedDatastoreS3Storage.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedDatastoreS3Storage.java
new file mode 100644
index 000000000000..8d2e49b52cb2
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedDatastoreS3Storage.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Use this to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @see AWS API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ServiceManagedDatastoreS3Storage implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ * 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("{");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof ServiceManagedDatastoreS3Storage == false)
+ return false;
+ ServiceManagedDatastoreS3Storage other = (ServiceManagedDatastoreS3Storage) obj;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ return hashCode;
+ }
+
+ @Override
+ public ServiceManagedDatastoreS3Storage clone() {
+ try {
+ return (ServiceManagedDatastoreS3Storage) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.ServiceManagedDatastoreS3StorageMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedDatastoreS3StorageSummary.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedDatastoreS3StorageSummary.java
new file mode 100644
index 000000000000..71b4451c44f8
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/ServiceManagedDatastoreS3StorageSummary.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model;
+
+import java.io.Serializable;
+import javax.annotation.Generated;
+import com.amazonaws.protocol.StructuredPojo;
+import com.amazonaws.protocol.ProtocolMarshaller;
+
+/**
+ *
+ * Used to store data store data in an S3 bucket managed by the AWS IoT Analytics service.
+ *
+ *
+ * @see AWS API Documentation
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ServiceManagedDatastoreS3StorageSummary implements Serializable, Cloneable, StructuredPojo {
+
+ /**
+ * 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("{");
+ sb.append("}");
+ return sb.toString();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+
+ if (obj instanceof ServiceManagedDatastoreS3StorageSummary == false)
+ return false;
+ ServiceManagedDatastoreS3StorageSummary other = (ServiceManagedDatastoreS3StorageSummary) obj;
+ return true;
+ }
+
+ @Override
+ public int hashCode() {
+ final int prime = 31;
+ int hashCode = 1;
+
+ return hashCode;
+ }
+
+ @Override
+ public ServiceManagedDatastoreS3StorageSummary clone() {
+ try {
+ return (ServiceManagedDatastoreS3StorageSummary) super.clone();
+ } catch (CloneNotSupportedException e) {
+ throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
+ }
+ }
+
+ @com.amazonaws.annotation.SdkInternalApi
+ @Override
+ public void marshall(ProtocolMarshaller protocolMarshaller) {
+ com.amazonaws.services.iotanalytics.model.transform.ServiceManagedDatastoreS3StorageSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/UpdateChannelRequest.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/UpdateChannelRequest.java
index 07d6dad6ad15..93b9042109c3 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/UpdateChannelRequest.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/UpdateChannelRequest.java
@@ -31,6 +31,12 @@ public class UpdateChannelRequest extends com.amazonaws.AmazonWebServiceRequest
*
*/
private String channelName;
+ /**
+ *
+ * Where channel data is stored.
+ *
+ */
+ private ChannelStorage channelStorage;
/**
*
* How long, in days, message data is kept for the channel.
@@ -78,6 +84,46 @@ public UpdateChannelRequest withChannelName(String channelName) {
return this;
}
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @param channelStorage
+ * Where channel data is stored.
+ */
+
+ public void setChannelStorage(ChannelStorage channelStorage) {
+ this.channelStorage = channelStorage;
+ }
+
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @return Where channel data is stored.
+ */
+
+ public ChannelStorage getChannelStorage() {
+ return this.channelStorage;
+ }
+
+ /**
+ *
+ * Where channel data is stored.
+ *
+ *
+ * @param channelStorage
+ * Where channel data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public UpdateChannelRequest withChannelStorage(ChannelStorage channelStorage) {
+ setChannelStorage(channelStorage);
+ return this;
+ }
+
/**
*
* How long, in days, message data is kept for the channel.
@@ -132,6 +178,8 @@ public String toString() {
sb.append("{");
if (getChannelName() != null)
sb.append("ChannelName: ").append(getChannelName()).append(",");
+ if (getChannelStorage() != null)
+ sb.append("ChannelStorage: ").append(getChannelStorage()).append(",");
if (getRetentionPeriod() != null)
sb.append("RetentionPeriod: ").append(getRetentionPeriod());
sb.append("}");
@@ -152,6 +200,10 @@ public boolean equals(Object obj) {
return false;
if (other.getChannelName() != null && other.getChannelName().equals(this.getChannelName()) == false)
return false;
+ if (other.getChannelStorage() == null ^ this.getChannelStorage() == null)
+ return false;
+ if (other.getChannelStorage() != null && other.getChannelStorage().equals(this.getChannelStorage()) == false)
+ return false;
if (other.getRetentionPeriod() == null ^ this.getRetentionPeriod() == null)
return false;
if (other.getRetentionPeriod() != null && other.getRetentionPeriod().equals(this.getRetentionPeriod()) == false)
@@ -165,6 +217,7 @@ public int hashCode() {
int hashCode = 1;
hashCode = prime * hashCode + ((getChannelName() == null) ? 0 : getChannelName().hashCode());
+ hashCode = prime * hashCode + ((getChannelStorage() == null) ? 0 : getChannelStorage().hashCode());
hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode());
return hashCode;
}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/UpdateDatastoreRequest.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/UpdateDatastoreRequest.java
index 7c19477501e2..55bf2aa25afe 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/UpdateDatastoreRequest.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/UpdateDatastoreRequest.java
@@ -37,6 +37,12 @@ public class UpdateDatastoreRequest extends com.amazonaws.AmazonWebServiceReques
*
*/
private RetentionPeriod retentionPeriod;
+ /**
+ *
+ * Where data store data is stored.
+ *
+ */
+ private DatastoreStorage datastoreStorage;
/**
*
@@ -118,6 +124,46 @@ public UpdateDatastoreRequest withRetentionPeriod(RetentionPeriod retentionPerio
return this;
}
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @param datastoreStorage
+ * Where data store data is stored.
+ */
+
+ public void setDatastoreStorage(DatastoreStorage datastoreStorage) {
+ this.datastoreStorage = datastoreStorage;
+ }
+
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @return Where data store data is stored.
+ */
+
+ public DatastoreStorage getDatastoreStorage() {
+ return this.datastoreStorage;
+ }
+
+ /**
+ *
+ * Where data store data is stored.
+ *
+ *
+ * @param datastoreStorage
+ * Where data store data is stored.
+ * @return Returns a reference to this object so that method calls can be chained together.
+ */
+
+ public UpdateDatastoreRequest withDatastoreStorage(DatastoreStorage datastoreStorage) {
+ setDatastoreStorage(datastoreStorage);
+ 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.
@@ -133,7 +179,9 @@ public String toString() {
if (getDatastoreName() != null)
sb.append("DatastoreName: ").append(getDatastoreName()).append(",");
if (getRetentionPeriod() != null)
- sb.append("RetentionPeriod: ").append(getRetentionPeriod());
+ sb.append("RetentionPeriod: ").append(getRetentionPeriod()).append(",");
+ if (getDatastoreStorage() != null)
+ sb.append("DatastoreStorage: ").append(getDatastoreStorage());
sb.append("}");
return sb.toString();
}
@@ -156,6 +204,10 @@ public boolean equals(Object obj) {
return false;
if (other.getRetentionPeriod() != null && other.getRetentionPeriod().equals(this.getRetentionPeriod()) == false)
return false;
+ if (other.getDatastoreStorage() == null ^ this.getDatastoreStorage() == null)
+ return false;
+ if (other.getDatastoreStorage() != null && other.getDatastoreStorage().equals(this.getDatastoreStorage()) == false)
+ return false;
return true;
}
@@ -166,6 +218,7 @@ public int hashCode() {
hashCode = prime * hashCode + ((getDatastoreName() == null) ? 0 : getDatastoreName().hashCode());
hashCode = prime * hashCode + ((getRetentionPeriod() == null) ? 0 : getRetentionPeriod().hashCode());
+ hashCode = prime * hashCode + ((getDatastoreStorage() == null) ? 0 : getDatastoreStorage().hashCode());
return hashCode;
}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelJsonUnmarshaller.java
index 6760133f179a..b5cce151822a 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelJsonUnmarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelJsonUnmarshaller.java
@@ -52,6 +52,10 @@ public Channel unmarshall(JsonUnmarshallerContext context) throws Exception {
context.nextToken();
channel.setName(context.getUnmarshaller(String.class).unmarshall(context));
}
+ if (context.testExpression("storage", targetDepth)) {
+ context.nextToken();
+ channel.setStorage(ChannelStorageJsonUnmarshaller.getInstance().unmarshall(context));
+ }
if (context.testExpression("arn", targetDepth)) {
context.nextToken();
channel.setArn(context.getUnmarshaller(String.class).unmarshall(context));
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelMarshaller.java
index 9cbe4bd66fe4..3b5ba5387597 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelMarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelMarshaller.java
@@ -29,6 +29,8 @@ public class ChannelMarshaller {
private static final MarshallingInfo NAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("name").build();
+ private static final MarshallingInfo STORAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("storage").build();
private static final MarshallingInfo ARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("arn").build();
private static final MarshallingInfo STATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
@@ -57,6 +59,7 @@ public void marshall(Channel channel, ProtocolMarshaller protocolMarshaller) {
try {
protocolMarshaller.marshall(channel.getName(), NAME_BINDING);
+ protocolMarshaller.marshall(channel.getStorage(), STORAGE_BINDING);
protocolMarshaller.marshall(channel.getArn(), ARN_BINDING);
protocolMarshaller.marshall(channel.getStatus(), STATUS_BINDING);
protocolMarshaller.marshall(channel.getRetentionPeriod(), RETENTIONPERIOD_BINDING);
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageJsonUnmarshaller.java
new file mode 100644
index 000000000000..a236faaa78c2
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageJsonUnmarshaller.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * ChannelStorage JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ChannelStorageJsonUnmarshaller implements Unmarshaller {
+
+ public ChannelStorage unmarshall(JsonUnmarshallerContext context) throws Exception {
+ ChannelStorage channelStorage = new ChannelStorage();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ if (context.testExpression("serviceManagedS3", targetDepth)) {
+ context.nextToken();
+ channelStorage.setServiceManagedS3(ServiceManagedChannelS3StorageJsonUnmarshaller.getInstance().unmarshall(context));
+ }
+ if (context.testExpression("customerManagedS3", targetDepth)) {
+ context.nextToken();
+ channelStorage.setCustomerManagedS3(CustomerManagedChannelS3StorageJsonUnmarshaller.getInstance().unmarshall(context));
+ }
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return channelStorage;
+ }
+
+ private static ChannelStorageJsonUnmarshaller instance;
+
+ public static ChannelStorageJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new ChannelStorageJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageMarshaller.java
new file mode 100644
index 000000000000..9bced68c409e
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageMarshaller.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * ChannelStorageMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class ChannelStorageMarshaller {
+
+ private static final MarshallingInfo SERVICEMANAGEDS3_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("serviceManagedS3").build();
+ private static final MarshallingInfo CUSTOMERMANAGEDS3_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("customerManagedS3").build();
+
+ private static final ChannelStorageMarshaller instance = new ChannelStorageMarshaller();
+
+ public static ChannelStorageMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(ChannelStorage channelStorage, ProtocolMarshaller protocolMarshaller) {
+
+ if (channelStorage == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ protocolMarshaller.marshall(channelStorage.getServiceManagedS3(), SERVICEMANAGEDS3_BINDING);
+ protocolMarshaller.marshall(channelStorage.getCustomerManagedS3(), CUSTOMERMANAGEDS3_BINDING);
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageSummaryJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageSummaryJsonUnmarshaller.java
new file mode 100644
index 000000000000..eebd121dc924
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageSummaryJsonUnmarshaller.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * ChannelStorageSummary JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ChannelStorageSummaryJsonUnmarshaller implements Unmarshaller {
+
+ public ChannelStorageSummary unmarshall(JsonUnmarshallerContext context) throws Exception {
+ ChannelStorageSummary channelStorageSummary = new ChannelStorageSummary();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ if (context.testExpression("serviceManagedS3", targetDepth)) {
+ context.nextToken();
+ channelStorageSummary.setServiceManagedS3(ServiceManagedChannelS3StorageSummaryJsonUnmarshaller.getInstance().unmarshall(context));
+ }
+ if (context.testExpression("customerManagedS3", targetDepth)) {
+ context.nextToken();
+ channelStorageSummary.setCustomerManagedS3(CustomerManagedChannelS3StorageSummaryJsonUnmarshaller.getInstance().unmarshall(context));
+ }
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return channelStorageSummary;
+ }
+
+ private static ChannelStorageSummaryJsonUnmarshaller instance;
+
+ public static ChannelStorageSummaryJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new ChannelStorageSummaryJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageSummaryMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageSummaryMarshaller.java
new file mode 100644
index 000000000000..39011070cfbd
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelStorageSummaryMarshaller.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * ChannelStorageSummaryMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class ChannelStorageSummaryMarshaller {
+
+ private static final MarshallingInfo SERVICEMANAGEDS3_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("serviceManagedS3").build();
+ private static final MarshallingInfo CUSTOMERMANAGEDS3_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("customerManagedS3").build();
+
+ private static final ChannelStorageSummaryMarshaller instance = new ChannelStorageSummaryMarshaller();
+
+ public static ChannelStorageSummaryMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(ChannelStorageSummary channelStorageSummary, ProtocolMarshaller protocolMarshaller) {
+
+ if (channelStorageSummary == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ protocolMarshaller.marshall(channelStorageSummary.getServiceManagedS3(), SERVICEMANAGEDS3_BINDING);
+ protocolMarshaller.marshall(channelStorageSummary.getCustomerManagedS3(), CUSTOMERMANAGEDS3_BINDING);
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelSummaryJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelSummaryJsonUnmarshaller.java
index 68dfbe4356da..bcb21a11ad11 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelSummaryJsonUnmarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelSummaryJsonUnmarshaller.java
@@ -52,6 +52,10 @@ public ChannelSummary unmarshall(JsonUnmarshallerContext context) throws Excepti
context.nextToken();
channelSummary.setChannelName(context.getUnmarshaller(String.class).unmarshall(context));
}
+ if (context.testExpression("channelStorage", targetDepth)) {
+ context.nextToken();
+ channelSummary.setChannelStorage(ChannelStorageSummaryJsonUnmarshaller.getInstance().unmarshall(context));
+ }
if (context.testExpression("status", targetDepth)) {
context.nextToken();
channelSummary.setStatus(context.getUnmarshaller(String.class).unmarshall(context));
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelSummaryMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelSummaryMarshaller.java
index 7ab57c3ac05e..3325099b073b 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelSummaryMarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ChannelSummaryMarshaller.java
@@ -29,6 +29,8 @@ public class ChannelSummaryMarshaller {
private static final MarshallingInfo CHANNELNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("channelName").build();
+ private static final MarshallingInfo CHANNELSTORAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("channelStorage").build();
private static final MarshallingInfo STATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("status").build();
private static final MarshallingInfo CREATIONTIME_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
@@ -53,6 +55,7 @@ public void marshall(ChannelSummary channelSummary, ProtocolMarshaller protocolM
try {
protocolMarshaller.marshall(channelSummary.getChannelName(), CHANNELNAME_BINDING);
+ protocolMarshaller.marshall(channelSummary.getChannelStorage(), CHANNELSTORAGE_BINDING);
protocolMarshaller.marshall(channelSummary.getStatus(), STATUS_BINDING);
protocolMarshaller.marshall(channelSummary.getCreationTime(), CREATIONTIME_BINDING);
protocolMarshaller.marshall(channelSummary.getLastUpdateTime(), LASTUPDATETIME_BINDING);
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CreateChannelRequestMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CreateChannelRequestMarshaller.java
index afca59a8321e..9a6c7522a017 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CreateChannelRequestMarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CreateChannelRequestMarshaller.java
@@ -30,6 +30,8 @@ public class CreateChannelRequestMarshaller {
private static final MarshallingInfo CHANNELNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("channelName").build();
+ private static final MarshallingInfo CHANNELSTORAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("channelStorage").build();
private static final MarshallingInfo RETENTIONPERIOD_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("retentionPeriod").build();
private static final MarshallingInfo TAGS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
@@ -52,6 +54,7 @@ public void marshall(CreateChannelRequest createChannelRequest, ProtocolMarshall
try {
protocolMarshaller.marshall(createChannelRequest.getChannelName(), CHANNELNAME_BINDING);
+ protocolMarshaller.marshall(createChannelRequest.getChannelStorage(), CHANNELSTORAGE_BINDING);
protocolMarshaller.marshall(createChannelRequest.getRetentionPeriod(), RETENTIONPERIOD_BINDING);
protocolMarshaller.marshall(createChannelRequest.getTags(), TAGS_BINDING);
} catch (Exception e) {
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CreateDatastoreRequestMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CreateDatastoreRequestMarshaller.java
index a79b6b6f9efe..1e17bf124aa1 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CreateDatastoreRequestMarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CreateDatastoreRequestMarshaller.java
@@ -30,6 +30,8 @@ public class CreateDatastoreRequestMarshaller {
private static final MarshallingInfo DATASTORENAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("datastoreName").build();
+ private static final MarshallingInfo DATASTORESTORAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("datastoreStorage").build();
private static final MarshallingInfo RETENTIONPERIOD_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("retentionPeriod").build();
private static final MarshallingInfo TAGS_BINDING = MarshallingInfo.builder(MarshallingType.LIST).marshallLocation(MarshallLocation.PAYLOAD)
@@ -52,6 +54,7 @@ public void marshall(CreateDatastoreRequest createDatastoreRequest, ProtocolMars
try {
protocolMarshaller.marshall(createDatastoreRequest.getDatastoreName(), DATASTORENAME_BINDING);
+ protocolMarshaller.marshall(createDatastoreRequest.getDatastoreStorage(), DATASTORESTORAGE_BINDING);
protocolMarshaller.marshall(createDatastoreRequest.getRetentionPeriod(), RETENTIONPERIOD_BINDING);
protocolMarshaller.marshall(createDatastoreRequest.getTags(), TAGS_BINDING);
} catch (Exception e) {
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageJsonUnmarshaller.java
new file mode 100644
index 000000000000..7d303fbc2d0d
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageJsonUnmarshaller.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * CustomerManagedChannelS3Storage JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class CustomerManagedChannelS3StorageJsonUnmarshaller implements Unmarshaller {
+
+ public CustomerManagedChannelS3Storage unmarshall(JsonUnmarshallerContext context) throws Exception {
+ CustomerManagedChannelS3Storage customerManagedChannelS3Storage = new CustomerManagedChannelS3Storage();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ if (context.testExpression("bucket", targetDepth)) {
+ context.nextToken();
+ customerManagedChannelS3Storage.setBucket(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ if (context.testExpression("keyPrefix", targetDepth)) {
+ context.nextToken();
+ customerManagedChannelS3Storage.setKeyPrefix(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ if (context.testExpression("roleArn", targetDepth)) {
+ context.nextToken();
+ customerManagedChannelS3Storage.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return customerManagedChannelS3Storage;
+ }
+
+ private static CustomerManagedChannelS3StorageJsonUnmarshaller instance;
+
+ public static CustomerManagedChannelS3StorageJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new CustomerManagedChannelS3StorageJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageMarshaller.java
new file mode 100644
index 000000000000..07847915a50a
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageMarshaller.java
@@ -0,0 +1,61 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * CustomerManagedChannelS3StorageMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class CustomerManagedChannelS3StorageMarshaller {
+
+ private static final MarshallingInfo BUCKET_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("bucket").build();
+ private static final MarshallingInfo KEYPREFIX_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("keyPrefix").build();
+ private static final MarshallingInfo ROLEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("roleArn").build();
+
+ private static final CustomerManagedChannelS3StorageMarshaller instance = new CustomerManagedChannelS3StorageMarshaller();
+
+ public static CustomerManagedChannelS3StorageMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(CustomerManagedChannelS3Storage customerManagedChannelS3Storage, ProtocolMarshaller protocolMarshaller) {
+
+ if (customerManagedChannelS3Storage == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ protocolMarshaller.marshall(customerManagedChannelS3Storage.getBucket(), BUCKET_BINDING);
+ protocolMarshaller.marshall(customerManagedChannelS3Storage.getKeyPrefix(), KEYPREFIX_BINDING);
+ protocolMarshaller.marshall(customerManagedChannelS3Storage.getRoleArn(), ROLEARN_BINDING);
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageSummaryJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageSummaryJsonUnmarshaller.java
new file mode 100644
index 000000000000..0b0123c2f514
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageSummaryJsonUnmarshaller.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * CustomerManagedChannelS3StorageSummary JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class CustomerManagedChannelS3StorageSummaryJsonUnmarshaller implements Unmarshaller {
+
+ public CustomerManagedChannelS3StorageSummary unmarshall(JsonUnmarshallerContext context) throws Exception {
+ CustomerManagedChannelS3StorageSummary customerManagedChannelS3StorageSummary = new CustomerManagedChannelS3StorageSummary();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ if (context.testExpression("bucket", targetDepth)) {
+ context.nextToken();
+ customerManagedChannelS3StorageSummary.setBucket(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ if (context.testExpression("keyPrefix", targetDepth)) {
+ context.nextToken();
+ customerManagedChannelS3StorageSummary.setKeyPrefix(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ if (context.testExpression("roleArn", targetDepth)) {
+ context.nextToken();
+ customerManagedChannelS3StorageSummary.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return customerManagedChannelS3StorageSummary;
+ }
+
+ private static CustomerManagedChannelS3StorageSummaryJsonUnmarshaller instance;
+
+ public static CustomerManagedChannelS3StorageSummaryJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new CustomerManagedChannelS3StorageSummaryJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageSummaryMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageSummaryMarshaller.java
new file mode 100644
index 000000000000..7af5f09dfe4e
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedChannelS3StorageSummaryMarshaller.java
@@ -0,0 +1,61 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * CustomerManagedChannelS3StorageSummaryMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class CustomerManagedChannelS3StorageSummaryMarshaller {
+
+ private static final MarshallingInfo BUCKET_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("bucket").build();
+ private static final MarshallingInfo KEYPREFIX_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("keyPrefix").build();
+ private static final MarshallingInfo ROLEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("roleArn").build();
+
+ private static final CustomerManagedChannelS3StorageSummaryMarshaller instance = new CustomerManagedChannelS3StorageSummaryMarshaller();
+
+ public static CustomerManagedChannelS3StorageSummaryMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(CustomerManagedChannelS3StorageSummary customerManagedChannelS3StorageSummary, ProtocolMarshaller protocolMarshaller) {
+
+ if (customerManagedChannelS3StorageSummary == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ protocolMarshaller.marshall(customerManagedChannelS3StorageSummary.getBucket(), BUCKET_BINDING);
+ protocolMarshaller.marshall(customerManagedChannelS3StorageSummary.getKeyPrefix(), KEYPREFIX_BINDING);
+ protocolMarshaller.marshall(customerManagedChannelS3StorageSummary.getRoleArn(), ROLEARN_BINDING);
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageJsonUnmarshaller.java
new file mode 100644
index 000000000000..dea175312d70
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageJsonUnmarshaller.java
@@ -0,0 +1,82 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * CustomerManagedDatastoreS3Storage JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class CustomerManagedDatastoreS3StorageJsonUnmarshaller implements Unmarshaller {
+
+ public CustomerManagedDatastoreS3Storage unmarshall(JsonUnmarshallerContext context) throws Exception {
+ CustomerManagedDatastoreS3Storage customerManagedDatastoreS3Storage = new CustomerManagedDatastoreS3Storage();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ if (context.testExpression("bucket", targetDepth)) {
+ context.nextToken();
+ customerManagedDatastoreS3Storage.setBucket(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ if (context.testExpression("keyPrefix", targetDepth)) {
+ context.nextToken();
+ customerManagedDatastoreS3Storage.setKeyPrefix(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ if (context.testExpression("roleArn", targetDepth)) {
+ context.nextToken();
+ customerManagedDatastoreS3Storage.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return customerManagedDatastoreS3Storage;
+ }
+
+ private static CustomerManagedDatastoreS3StorageJsonUnmarshaller instance;
+
+ public static CustomerManagedDatastoreS3StorageJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new CustomerManagedDatastoreS3StorageJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageMarshaller.java
new file mode 100644
index 000000000000..a7644b00e09e
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageMarshaller.java
@@ -0,0 +1,61 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * CustomerManagedDatastoreS3StorageMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class CustomerManagedDatastoreS3StorageMarshaller {
+
+ private static final MarshallingInfo BUCKET_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("bucket").build();
+ private static final MarshallingInfo KEYPREFIX_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("keyPrefix").build();
+ private static final MarshallingInfo ROLEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("roleArn").build();
+
+ private static final CustomerManagedDatastoreS3StorageMarshaller instance = new CustomerManagedDatastoreS3StorageMarshaller();
+
+ public static CustomerManagedDatastoreS3StorageMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(CustomerManagedDatastoreS3Storage customerManagedDatastoreS3Storage, ProtocolMarshaller protocolMarshaller) {
+
+ if (customerManagedDatastoreS3Storage == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ protocolMarshaller.marshall(customerManagedDatastoreS3Storage.getBucket(), BUCKET_BINDING);
+ protocolMarshaller.marshall(customerManagedDatastoreS3Storage.getKeyPrefix(), KEYPREFIX_BINDING);
+ protocolMarshaller.marshall(customerManagedDatastoreS3Storage.getRoleArn(), ROLEARN_BINDING);
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageSummaryJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageSummaryJsonUnmarshaller.java
new file mode 100644
index 000000000000..1bcf27a12a1a
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageSummaryJsonUnmarshaller.java
@@ -0,0 +1,83 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * CustomerManagedDatastoreS3StorageSummary JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class CustomerManagedDatastoreS3StorageSummaryJsonUnmarshaller implements
+ Unmarshaller {
+
+ public CustomerManagedDatastoreS3StorageSummary unmarshall(JsonUnmarshallerContext context) throws Exception {
+ CustomerManagedDatastoreS3StorageSummary customerManagedDatastoreS3StorageSummary = new CustomerManagedDatastoreS3StorageSummary();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ if (context.testExpression("bucket", targetDepth)) {
+ context.nextToken();
+ customerManagedDatastoreS3StorageSummary.setBucket(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ if (context.testExpression("keyPrefix", targetDepth)) {
+ context.nextToken();
+ customerManagedDatastoreS3StorageSummary.setKeyPrefix(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ if (context.testExpression("roleArn", targetDepth)) {
+ context.nextToken();
+ customerManagedDatastoreS3StorageSummary.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context));
+ }
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return customerManagedDatastoreS3StorageSummary;
+ }
+
+ private static CustomerManagedDatastoreS3StorageSummaryJsonUnmarshaller instance;
+
+ public static CustomerManagedDatastoreS3StorageSummaryJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new CustomerManagedDatastoreS3StorageSummaryJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageSummaryMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageSummaryMarshaller.java
new file mode 100644
index 000000000000..8e9879e4c315
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/CustomerManagedDatastoreS3StorageSummaryMarshaller.java
@@ -0,0 +1,61 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * CustomerManagedDatastoreS3StorageSummaryMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class CustomerManagedDatastoreS3StorageSummaryMarshaller {
+
+ private static final MarshallingInfo BUCKET_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("bucket").build();
+ private static final MarshallingInfo KEYPREFIX_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("keyPrefix").build();
+ private static final MarshallingInfo ROLEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
+ .marshallLocationName("roleArn").build();
+
+ private static final CustomerManagedDatastoreS3StorageSummaryMarshaller instance = new CustomerManagedDatastoreS3StorageSummaryMarshaller();
+
+ public static CustomerManagedDatastoreS3StorageSummaryMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(CustomerManagedDatastoreS3StorageSummary customerManagedDatastoreS3StorageSummary, ProtocolMarshaller protocolMarshaller) {
+
+ if (customerManagedDatastoreS3StorageSummary == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ protocolMarshaller.marshall(customerManagedDatastoreS3StorageSummary.getBucket(), BUCKET_BINDING);
+ protocolMarshaller.marshall(customerManagedDatastoreS3StorageSummary.getKeyPrefix(), KEYPREFIX_BINDING);
+ protocolMarshaller.marshall(customerManagedDatastoreS3StorageSummary.getRoleArn(), ROLEARN_BINDING);
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreJsonUnmarshaller.java
index ea0ad4db2e6e..dc14ce798b66 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreJsonUnmarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreJsonUnmarshaller.java
@@ -52,6 +52,10 @@ public Datastore unmarshall(JsonUnmarshallerContext context) throws Exception {
context.nextToken();
datastore.setName(context.getUnmarshaller(String.class).unmarshall(context));
}
+ if (context.testExpression("storage", targetDepth)) {
+ context.nextToken();
+ datastore.setStorage(DatastoreStorageJsonUnmarshaller.getInstance().unmarshall(context));
+ }
if (context.testExpression("arn", targetDepth)) {
context.nextToken();
datastore.setArn(context.getUnmarshaller(String.class).unmarshall(context));
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreMarshaller.java
index 6f7dc1a2428c..ba948bd05cff 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreMarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreMarshaller.java
@@ -29,6 +29,8 @@ public class DatastoreMarshaller {
private static final MarshallingInfo NAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("name").build();
+ private static final MarshallingInfo STORAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("storage").build();
private static final MarshallingInfo ARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("arn").build();
private static final MarshallingInfo STATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
@@ -57,6 +59,7 @@ public void marshall(Datastore datastore, ProtocolMarshaller protocolMarshaller)
try {
protocolMarshaller.marshall(datastore.getName(), NAME_BINDING);
+ protocolMarshaller.marshall(datastore.getStorage(), STORAGE_BINDING);
protocolMarshaller.marshall(datastore.getArn(), ARN_BINDING);
protocolMarshaller.marshall(datastore.getStatus(), STATUS_BINDING);
protocolMarshaller.marshall(datastore.getRetentionPeriod(), RETENTIONPERIOD_BINDING);
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageJsonUnmarshaller.java
new file mode 100644
index 000000000000..e6cf60d0960f
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageJsonUnmarshaller.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * DatastoreStorage JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class DatastoreStorageJsonUnmarshaller implements Unmarshaller {
+
+ public DatastoreStorage unmarshall(JsonUnmarshallerContext context) throws Exception {
+ DatastoreStorage datastoreStorage = new DatastoreStorage();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ if (context.testExpression("serviceManagedS3", targetDepth)) {
+ context.nextToken();
+ datastoreStorage.setServiceManagedS3(ServiceManagedDatastoreS3StorageJsonUnmarshaller.getInstance().unmarshall(context));
+ }
+ if (context.testExpression("customerManagedS3", targetDepth)) {
+ context.nextToken();
+ datastoreStorage.setCustomerManagedS3(CustomerManagedDatastoreS3StorageJsonUnmarshaller.getInstance().unmarshall(context));
+ }
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return datastoreStorage;
+ }
+
+ private static DatastoreStorageJsonUnmarshaller instance;
+
+ public static DatastoreStorageJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new DatastoreStorageJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageMarshaller.java
new file mode 100644
index 000000000000..c1f83b45e2fb
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageMarshaller.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * DatastoreStorageMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class DatastoreStorageMarshaller {
+
+ private static final MarshallingInfo SERVICEMANAGEDS3_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("serviceManagedS3").build();
+ private static final MarshallingInfo CUSTOMERMANAGEDS3_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("customerManagedS3").build();
+
+ private static final DatastoreStorageMarshaller instance = new DatastoreStorageMarshaller();
+
+ public static DatastoreStorageMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(DatastoreStorage datastoreStorage, ProtocolMarshaller protocolMarshaller) {
+
+ if (datastoreStorage == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ protocolMarshaller.marshall(datastoreStorage.getServiceManagedS3(), SERVICEMANAGEDS3_BINDING);
+ protocolMarshaller.marshall(datastoreStorage.getCustomerManagedS3(), CUSTOMERMANAGEDS3_BINDING);
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageSummaryJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageSummaryJsonUnmarshaller.java
new file mode 100644
index 000000000000..a1ca56df5a76
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageSummaryJsonUnmarshaller.java
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * DatastoreStorageSummary JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class DatastoreStorageSummaryJsonUnmarshaller implements Unmarshaller {
+
+ public DatastoreStorageSummary unmarshall(JsonUnmarshallerContext context) throws Exception {
+ DatastoreStorageSummary datastoreStorageSummary = new DatastoreStorageSummary();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ if (context.testExpression("serviceManagedS3", targetDepth)) {
+ context.nextToken();
+ datastoreStorageSummary.setServiceManagedS3(ServiceManagedDatastoreS3StorageSummaryJsonUnmarshaller.getInstance().unmarshall(context));
+ }
+ if (context.testExpression("customerManagedS3", targetDepth)) {
+ context.nextToken();
+ datastoreStorageSummary.setCustomerManagedS3(CustomerManagedDatastoreS3StorageSummaryJsonUnmarshaller.getInstance().unmarshall(context));
+ }
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return datastoreStorageSummary;
+ }
+
+ private static DatastoreStorageSummaryJsonUnmarshaller instance;
+
+ public static DatastoreStorageSummaryJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new DatastoreStorageSummaryJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageSummaryMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageSummaryMarshaller.java
new file mode 100644
index 000000000000..195efc9945f1
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreStorageSummaryMarshaller.java
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * DatastoreStorageSummaryMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class DatastoreStorageSummaryMarshaller {
+
+ private static final MarshallingInfo SERVICEMANAGEDS3_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("serviceManagedS3").build();
+ private static final MarshallingInfo CUSTOMERMANAGEDS3_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("customerManagedS3").build();
+
+ private static final DatastoreStorageSummaryMarshaller instance = new DatastoreStorageSummaryMarshaller();
+
+ public static DatastoreStorageSummaryMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(DatastoreStorageSummary datastoreStorageSummary, ProtocolMarshaller protocolMarshaller) {
+
+ if (datastoreStorageSummary == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ protocolMarshaller.marshall(datastoreStorageSummary.getServiceManagedS3(), SERVICEMANAGEDS3_BINDING);
+ protocolMarshaller.marshall(datastoreStorageSummary.getCustomerManagedS3(), CUSTOMERMANAGEDS3_BINDING);
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreSummaryJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreSummaryJsonUnmarshaller.java
index 9a62a558b651..4f88f52730cc 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreSummaryJsonUnmarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreSummaryJsonUnmarshaller.java
@@ -52,6 +52,10 @@ public DatastoreSummary unmarshall(JsonUnmarshallerContext context) throws Excep
context.nextToken();
datastoreSummary.setDatastoreName(context.getUnmarshaller(String.class).unmarshall(context));
}
+ if (context.testExpression("datastoreStorage", targetDepth)) {
+ context.nextToken();
+ datastoreSummary.setDatastoreStorage(DatastoreStorageSummaryJsonUnmarshaller.getInstance().unmarshall(context));
+ }
if (context.testExpression("status", targetDepth)) {
context.nextToken();
datastoreSummary.setStatus(context.getUnmarshaller(String.class).unmarshall(context));
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreSummaryMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreSummaryMarshaller.java
index d789e616035f..1984aa9afd50 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreSummaryMarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/DatastoreSummaryMarshaller.java
@@ -29,6 +29,8 @@ public class DatastoreSummaryMarshaller {
private static final MarshallingInfo DATASTORENAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("datastoreName").build();
+ private static final MarshallingInfo DATASTORESTORAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("datastoreStorage").build();
private static final MarshallingInfo STATUS_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
.marshallLocationName("status").build();
private static final MarshallingInfo CREATIONTIME_BINDING = MarshallingInfo.builder(MarshallingType.DATE)
@@ -53,6 +55,7 @@ public void marshall(DatastoreSummary datastoreSummary, ProtocolMarshaller proto
try {
protocolMarshaller.marshall(datastoreSummary.getDatastoreName(), DATASTORENAME_BINDING);
+ protocolMarshaller.marshall(datastoreSummary.getDatastoreStorage(), DATASTORESTORAGE_BINDING);
protocolMarshaller.marshall(datastoreSummary.getStatus(), STATUS_BINDING);
protocolMarshaller.marshall(datastoreSummary.getCreationTime(), CREATIONTIME_BINDING);
protocolMarshaller.marshall(datastoreSummary.getLastUpdateTime(), LASTUPDATETIME_BINDING);
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageJsonUnmarshaller.java
new file mode 100644
index 000000000000..7fc687a1c7c9
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageJsonUnmarshaller.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * ServiceManagedChannelS3Storage JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ServiceManagedChannelS3StorageJsonUnmarshaller implements Unmarshaller {
+
+ public ServiceManagedChannelS3Storage unmarshall(JsonUnmarshallerContext context) throws Exception {
+ ServiceManagedChannelS3Storage serviceManagedChannelS3Storage = new ServiceManagedChannelS3Storage();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return serviceManagedChannelS3Storage;
+ }
+
+ private static ServiceManagedChannelS3StorageJsonUnmarshaller instance;
+
+ public static ServiceManagedChannelS3StorageJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new ServiceManagedChannelS3StorageJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageMarshaller.java
new file mode 100644
index 000000000000..58dac3c5ac9e
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageMarshaller.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * ServiceManagedChannelS3StorageMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class ServiceManagedChannelS3StorageMarshaller {
+
+ private static final ServiceManagedChannelS3StorageMarshaller instance = new ServiceManagedChannelS3StorageMarshaller();
+
+ public static ServiceManagedChannelS3StorageMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(ServiceManagedChannelS3Storage serviceManagedChannelS3Storage, ProtocolMarshaller protocolMarshaller) {
+
+ if (serviceManagedChannelS3Storage == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageSummaryJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageSummaryJsonUnmarshaller.java
new file mode 100644
index 000000000000..f49ece23e44d
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageSummaryJsonUnmarshaller.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * ServiceManagedChannelS3StorageSummary JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ServiceManagedChannelS3StorageSummaryJsonUnmarshaller implements Unmarshaller {
+
+ public ServiceManagedChannelS3StorageSummary unmarshall(JsonUnmarshallerContext context) throws Exception {
+ ServiceManagedChannelS3StorageSummary serviceManagedChannelS3StorageSummary = new ServiceManagedChannelS3StorageSummary();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return serviceManagedChannelS3StorageSummary;
+ }
+
+ private static ServiceManagedChannelS3StorageSummaryJsonUnmarshaller instance;
+
+ public static ServiceManagedChannelS3StorageSummaryJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new ServiceManagedChannelS3StorageSummaryJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageSummaryMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageSummaryMarshaller.java
new file mode 100644
index 000000000000..9c7941299030
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedChannelS3StorageSummaryMarshaller.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * ServiceManagedChannelS3StorageSummaryMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class ServiceManagedChannelS3StorageSummaryMarshaller {
+
+ private static final ServiceManagedChannelS3StorageSummaryMarshaller instance = new ServiceManagedChannelS3StorageSummaryMarshaller();
+
+ public static ServiceManagedChannelS3StorageSummaryMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(ServiceManagedChannelS3StorageSummary serviceManagedChannelS3StorageSummary, ProtocolMarshaller protocolMarshaller) {
+
+ if (serviceManagedChannelS3StorageSummary == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageJsonUnmarshaller.java
new file mode 100644
index 000000000000..e8259bfb2f7f
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageJsonUnmarshaller.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * ServiceManagedDatastoreS3Storage JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ServiceManagedDatastoreS3StorageJsonUnmarshaller implements Unmarshaller {
+
+ public ServiceManagedDatastoreS3Storage unmarshall(JsonUnmarshallerContext context) throws Exception {
+ ServiceManagedDatastoreS3Storage serviceManagedDatastoreS3Storage = new ServiceManagedDatastoreS3Storage();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return serviceManagedDatastoreS3Storage;
+ }
+
+ private static ServiceManagedDatastoreS3StorageJsonUnmarshaller instance;
+
+ public static ServiceManagedDatastoreS3StorageJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new ServiceManagedDatastoreS3StorageJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageMarshaller.java
new file mode 100644
index 000000000000..0d3d18500f0c
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageMarshaller.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * ServiceManagedDatastoreS3StorageMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class ServiceManagedDatastoreS3StorageMarshaller {
+
+ private static final ServiceManagedDatastoreS3StorageMarshaller instance = new ServiceManagedDatastoreS3StorageMarshaller();
+
+ public static ServiceManagedDatastoreS3StorageMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(ServiceManagedDatastoreS3Storage serviceManagedDatastoreS3Storage, ProtocolMarshaller protocolMarshaller) {
+
+ if (serviceManagedDatastoreS3Storage == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageSummaryJsonUnmarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageSummaryJsonUnmarshaller.java
new file mode 100644
index 000000000000..d7dcfb440d65
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageSummaryJsonUnmarshaller.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import java.math.*;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotanalytics.model.*;
+import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*;
+import com.amazonaws.transform.*;
+
+import com.fasterxml.jackson.core.JsonToken;
+import static com.fasterxml.jackson.core.JsonToken.*;
+
+/**
+ * ServiceManagedDatastoreS3StorageSummary JSON Unmarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class ServiceManagedDatastoreS3StorageSummaryJsonUnmarshaller implements Unmarshaller {
+
+ public ServiceManagedDatastoreS3StorageSummary unmarshall(JsonUnmarshallerContext context) throws Exception {
+ ServiceManagedDatastoreS3StorageSummary serviceManagedDatastoreS3StorageSummary = new ServiceManagedDatastoreS3StorageSummary();
+
+ int originalDepth = context.getCurrentDepth();
+ String currentParentElement = context.getCurrentParentElement();
+ int targetDepth = originalDepth + 1;
+
+ JsonToken token = context.getCurrentToken();
+ if (token == null)
+ token = context.nextToken();
+ if (token == VALUE_NULL) {
+ return null;
+ }
+
+ while (true) {
+ if (token == null)
+ break;
+
+ if (token == FIELD_NAME || token == START_OBJECT) {
+ } else if (token == END_ARRAY || token == END_OBJECT) {
+ if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) {
+ if (context.getCurrentDepth() <= originalDepth)
+ break;
+ }
+ }
+ token = context.nextToken();
+ }
+
+ return serviceManagedDatastoreS3StorageSummary;
+ }
+
+ private static ServiceManagedDatastoreS3StorageSummaryJsonUnmarshaller instance;
+
+ public static ServiceManagedDatastoreS3StorageSummaryJsonUnmarshaller getInstance() {
+ if (instance == null)
+ instance = new ServiceManagedDatastoreS3StorageSummaryJsonUnmarshaller();
+ return instance;
+ }
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageSummaryMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageSummaryMarshaller.java
new file mode 100644
index 000000000000..83f53d0fe27d
--- /dev/null
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/ServiceManagedDatastoreS3StorageSummaryMarshaller.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2014-2019 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.iotanalytics.model.transform;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.SdkClientException;
+import com.amazonaws.services.iotanalytics.model.*;
+
+import com.amazonaws.protocol.*;
+import com.amazonaws.annotation.SdkInternalApi;
+
+/**
+ * ServiceManagedDatastoreS3StorageSummaryMarshaller
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+@SdkInternalApi
+public class ServiceManagedDatastoreS3StorageSummaryMarshaller {
+
+ private static final ServiceManagedDatastoreS3StorageSummaryMarshaller instance = new ServiceManagedDatastoreS3StorageSummaryMarshaller();
+
+ public static ServiceManagedDatastoreS3StorageSummaryMarshaller getInstance() {
+ return instance;
+ }
+
+ /**
+ * Marshall the given parameter object.
+ */
+ public void marshall(ServiceManagedDatastoreS3StorageSummary serviceManagedDatastoreS3StorageSummary, ProtocolMarshaller protocolMarshaller) {
+
+ if (serviceManagedDatastoreS3StorageSummary == null) {
+ throw new SdkClientException("Invalid argument passed to marshall(...)");
+ }
+
+ try {
+ } catch (Exception e) {
+ throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
+ }
+ }
+
+}
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/UpdateChannelRequestMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/UpdateChannelRequestMarshaller.java
index cc576b1493fa..939e4d9dd949 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/UpdateChannelRequestMarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/UpdateChannelRequestMarshaller.java
@@ -29,6 +29,8 @@ public class UpdateChannelRequestMarshaller {
private static final MarshallingInfo CHANNELNAME_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PATH)
.marshallLocationName("channelName").build();
+ private static final MarshallingInfo CHANNELSTORAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("channelStorage").build();
private static final MarshallingInfo RETENTIONPERIOD_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("retentionPeriod").build();
@@ -49,6 +51,7 @@ public void marshall(UpdateChannelRequest updateChannelRequest, ProtocolMarshall
try {
protocolMarshaller.marshall(updateChannelRequest.getChannelName(), CHANNELNAME_BINDING);
+ protocolMarshaller.marshall(updateChannelRequest.getChannelStorage(), CHANNELSTORAGE_BINDING);
protocolMarshaller.marshall(updateChannelRequest.getRetentionPeriod(), RETENTIONPERIOD_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
diff --git a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/UpdateDatastoreRequestMarshaller.java b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/UpdateDatastoreRequestMarshaller.java
index 1fb115353d01..27d3793d77b9 100644
--- a/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/UpdateDatastoreRequestMarshaller.java
+++ b/aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/transform/UpdateDatastoreRequestMarshaller.java
@@ -31,6 +31,8 @@ public class UpdateDatastoreRequestMarshaller {
.marshallLocation(MarshallLocation.PATH).marshallLocationName("datastoreName").build();
private static final MarshallingInfo RETENTIONPERIOD_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
.marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("retentionPeriod").build();
+ private static final MarshallingInfo DATASTORESTORAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED)
+ .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("datastoreStorage").build();
private static final UpdateDatastoreRequestMarshaller instance = new UpdateDatastoreRequestMarshaller();
@@ -50,6 +52,7 @@ public void marshall(UpdateDatastoreRequest updateDatastoreRequest, ProtocolMars
try {
protocolMarshaller.marshall(updateDatastoreRequest.getDatastoreName(), DATASTORENAME_BINDING);
protocolMarshaller.marshall(updateDatastoreRequest.getRetentionPeriod(), RETENTIONPERIOD_BINDING);
+ protocolMarshaller.marshall(updateDatastoreRequest.getDatastoreStorage(), DATASTORESTORAGE_BINDING);
} catch (Exception e) {
throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
}
diff --git a/aws-java-sdk-iotevents/build.properties b/aws-java-sdk-iotevents/build.properties
new file mode 100644
index 000000000000..0ceaa2b36ba5
--- /dev/null
+++ b/aws-java-sdk-iotevents/build.properties
@@ -0,0 +1,10 @@
+source.. = src/main/java,\
+ src/main/resources
+output.. = bin/
+
+bin.includes = LICENSE.txt,\
+ NOTICE.txt,\
+ META-INF/,\
+ .
+
+jre.compilation.profile = JavaSE-1.6
\ No newline at end of file
diff --git a/aws-java-sdk-iotevents/pom.xml b/aws-java-sdk-iotevents/pom.xml
new file mode 100644
index 000000000000..f147919b6b82
--- /dev/null
+++ b/aws-java-sdk-iotevents/pom.xml
@@ -0,0 +1,97 @@
+
+
+ 4.0.0
+
+ com.amazonaws
+ aws-java-sdk-pom
+ 1.11.563
+
+ com.amazonaws
+ aws-java-sdk-iotevents
+ AWS Java SDK for AWS IoT Events
+ The AWS Java SDK for AWS IoT Events module holds the client classes that are used for communicating with AWS IoT Events Service
+ https://aws.amazon.com/sdkforjava
+
+
+
+
+ aws-java-sdk-core
+ com.amazonaws
+ false
+ ${awsjavasdk.version}
+
+
+ aws-java-sdk-test-utils
+ com.amazonaws
+ false
+ test
+ ${awsjavasdk.version}
+
+
+ jmespath-java
+ com.amazonaws
+ false
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-compiler-plugin
+
+
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+
+
+
+
+
+
+
+
+ versiondiff
+
+
+
+ com.github.siom79.japicmp
+ japicmp-maven-plugin
+ 0.5.0
+
+
+ verify
+
+ cmp
+
+
+
+
+
+
+ com.amazonaws
+ aws-java-sdk-iotevents
+ RELEASE
+
+
+
+
+ ${project.build.directory}/${project.artifactId}-${project.version}.jar
+
+
+
+ true
+ public
+ false
+ false
+ false
+
+
+
+
+
+
+
+
diff --git a/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEvents.java b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEvents.java
new file mode 100644
index 000000000000..d36a6cdbd29f
--- /dev/null
+++ b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEvents.java
@@ -0,0 +1,458 @@
+/*
+ * Copyright 2014-2019 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.iotevents;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.*;
+import com.amazonaws.regions.*;
+
+import com.amazonaws.services.iotevents.model.*;
+
+/**
+ * Interface for accessing AWS IoT Events.
+ *
+ * Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
+ * {@link com.amazonaws.services.iotevents.AbstractAWSIoTEvents} instead.
+ *
+ *
+ *
+ * AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and triggers actions
+ * when such events occur.
+ *
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public interface AWSIoTEvents {
+
+ /**
+ * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata
+ * (such as supported regions) of the service.
+ *
+ * @see RegionUtils#getRegionsForService(String)
+ */
+ String ENDPOINT_PREFIX = "iotevents";
+
+ /**
+ *
+ * Creates a detector model.
+ *
+ *
+ * @param createDetectorModelRequest
+ * @return Result of the CreateDetectorModel operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @throws ResourceAlreadyExistsException
+ * The resource already exists.
+ * @throws LimitExceededException
+ * A limit was exceeded.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.CreateDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ CreateDetectorModelResult createDetectorModel(CreateDetectorModelRequest createDetectorModelRequest);
+
+ /**
+ *
+ * Creates an input.
+ *
+ *
+ * @param createInputRequest
+ * @return Result of the CreateInput operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @throws ResourceAlreadyExistsException
+ * The resource already exists.
+ * @sample AWSIoTEvents.CreateInput
+ * @see AWS API
+ * Documentation
+ */
+ CreateInputResult createInput(CreateInputRequest createInputRequest);
+
+ /**
+ *
+ * Deletes a detector model. Any active instances of the detector model are also deleted.
+ *
+ *
+ * @param deleteDetectorModelRequest
+ * @return Result of the DeleteDetectorModel operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.DeleteDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ DeleteDetectorModelResult deleteDetectorModel(DeleteDetectorModelRequest deleteDetectorModelRequest);
+
+ /**
+ *
+ * Deletes an input.
+ *
+ *
+ * @param deleteInputRequest
+ * @return Result of the DeleteInput operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @sample AWSIoTEvents.DeleteInput
+ * @see AWS API
+ * Documentation
+ */
+ DeleteInputResult deleteInput(DeleteInputRequest deleteInputRequest);
+
+ /**
+ *
+ * Describes a detector model. If the version
parameter is not specified, information about the latest
+ * version is returned.
+ *
+ *
+ * @param describeDetectorModelRequest
+ * @return Result of the DescribeDetectorModel operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.DescribeDetectorModel
+ * @see AWS API Documentation
+ */
+ DescribeDetectorModelResult describeDetectorModel(DescribeDetectorModelRequest describeDetectorModelRequest);
+
+ /**
+ *
+ * Describes an input.
+ *
+ *
+ * @param describeInputRequest
+ * @return Result of the DescribeInput operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.DescribeInput
+ * @see AWS API
+ * Documentation
+ */
+ DescribeInputResult describeInput(DescribeInputRequest describeInputRequest);
+
+ /**
+ *
+ * Retrieves the current settings of the AWS IoT Events logging options.
+ *
+ *
+ * @param describeLoggingOptionsRequest
+ * @return Result of the DescribeLoggingOptions operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @throws UnsupportedOperationException
+ * The requested operation is not supported.
+ * @sample AWSIoTEvents.DescribeLoggingOptions
+ * @see AWS API Documentation
+ */
+ DescribeLoggingOptionsResult describeLoggingOptions(DescribeLoggingOptionsRequest describeLoggingOptionsRequest);
+
+ /**
+ *
+ * Lists all the versions of a detector model. Only the metadata associated with each detector model version is
+ * returned.
+ *
+ *
+ * @param listDetectorModelVersionsRequest
+ * @return Result of the ListDetectorModelVersions operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.ListDetectorModelVersions
+ * @see AWS API Documentation
+ */
+ ListDetectorModelVersionsResult listDetectorModelVersions(ListDetectorModelVersionsRequest listDetectorModelVersionsRequest);
+
+ /**
+ *
+ * Lists the detector models you have created. Only the metadata associated with each detector model is returned.
+ *
+ *
+ * @param listDetectorModelsRequest
+ * @return Result of the ListDetectorModels operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.ListDetectorModels
+ * @see AWS
+ * API Documentation
+ */
+ ListDetectorModelsResult listDetectorModels(ListDetectorModelsRequest listDetectorModelsRequest);
+
+ /**
+ *
+ * Lists the inputs you have created.
+ *
+ *
+ * @param listInputsRequest
+ * @return Result of the ListInputs operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.ListInputs
+ * @see AWS API
+ * Documentation
+ */
+ ListInputsResult listInputs(ListInputsRequest listInputsRequest);
+
+ /**
+ *
+ * Lists the tags (metadata) you have assigned to the resource.
+ *
+ *
+ * @param listTagsForResourceRequest
+ * @return Result of the ListTagsForResource operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @sample AWSIoTEvents.ListTagsForResource
+ * @see AWS
+ * API Documentation
+ */
+ ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest);
+
+ /**
+ *
+ * Sets or updates the AWS IoT Events logging options.
+ *
+ *
+ * Note that if you update the value of any loggingOptions
field, it takes up to one minute for the
+ * change to take effect. Also, if you change the policy attached to the role you specified in the roleArn field
+ * (for example, to correct an invalid policy) it takes up to five minutes for that change to take effect.
+ *
+ *
+ * @param putLoggingOptionsRequest
+ * @return Result of the PutLoggingOptions operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @throws UnsupportedOperationException
+ * The requested operation is not supported.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @sample AWSIoTEvents.PutLoggingOptions
+ * @see AWS
+ * API Documentation
+ */
+ PutLoggingOptionsResult putLoggingOptions(PutLoggingOptionsRequest putLoggingOptionsRequest);
+
+ /**
+ *
+ * Add to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.
+ *
+ *
+ * @param tagResourceRequest
+ * @return Result of the TagResource operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws LimitExceededException
+ * A limit was exceeded.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @sample AWSIoTEvents.TagResource
+ * @see AWS API
+ * Documentation
+ */
+ TagResourceResult tagResource(TagResourceRequest tagResourceRequest);
+
+ /**
+ *
+ * Removes the given tags (metadata) from the resource.
+ *
+ *
+ * @param untagResourceRequest
+ * @return Result of the UntagResource operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @sample AWSIoTEvents.UntagResource
+ * @see AWS API
+ * Documentation
+ */
+ UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest);
+
+ /**
+ *
+ * Updates a detector model. Detectors (instances) spawned by the previous version will be deleted and re-created as
+ * new inputs arrive.
+ *
+ *
+ * @param updateDetectorModelRequest
+ * @return Result of the UpdateDetectorModel operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.UpdateDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ UpdateDetectorModelResult updateDetectorModel(UpdateDetectorModelRequest updateDetectorModelRequest);
+
+ /**
+ *
+ * Updates an input.
+ *
+ *
+ * @param updateInputRequest
+ * @return Result of the UpdateInput operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @sample AWSIoTEvents.UpdateInput
+ * @see AWS API
+ * Documentation
+ */
+ UpdateInputResult updateInput(UpdateInputRequest updateInputRequest);
+
+ /**
+ * Shuts down this client object, releasing any resources that might be held open. This is an optional method, and
+ * callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client
+ * has been shutdown, it should not be used to make any more requests.
+ */
+ void shutdown();
+
+ /**
+ * Returns additional metadata for a previously executed successful request, typically used for debugging issues
+ * where a service isn't acting as expected. This data isn't considered part of the result data returned by an
+ * operation, so it's available through this separate, diagnostic interface.
+ *
+ * Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic
+ * information for an executed request, you should use this method to retrieve it as soon as possible after
+ * executing a request.
+ *
+ * @param request
+ * The originally executed request.
+ *
+ * @return The response metadata for the specified request, or null if none is available.
+ */
+ ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request);
+
+}
diff --git a/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsAsync.java b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsAsync.java
new file mode 100644
index 000000000000..7902a1ab4680
--- /dev/null
+++ b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsAsync.java
@@ -0,0 +1,550 @@
+/*
+ * Copyright 2014-2019 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.iotevents;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotevents.model.*;
+
+/**
+ * Interface for accessing AWS IoT Events asynchronously. Each asynchronous method will return a Java Future object
+ * representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
+ * notification when an asynchronous operation completes.
+ *
+ * Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
+ * {@link com.amazonaws.services.iotevents.AbstractAWSIoTEventsAsync} instead.
+ *
+ *
+ *
+ * AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and triggers actions
+ * when such events occur.
+ *
+ */
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public interface AWSIoTEventsAsync extends AWSIoTEvents {
+
+ /**
+ *
+ * Creates a detector model.
+ *
+ *
+ * @param createDetectorModelRequest
+ * @return A Java Future containing the result of the CreateDetectorModel operation returned by the service.
+ * @sample AWSIoTEventsAsync.CreateDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future createDetectorModelAsync(CreateDetectorModelRequest createDetectorModelRequest);
+
+ /**
+ *
+ * Creates a detector model.
+ *
+ *
+ * @param createDetectorModelRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the CreateDetectorModel operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.CreateDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future createDetectorModelAsync(CreateDetectorModelRequest createDetectorModelRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Creates an input.
+ *
+ *
+ * @param createInputRequest
+ * @return A Java Future containing the result of the CreateInput operation returned by the service.
+ * @sample AWSIoTEventsAsync.CreateInput
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future createInputAsync(CreateInputRequest createInputRequest);
+
+ /**
+ *
+ * Creates an input.
+ *
+ *
+ * @param createInputRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the CreateInput operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.CreateInput
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future createInputAsync(CreateInputRequest createInputRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Deletes a detector model. Any active instances of the detector model are also deleted.
+ *
+ *
+ * @param deleteDetectorModelRequest
+ * @return A Java Future containing the result of the DeleteDetectorModel operation returned by the service.
+ * @sample AWSIoTEventsAsync.DeleteDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future deleteDetectorModelAsync(DeleteDetectorModelRequest deleteDetectorModelRequest);
+
+ /**
+ *
+ * Deletes a detector model. Any active instances of the detector model are also deleted.
+ *
+ *
+ * @param deleteDetectorModelRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the DeleteDetectorModel operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.DeleteDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future deleteDetectorModelAsync(DeleteDetectorModelRequest deleteDetectorModelRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Deletes an input.
+ *
+ *
+ * @param deleteInputRequest
+ * @return A Java Future containing the result of the DeleteInput operation returned by the service.
+ * @sample AWSIoTEventsAsync.DeleteInput
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future deleteInputAsync(DeleteInputRequest deleteInputRequest);
+
+ /**
+ *
+ * Deletes an input.
+ *
+ *
+ * @param deleteInputRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the DeleteInput operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.DeleteInput
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future deleteInputAsync(DeleteInputRequest deleteInputRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Describes a detector model. If the version
parameter is not specified, information about the latest
+ * version is returned.
+ *
+ *
+ * @param describeDetectorModelRequest
+ * @return A Java Future containing the result of the DescribeDetectorModel operation returned by the service.
+ * @sample AWSIoTEventsAsync.DescribeDetectorModel
+ * @see AWS API Documentation
+ */
+ java.util.concurrent.Future describeDetectorModelAsync(DescribeDetectorModelRequest describeDetectorModelRequest);
+
+ /**
+ *
+ * Describes a detector model. If the version
parameter is not specified, information about the latest
+ * version is returned.
+ *
+ *
+ * @param describeDetectorModelRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the DescribeDetectorModel operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.DescribeDetectorModel
+ * @see AWS API Documentation
+ */
+ java.util.concurrent.Future describeDetectorModelAsync(DescribeDetectorModelRequest describeDetectorModelRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Describes an input.
+ *
+ *
+ * @param describeInputRequest
+ * @return A Java Future containing the result of the DescribeInput operation returned by the service.
+ * @sample AWSIoTEventsAsync.DescribeInput
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future describeInputAsync(DescribeInputRequest describeInputRequest);
+
+ /**
+ *
+ * Describes an input.
+ *
+ *
+ * @param describeInputRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the DescribeInput operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.DescribeInput
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future describeInputAsync(DescribeInputRequest describeInputRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Retrieves the current settings of the AWS IoT Events logging options.
+ *
+ *
+ * @param describeLoggingOptionsRequest
+ * @return A Java Future containing the result of the DescribeLoggingOptions operation returned by the service.
+ * @sample AWSIoTEventsAsync.DescribeLoggingOptions
+ * @see AWS API Documentation
+ */
+ java.util.concurrent.Future describeLoggingOptionsAsync(DescribeLoggingOptionsRequest describeLoggingOptionsRequest);
+
+ /**
+ *
+ * Retrieves the current settings of the AWS IoT Events logging options.
+ *
+ *
+ * @param describeLoggingOptionsRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the DescribeLoggingOptions operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.DescribeLoggingOptions
+ * @see AWS API Documentation
+ */
+ java.util.concurrent.Future describeLoggingOptionsAsync(DescribeLoggingOptionsRequest describeLoggingOptionsRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Lists all the versions of a detector model. Only the metadata associated with each detector model version is
+ * returned.
+ *
+ *
+ * @param listDetectorModelVersionsRequest
+ * @return A Java Future containing the result of the ListDetectorModelVersions operation returned by the service.
+ * @sample AWSIoTEventsAsync.ListDetectorModelVersions
+ * @see AWS API Documentation
+ */
+ java.util.concurrent.Future listDetectorModelVersionsAsync(
+ ListDetectorModelVersionsRequest listDetectorModelVersionsRequest);
+
+ /**
+ *
+ * Lists all the versions of a detector model. Only the metadata associated with each detector model version is
+ * returned.
+ *
+ *
+ * @param listDetectorModelVersionsRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the ListDetectorModelVersions operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.ListDetectorModelVersions
+ * @see AWS API Documentation
+ */
+ java.util.concurrent.Future listDetectorModelVersionsAsync(
+ ListDetectorModelVersionsRequest listDetectorModelVersionsRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Lists the detector models you have created. Only the metadata associated with each detector model is returned.
+ *
+ *
+ * @param listDetectorModelsRequest
+ * @return A Java Future containing the result of the ListDetectorModels operation returned by the service.
+ * @sample AWSIoTEventsAsync.ListDetectorModels
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future listDetectorModelsAsync(ListDetectorModelsRequest listDetectorModelsRequest);
+
+ /**
+ *
+ * Lists the detector models you have created. Only the metadata associated with each detector model is returned.
+ *
+ *
+ * @param listDetectorModelsRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the ListDetectorModels operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.ListDetectorModels
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future listDetectorModelsAsync(ListDetectorModelsRequest listDetectorModelsRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Lists the inputs you have created.
+ *
+ *
+ * @param listInputsRequest
+ * @return A Java Future containing the result of the ListInputs operation returned by the service.
+ * @sample AWSIoTEventsAsync.ListInputs
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future listInputsAsync(ListInputsRequest listInputsRequest);
+
+ /**
+ *
+ * Lists the inputs you have created.
+ *
+ *
+ * @param listInputsRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the ListInputs operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.ListInputs
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future listInputsAsync(ListInputsRequest listInputsRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Lists the tags (metadata) you have assigned to the resource.
+ *
+ *
+ * @param listTagsForResourceRequest
+ * @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
+ * @sample AWSIoTEventsAsync.ListTagsForResource
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest);
+
+ /**
+ *
+ * Lists the tags (metadata) you have assigned to the resource.
+ *
+ *
+ * @param listTagsForResourceRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the ListTagsForResource operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.ListTagsForResource
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Sets or updates the AWS IoT Events logging options.
+ *
+ *
+ * Note that if you update the value of any loggingOptions
field, it takes up to one minute for the
+ * change to take effect. Also, if you change the policy attached to the role you specified in the roleArn field
+ * (for example, to correct an invalid policy) it takes up to five minutes for that change to take effect.
+ *
+ *
+ * @param putLoggingOptionsRequest
+ * @return A Java Future containing the result of the PutLoggingOptions operation returned by the service.
+ * @sample AWSIoTEventsAsync.PutLoggingOptions
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future putLoggingOptionsAsync(PutLoggingOptionsRequest putLoggingOptionsRequest);
+
+ /**
+ *
+ * Sets or updates the AWS IoT Events logging options.
+ *
+ *
+ * Note that if you update the value of any loggingOptions
field, it takes up to one minute for the
+ * change to take effect. Also, if you change the policy attached to the role you specified in the roleArn field
+ * (for example, to correct an invalid policy) it takes up to five minutes for that change to take effect.
+ *
+ *
+ * @param putLoggingOptionsRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the PutLoggingOptions operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.PutLoggingOptions
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future putLoggingOptionsAsync(PutLoggingOptionsRequest putLoggingOptionsRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Add to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.
+ *
+ *
+ * @param tagResourceRequest
+ * @return A Java Future containing the result of the TagResource operation returned by the service.
+ * @sample AWSIoTEventsAsync.TagResource
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest);
+
+ /**
+ *
+ * Add to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.
+ *
+ *
+ * @param tagResourceRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the TagResource operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.TagResource
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Removes the given tags (metadata) from the resource.
+ *
+ *
+ * @param untagResourceRequest
+ * @return A Java Future containing the result of the UntagResource operation returned by the service.
+ * @sample AWSIoTEventsAsync.UntagResource
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest);
+
+ /**
+ *
+ * Removes the given tags (metadata) from the resource.
+ *
+ *
+ * @param untagResourceRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the UntagResource operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.UntagResource
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Updates a detector model. Detectors (instances) spawned by the previous version will be deleted and re-created as
+ * new inputs arrive.
+ *
+ *
+ * @param updateDetectorModelRequest
+ * @return A Java Future containing the result of the UpdateDetectorModel operation returned by the service.
+ * @sample AWSIoTEventsAsync.UpdateDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future updateDetectorModelAsync(UpdateDetectorModelRequest updateDetectorModelRequest);
+
+ /**
+ *
+ * Updates a detector model. Detectors (instances) spawned by the previous version will be deleted and re-created as
+ * new inputs arrive.
+ *
+ *
+ * @param updateDetectorModelRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the UpdateDetectorModel operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.UpdateDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ java.util.concurrent.Future updateDetectorModelAsync(UpdateDetectorModelRequest updateDetectorModelRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+ /**
+ *
+ * Updates an input.
+ *
+ *
+ * @param updateInputRequest
+ * @return A Java Future containing the result of the UpdateInput operation returned by the service.
+ * @sample AWSIoTEventsAsync.UpdateInput
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future updateInputAsync(UpdateInputRequest updateInputRequest);
+
+ /**
+ *
+ * Updates an input.
+ *
+ *
+ * @param updateInputRequest
+ * @param asyncHandler
+ * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
+ * implementation of the callback methods in this interface to receive notification of successful or
+ * unsuccessful completion of the operation.
+ * @return A Java Future containing the result of the UpdateInput operation returned by the service.
+ * @sample AWSIoTEventsAsyncHandler.UpdateInput
+ * @see AWS API
+ * Documentation
+ */
+ java.util.concurrent.Future updateInputAsync(UpdateInputRequest updateInputRequest,
+ com.amazonaws.handlers.AsyncHandler asyncHandler);
+
+}
diff --git a/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsAsyncClient.java b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsAsyncClient.java
new file mode 100644
index 000000000000..c885e2444f59
--- /dev/null
+++ b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsAsyncClient.java
@@ -0,0 +1,604 @@
+/*
+ * Copyright 2014-2019 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.iotevents;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.services.iotevents.model.*;
+import com.amazonaws.client.AwsAsyncClientParams;
+import com.amazonaws.annotation.ThreadSafe;
+
+import java.util.concurrent.ExecutorService;
+
+/**
+ * Client for accessing AWS IoT Events asynchronously. Each asynchronous method will return a Java Future object
+ * representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive
+ * notification when an asynchronous operation completes.
+ *
+ *
+ * AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and triggers actions
+ * when such events occur.
+ *
+ */
+@ThreadSafe
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class AWSIoTEventsAsyncClient extends AWSIoTEventsClient implements AWSIoTEventsAsync {
+
+ private static final int DEFAULT_THREAD_POOL_SIZE = 50;
+
+ private final java.util.concurrent.ExecutorService executorService;
+
+ public static AWSIoTEventsAsyncClientBuilder asyncBuilder() {
+ return AWSIoTEventsAsyncClientBuilder.standard();
+ }
+
+ /**
+ * Constructs a new asynchronous client to invoke service methods on AWS IoT Events using the specified parameters.
+ *
+ * @param asyncClientParams
+ * Object providing client parameters.
+ */
+ AWSIoTEventsAsyncClient(AwsAsyncClientParams asyncClientParams) {
+ super(asyncClientParams);
+ this.executorService = asyncClientParams.getExecutor();
+ }
+
+ /**
+ * Returns the executor service used by this client to execute async requests.
+ *
+ * @return The executor service used by this client to execute async requests.
+ */
+ public ExecutorService getExecutorService() {
+ return executorService;
+ }
+
+ @Override
+ public java.util.concurrent.Future createDetectorModelAsync(CreateDetectorModelRequest request) {
+
+ return createDetectorModelAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future createDetectorModelAsync(final CreateDetectorModelRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final CreateDetectorModelRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public CreateDetectorModelResult call() throws Exception {
+ CreateDetectorModelResult result = null;
+
+ try {
+ result = executeCreateDetectorModel(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future createInputAsync(CreateInputRequest request) {
+
+ return createInputAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future createInputAsync(final CreateInputRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final CreateInputRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public CreateInputResult call() throws Exception {
+ CreateInputResult result = null;
+
+ try {
+ result = executeCreateInput(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future deleteDetectorModelAsync(DeleteDetectorModelRequest request) {
+
+ return deleteDetectorModelAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future deleteDetectorModelAsync(final DeleteDetectorModelRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final DeleteDetectorModelRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public DeleteDetectorModelResult call() throws Exception {
+ DeleteDetectorModelResult result = null;
+
+ try {
+ result = executeDeleteDetectorModel(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future deleteInputAsync(DeleteInputRequest request) {
+
+ return deleteInputAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future deleteInputAsync(final DeleteInputRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final DeleteInputRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public DeleteInputResult call() throws Exception {
+ DeleteInputResult result = null;
+
+ try {
+ result = executeDeleteInput(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future describeDetectorModelAsync(DescribeDetectorModelRequest request) {
+
+ return describeDetectorModelAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future describeDetectorModelAsync(final DescribeDetectorModelRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final DescribeDetectorModelRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public DescribeDetectorModelResult call() throws Exception {
+ DescribeDetectorModelResult result = null;
+
+ try {
+ result = executeDescribeDetectorModel(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future describeInputAsync(DescribeInputRequest request) {
+
+ return describeInputAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future describeInputAsync(final DescribeInputRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final DescribeInputRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public DescribeInputResult call() throws Exception {
+ DescribeInputResult result = null;
+
+ try {
+ result = executeDescribeInput(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future describeLoggingOptionsAsync(DescribeLoggingOptionsRequest request) {
+
+ return describeLoggingOptionsAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future describeLoggingOptionsAsync(final DescribeLoggingOptionsRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final DescribeLoggingOptionsRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public DescribeLoggingOptionsResult call() throws Exception {
+ DescribeLoggingOptionsResult result = null;
+
+ try {
+ result = executeDescribeLoggingOptions(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future listDetectorModelVersionsAsync(ListDetectorModelVersionsRequest request) {
+
+ return listDetectorModelVersionsAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future listDetectorModelVersionsAsync(final ListDetectorModelVersionsRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final ListDetectorModelVersionsRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public ListDetectorModelVersionsResult call() throws Exception {
+ ListDetectorModelVersionsResult result = null;
+
+ try {
+ result = executeListDetectorModelVersions(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future listDetectorModelsAsync(ListDetectorModelsRequest request) {
+
+ return listDetectorModelsAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future listDetectorModelsAsync(final ListDetectorModelsRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final ListDetectorModelsRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public ListDetectorModelsResult call() throws Exception {
+ ListDetectorModelsResult result = null;
+
+ try {
+ result = executeListDetectorModels(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future listInputsAsync(ListInputsRequest request) {
+
+ return listInputsAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future listInputsAsync(final ListInputsRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final ListInputsRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public ListInputsResult call() throws Exception {
+ ListInputsResult result = null;
+
+ try {
+ result = executeListInputs(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest request) {
+
+ return listTagsForResourceAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future listTagsForResourceAsync(final ListTagsForResourceRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final ListTagsForResourceRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public ListTagsForResourceResult call() throws Exception {
+ ListTagsForResourceResult result = null;
+
+ try {
+ result = executeListTagsForResource(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future putLoggingOptionsAsync(PutLoggingOptionsRequest request) {
+
+ return putLoggingOptionsAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future putLoggingOptionsAsync(final PutLoggingOptionsRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final PutLoggingOptionsRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public PutLoggingOptionsResult call() throws Exception {
+ PutLoggingOptionsResult result = null;
+
+ try {
+ result = executePutLoggingOptions(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future tagResourceAsync(TagResourceRequest request) {
+
+ return tagResourceAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future tagResourceAsync(final TagResourceRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final TagResourceRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public TagResourceResult call() throws Exception {
+ TagResourceResult result = null;
+
+ try {
+ result = executeTagResource(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future untagResourceAsync(UntagResourceRequest request) {
+
+ return untagResourceAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future untagResourceAsync(final UntagResourceRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final UntagResourceRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public UntagResourceResult call() throws Exception {
+ UntagResourceResult result = null;
+
+ try {
+ result = executeUntagResource(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future updateDetectorModelAsync(UpdateDetectorModelRequest request) {
+
+ return updateDetectorModelAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future updateDetectorModelAsync(final UpdateDetectorModelRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final UpdateDetectorModelRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public UpdateDetectorModelResult call() throws Exception {
+ UpdateDetectorModelResult result = null;
+
+ try {
+ result = executeUpdateDetectorModel(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ @Override
+ public java.util.concurrent.Future updateInputAsync(UpdateInputRequest request) {
+
+ return updateInputAsync(request, null);
+ }
+
+ @Override
+ public java.util.concurrent.Future updateInputAsync(final UpdateInputRequest request,
+ final com.amazonaws.handlers.AsyncHandler asyncHandler) {
+ final UpdateInputRequest finalRequest = beforeClientExecution(request);
+
+ return executorService.submit(new java.util.concurrent.Callable() {
+ @Override
+ public UpdateInputResult call() throws Exception {
+ UpdateInputResult result = null;
+
+ try {
+ result = executeUpdateInput(finalRequest);
+ } catch (Exception ex) {
+ if (asyncHandler != null) {
+ asyncHandler.onError(ex);
+ }
+ throw ex;
+ }
+
+ if (asyncHandler != null) {
+ asyncHandler.onSuccess(finalRequest, result);
+ }
+ return result;
+ }
+ });
+ }
+
+ /**
+ * Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending
+ * asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should
+ * call {@code getExecutorService().shutdown()} followed by {@code getExecutorService().awaitTermination()} prior to
+ * calling this method.
+ */
+ @Override
+ public void shutdown() {
+ super.shutdown();
+ executorService.shutdownNow();
+ }
+}
diff --git a/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsAsyncClientBuilder.java b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsAsyncClientBuilder.java
new file mode 100644
index 000000000000..567c69ac2739
--- /dev/null
+++ b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsAsyncClientBuilder.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2014-2019 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.iotevents;
+
+import javax.annotation.Generated;
+
+import com.amazonaws.ClientConfigurationFactory;
+import com.amazonaws.annotation.NotThreadSafe;
+import com.amazonaws.client.builder.AwsAsyncClientBuilder;
+import com.amazonaws.client.AwsAsyncClientParams;
+
+/**
+ * Fluent builder for {@link com.amazonaws.services.iotevents.AWSIoTEventsAsync}. Use of the builder is preferred over
+ * using constructors of the client class.
+ **/
+@NotThreadSafe
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public final class AWSIoTEventsAsyncClientBuilder extends AwsAsyncClientBuilder {
+
+ private static final ClientConfigurationFactory CLIENT_CONFIG_FACTORY = new ClientConfigurationFactory();;
+
+ /**
+ * @return Create new instance of builder with all defaults set.
+ */
+ public static AWSIoTEventsAsyncClientBuilder standard() {
+ return new AWSIoTEventsAsyncClientBuilder();
+ }
+
+ /**
+ * @return Default async client using the {@link com.amazonaws.auth.DefaultAWSCredentialsProviderChain} and
+ * {@link com.amazonaws.regions.DefaultAwsRegionProviderChain} chain
+ */
+ public static AWSIoTEventsAsync defaultClient() {
+ return standard().build();
+ }
+
+ private AWSIoTEventsAsyncClientBuilder() {
+ super(CLIENT_CONFIG_FACTORY);
+ }
+
+ /**
+ * Construct an asynchronous implementation of AWSIoTEventsAsync using the current builder configuration.
+ *
+ * @param params
+ * Current builder configuration represented as a parameter object.
+ * @return Fully configured implementation of AWSIoTEventsAsync.
+ */
+ @Override
+ protected AWSIoTEventsAsync build(AwsAsyncClientParams params) {
+ return new AWSIoTEventsAsyncClient(params);
+ }
+
+}
diff --git a/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsClient.java b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsClient.java
new file mode 100644
index 000000000000..8a986e001e6b
--- /dev/null
+++ b/aws-java-sdk-iotevents/src/main/java/com/amazonaws/services/iotevents/AWSIoTEventsClient.java
@@ -0,0 +1,1266 @@
+/*
+ * Copyright 2014-2019 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.iotevents;
+
+import org.w3c.dom.*;
+
+import java.net.*;
+import java.util.*;
+
+import javax.annotation.Generated;
+
+import org.apache.commons.logging.*;
+
+import com.amazonaws.*;
+import com.amazonaws.annotation.SdkInternalApi;
+import com.amazonaws.auth.*;
+
+import com.amazonaws.handlers.*;
+import com.amazonaws.http.*;
+import com.amazonaws.internal.*;
+import com.amazonaws.internal.auth.*;
+import com.amazonaws.metrics.*;
+import com.amazonaws.regions.*;
+import com.amazonaws.transform.*;
+import com.amazonaws.util.*;
+import com.amazonaws.protocol.json.*;
+import com.amazonaws.util.AWSRequestMetrics.Field;
+import com.amazonaws.annotation.ThreadSafe;
+import com.amazonaws.client.AwsSyncClientParams;
+import com.amazonaws.client.builder.AdvancedConfig;
+
+import com.amazonaws.services.iotevents.AWSIoTEventsClientBuilder;
+
+import com.amazonaws.AmazonServiceException;
+
+import com.amazonaws.services.iotevents.model.*;
+import com.amazonaws.services.iotevents.model.transform.*;
+
+/**
+ * Client for accessing AWS IoT Events. All service calls made using this client are blocking, and will not return until
+ * the service call completes.
+ *
+ *
+ * AWS IoT Events monitors your equipment or device fleets for failures or changes in operation, and triggers actions
+ * when such events occur.
+ *
+ */
+@ThreadSafe
+@Generated("com.amazonaws:aws-java-sdk-code-generator")
+public class AWSIoTEventsClient extends AmazonWebServiceClient implements AWSIoTEvents {
+
+ /** Provider for AWS credentials. */
+ private final AWSCredentialsProvider awsCredentialsProvider;
+
+ private static final Log log = LogFactory.getLog(AWSIoTEvents.class);
+
+ /** Default signing name for the service. */
+ private static final String DEFAULT_SIGNING_NAME = "iotevents";
+
+ /** Client configuration factory providing ClientConfigurations tailored to this client */
+ protected static final ClientConfigurationFactory configFactory = new ClientConfigurationFactory();
+
+ private final AdvancedConfig advancedConfig;
+
+ private static final com.amazonaws.protocol.json.SdkJsonProtocolFactory protocolFactory = new com.amazonaws.protocol.json.SdkJsonProtocolFactory(
+ new JsonClientMetadata()
+ .withProtocolVersion("1.1")
+ .withSupportsCbor(false)
+ .withSupportsIon(false)
+ .withContentTypeOverride("")
+ .addErrorMetadata(
+ new JsonErrorShapeMetadata().withErrorCode("InternalFailureException").withModeledClass(
+ com.amazonaws.services.iotevents.model.InternalFailureException.class))
+ .addErrorMetadata(
+ new JsonErrorShapeMetadata().withErrorCode("ResourceInUseException").withModeledClass(
+ com.amazonaws.services.iotevents.model.ResourceInUseException.class))
+ .addErrorMetadata(
+ new JsonErrorShapeMetadata().withErrorCode("InvalidRequestException").withModeledClass(
+ com.amazonaws.services.iotevents.model.InvalidRequestException.class))
+ .addErrorMetadata(
+ new JsonErrorShapeMetadata().withErrorCode("ResourceNotFoundException").withModeledClass(
+ com.amazonaws.services.iotevents.model.ResourceNotFoundException.class))
+ .addErrorMetadata(
+ new JsonErrorShapeMetadata().withErrorCode("UnsupportedOperationException").withModeledClass(
+ com.amazonaws.services.iotevents.model.UnsupportedOperationException.class))
+ .addErrorMetadata(
+ new JsonErrorShapeMetadata().withErrorCode("ThrottlingException").withModeledClass(
+ com.amazonaws.services.iotevents.model.ThrottlingException.class))
+ .addErrorMetadata(
+ new JsonErrorShapeMetadata().withErrorCode("ServiceUnavailableException").withModeledClass(
+ com.amazonaws.services.iotevents.model.ServiceUnavailableException.class))
+ .addErrorMetadata(
+ new JsonErrorShapeMetadata().withErrorCode("ResourceAlreadyExistsException").withModeledClass(
+ com.amazonaws.services.iotevents.model.ResourceAlreadyExistsException.class))
+ .addErrorMetadata(
+ new JsonErrorShapeMetadata().withErrorCode("LimitExceededException").withModeledClass(
+ com.amazonaws.services.iotevents.model.LimitExceededException.class))
+ .withBaseServiceExceptionClass(com.amazonaws.services.iotevents.model.AWSIoTEventsException.class));
+
+ public static AWSIoTEventsClientBuilder builder() {
+ return AWSIoTEventsClientBuilder.standard();
+ }
+
+ /**
+ * Constructs a new client to invoke service methods on AWS IoT Events using the specified parameters.
+ *
+ *
+ * All service calls made using this new client object are blocking, and will not return until the service call
+ * completes.
+ *
+ * @param clientParams
+ * Object providing client parameters.
+ */
+ AWSIoTEventsClient(AwsSyncClientParams clientParams) {
+ this(clientParams, false);
+ }
+
+ /**
+ * Constructs a new client to invoke service methods on AWS IoT Events using the specified parameters.
+ *
+ *
+ * All service calls made using this new client object are blocking, and will not return until the service call
+ * completes.
+ *
+ * @param clientParams
+ * Object providing client parameters.
+ */
+ AWSIoTEventsClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) {
+ super(clientParams);
+ this.awsCredentialsProvider = clientParams.getCredentialsProvider();
+ this.advancedConfig = clientParams.getAdvancedConfig();
+ init();
+ }
+
+ private void init() {
+ setServiceNameIntern(DEFAULT_SIGNING_NAME);
+ setEndpointPrefix(ENDPOINT_PREFIX);
+ // calling this.setEndPoint(...) will also modify the signer accordingly
+ setEndpoint("iotevents.us-east-1.amazonaws.com");
+ HandlerChainFactory chainFactory = new HandlerChainFactory();
+ requestHandler2s.addAll(chainFactory.newRequestHandlerChain("/com/amazonaws/services/iotevents/request.handlers"));
+ requestHandler2s.addAll(chainFactory.newRequestHandler2Chain("/com/amazonaws/services/iotevents/request.handler2s"));
+ requestHandler2s.addAll(chainFactory.getGlobalHandlers());
+ }
+
+ /**
+ *
+ * Creates a detector model.
+ *
+ *
+ * @param createDetectorModelRequest
+ * @return Result of the CreateDetectorModel operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @throws ResourceAlreadyExistsException
+ * The resource already exists.
+ * @throws LimitExceededException
+ * A limit was exceeded.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.CreateDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ @Override
+ public CreateDetectorModelResult createDetectorModel(CreateDetectorModelRequest request) {
+ request = beforeClientExecution(request);
+ return executeCreateDetectorModel(request);
+ }
+
+ @SdkInternalApi
+ final CreateDetectorModelResult executeCreateDetectorModel(CreateDetectorModelRequest createDetectorModelRequest) {
+
+ ExecutionContext executionContext = createExecutionContext(createDetectorModelRequest);
+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
+ Request request = null;
+ Response response = null;
+
+ try {
+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
+ try {
+ request = new CreateDetectorModelRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createDetectorModelRequest));
+ // Binds the request metrics to the current request.
+ request.setAWSRequestMetrics(awsRequestMetrics);
+ request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
+ request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Events");
+ request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDetectorModel");
+ request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
+
+ } finally {
+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
+ }
+
+ HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
+ new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateDetectorModelResultJsonUnmarshaller());
+ response = invoke(request, responseHandler, executionContext);
+
+ return response.getAwsResponse();
+
+ } finally {
+
+ endClientExecution(awsRequestMetrics, request, response);
+ }
+ }
+
+ /**
+ *
+ * Creates an input.
+ *
+ *
+ * @param createInputRequest
+ * @return Result of the CreateInput operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @throws ResourceAlreadyExistsException
+ * The resource already exists.
+ * @sample AWSIoTEvents.CreateInput
+ * @see AWS API
+ * Documentation
+ */
+ @Override
+ public CreateInputResult createInput(CreateInputRequest request) {
+ request = beforeClientExecution(request);
+ return executeCreateInput(request);
+ }
+
+ @SdkInternalApi
+ final CreateInputResult executeCreateInput(CreateInputRequest createInputRequest) {
+
+ ExecutionContext executionContext = createExecutionContext(createInputRequest);
+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
+ Request request = null;
+ Response response = null;
+
+ try {
+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
+ try {
+ request = new CreateInputRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(createInputRequest));
+ // Binds the request metrics to the current request.
+ request.setAWSRequestMetrics(awsRequestMetrics);
+ request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
+ request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Events");
+ request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateInput");
+ request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
+
+ } finally {
+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
+ }
+
+ HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
+ new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new CreateInputResultJsonUnmarshaller());
+ response = invoke(request, responseHandler, executionContext);
+
+ return response.getAwsResponse();
+
+ } finally {
+
+ endClientExecution(awsRequestMetrics, request, response);
+ }
+ }
+
+ /**
+ *
+ * Deletes a detector model. Any active instances of the detector model are also deleted.
+ *
+ *
+ * @param deleteDetectorModelRequest
+ * @return Result of the DeleteDetectorModel operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.DeleteDetectorModel
+ * @see AWS
+ * API Documentation
+ */
+ @Override
+ public DeleteDetectorModelResult deleteDetectorModel(DeleteDetectorModelRequest request) {
+ request = beforeClientExecution(request);
+ return executeDeleteDetectorModel(request);
+ }
+
+ @SdkInternalApi
+ final DeleteDetectorModelResult executeDeleteDetectorModel(DeleteDetectorModelRequest deleteDetectorModelRequest) {
+
+ ExecutionContext executionContext = createExecutionContext(deleteDetectorModelRequest);
+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
+ Request request = null;
+ Response response = null;
+
+ try {
+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
+ try {
+ request = new DeleteDetectorModelRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteDetectorModelRequest));
+ // Binds the request metrics to the current request.
+ request.setAWSRequestMetrics(awsRequestMetrics);
+ request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
+ request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Events");
+ request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDetectorModel");
+ request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
+
+ } finally {
+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
+ }
+
+ HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
+ new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteDetectorModelResultJsonUnmarshaller());
+ response = invoke(request, responseHandler, executionContext);
+
+ return response.getAwsResponse();
+
+ } finally {
+
+ endClientExecution(awsRequestMetrics, request, response);
+ }
+ }
+
+ /**
+ *
+ * Deletes an input.
+ *
+ *
+ * @param deleteInputRequest
+ * @return Result of the DeleteInput operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @throws ResourceInUseException
+ * The resource is in use.
+ * @sample AWSIoTEvents.DeleteInput
+ * @see AWS API
+ * Documentation
+ */
+ @Override
+ public DeleteInputResult deleteInput(DeleteInputRequest request) {
+ request = beforeClientExecution(request);
+ return executeDeleteInput(request);
+ }
+
+ @SdkInternalApi
+ final DeleteInputResult executeDeleteInput(DeleteInputRequest deleteInputRequest) {
+
+ ExecutionContext executionContext = createExecutionContext(deleteInputRequest);
+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
+ Request request = null;
+ Response response = null;
+
+ try {
+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
+ try {
+ request = new DeleteInputRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(deleteInputRequest));
+ // Binds the request metrics to the current request.
+ request.setAWSRequestMetrics(awsRequestMetrics);
+ request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
+ request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Events");
+ request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteInput");
+ request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
+
+ } finally {
+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
+ }
+
+ HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
+ new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DeleteInputResultJsonUnmarshaller());
+ response = invoke(request, responseHandler, executionContext);
+
+ return response.getAwsResponse();
+
+ } finally {
+
+ endClientExecution(awsRequestMetrics, request, response);
+ }
+ }
+
+ /**
+ *
+ * Describes a detector model. If the version
parameter is not specified, information about the latest
+ * version is returned.
+ *
+ *
+ * @param describeDetectorModelRequest
+ * @return Result of the DescribeDetectorModel operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.DescribeDetectorModel
+ * @see AWS API Documentation
+ */
+ @Override
+ public DescribeDetectorModelResult describeDetectorModel(DescribeDetectorModelRequest request) {
+ request = beforeClientExecution(request);
+ return executeDescribeDetectorModel(request);
+ }
+
+ @SdkInternalApi
+ final DescribeDetectorModelResult executeDescribeDetectorModel(DescribeDetectorModelRequest describeDetectorModelRequest) {
+
+ ExecutionContext executionContext = createExecutionContext(describeDetectorModelRequest);
+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
+ Request request = null;
+ Response response = null;
+
+ try {
+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
+ try {
+ request = new DescribeDetectorModelRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeDetectorModelRequest));
+ // Binds the request metrics to the current request.
+ request.setAWSRequestMetrics(awsRequestMetrics);
+ request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
+ request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Events");
+ request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDetectorModel");
+ request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
+
+ } finally {
+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
+ }
+
+ HttpResponseHandler> responseHandler = protocolFactory
+ .createResponseHandler(new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
+ new DescribeDetectorModelResultJsonUnmarshaller());
+ response = invoke(request, responseHandler, executionContext);
+
+ return response.getAwsResponse();
+
+ } finally {
+
+ endClientExecution(awsRequestMetrics, request, response);
+ }
+ }
+
+ /**
+ *
+ * Describes an input.
+ *
+ *
+ * @param describeInputRequest
+ * @return Result of the DescribeInput operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.DescribeInput
+ * @see AWS API
+ * Documentation
+ */
+ @Override
+ public DescribeInputResult describeInput(DescribeInputRequest request) {
+ request = beforeClientExecution(request);
+ return executeDescribeInput(request);
+ }
+
+ @SdkInternalApi
+ final DescribeInputResult executeDescribeInput(DescribeInputRequest describeInputRequest) {
+
+ ExecutionContext executionContext = createExecutionContext(describeInputRequest);
+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
+ Request request = null;
+ Response response = null;
+
+ try {
+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
+ try {
+ request = new DescribeInputRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeInputRequest));
+ // Binds the request metrics to the current request.
+ request.setAWSRequestMetrics(awsRequestMetrics);
+ request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
+ request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Events");
+ request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeInput");
+ request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
+
+ } finally {
+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
+ }
+
+ HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
+ new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new DescribeInputResultJsonUnmarshaller());
+ response = invoke(request, responseHandler, executionContext);
+
+ return response.getAwsResponse();
+
+ } finally {
+
+ endClientExecution(awsRequestMetrics, request, response);
+ }
+ }
+
+ /**
+ *
+ * Retrieves the current settings of the AWS IoT Events logging options.
+ *
+ *
+ * @param describeLoggingOptionsRequest
+ * @return Result of the DescribeLoggingOptions operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @throws UnsupportedOperationException
+ * The requested operation is not supported.
+ * @sample AWSIoTEvents.DescribeLoggingOptions
+ * @see AWS API Documentation
+ */
+ @Override
+ public DescribeLoggingOptionsResult describeLoggingOptions(DescribeLoggingOptionsRequest request) {
+ request = beforeClientExecution(request);
+ return executeDescribeLoggingOptions(request);
+ }
+
+ @SdkInternalApi
+ final DescribeLoggingOptionsResult executeDescribeLoggingOptions(DescribeLoggingOptionsRequest describeLoggingOptionsRequest) {
+
+ ExecutionContext executionContext = createExecutionContext(describeLoggingOptionsRequest);
+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
+ Request request = null;
+ Response response = null;
+
+ try {
+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
+ try {
+ request = new DescribeLoggingOptionsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(describeLoggingOptionsRequest));
+ // Binds the request metrics to the current request.
+ request.setAWSRequestMetrics(awsRequestMetrics);
+ request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
+ request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Events");
+ request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeLoggingOptions");
+ request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
+
+ } finally {
+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
+ }
+
+ HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
+ new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
+ new DescribeLoggingOptionsResultJsonUnmarshaller());
+ response = invoke(request, responseHandler, executionContext);
+
+ return response.getAwsResponse();
+
+ } finally {
+
+ endClientExecution(awsRequestMetrics, request, response);
+ }
+ }
+
+ /**
+ *
+ * Lists all the versions of a detector model. Only the metadata associated with each detector model version is
+ * returned.
+ *
+ *
+ * @param listDetectorModelVersionsRequest
+ * @return Result of the ListDetectorModelVersions operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ResourceNotFoundException
+ * The resource was not found.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.ListDetectorModelVersions
+ * @see AWS API Documentation
+ */
+ @Override
+ public ListDetectorModelVersionsResult listDetectorModelVersions(ListDetectorModelVersionsRequest request) {
+ request = beforeClientExecution(request);
+ return executeListDetectorModelVersions(request);
+ }
+
+ @SdkInternalApi
+ final ListDetectorModelVersionsResult executeListDetectorModelVersions(ListDetectorModelVersionsRequest listDetectorModelVersionsRequest) {
+
+ ExecutionContext executionContext = createExecutionContext(listDetectorModelVersionsRequest);
+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
+ Request request = null;
+ Response response = null;
+
+ try {
+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
+ try {
+ request = new ListDetectorModelVersionsRequestProtocolMarshaller(protocolFactory).marshall(super
+ .beforeMarshalling(listDetectorModelVersionsRequest));
+ // Binds the request metrics to the current request.
+ request.setAWSRequestMetrics(awsRequestMetrics);
+ request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
+ request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Events");
+ request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDetectorModelVersions");
+ request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
+
+ } finally {
+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
+ }
+
+ HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
+ new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false),
+ new ListDetectorModelVersionsResultJsonUnmarshaller());
+ response = invoke(request, responseHandler, executionContext);
+
+ return response.getAwsResponse();
+
+ } finally {
+
+ endClientExecution(awsRequestMetrics, request, response);
+ }
+ }
+
+ /**
+ *
+ * Lists the detector models you have created. Only the metadata associated with each detector model is returned.
+ *
+ *
+ * @param listDetectorModelsRequest
+ * @return Result of the ListDetectorModels operation returned by the service.
+ * @throws InvalidRequestException
+ * The request was invalid.
+ * @throws ThrottlingException
+ * The request could not be completed due to throttling.
+ * @throws InternalFailureException
+ * An internal failure occurred.
+ * @throws ServiceUnavailableException
+ * The service is currently unavailable.
+ * @sample AWSIoTEvents.ListDetectorModels
+ * @see AWS
+ * API Documentation
+ */
+ @Override
+ public ListDetectorModelsResult listDetectorModels(ListDetectorModelsRequest request) {
+ request = beforeClientExecution(request);
+ return executeListDetectorModels(request);
+ }
+
+ @SdkInternalApi
+ final ListDetectorModelsResult executeListDetectorModels(ListDetectorModelsRequest listDetectorModelsRequest) {
+
+ ExecutionContext executionContext = createExecutionContext(listDetectorModelsRequest);
+ AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
+ awsRequestMetrics.startEvent(Field.ClientExecuteTime);
+ Request request = null;
+ Response response = null;
+
+ try {
+ awsRequestMetrics.startEvent(Field.RequestMarshallTime);
+ try {
+ request = new ListDetectorModelsRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listDetectorModelsRequest));
+ // Binds the request metrics to the current request.
+ request.setAWSRequestMetrics(awsRequestMetrics);
+ request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
+ request.addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT Events");
+ request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListDetectorModels");
+ request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
+
+ } finally {
+ awsRequestMetrics.endEvent(Field.RequestMarshallTime);
+ }
+
+ HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler(
+ new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListDetectorModelsResultJsonUnmarshaller());
+ response = invoke(request, responseHandler, executionContext);
+
+ return response.getAwsResponse();
+
+ } finally {
+
+ endClientExecution(awsRequestMetrics, request, response);
+ }
+ }
+
+ /**
+ *