diff --git a/CHANGELOG.md b/CHANGELOG.md index fc2bc022b977..d94ca3b6aefe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +# __1.12.96__ __2021-10-26__ +## __Amazon Chime SDK Identity__ + - ### Features + - The Amazon Chime SDK now supports push notifications through Amazon Pinpoint + +## __Amazon Chime SDK Messaging__ + - ### Features + - The Amazon Chime SDK now supports push notifications through Amazon Pinpoint + +## __Amazon EMR Containers__ + - ### Features + - This feature enables auto-generation of certificate to secure the managed-endpoint and removes the need for customer provided certificate-arn during managed-endpoint setup. + # __1.12.95__ __2021-10-25__ ## __AWS Audit Manager__ - ### Features diff --git a/README.md b/README.md index caf1e602f648..ce922eab2006 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ dependencies. com.amazonaws aws-java-sdk-bom - 1.12.95 + 1.12.96 pom import diff --git a/aws-java-sdk-accessanalyzer/pom.xml b/aws-java-sdk-accessanalyzer/pom.xml index 5e9be6bed87a..b779db436992 100644 --- a/aws-java-sdk-accessanalyzer/pom.xml +++ b/aws-java-sdk-accessanalyzer/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-accessanalyzer diff --git a/aws-java-sdk-account/pom.xml b/aws-java-sdk-account/pom.xml index 8687ed8319c8..342f796d341b 100644 --- a/aws-java-sdk-account/pom.xml +++ b/aws-java-sdk-account/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-account diff --git a/aws-java-sdk-acm/pom.xml b/aws-java-sdk-acm/pom.xml index 151324e4f481..972658028e17 100644 --- a/aws-java-sdk-acm/pom.xml +++ b/aws-java-sdk-acm/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-acm diff --git a/aws-java-sdk-acmpca/pom.xml b/aws-java-sdk-acmpca/pom.xml index 4c7dcbb7efac..dede80d00244 100644 --- a/aws-java-sdk-acmpca/pom.xml +++ b/aws-java-sdk-acmpca/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-acmpca diff --git a/aws-java-sdk-alexaforbusiness/pom.xml b/aws-java-sdk-alexaforbusiness/pom.xml index 858e3c574d01..57e6d1e81bfa 100644 --- a/aws-java-sdk-alexaforbusiness/pom.xml +++ b/aws-java-sdk-alexaforbusiness/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-alexaforbusiness diff --git a/aws-java-sdk-amplify/pom.xml b/aws-java-sdk-amplify/pom.xml index 62beb84c5abd..4a9a171aa3fd 100644 --- a/aws-java-sdk-amplify/pom.xml +++ b/aws-java-sdk-amplify/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-amplify diff --git a/aws-java-sdk-amplifybackend/pom.xml b/aws-java-sdk-amplifybackend/pom.xml index e01cb3a9cfe7..b839ab6b00c6 100644 --- a/aws-java-sdk-amplifybackend/pom.xml +++ b/aws-java-sdk-amplifybackend/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-amplifybackend diff --git a/aws-java-sdk-api-gateway/pom.xml b/aws-java-sdk-api-gateway/pom.xml index 2295f7542628..34417de4678b 100644 --- a/aws-java-sdk-api-gateway/pom.xml +++ b/aws-java-sdk-api-gateway/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-api-gateway diff --git a/aws-java-sdk-apigatewaymanagementapi/pom.xml b/aws-java-sdk-apigatewaymanagementapi/pom.xml index 74ea2ee572d7..60266ea422ea 100644 --- a/aws-java-sdk-apigatewaymanagementapi/pom.xml +++ b/aws-java-sdk-apigatewaymanagementapi/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-apigatewaymanagementapi diff --git a/aws-java-sdk-apigatewayv2/pom.xml b/aws-java-sdk-apigatewayv2/pom.xml index 92c16509baed..fb15707107df 100644 --- a/aws-java-sdk-apigatewayv2/pom.xml +++ b/aws-java-sdk-apigatewayv2/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-apigatewayv2 diff --git a/aws-java-sdk-appconfig/pom.xml b/aws-java-sdk-appconfig/pom.xml index 81d0f53e052c..89926867b4f1 100644 --- a/aws-java-sdk-appconfig/pom.xml +++ b/aws-java-sdk-appconfig/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-appconfig diff --git a/aws-java-sdk-appflow/pom.xml b/aws-java-sdk-appflow/pom.xml index 8f4d9e999e2c..a7ad10ba217d 100644 --- a/aws-java-sdk-appflow/pom.xml +++ b/aws-java-sdk-appflow/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-appflow diff --git a/aws-java-sdk-appintegrations/pom.xml b/aws-java-sdk-appintegrations/pom.xml index 7e09e5f495c1..29ff9447e721 100644 --- a/aws-java-sdk-appintegrations/pom.xml +++ b/aws-java-sdk-appintegrations/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-appintegrations diff --git a/aws-java-sdk-applicationautoscaling/pom.xml b/aws-java-sdk-applicationautoscaling/pom.xml index eb3fe2bb96f5..0d90d1ca4a4c 100644 --- a/aws-java-sdk-applicationautoscaling/pom.xml +++ b/aws-java-sdk-applicationautoscaling/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-applicationautoscaling diff --git a/aws-java-sdk-applicationcostprofiler/pom.xml b/aws-java-sdk-applicationcostprofiler/pom.xml index 4031f19d9721..7a23dc6b0ea0 100644 --- a/aws-java-sdk-applicationcostprofiler/pom.xml +++ b/aws-java-sdk-applicationcostprofiler/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-applicationcostprofiler diff --git a/aws-java-sdk-applicationinsights/pom.xml b/aws-java-sdk-applicationinsights/pom.xml index 9f68fe3027e2..159fd1802328 100644 --- a/aws-java-sdk-applicationinsights/pom.xml +++ b/aws-java-sdk-applicationinsights/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-applicationinsights diff --git a/aws-java-sdk-appmesh/pom.xml b/aws-java-sdk-appmesh/pom.xml index af5239a46a80..569533637e8d 100644 --- a/aws-java-sdk-appmesh/pom.xml +++ b/aws-java-sdk-appmesh/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-appmesh diff --git a/aws-java-sdk-appregistry/pom.xml b/aws-java-sdk-appregistry/pom.xml index 1e835b0bdcea..a75435c2444c 100644 --- a/aws-java-sdk-appregistry/pom.xml +++ b/aws-java-sdk-appregistry/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-appregistry diff --git a/aws-java-sdk-apprunner/pom.xml b/aws-java-sdk-apprunner/pom.xml index 1dd89836c06c..0e6d3c34d6ae 100644 --- a/aws-java-sdk-apprunner/pom.xml +++ b/aws-java-sdk-apprunner/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-apprunner diff --git a/aws-java-sdk-appstream/pom.xml b/aws-java-sdk-appstream/pom.xml index 08ab98b75552..f7c8322a94a9 100644 --- a/aws-java-sdk-appstream/pom.xml +++ b/aws-java-sdk-appstream/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-appstream diff --git a/aws-java-sdk-appsync/pom.xml b/aws-java-sdk-appsync/pom.xml index 1c36c6cfae6b..a733dd82faf3 100644 --- a/aws-java-sdk-appsync/pom.xml +++ b/aws-java-sdk-appsync/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-appsync diff --git a/aws-java-sdk-athena/pom.xml b/aws-java-sdk-athena/pom.xml index 5c38c6dc48be..fa6577120f7e 100644 --- a/aws-java-sdk-athena/pom.xml +++ b/aws-java-sdk-athena/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-athena diff --git a/aws-java-sdk-auditmanager/pom.xml b/aws-java-sdk-auditmanager/pom.xml index baafe159ee30..1bbae1c4d1df 100644 --- a/aws-java-sdk-auditmanager/pom.xml +++ b/aws-java-sdk-auditmanager/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-auditmanager diff --git a/aws-java-sdk-augmentedairuntime/pom.xml b/aws-java-sdk-augmentedairuntime/pom.xml index 530d4e44b5d7..5b8e013d3d50 100644 --- a/aws-java-sdk-augmentedairuntime/pom.xml +++ b/aws-java-sdk-augmentedairuntime/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-augmentedairuntime diff --git a/aws-java-sdk-autoscaling/pom.xml b/aws-java-sdk-autoscaling/pom.xml index 1dc6d6c042b6..de0dcdd2be6a 100644 --- a/aws-java-sdk-autoscaling/pom.xml +++ b/aws-java-sdk-autoscaling/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-autoscaling diff --git a/aws-java-sdk-autoscalingplans/pom.xml b/aws-java-sdk-autoscalingplans/pom.xml index 0bf513df4354..295dcce795f9 100644 --- a/aws-java-sdk-autoscalingplans/pom.xml +++ b/aws-java-sdk-autoscalingplans/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-autoscalingplans diff --git a/aws-java-sdk-backup/pom.xml b/aws-java-sdk-backup/pom.xml index dab86161df0a..04374eb09e9a 100644 --- a/aws-java-sdk-backup/pom.xml +++ b/aws-java-sdk-backup/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-backup diff --git a/aws-java-sdk-batch/pom.xml b/aws-java-sdk-batch/pom.xml index ca95178b7280..cdc910e1d3ad 100644 --- a/aws-java-sdk-batch/pom.xml +++ b/aws-java-sdk-batch/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-batch diff --git a/aws-java-sdk-bom/pom.xml b/aws-java-sdk-bom/pom.xml index 06d3d7413d5e..644a39d5ab7d 100644 --- a/aws-java-sdk-bom/pom.xml +++ b/aws-java-sdk-bom/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-bom diff --git a/aws-java-sdk-braket/pom.xml b/aws-java-sdk-braket/pom.xml index aa74eac5e6eb..0036c6e1544f 100644 --- a/aws-java-sdk-braket/pom.xml +++ b/aws-java-sdk-braket/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-braket diff --git a/aws-java-sdk-budgets/pom.xml b/aws-java-sdk-budgets/pom.xml index dc34963c39c2..01cd89ab1bbc 100644 --- a/aws-java-sdk-budgets/pom.xml +++ b/aws-java-sdk-budgets/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-budgets diff --git a/aws-java-sdk-bundle/pom.xml b/aws-java-sdk-bundle/pom.xml index e260579b284e..bc64d5e3ee4e 100644 --- a/aws-java-sdk-bundle/pom.xml +++ b/aws-java-sdk-bundle/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-bundle @@ -24,7 +24,7 @@ aws-java-sdk com.amazonaws false - 1.12.96-SNAPSHOT + 1.12.96 diff --git a/aws-java-sdk-chime/pom.xml b/aws-java-sdk-chime/pom.xml index 010fdb58adaa..79051c209d5a 100644 --- a/aws-java-sdk-chime/pom.xml +++ b/aws-java-sdk-chime/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-chime diff --git a/aws-java-sdk-chimesdkidentity/pom.xml b/aws-java-sdk-chimesdkidentity/pom.xml index 02a42df8258b..b8da80b44f9e 100644 --- a/aws-java-sdk-chimesdkidentity/pom.xml +++ b/aws-java-sdk-chimesdkidentity/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-chimesdkidentity diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AbstractAmazonChimeSDKIdentity.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AbstractAmazonChimeSDKIdentity.java index 004787efe95c..6765a29a18c1 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AbstractAmazonChimeSDKIdentity.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AbstractAmazonChimeSDKIdentity.java @@ -57,6 +57,11 @@ public DeleteAppInstanceUserResult deleteAppInstanceUser(DeleteAppInstanceUserRe throw new java.lang.UnsupportedOperationException(); } + @Override + public DeregisterAppInstanceUserEndpointResult deregisterAppInstanceUserEndpoint(DeregisterAppInstanceUserEndpointRequest request) { + throw new java.lang.UnsupportedOperationException(); + } + @Override public DescribeAppInstanceResult describeAppInstance(DescribeAppInstanceRequest request) { throw new java.lang.UnsupportedOperationException(); @@ -72,6 +77,11 @@ public DescribeAppInstanceUserResult describeAppInstanceUser(DescribeAppInstance throw new java.lang.UnsupportedOperationException(); } + @Override + public DescribeAppInstanceUserEndpointResult describeAppInstanceUserEndpoint(DescribeAppInstanceUserEndpointRequest request) { + throw new java.lang.UnsupportedOperationException(); + } + @Override public GetAppInstanceRetentionSettingsResult getAppInstanceRetentionSettings(GetAppInstanceRetentionSettingsRequest request) { throw new java.lang.UnsupportedOperationException(); @@ -82,6 +92,11 @@ public ListAppInstanceAdminsResult listAppInstanceAdmins(ListAppInstanceAdminsRe throw new java.lang.UnsupportedOperationException(); } + @Override + public ListAppInstanceUserEndpointsResult listAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest request) { + throw new java.lang.UnsupportedOperationException(); + } + @Override public ListAppInstanceUsersResult listAppInstanceUsers(ListAppInstanceUsersRequest request) { throw new java.lang.UnsupportedOperationException(); @@ -92,11 +107,31 @@ public ListAppInstancesResult listAppInstances(ListAppInstancesRequest request) throw new java.lang.UnsupportedOperationException(); } + @Override + public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { + throw new java.lang.UnsupportedOperationException(); + } + @Override public PutAppInstanceRetentionSettingsResult putAppInstanceRetentionSettings(PutAppInstanceRetentionSettingsRequest request) { throw new java.lang.UnsupportedOperationException(); } + @Override + public RegisterAppInstanceUserEndpointResult registerAppInstanceUserEndpoint(RegisterAppInstanceUserEndpointRequest request) { + throw new java.lang.UnsupportedOperationException(); + } + + @Override + public TagResourceResult tagResource(TagResourceRequest request) { + throw new java.lang.UnsupportedOperationException(); + } + + @Override + public UntagResourceResult untagResource(UntagResourceRequest request) { + throw new java.lang.UnsupportedOperationException(); + } + @Override public UpdateAppInstanceResult updateAppInstance(UpdateAppInstanceRequest request) { throw new java.lang.UnsupportedOperationException(); @@ -107,6 +142,11 @@ public UpdateAppInstanceUserResult updateAppInstanceUser(UpdateAppInstanceUserRe throw new java.lang.UnsupportedOperationException(); } + @Override + public UpdateAppInstanceUserEndpointResult updateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest request) { + throw new java.lang.UnsupportedOperationException(); + } + @Override public void shutdown() { throw new java.lang.UnsupportedOperationException(); diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AbstractAmazonChimeSDKIdentityAsync.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AbstractAmazonChimeSDKIdentityAsync.java index 2b12f5bd00c3..8c6639564942 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AbstractAmazonChimeSDKIdentityAsync.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AbstractAmazonChimeSDKIdentityAsync.java @@ -105,6 +105,21 @@ public java.util.concurrent.Future deleteAppInstanc throw new java.lang.UnsupportedOperationException(); } + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest request) { + + return deregisterAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest request, + com.amazonaws.handlers.AsyncHandler asyncHandler) { + + throw new java.lang.UnsupportedOperationException(); + } + @Override public java.util.concurrent.Future describeAppInstanceAsync(DescribeAppInstanceRequest request) { @@ -144,6 +159,21 @@ public java.util.concurrent.Future describeAppIns throw new java.lang.UnsupportedOperationException(); } + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest request) { + + return describeAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest request, + com.amazonaws.handlers.AsyncHandler asyncHandler) { + + throw new java.lang.UnsupportedOperationException(); + } + @Override public java.util.concurrent.Future getAppInstanceRetentionSettingsAsync( GetAppInstanceRetentionSettingsRequest request) { @@ -172,6 +202,19 @@ public java.util.concurrent.Future listAppInstanceA throw new java.lang.UnsupportedOperationException(); } + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(ListAppInstanceUserEndpointsRequest request) { + + return listAppInstanceUserEndpointsAsync(request, null); + } + + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(ListAppInstanceUserEndpointsRequest request, + com.amazonaws.handlers.AsyncHandler asyncHandler) { + + throw new java.lang.UnsupportedOperationException(); + } + @Override public java.util.concurrent.Future listAppInstanceUsersAsync(ListAppInstanceUsersRequest request) { @@ -198,6 +241,19 @@ public java.util.concurrent.Future listAppInstancesAsync throw new java.lang.UnsupportedOperationException(); } + @Override + public java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest request) { + + return listTagsForResourceAsync(request, null); + } + + @Override + public java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest request, + com.amazonaws.handlers.AsyncHandler asyncHandler) { + + throw new java.lang.UnsupportedOperationException(); + } + @Override public java.util.concurrent.Future putAppInstanceRetentionSettingsAsync( PutAppInstanceRetentionSettingsRequest request) { @@ -213,6 +269,47 @@ public java.util.concurrent.Future putApp throw new java.lang.UnsupportedOperationException(); } + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest request) { + + return registerAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest request, + com.amazonaws.handlers.AsyncHandler asyncHandler) { + + throw new java.lang.UnsupportedOperationException(); + } + + @Override + public java.util.concurrent.Future tagResourceAsync(TagResourceRequest request) { + + return tagResourceAsync(request, null); + } + + @Override + public java.util.concurrent.Future tagResourceAsync(TagResourceRequest request, + com.amazonaws.handlers.AsyncHandler asyncHandler) { + + throw new java.lang.UnsupportedOperationException(); + } + + @Override + public java.util.concurrent.Future untagResourceAsync(UntagResourceRequest request) { + + return untagResourceAsync(request, null); + } + + @Override + public java.util.concurrent.Future untagResourceAsync(UntagResourceRequest request, + com.amazonaws.handlers.AsyncHandler asyncHandler) { + + throw new java.lang.UnsupportedOperationException(); + } + @Override public java.util.concurrent.Future updateAppInstanceAsync(UpdateAppInstanceRequest request) { @@ -239,4 +336,17 @@ public java.util.concurrent.Future updateAppInstanc throw new java.lang.UnsupportedOperationException(); } + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync(UpdateAppInstanceUserEndpointRequest request) { + + return updateAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync(UpdateAppInstanceUserEndpointRequest request, + com.amazonaws.handlers.AsyncHandler asyncHandler) { + + throw new java.lang.UnsupportedOperationException(); + } + } diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentity.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentity.java index ee72aad43b75..bf39487b9850 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentity.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentity.java @@ -239,6 +239,32 @@ public interface AmazonChimeSDKIdentity { */ DeleteAppInstanceUserResult deleteAppInstanceUser(DeleteAppInstanceUserRequest deleteAppInstanceUserRequest); + /** + * + * Deregisters an AppInstanceUserEndpoint. + * + * + * @param deregisterAppInstanceUserEndpointRequest + * @return Result of the DeregisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DeregisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + DeregisterAppInstanceUserEndpointResult deregisterAppInstanceUserEndpoint(DeregisterAppInstanceUserEndpointRequest deregisterAppInstanceUserEndpointRequest); + /** * * Returns the full details of an AppInstance. @@ -314,6 +340,32 @@ public interface AmazonChimeSDKIdentity { */ DescribeAppInstanceUserResult describeAppInstanceUser(DescribeAppInstanceUserRequest describeAppInstanceUserRequest); + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @return Result of the DescribeAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + DescribeAppInstanceUserEndpointResult describeAppInstanceUserEndpoint(DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest); + /** * * Gets the retention settings for an AppInstance. @@ -367,6 +419,31 @@ public interface AmazonChimeSDKIdentity { */ ListAppInstanceAdminsResult listAppInstanceAdmins(ListAppInstanceAdminsRequest listAppInstanceAdminsRequest); + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return Result of the ListAppInstanceUserEndpoints operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + ListAppInstanceUserEndpointsResult listAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest); + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -417,6 +494,31 @@ public interface AmazonChimeSDKIdentity { */ ListAppInstancesResult listAppInstances(ListAppInstancesRequest listAppInstancesRequest); + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return Result of the ListTagsForResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListTagsForResource + * @see AWS API Documentation + */ + ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest); + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -443,6 +545,90 @@ public interface AmazonChimeSDKIdentity { */ PutAppInstanceRetentionSettingsResult putAppInstanceRetentionSettings(PutAppInstanceRetentionSettingsRequest putAppInstanceRetentionSettingsRequest); + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return Result of the RegisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + RegisterAppInstanceUserEndpointResult registerAppInstanceUserEndpoint(RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return Result of the TagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.TagResource + * @see AWS + * API Documentation + */ + TagResourceResult tagResource(TagResourceRequest tagResourceRequest); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return Result of the UntagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UntagResource + * @see AWS API Documentation + */ + UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest); + /** * * Updates AppInstance metadata. @@ -499,6 +685,34 @@ public interface AmazonChimeSDKIdentity { */ UpdateAppInstanceUserResult updateAppInstanceUser(UpdateAppInstanceUserRequest updateAppInstanceUserRequest); + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return Result of the UpdateAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + UpdateAppInstanceUserEndpointResult updateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest); + /** * 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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsync.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsync.java index 793af0ed92ca..b09531d88182 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsync.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsync.java @@ -266,6 +266,43 @@ java.util.concurrent.Future deleteAppInstanceAdmin java.util.concurrent.Future deleteAppInstanceUserAsync(DeleteAppInstanceUserRequest deleteAppInstanceUserRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Deregisters an AppInstanceUserEndpoint. + * + * + * @param deregisterAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the DeregisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.DeregisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest deregisterAppInstanceUserEndpointRequest); + + /** + * + * Deregisters an AppInstanceUserEndpoint. + * + * + * @param deregisterAppInstanceUserEndpointRequest + * @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 DeregisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.DeregisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest deregisterAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Returns the full details of an AppInstance. @@ -359,6 +396,43 @@ java.util.concurrent.Future describeAppInstanceA java.util.concurrent.Future describeAppInstanceUserAsync(DescribeAppInstanceUserRequest describeAppInstanceUserRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the DescribeAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest); + + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @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 DescribeAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Gets the retention settings for an AppInstance. @@ -427,6 +501,41 @@ java.util.concurrent.Future getAppInstanc java.util.concurrent.Future listAppInstanceAdminsAsync(ListAppInstanceAdminsRequest listAppInstanceAdminsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return A Java Future containing the result of the ListAppInstanceUserEndpoints operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + java.util.concurrent.Future listAppInstanceUserEndpointsAsync( + ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest); + + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @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 ListAppInstanceUserEndpoints operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + java.util.concurrent.Future listAppInstanceUserEndpointsAsync( + ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -489,6 +598,37 @@ java.util.concurrent.Future listAppInstanceUsersAsyn java.util.concurrent.Future listAppInstancesAsync(ListAppInstancesRequest listAppInstancesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.ListTagsForResource + * @see AWS API Documentation + */ + java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest); + + /** + * + * Lists the tags applied to an Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.ListTagsForResource + * @see AWS API Documentation + */ + java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -526,6 +666,109 @@ java.util.concurrent.Future putAppInstanc PutAppInstanceRetentionSettingsRequest putAppInstanceRetentionSettingsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest); + + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @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 RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return A Java Future containing the result of the TagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return A Java Future containing the result of the UntagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Updates AppInstance metadata. @@ -588,4 +831,41 @@ java.util.concurrent.Future updateAppInstanceAsync(Upda java.util.concurrent.Future updateAppInstanceUserAsync(UpdateAppInstanceUserRequest updateAppInstanceUserRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest); + + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @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 UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + } diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java index 79a7c99c89a5..077b0ec961fd 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java @@ -277,6 +277,41 @@ public DeleteAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest request) { + + return deregisterAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + final DeregisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DeregisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DeregisterAppInstanceUserEndpointResult call() throws Exception { + DeregisterAppInstanceUserEndpointResult result = null; + + try { + result = executeDeregisterAppInstanceUserEndpoint(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 describeAppInstanceAsync(DescribeAppInstanceRequest request) { @@ -376,6 +411,41 @@ public DescribeAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest request) { + + return describeAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + final DescribeAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DescribeAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DescribeAppInstanceUserEndpointResult call() throws Exception { + DescribeAppInstanceUserEndpointResult result = null; + + try { + result = executeDescribeAppInstanceUserEndpoint(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 getAppInstanceRetentionSettingsAsync( GetAppInstanceRetentionSettingsRequest request) { @@ -444,6 +514,39 @@ public ListAppInstanceAdminsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(ListAppInstanceUserEndpointsRequest request) { + + return listAppInstanceUserEndpointsAsync(request, null); + } + + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(final ListAppInstanceUserEndpointsRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final ListAppInstanceUserEndpointsRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public ListAppInstanceUserEndpointsResult call() throws Exception { + ListAppInstanceUserEndpointsResult result = null; + + try { + result = executeListAppInstanceUserEndpoints(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 listAppInstanceUsersAsync(ListAppInstanceUsersRequest request) { @@ -510,6 +613,39 @@ public ListAppInstancesResult call() throws Exception { }); } + @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 putAppInstanceRetentionSettingsAsync( PutAppInstanceRetentionSettingsRequest request) { @@ -545,6 +681,107 @@ public PutAppInstanceRetentionSettingsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest request) { + + return registerAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + final RegisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final RegisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public RegisterAppInstanceUserEndpointResult call() throws Exception { + RegisterAppInstanceUserEndpointResult result = null; + + try { + result = executeRegisterAppInstanceUserEndpoint(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 updateAppInstanceAsync(UpdateAppInstanceRequest request) { @@ -611,6 +848,40 @@ public UpdateAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync(UpdateAppInstanceUserEndpointRequest request) { + + return updateAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + final UpdateAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final UpdateAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public UpdateAppInstanceUserEndpointResult call() throws Exception { + UpdateAppInstanceUserEndpointResult result = null; + + try { + result = executeUpdateAppInstanceUserEndpoint(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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java index 80c9443de5ff..b8eab7f2c6f7 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java @@ -603,6 +603,77 @@ final DeleteAppInstanceUserResult executeDeleteAppInstanceUser(DeleteAppInstance } } + /** + * + * Deregisters an AppInstanceUserEndpoint. + * + * + * @param deregisterAppInstanceUserEndpointRequest + * @return Result of the DeregisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DeregisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DeregisterAppInstanceUserEndpointResult deregisterAppInstanceUserEndpoint(DeregisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDeregisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DeregisterAppInstanceUserEndpointResult executeDeregisterAppInstanceUserEndpoint( + DeregisterAppInstanceUserEndpointRequest deregisterAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(deregisterAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DeregisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(deregisterAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DeregisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Returns the full details of an AppInstance. @@ -808,6 +879,77 @@ final DescribeAppInstanceUserResult executeDescribeAppInstanceUser(DescribeAppIn } } + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @return Result of the DescribeAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DescribeAppInstanceUserEndpointResult describeAppInstanceUserEndpoint(DescribeAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDescribeAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DescribeAppInstanceUserEndpointResult executeDescribeAppInstanceUserEndpoint( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(describeAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(describeAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DescribeAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Gets the retention settings for an AppInstance. @@ -949,6 +1091,75 @@ final ListAppInstanceAdminsResult executeListAppInstanceAdmins(ListAppInstanceAd } } + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return Result of the ListAppInstanceUserEndpoints operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + @Override + public ListAppInstanceUserEndpointsResult listAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest request) { + request = beforeClientExecution(request); + return executeListAppInstanceUserEndpoints(request); + } + + @SdkInternalApi + final ListAppInstanceUserEndpointsResult executeListAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest) { + + ExecutionContext executionContext = createExecutionContext(listAppInstanceUserEndpointsRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListAppInstanceUserEndpointsRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(listAppInstanceUserEndpointsRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAppInstanceUserEndpoints"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new ListAppInstanceUserEndpointsResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -1083,6 +1294,73 @@ final ListAppInstancesResult executeListAppInstances(ListAppInstancesRequest lis } } + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return Result of the ListTagsForResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListTagsForResource + * @see AWS API Documentation + */ + @Override + public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { + request = beforeClientExecution(request); + return executeListTagsForResource(request); + } + + @SdkInternalApi + final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -1154,6 +1432,219 @@ final PutAppInstanceRetentionSettingsResult executePutAppInstanceRetentionSettin } } + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return Result of the RegisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public RegisterAppInstanceUserEndpointResult registerAppInstanceUserEndpoint(RegisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeRegisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final RegisterAppInstanceUserEndpointResult executeRegisterAppInstanceUserEndpoint( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(registerAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new RegisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(registerAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new RegisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return Result of the TagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.TagResource + * @see AWS + * API Documentation + */ + @Override + public TagResourceResult tagResource(TagResourceRequest request) { + request = beforeClientExecution(request); + return executeTagResource(request); + } + + @SdkInternalApi + final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(tagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return Result of the UntagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UntagResource + * @see AWS API Documentation + */ + @Override + public UntagResourceResult untagResource(UntagResourceRequest request) { + request = beforeClientExecution(request); + return executeUntagResource(request); + } + + @SdkInternalApi + final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(untagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Updates AppInstance metadata. @@ -1295,6 +1786,78 @@ final UpdateAppInstanceUserResult executeUpdateAppInstanceUser(UpdateAppInstance } } + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return Result of the UpdateAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public UpdateAppInstanceUserEndpointResult updateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeUpdateAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final UpdateAppInstanceUserEndpointResult executeUpdateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(updateAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(updateAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new UpdateAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * 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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java new file mode 100644 index 000000000000..ce28b071e3b4 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AllowMessages { + + ALL("ALL"), + NONE("NONE"); + + private String value; + + private AllowMessages(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AllowMessages corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AllowMessages fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AllowMessages enumEntry : AllowMessages.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java new file mode 100644 index 000000000000..de7664ec425d --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java @@ -0,0 +1,858 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push + * notifications, the endpoint is a mobile device used to receive mobile push notifications for a user. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class AppInstanceUserEndpoint implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. + * + */ + private String type; + /** + * + * The ARN of the resource to which the endpoint belongs. + * + */ + private String resourceArn; + /** + * + * The attributes of an Endpoint. + * + */ + private EndpointAttributes endpointAttributes; + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + */ + private java.util.Date createdTimestamp; + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + */ + private java.util.Date lastUpdatedTimestamp; + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + */ + private String allowMessages; + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + */ + private EndpointState endpointState; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointId(String endpointId) { + setEndpointId(endpointId); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @return The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(String type) { + setType(type); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + */ + + public void setResourceArn(String resourceArn) { + this.resourceArn = resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @return The ARN of the resource to which the endpoint belongs. + */ + + public String getResourceArn() { + return this.resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withResourceArn(String resourceArn) { + setResourceArn(resourceArn); + return this; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + */ + + public void setEndpointAttributes(EndpointAttributes endpointAttributes) { + this.endpointAttributes = endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @return The attributes of an Endpoint. + */ + + public EndpointAttributes getEndpointAttributes() { + return this.endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointAttributes(EndpointAttributes endpointAttributes) { + setEndpointAttributes(endpointAttributes); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + */ + + public void setCreatedTimestamp(java.util.Date createdTimestamp) { + this.createdTimestamp = createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @return The time at which an AppInstanceUserEndpoint was created. + */ + + public java.util.Date getCreatedTimestamp() { + return this.createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withCreatedTimestamp(java.util.Date createdTimestamp) { + setCreatedTimestamp(createdTimestamp); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + */ + + public void setLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + this.lastUpdatedTimestamp = lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @return The time at which an AppInstanceUserEndpoint was last updated. + */ + + public java.util.Date getLastUpdatedTimestamp() { + return this.lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + setLastUpdatedTimestamp(lastUpdatedTimestamp); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public void setAllowMessages(String allowMessages) { + this.allowMessages = allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @return Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public String getAllowMessages() { + return this.allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(String allowMessages) { + setAllowMessages(allowMessages); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(AllowMessages allowMessages) { + this.allowMessages = allowMessages.toString(); + return this; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + */ + + public void setEndpointState(EndpointState endpointState) { + this.endpointState = endpointState; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @return A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. + * When ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + */ + + public EndpointState getEndpointState() { + return this.endpointState; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointState(EndpointState endpointState) { + setEndpointState(endpointState); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***").append(","); + if (getName() != null) + sb.append("Name: ").append("***Sensitive Data Redacted***").append(","); + if (getType() != null) + sb.append("Type: ").append(getType()).append(","); + if (getResourceArn() != null) + sb.append("ResourceArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointAttributes() != null) + sb.append("EndpointAttributes: ").append(getEndpointAttributes()).append(","); + if (getCreatedTimestamp() != null) + sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(","); + if (getLastUpdatedTimestamp() != null) + sb.append("LastUpdatedTimestamp: ").append(getLastUpdatedTimestamp()).append(","); + if (getAllowMessages() != null) + sb.append("AllowMessages: ").append(getAllowMessages()).append(","); + if (getEndpointState() != null) + sb.append("EndpointState: ").append(getEndpointState()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AppInstanceUserEndpoint == false) + return false; + AppInstanceUserEndpoint other = (AppInstanceUserEndpoint) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getResourceArn() == null ^ this.getResourceArn() == null) + return false; + if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) + return false; + if (other.getEndpointAttributes() == null ^ this.getEndpointAttributes() == null) + return false; + if (other.getEndpointAttributes() != null && other.getEndpointAttributes().equals(this.getEndpointAttributes()) == false) + return false; + if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) + return false; + if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) + return false; + if (other.getLastUpdatedTimestamp() == null ^ this.getLastUpdatedTimestamp() == null) + return false; + if (other.getLastUpdatedTimestamp() != null && other.getLastUpdatedTimestamp().equals(this.getLastUpdatedTimestamp()) == false) + return false; + if (other.getAllowMessages() == null ^ this.getAllowMessages() == null) + return false; + if (other.getAllowMessages() != null && other.getAllowMessages().equals(this.getAllowMessages()) == false) + return false; + if (other.getEndpointState() == null ^ this.getEndpointState() == null) + return false; + if (other.getEndpointState() != null && other.getEndpointState().equals(this.getEndpointState()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointAttributes() == null) ? 0 : getEndpointAttributes().hashCode()); + hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); + hashCode = prime * hashCode + ((getLastUpdatedTimestamp() == null) ? 0 : getLastUpdatedTimestamp().hashCode()); + hashCode = prime * hashCode + ((getAllowMessages() == null) ? 0 : getAllowMessages().hashCode()); + hashCode = prime * hashCode + ((getEndpointState() == null) ? 0 : getEndpointState().hashCode()); + return hashCode; + } + + @Override + public AppInstanceUserEndpoint clone() { + try { + return (AppInstanceUserEndpoint) 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.chimesdkidentity.model.transform.AppInstanceUserEndpointMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointSummary.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointSummary.java new file mode 100644 index 000000000000..2326e2e57cd7 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointSummary.java @@ -0,0 +1,457 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * Summary of the details of an AppInstanceUserEndpoint. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class AppInstanceUserEndpointSummary implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. + * + */ + private String type; + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + */ + private String allowMessages; + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + */ + private EndpointState endpointState; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withEndpointId(String endpointId) { + setEndpointId(endpointId); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @return The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpointSummary withType(String type) { + setType(type); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpointSummary withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public void setAllowMessages(String allowMessages) { + this.allowMessages = allowMessages; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @return BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public String getAllowMessages() { + return this.allowMessages; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpointSummary withAllowMessages(String allowMessages) { + setAllowMessages(allowMessages); + return this; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpointSummary withAllowMessages(AllowMessages allowMessages) { + this.allowMessages = allowMessages.toString(); + return this; + } + + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + * + * @param endpointState + * A read-only field that represent the state of an AppInstanceUserEndpoint. + */ + + public void setEndpointState(EndpointState endpointState) { + this.endpointState = endpointState; + } + + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + * + * @return A read-only field that represent the state of an AppInstanceUserEndpoint. + */ + + public EndpointState getEndpointState() { + return this.endpointState; + } + + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + * + * @param endpointState + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withEndpointState(EndpointState endpointState) { + setEndpointState(endpointState); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***").append(","); + if (getName() != null) + sb.append("Name: ").append("***Sensitive Data Redacted***").append(","); + if (getType() != null) + sb.append("Type: ").append(getType()).append(","); + if (getAllowMessages() != null) + sb.append("AllowMessages: ").append(getAllowMessages()).append(","); + if (getEndpointState() != null) + sb.append("EndpointState: ").append(getEndpointState()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AppInstanceUserEndpointSummary == false) + return false; + AppInstanceUserEndpointSummary other = (AppInstanceUserEndpointSummary) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getAllowMessages() == null ^ this.getAllowMessages() == null) + return false; + if (other.getAllowMessages() != null && other.getAllowMessages().equals(this.getAllowMessages()) == false) + return false; + if (other.getEndpointState() == null ^ this.getEndpointState() == null) + return false; + if (other.getEndpointState() != null && other.getEndpointState().equals(this.getEndpointState()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getAllowMessages() == null) ? 0 : getAllowMessages().hashCode()); + hashCode = prime * hashCode + ((getEndpointState() == null) ? 0 : getEndpointState().hashCode()); + return hashCode; + } + + @Override + public AppInstanceUserEndpointSummary clone() { + try { + return (AppInstanceUserEndpointSummary) 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.chimesdkidentity.model.transform.AppInstanceUserEndpointSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointType.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointType.java new file mode 100644 index 000000000000..414a61fc8e90 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointType.java @@ -0,0 +1,61 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AppInstanceUserEndpointType { + + APNS("APNS"), + APNS_SANDBOX("APNS_SANDBOX"), + GCM("GCM"); + + private String value; + + private AppInstanceUserEndpointType(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AppInstanceUserEndpointType corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AppInstanceUserEndpointType fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AppInstanceUserEndpointType enumEntry : AppInstanceUserEndpointType.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointRequest.java new file mode 100644 index 000000000000..7300d35f3bb6 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointRequest.java @@ -0,0 +1,177 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DeregisterAppInstanceUserEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DeregisterAppInstanceUserEndpointRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DeregisterAppInstanceUserEndpointRequest withEndpointId(String endpointId) { + setEndpointId(endpointId); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeregisterAppInstanceUserEndpointRequest == false) + return false; + DeregisterAppInstanceUserEndpointRequest other = (DeregisterAppInstanceUserEndpointRequest) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + return hashCode; + } + + @Override + public DeregisterAppInstanceUserEndpointRequest clone() { + return (DeregisterAppInstanceUserEndpointRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointResult.java new file mode 100644 index 000000000000..c25cc0ed3ad3 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointResult.java @@ -0,0 +1,73 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DeregisterAppInstanceUserEndpointResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, + Cloneable { + + /** + * 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 DeregisterAppInstanceUserEndpointResult == false) + return false; + DeregisterAppInstanceUserEndpointResult other = (DeregisterAppInstanceUserEndpointResult) obj; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public DeregisterAppInstanceUserEndpointResult clone() { + try { + return (DeregisterAppInstanceUserEndpointResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointRequest.java new file mode 100644 index 000000000000..d9f9b7713354 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointRequest.java @@ -0,0 +1,177 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DescribeAppInstanceUserEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DescribeAppInstanceUserEndpointRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DescribeAppInstanceUserEndpointRequest withEndpointId(String endpointId) { + setEndpointId(endpointId); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeAppInstanceUserEndpointRequest == false) + return false; + DescribeAppInstanceUserEndpointRequest other = (DescribeAppInstanceUserEndpointRequest) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + return hashCode; + } + + @Override + public DescribeAppInstanceUserEndpointRequest clone() { + return (DescribeAppInstanceUserEndpointRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointResult.java new file mode 100644 index 000000000000..6dfd68f759aa --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointResult.java @@ -0,0 +1,141 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DescribeAppInstanceUserEndpointResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, + Cloneable { + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + */ + private AppInstanceUserEndpoint appInstanceUserEndpoint; + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + * + * @param appInstanceUserEndpoint + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, + * name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All + * timestamps use epoch milliseconds. + */ + + public void setAppInstanceUserEndpoint(AppInstanceUserEndpoint appInstanceUserEndpoint) { + this.appInstanceUserEndpoint = appInstanceUserEndpoint; + } + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + * + * @return The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, + * name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All + * timestamps use epoch milliseconds. + */ + + public AppInstanceUserEndpoint getAppInstanceUserEndpoint() { + return this.appInstanceUserEndpoint; + } + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + * + * @param appInstanceUserEndpoint + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, + * name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All + * timestamps use epoch milliseconds. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DescribeAppInstanceUserEndpointResult withAppInstanceUserEndpoint(AppInstanceUserEndpoint appInstanceUserEndpoint) { + setAppInstanceUserEndpoint(appInstanceUserEndpoint); + 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 (getAppInstanceUserEndpoint() != null) + sb.append("AppInstanceUserEndpoint: ").append(getAppInstanceUserEndpoint()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeAppInstanceUserEndpointResult == false) + return false; + DescribeAppInstanceUserEndpointResult other = (DescribeAppInstanceUserEndpointResult) obj; + if (other.getAppInstanceUserEndpoint() == null ^ this.getAppInstanceUserEndpoint() == null) + return false; + if (other.getAppInstanceUserEndpoint() != null && other.getAppInstanceUserEndpoint().equals(this.getAppInstanceUserEndpoint()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserEndpoint() == null) ? 0 : getAppInstanceUserEndpoint().hashCode()); + return hashCode; + } + + @Override + public DescribeAppInstanceUserEndpointResult clone() { + try { + return (DescribeAppInstanceUserEndpointResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointAttributes.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointAttributes.java new file mode 100644 index 000000000000..651be768f6c3 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointAttributes.java @@ -0,0 +1,189 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * The attributes of an Endpoint. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class EndpointAttributes implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + */ + private String deviceToken; + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + */ + private String voipDeviceToken; + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + * + * @param deviceToken + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + */ + + public void setDeviceToken(String deviceToken) { + this.deviceToken = deviceToken; + } + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + * + * @return The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + */ + + public String getDeviceToken() { + return this.deviceToken; + } + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + * + * @param deviceToken + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public EndpointAttributes withDeviceToken(String deviceToken) { + setDeviceToken(deviceToken); + return this; + } + + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + * + * @param voipDeviceToken + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + */ + + public void setVoipDeviceToken(String voipDeviceToken) { + this.voipDeviceToken = voipDeviceToken; + } + + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + * + * @return The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + */ + + public String getVoipDeviceToken() { + return this.voipDeviceToken; + } + + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + * + * @param voipDeviceToken + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public EndpointAttributes withVoipDeviceToken(String voipDeviceToken) { + setVoipDeviceToken(voipDeviceToken); + 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 (getDeviceToken() != null) + sb.append("DeviceToken: ").append("***Sensitive Data Redacted***").append(","); + if (getVoipDeviceToken() != null) + sb.append("VoipDeviceToken: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof EndpointAttributes == false) + return false; + EndpointAttributes other = (EndpointAttributes) obj; + if (other.getDeviceToken() == null ^ this.getDeviceToken() == null) + return false; + if (other.getDeviceToken() != null && other.getDeviceToken().equals(this.getDeviceToken()) == false) + return false; + if (other.getVoipDeviceToken() == null ^ this.getVoipDeviceToken() == null) + return false; + if (other.getVoipDeviceToken() != null && other.getVoipDeviceToken().equals(this.getVoipDeviceToken()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getDeviceToken() == null) ? 0 : getDeviceToken().hashCode()); + hashCode = prime * hashCode + ((getVoipDeviceToken() == null) ? 0 : getVoipDeviceToken().hashCode()); + return hashCode; + } + + @Override + public EndpointAttributes clone() { + try { + return (EndpointAttributes) 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.chimesdkidentity.model.transform.EndpointAttributesMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointState.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointState.java new file mode 100644 index 000000000000..0b7f1f6764d9 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointState.java @@ -0,0 +1,253 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When INACTIVE, + * the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE due + * to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE due + * to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @see AWS + * API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class EndpointState implements Serializable, Cloneable, StructuredPojo { + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + */ + private String status; + /** + * + * The reason for the EndpointStatus. + * + */ + private String statusReason; + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @param status + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * @see EndpointStatus + */ + + public void setStatus(String status) { + this.status = status; + } + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @return Enum that indicates the Status of an AppInstanceUserEndpoint. + * @see EndpointStatus + */ + + public String getStatus() { + return this.status; + } + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @param status + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatus + */ + + public EndpointState withStatus(String status) { + setStatus(status); + return this; + } + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @param status + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatus + */ + + public EndpointState withStatus(EndpointStatus status) { + this.status = status.toString(); + return this; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @param statusReason + * The reason for the EndpointStatus. + * @see EndpointStatusReason + */ + + public void setStatusReason(String statusReason) { + this.statusReason = statusReason; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @return The reason for the EndpointStatus. + * @see EndpointStatusReason + */ + + public String getStatusReason() { + return this.statusReason; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @param statusReason + * The reason for the EndpointStatus. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatusReason + */ + + public EndpointState withStatusReason(String statusReason) { + setStatusReason(statusReason); + return this; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @param statusReason + * The reason for the EndpointStatus. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatusReason + */ + + public EndpointState withStatusReason(EndpointStatusReason statusReason) { + this.statusReason = statusReason.toString(); + 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 (getStatus() != null) + sb.append("Status: ").append(getStatus()).append(","); + if (getStatusReason() != null) + sb.append("StatusReason: ").append(getStatusReason()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof EndpointState == false) + return false; + EndpointState other = (EndpointState) obj; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getStatusReason() == null ^ this.getStatusReason() == null) + return false; + if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); + return hashCode; + } + + @Override + public EndpointState clone() { + try { + return (EndpointState) 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.chimesdkidentity.model.transform.EndpointStateMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatus.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatus.java new file mode 100644 index 000000000000..b9182ae28703 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatus.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum EndpointStatus { + + ACTIVE("ACTIVE"), + INACTIVE("INACTIVE"); + + private String value; + + private EndpointStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return EndpointStatus corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static EndpointStatus fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (EndpointStatus enumEntry : EndpointStatus.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatusReason.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatusReason.java new file mode 100644 index 000000000000..a4aa96332344 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatusReason.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum EndpointStatusReason { + + INVALID_DEVICE_TOKEN("INVALID_DEVICE_TOKEN"), + INVALID_PINPOINT_ARN("INVALID_PINPOINT_ARN"); + + private String value; + + private EndpointStatusReason(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return EndpointStatusReason corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static EndpointStatusReason fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (EndpointStatusReason enumEntry : EndpointStatusReason.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsRequest.java new file mode 100644 index 000000000000..03f2bdc62e8f --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsRequest.java @@ -0,0 +1,230 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListAppInstanceUserEndpointsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The maximum number of endpoints that you want to return. + * + */ + private Integer maxResults; + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + */ + private String nextToken; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The maximum number of endpoints that you want to return. + * + * + * @param maxResults + * The maximum number of endpoints that you want to return. + */ + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + * + * The maximum number of endpoints that you want to return. + * + * + * @return The maximum number of endpoints that you want to return. + */ + + public Integer getMaxResults() { + return this.maxResults; + } + + /** + * + * The maximum number of endpoints that you want to return. + * + * + * @param maxResults + * The maximum number of endpoints that you want to return. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsRequest withMaxResults(Integer maxResults) { + setMaxResults(maxResults); + return this; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + */ + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @return The token passed by previous API calls until all requested endpoints are returned. + */ + + public String getNextToken() { + return this.nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsRequest withNextToken(String nextToken) { + setNextToken(nextToken); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getMaxResults() != null) + sb.append("MaxResults: ").append(getMaxResults()).append(","); + if (getNextToken() != null) + sb.append("NextToken: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListAppInstanceUserEndpointsRequest == false) + return false; + ListAppInstanceUserEndpointsRequest other = (ListAppInstanceUserEndpointsRequest) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public ListAppInstanceUserEndpointsRequest clone() { + return (ListAppInstanceUserEndpointsRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsResult.java new file mode 100644 index 000000000000..f67fd658e492 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsResult.java @@ -0,0 +1,209 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListAppInstanceUserEndpointsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + */ + private java.util.List appInstanceUserEndpoints; + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + */ + private String nextToken; + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * @return The information for each requested AppInstanceUserEndpoint. + */ + + public java.util.List getAppInstanceUserEndpoints() { + return appInstanceUserEndpoints; + } + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * @param appInstanceUserEndpoints + * The information for each requested AppInstanceUserEndpoint. + */ + + public void setAppInstanceUserEndpoints(java.util.Collection appInstanceUserEndpoints) { + if (appInstanceUserEndpoints == null) { + this.appInstanceUserEndpoints = null; + return; + } + + this.appInstanceUserEndpoints = new java.util.ArrayList(appInstanceUserEndpoints); + } + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setAppInstanceUserEndpoints(java.util.Collection)} or + * {@link #withAppInstanceUserEndpoints(java.util.Collection)} if you want to override the existing values. + * + * + * @param appInstanceUserEndpoints + * The information for each requested AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsResult withAppInstanceUserEndpoints(AppInstanceUserEndpointSummary... appInstanceUserEndpoints) { + if (this.appInstanceUserEndpoints == null) { + setAppInstanceUserEndpoints(new java.util.ArrayList(appInstanceUserEndpoints.length)); + } + for (AppInstanceUserEndpointSummary ele : appInstanceUserEndpoints) { + this.appInstanceUserEndpoints.add(ele); + } + return this; + } + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * @param appInstanceUserEndpoints + * The information for each requested AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsResult withAppInstanceUserEndpoints(java.util.Collection appInstanceUserEndpoints) { + setAppInstanceUserEndpoints(appInstanceUserEndpoints); + return this; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + */ + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @return The token passed by previous API calls until all requested endpoints are returned. + */ + + public String getNextToken() { + return this.nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsResult withNextToken(String nextToken) { + setNextToken(nextToken); + 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 (getAppInstanceUserEndpoints() != null) + sb.append("AppInstanceUserEndpoints: ").append(getAppInstanceUserEndpoints()).append(","); + if (getNextToken() != null) + sb.append("NextToken: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListAppInstanceUserEndpointsResult == false) + return false; + ListAppInstanceUserEndpointsResult other = (ListAppInstanceUserEndpointsResult) obj; + if (other.getAppInstanceUserEndpoints() == null ^ this.getAppInstanceUserEndpoints() == null) + return false; + if (other.getAppInstanceUserEndpoints() != null && other.getAppInstanceUserEndpoints().equals(this.getAppInstanceUserEndpoints()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserEndpoints() == null) ? 0 : getAppInstanceUserEndpoints().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public ListAppInstanceUserEndpointsResult clone() { + try { + return (ListAppInstanceUserEndpointsResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceRequest.java new file mode 100644 index 000000000000..1f515825bf75 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceRequest.java @@ -0,0 +1,124 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListTagsForResourceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the resource. + * + */ + private String resourceARN; + + /** + * + * The ARN of the resource. + * + * + * @param resourceARN + * The ARN of the resource. + */ + + public void setResourceARN(String resourceARN) { + this.resourceARN = resourceARN; + } + + /** + * + * The ARN of the resource. + * + * + * @return The ARN of the resource. + */ + + public String getResourceARN() { + return this.resourceARN; + } + + /** + * + * The ARN of the resource. + * + * + * @param resourceARN + * The ARN of the resource. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListTagsForResourceRequest withResourceARN(String resourceARN) { + setResourceARN(resourceARN); + 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 (getResourceARN() != null) + sb.append("ResourceARN: ").append(getResourceARN()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListTagsForResourceRequest == false) + return false; + ListTagsForResourceRequest other = (ListTagsForResourceRequest) obj; + if (other.getResourceARN() == null ^ this.getResourceARN() == null) + return false; + if (other.getResourceARN() != null && other.getResourceARN().equals(this.getResourceARN()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getResourceARN() == null) ? 0 : getResourceARN().hashCode()); + return hashCode; + } + + @Override + public ListTagsForResourceRequest clone() { + return (ListTagsForResourceRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceResult.java new file mode 100644 index 000000000000..4653c4ebbc7a --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceResult.java @@ -0,0 +1,156 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListTagsForResourceResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { + + /** + * + * The tag key-value pairs. + * + */ + private java.util.List tags; + + /** + * + * The tag key-value pairs. + * + * + * @return The tag key-value pairs. + */ + + public java.util.List getTags() { + return tags; + } + + /** + * + * The tag key-value pairs. + * + * + * @param tags + * The tag key-value pairs. + */ + + public void setTags(java.util.Collection tags) { + if (tags == null) { + this.tags = null; + return; + } + + this.tags = new java.util.ArrayList(tags); + } + + /** + * + * The tag key-value pairs. + * + * + * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the + * existing values. + * + * + * @param tags + * The tag key-value pairs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListTagsForResourceResult withTags(Tag... tags) { + if (this.tags == null) { + setTags(new java.util.ArrayList(tags.length)); + } + for (Tag ele : tags) { + this.tags.add(ele); + } + return this; + } + + /** + * + * The tag key-value pairs. + * + * + * @param tags + * The tag key-value pairs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListTagsForResourceResult withTags(java.util.Collection tags) { + setTags(tags); + 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 (getTags() != null) + sb.append("Tags: ").append(getTags()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListTagsForResourceResult == false) + return false; + ListTagsForResourceResult other = (ListTagsForResourceResult) obj; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + return hashCode; + } + + @Override + public ListTagsForResourceResult clone() { + try { + return (ListTagsForResourceResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/RegisterAppInstanceUserEndpointRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/RegisterAppInstanceUserEndpointRequest.java new file mode 100644 index 000000000000..23305814af41 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/RegisterAppInstanceUserEndpointRequest.java @@ -0,0 +1,670 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class RegisterAppInstanceUserEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * + */ + private String type; + /** + * + * The ARN of the resource to which the endpoint belongs. + * + */ + private String resourceArn; + /** + * + * The attributes of an Endpoint. + * + */ + private EndpointAttributes endpointAttributes; + /** + * + * The idempotency token for each client request. + * + */ + private String clientRequestToken; + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL + * indicates the endpoint receives all messages. NONE indicates the endpoint receives no messages. + * + */ + private String allowMessages; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public RegisterAppInstanceUserEndpointRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public RegisterAppInstanceUserEndpointRequest withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * + * + * @return The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple + * device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. Supported types:
+ * Deregisters an AppInstanceUserEndpoint. + *
AppInstanceUserEndpoint
* Returns the full details of an AppInstance. @@ -314,6 +340,32 @@ public interface AmazonChimeSDKIdentity { */ DescribeAppInstanceUserResult describeAppInstanceUser(DescribeAppInstanceUserRequest describeAppInstanceUserRequest); + /** + *
AppInstance
+ * Returns the full details of an AppInstanceUserEndpoint. + *
* Gets the retention settings for an AppInstance. @@ -367,6 +419,31 @@ public interface AmazonChimeSDKIdentity { */ ListAppInstanceAdminsResult listAppInstanceAdmins(ListAppInstanceAdminsRequest listAppInstanceAdminsRequest); + /** + *
+ * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + *
AppInstanceUserEndpoints
AppInstanceUser
* List all AppInstanceUsers created under a single AppInstance. @@ -417,6 +494,31 @@ public interface AmazonChimeSDKIdentity { */ ListAppInstancesResult listAppInstances(ListAppInstancesRequest listAppInstancesRequest); + /** + *
AppInstanceUsers
+ * Lists the tags applied to an Amazon Chime SDK identity resource. + *
* Sets the amount of time in days that a given AppInstance retains data. @@ -443,6 +545,90 @@ public interface AmazonChimeSDKIdentity { */ PutAppInstanceRetentionSettingsResult putAppInstanceRetentionSettings(PutAppInstanceRetentionSettingsRequest putAppInstanceRetentionSettingsRequest); + /** + *
+ * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + *
+ * Applies the specified tags to the specified Amazon Chime SDK identity resource. + *
+ * Removes the specified tags from the specified Amazon Chime SDK identity resource. + *
* Updates AppInstance metadata. @@ -499,6 +685,34 @@ public interface AmazonChimeSDKIdentity { */ UpdateAppInstanceUserResult updateAppInstanceUser(UpdateAppInstanceUserRequest updateAppInstanceUserRequest); + /** + *
+ * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + *
AllowMessage
* Returns the full details of an AppInstance. @@ -359,6 +396,43 @@ java.util.concurrent.Future describeAppInstanceA java.util.concurrent.Future describeAppInstanceUserAsync(DescribeAppInstanceUserRequest describeAppInstanceUserRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the DescribeAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest); + + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @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 DescribeAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Gets the retention settings for an AppInstance. @@ -427,6 +501,41 @@ java.util.concurrent.Future getAppInstanc java.util.concurrent.Future listAppInstanceAdminsAsync(ListAppInstanceAdminsRequest listAppInstanceAdminsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return A Java Future containing the result of the ListAppInstanceUserEndpoints operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + java.util.concurrent.Future listAppInstanceUserEndpointsAsync( + ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest); + + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @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 ListAppInstanceUserEndpoints operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + java.util.concurrent.Future listAppInstanceUserEndpointsAsync( + ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -489,6 +598,37 @@ java.util.concurrent.Future listAppInstanceUsersAsyn java.util.concurrent.Future listAppInstancesAsync(ListAppInstancesRequest listAppInstancesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.ListTagsForResource + * @see AWS API Documentation + */ + java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest); + + /** + * + * Lists the tags applied to an Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.ListTagsForResource + * @see AWS API Documentation + */ + java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -526,6 +666,109 @@ java.util.concurrent.Future putAppInstanc PutAppInstanceRetentionSettingsRequest putAppInstanceRetentionSettingsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest); + + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @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 RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return A Java Future containing the result of the TagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return A Java Future containing the result of the UntagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Updates AppInstance metadata. @@ -588,4 +831,41 @@ java.util.concurrent.Future updateAppInstanceAsync(Upda java.util.concurrent.Future updateAppInstanceUserAsync(UpdateAppInstanceUserRequest updateAppInstanceUserRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest); + + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @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 UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + } diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java index 79a7c99c89a5..077b0ec961fd 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java @@ -277,6 +277,41 @@ public DeleteAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest request) { + + return deregisterAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + final DeregisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DeregisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DeregisterAppInstanceUserEndpointResult call() throws Exception { + DeregisterAppInstanceUserEndpointResult result = null; + + try { + result = executeDeregisterAppInstanceUserEndpoint(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 describeAppInstanceAsync(DescribeAppInstanceRequest request) { @@ -376,6 +411,41 @@ public DescribeAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest request) { + + return describeAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + final DescribeAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DescribeAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DescribeAppInstanceUserEndpointResult call() throws Exception { + DescribeAppInstanceUserEndpointResult result = null; + + try { + result = executeDescribeAppInstanceUserEndpoint(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 getAppInstanceRetentionSettingsAsync( GetAppInstanceRetentionSettingsRequest request) { @@ -444,6 +514,39 @@ public ListAppInstanceAdminsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(ListAppInstanceUserEndpointsRequest request) { + + return listAppInstanceUserEndpointsAsync(request, null); + } + + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(final ListAppInstanceUserEndpointsRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final ListAppInstanceUserEndpointsRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public ListAppInstanceUserEndpointsResult call() throws Exception { + ListAppInstanceUserEndpointsResult result = null; + + try { + result = executeListAppInstanceUserEndpoints(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 listAppInstanceUsersAsync(ListAppInstanceUsersRequest request) { @@ -510,6 +613,39 @@ public ListAppInstancesResult call() throws Exception { }); } + @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 putAppInstanceRetentionSettingsAsync( PutAppInstanceRetentionSettingsRequest request) { @@ -545,6 +681,107 @@ public PutAppInstanceRetentionSettingsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest request) { + + return registerAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + final RegisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final RegisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public RegisterAppInstanceUserEndpointResult call() throws Exception { + RegisterAppInstanceUserEndpointResult result = null; + + try { + result = executeRegisterAppInstanceUserEndpoint(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 updateAppInstanceAsync(UpdateAppInstanceRequest request) { @@ -611,6 +848,40 @@ public UpdateAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync(UpdateAppInstanceUserEndpointRequest request) { + + return updateAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + final UpdateAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final UpdateAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public UpdateAppInstanceUserEndpointResult call() throws Exception { + UpdateAppInstanceUserEndpointResult result = null; + + try { + result = executeUpdateAppInstanceUserEndpoint(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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java index 80c9443de5ff..b8eab7f2c6f7 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java @@ -603,6 +603,77 @@ final DeleteAppInstanceUserResult executeDeleteAppInstanceUser(DeleteAppInstance } } + /** + * + * Deregisters an AppInstanceUserEndpoint. + * + * + * @param deregisterAppInstanceUserEndpointRequest + * @return Result of the DeregisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DeregisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DeregisterAppInstanceUserEndpointResult deregisterAppInstanceUserEndpoint(DeregisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDeregisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DeregisterAppInstanceUserEndpointResult executeDeregisterAppInstanceUserEndpoint( + DeregisterAppInstanceUserEndpointRequest deregisterAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(deregisterAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DeregisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(deregisterAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DeregisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Returns the full details of an AppInstance. @@ -808,6 +879,77 @@ final DescribeAppInstanceUserResult executeDescribeAppInstanceUser(DescribeAppIn } } + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @return Result of the DescribeAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DescribeAppInstanceUserEndpointResult describeAppInstanceUserEndpoint(DescribeAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDescribeAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DescribeAppInstanceUserEndpointResult executeDescribeAppInstanceUserEndpoint( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(describeAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(describeAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DescribeAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Gets the retention settings for an AppInstance. @@ -949,6 +1091,75 @@ final ListAppInstanceAdminsResult executeListAppInstanceAdmins(ListAppInstanceAd } } + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return Result of the ListAppInstanceUserEndpoints operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + @Override + public ListAppInstanceUserEndpointsResult listAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest request) { + request = beforeClientExecution(request); + return executeListAppInstanceUserEndpoints(request); + } + + @SdkInternalApi + final ListAppInstanceUserEndpointsResult executeListAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest) { + + ExecutionContext executionContext = createExecutionContext(listAppInstanceUserEndpointsRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListAppInstanceUserEndpointsRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(listAppInstanceUserEndpointsRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAppInstanceUserEndpoints"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new ListAppInstanceUserEndpointsResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -1083,6 +1294,73 @@ final ListAppInstancesResult executeListAppInstances(ListAppInstancesRequest lis } } + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return Result of the ListTagsForResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListTagsForResource + * @see AWS API Documentation + */ + @Override + public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { + request = beforeClientExecution(request); + return executeListTagsForResource(request); + } + + @SdkInternalApi + final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -1154,6 +1432,219 @@ final PutAppInstanceRetentionSettingsResult executePutAppInstanceRetentionSettin } } + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return Result of the RegisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public RegisterAppInstanceUserEndpointResult registerAppInstanceUserEndpoint(RegisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeRegisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final RegisterAppInstanceUserEndpointResult executeRegisterAppInstanceUserEndpoint( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(registerAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new RegisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(registerAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new RegisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return Result of the TagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.TagResource + * @see AWS + * API Documentation + */ + @Override + public TagResourceResult tagResource(TagResourceRequest request) { + request = beforeClientExecution(request); + return executeTagResource(request); + } + + @SdkInternalApi + final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(tagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return Result of the UntagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UntagResource + * @see AWS API Documentation + */ + @Override + public UntagResourceResult untagResource(UntagResourceRequest request) { + request = beforeClientExecution(request); + return executeUntagResource(request); + } + + @SdkInternalApi + final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(untagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Updates AppInstance metadata. @@ -1295,6 +1786,78 @@ final UpdateAppInstanceUserResult executeUpdateAppInstanceUser(UpdateAppInstance } } + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return Result of the UpdateAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public UpdateAppInstanceUserEndpointResult updateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeUpdateAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final UpdateAppInstanceUserEndpointResult executeUpdateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(updateAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(updateAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new UpdateAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * 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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java new file mode 100644 index 000000000000..ce28b071e3b4 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AllowMessages { + + ALL("ALL"), + NONE("NONE"); + + private String value; + + private AllowMessages(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AllowMessages corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AllowMessages fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AllowMessages enumEntry : AllowMessages.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java new file mode 100644 index 000000000000..de7664ec425d --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java @@ -0,0 +1,858 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push + * notifications, the endpoint is a mobile device used to receive mobile push notifications for a user. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class AppInstanceUserEndpoint implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. + * + */ + private String type; + /** + * + * The ARN of the resource to which the endpoint belongs. + * + */ + private String resourceArn; + /** + * + * The attributes of an Endpoint. + * + */ + private EndpointAttributes endpointAttributes; + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + */ + private java.util.Date createdTimestamp; + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + */ + private java.util.Date lastUpdatedTimestamp; + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + */ + private String allowMessages; + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + */ + private EndpointState endpointState; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointId(String endpointId) { + setEndpointId(endpointId); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @return The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(String type) { + setType(type); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + */ + + public void setResourceArn(String resourceArn) { + this.resourceArn = resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @return The ARN of the resource to which the endpoint belongs. + */ + + public String getResourceArn() { + return this.resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withResourceArn(String resourceArn) { + setResourceArn(resourceArn); + return this; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + */ + + public void setEndpointAttributes(EndpointAttributes endpointAttributes) { + this.endpointAttributes = endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @return The attributes of an Endpoint. + */ + + public EndpointAttributes getEndpointAttributes() { + return this.endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointAttributes(EndpointAttributes endpointAttributes) { + setEndpointAttributes(endpointAttributes); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + */ + + public void setCreatedTimestamp(java.util.Date createdTimestamp) { + this.createdTimestamp = createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @return The time at which an AppInstanceUserEndpoint was created. + */ + + public java.util.Date getCreatedTimestamp() { + return this.createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withCreatedTimestamp(java.util.Date createdTimestamp) { + setCreatedTimestamp(createdTimestamp); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + */ + + public void setLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + this.lastUpdatedTimestamp = lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @return The time at which an AppInstanceUserEndpoint was last updated. + */ + + public java.util.Date getLastUpdatedTimestamp() { + return this.lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + setLastUpdatedTimestamp(lastUpdatedTimestamp); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public void setAllowMessages(String allowMessages) { + this.allowMessages = allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @return Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public String getAllowMessages() { + return this.allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(String allowMessages) { + setAllowMessages(allowMessages); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(AllowMessages allowMessages) { + this.allowMessages = allowMessages.toString(); + return this; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + */ + + public void setEndpointState(EndpointState endpointState) { + this.endpointState = endpointState; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @return A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. + * When ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + */ + + public EndpointState getEndpointState() { + return this.endpointState; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointState(EndpointState endpointState) { + setEndpointState(endpointState); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***").append(","); + if (getName() != null) + sb.append("Name: ").append("***Sensitive Data Redacted***").append(","); + if (getType() != null) + sb.append("Type: ").append(getType()).append(","); + if (getResourceArn() != null) + sb.append("ResourceArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointAttributes() != null) + sb.append("EndpointAttributes: ").append(getEndpointAttributes()).append(","); + if (getCreatedTimestamp() != null) + sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(","); + if (getLastUpdatedTimestamp() != null) + sb.append("LastUpdatedTimestamp: ").append(getLastUpdatedTimestamp()).append(","); + if (getAllowMessages() != null) + sb.append("AllowMessages: ").append(getAllowMessages()).append(","); + if (getEndpointState() != null) + sb.append("EndpointState: ").append(getEndpointState()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AppInstanceUserEndpoint == false) + return false; + AppInstanceUserEndpoint other = (AppInstanceUserEndpoint) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getResourceArn() == null ^ this.getResourceArn() == null) + return false; + if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) + return false; + if (other.getEndpointAttributes() == null ^ this.getEndpointAttributes() == null) + return false; + if (other.getEndpointAttributes() != null && other.getEndpointAttributes().equals(this.getEndpointAttributes()) == false) + return false; + if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) + return false; + if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) + return false; + if (other.getLastUpdatedTimestamp() == null ^ this.getLastUpdatedTimestamp() == null) + return false; + if (other.getLastUpdatedTimestamp() != null && other.getLastUpdatedTimestamp().equals(this.getLastUpdatedTimestamp()) == false) + return false; + if (other.getAllowMessages() == null ^ this.getAllowMessages() == null) + return false; + if (other.getAllowMessages() != null && other.getAllowMessages().equals(this.getAllowMessages()) == false) + return false; + if (other.getEndpointState() == null ^ this.getEndpointState() == null) + return false; + if (other.getEndpointState() != null && other.getEndpointState().equals(this.getEndpointState()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointAttributes() == null) ? 0 : getEndpointAttributes().hashCode()); + hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); + hashCode = prime * hashCode + ((getLastUpdatedTimestamp() == null) ? 0 : getLastUpdatedTimestamp().hashCode()); + hashCode = prime * hashCode + ((getAllowMessages() == null) ? 0 : getAllowMessages().hashCode()); + hashCode = prime * hashCode + ((getEndpointState() == null) ? 0 : getEndpointState().hashCode()); + return hashCode; + } + + @Override + public AppInstanceUserEndpoint clone() { + try { + return (AppInstanceUserEndpoint) 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.chimesdkidentity.model.transform.AppInstanceUserEndpointMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointSummary.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointSummary.java new file mode 100644 index 000000000000..2326e2e57cd7 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointSummary.java @@ -0,0 +1,457 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * Summary of the details of an AppInstanceUserEndpoint. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class AppInstanceUserEndpointSummary implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. + * + */ + private String type; + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + */ + private String allowMessages; + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + */ + private EndpointState endpointState; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withEndpointId(String endpointId) { + setEndpointId(endpointId); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @return The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpointSummary withType(String type) { + setType(type); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpointSummary withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public void setAllowMessages(String allowMessages) { + this.allowMessages = allowMessages; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @return BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public String getAllowMessages() { + return this.allowMessages; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpointSummary withAllowMessages(String allowMessages) { + setAllowMessages(allowMessages); + return this; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpointSummary withAllowMessages(AllowMessages allowMessages) { + this.allowMessages = allowMessages.toString(); + return this; + } + + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + * + * @param endpointState + * A read-only field that represent the state of an AppInstanceUserEndpoint. + */ + + public void setEndpointState(EndpointState endpointState) { + this.endpointState = endpointState; + } + + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + * + * @return A read-only field that represent the state of an AppInstanceUserEndpoint. + */ + + public EndpointState getEndpointState() { + return this.endpointState; + } + + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + * + * @param endpointState + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withEndpointState(EndpointState endpointState) { + setEndpointState(endpointState); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***").append(","); + if (getName() != null) + sb.append("Name: ").append("***Sensitive Data Redacted***").append(","); + if (getType() != null) + sb.append("Type: ").append(getType()).append(","); + if (getAllowMessages() != null) + sb.append("AllowMessages: ").append(getAllowMessages()).append(","); + if (getEndpointState() != null) + sb.append("EndpointState: ").append(getEndpointState()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AppInstanceUserEndpointSummary == false) + return false; + AppInstanceUserEndpointSummary other = (AppInstanceUserEndpointSummary) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getAllowMessages() == null ^ this.getAllowMessages() == null) + return false; + if (other.getAllowMessages() != null && other.getAllowMessages().equals(this.getAllowMessages()) == false) + return false; + if (other.getEndpointState() == null ^ this.getEndpointState() == null) + return false; + if (other.getEndpointState() != null && other.getEndpointState().equals(this.getEndpointState()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getAllowMessages() == null) ? 0 : getAllowMessages().hashCode()); + hashCode = prime * hashCode + ((getEndpointState() == null) ? 0 : getEndpointState().hashCode()); + return hashCode; + } + + @Override + public AppInstanceUserEndpointSummary clone() { + try { + return (AppInstanceUserEndpointSummary) 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.chimesdkidentity.model.transform.AppInstanceUserEndpointSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointType.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointType.java new file mode 100644 index 000000000000..414a61fc8e90 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointType.java @@ -0,0 +1,61 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AppInstanceUserEndpointType { + + APNS("APNS"), + APNS_SANDBOX("APNS_SANDBOX"), + GCM("GCM"); + + private String value; + + private AppInstanceUserEndpointType(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AppInstanceUserEndpointType corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AppInstanceUserEndpointType fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AppInstanceUserEndpointType enumEntry : AppInstanceUserEndpointType.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointRequest.java new file mode 100644 index 000000000000..7300d35f3bb6 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointRequest.java @@ -0,0 +1,177 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DeregisterAppInstanceUserEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DeregisterAppInstanceUserEndpointRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DeregisterAppInstanceUserEndpointRequest withEndpointId(String endpointId) { + setEndpointId(endpointId); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeregisterAppInstanceUserEndpointRequest == false) + return false; + DeregisterAppInstanceUserEndpointRequest other = (DeregisterAppInstanceUserEndpointRequest) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + return hashCode; + } + + @Override + public DeregisterAppInstanceUserEndpointRequest clone() { + return (DeregisterAppInstanceUserEndpointRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointResult.java new file mode 100644 index 000000000000..c25cc0ed3ad3 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointResult.java @@ -0,0 +1,73 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DeregisterAppInstanceUserEndpointResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, + Cloneable { + + /** + * 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 DeregisterAppInstanceUserEndpointResult == false) + return false; + DeregisterAppInstanceUserEndpointResult other = (DeregisterAppInstanceUserEndpointResult) obj; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public DeregisterAppInstanceUserEndpointResult clone() { + try { + return (DeregisterAppInstanceUserEndpointResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointRequest.java new file mode 100644 index 000000000000..d9f9b7713354 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointRequest.java @@ -0,0 +1,177 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DescribeAppInstanceUserEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DescribeAppInstanceUserEndpointRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DescribeAppInstanceUserEndpointRequest withEndpointId(String endpointId) { + setEndpointId(endpointId); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeAppInstanceUserEndpointRequest == false) + return false; + DescribeAppInstanceUserEndpointRequest other = (DescribeAppInstanceUserEndpointRequest) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + return hashCode; + } + + @Override + public DescribeAppInstanceUserEndpointRequest clone() { + return (DescribeAppInstanceUserEndpointRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointResult.java new file mode 100644 index 000000000000..6dfd68f759aa --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointResult.java @@ -0,0 +1,141 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DescribeAppInstanceUserEndpointResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, + Cloneable { + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + */ + private AppInstanceUserEndpoint appInstanceUserEndpoint; + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + * + * @param appInstanceUserEndpoint + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, + * name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All + * timestamps use epoch milliseconds. + */ + + public void setAppInstanceUserEndpoint(AppInstanceUserEndpoint appInstanceUserEndpoint) { + this.appInstanceUserEndpoint = appInstanceUserEndpoint; + } + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + * + * @return The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, + * name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All + * timestamps use epoch milliseconds. + */ + + public AppInstanceUserEndpoint getAppInstanceUserEndpoint() { + return this.appInstanceUserEndpoint; + } + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + * + * @param appInstanceUserEndpoint + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, + * name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All + * timestamps use epoch milliseconds. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DescribeAppInstanceUserEndpointResult withAppInstanceUserEndpoint(AppInstanceUserEndpoint appInstanceUserEndpoint) { + setAppInstanceUserEndpoint(appInstanceUserEndpoint); + 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 (getAppInstanceUserEndpoint() != null) + sb.append("AppInstanceUserEndpoint: ").append(getAppInstanceUserEndpoint()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeAppInstanceUserEndpointResult == false) + return false; + DescribeAppInstanceUserEndpointResult other = (DescribeAppInstanceUserEndpointResult) obj; + if (other.getAppInstanceUserEndpoint() == null ^ this.getAppInstanceUserEndpoint() == null) + return false; + if (other.getAppInstanceUserEndpoint() != null && other.getAppInstanceUserEndpoint().equals(this.getAppInstanceUserEndpoint()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserEndpoint() == null) ? 0 : getAppInstanceUserEndpoint().hashCode()); + return hashCode; + } + + @Override + public DescribeAppInstanceUserEndpointResult clone() { + try { + return (DescribeAppInstanceUserEndpointResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointAttributes.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointAttributes.java new file mode 100644 index 000000000000..651be768f6c3 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointAttributes.java @@ -0,0 +1,189 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * The attributes of an Endpoint. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class EndpointAttributes implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + */ + private String deviceToken; + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + */ + private String voipDeviceToken; + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + * + * @param deviceToken + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + */ + + public void setDeviceToken(String deviceToken) { + this.deviceToken = deviceToken; + } + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + * + * @return The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + */ + + public String getDeviceToken() { + return this.deviceToken; + } + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + * + * @param deviceToken + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public EndpointAttributes withDeviceToken(String deviceToken) { + setDeviceToken(deviceToken); + return this; + } + + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + * + * @param voipDeviceToken + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + */ + + public void setVoipDeviceToken(String voipDeviceToken) { + this.voipDeviceToken = voipDeviceToken; + } + + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + * + * @return The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + */ + + public String getVoipDeviceToken() { + return this.voipDeviceToken; + } + + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + * + * @param voipDeviceToken + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public EndpointAttributes withVoipDeviceToken(String voipDeviceToken) { + setVoipDeviceToken(voipDeviceToken); + 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 (getDeviceToken() != null) + sb.append("DeviceToken: ").append("***Sensitive Data Redacted***").append(","); + if (getVoipDeviceToken() != null) + sb.append("VoipDeviceToken: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof EndpointAttributes == false) + return false; + EndpointAttributes other = (EndpointAttributes) obj; + if (other.getDeviceToken() == null ^ this.getDeviceToken() == null) + return false; + if (other.getDeviceToken() != null && other.getDeviceToken().equals(this.getDeviceToken()) == false) + return false; + if (other.getVoipDeviceToken() == null ^ this.getVoipDeviceToken() == null) + return false; + if (other.getVoipDeviceToken() != null && other.getVoipDeviceToken().equals(this.getVoipDeviceToken()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getDeviceToken() == null) ? 0 : getDeviceToken().hashCode()); + hashCode = prime * hashCode + ((getVoipDeviceToken() == null) ? 0 : getVoipDeviceToken().hashCode()); + return hashCode; + } + + @Override + public EndpointAttributes clone() { + try { + return (EndpointAttributes) 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.chimesdkidentity.model.transform.EndpointAttributesMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointState.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointState.java new file mode 100644 index 000000000000..0b7f1f6764d9 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointState.java @@ -0,0 +1,253 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When INACTIVE, + * the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE due + * to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE due + * to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @see AWS + * API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class EndpointState implements Serializable, Cloneable, StructuredPojo { + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + */ + private String status; + /** + * + * The reason for the EndpointStatus. + * + */ + private String statusReason; + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @param status + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * @see EndpointStatus + */ + + public void setStatus(String status) { + this.status = status; + } + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @return Enum that indicates the Status of an AppInstanceUserEndpoint. + * @see EndpointStatus + */ + + public String getStatus() { + return this.status; + } + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @param status + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatus + */ + + public EndpointState withStatus(String status) { + setStatus(status); + return this; + } + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @param status + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatus + */ + + public EndpointState withStatus(EndpointStatus status) { + this.status = status.toString(); + return this; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @param statusReason + * The reason for the EndpointStatus. + * @see EndpointStatusReason + */ + + public void setStatusReason(String statusReason) { + this.statusReason = statusReason; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @return The reason for the EndpointStatus. + * @see EndpointStatusReason + */ + + public String getStatusReason() { + return this.statusReason; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @param statusReason + * The reason for the EndpointStatus. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatusReason + */ + + public EndpointState withStatusReason(String statusReason) { + setStatusReason(statusReason); + return this; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @param statusReason + * The reason for the EndpointStatus. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatusReason + */ + + public EndpointState withStatusReason(EndpointStatusReason statusReason) { + this.statusReason = statusReason.toString(); + 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 (getStatus() != null) + sb.append("Status: ").append(getStatus()).append(","); + if (getStatusReason() != null) + sb.append("StatusReason: ").append(getStatusReason()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof EndpointState == false) + return false; + EndpointState other = (EndpointState) obj; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getStatusReason() == null ^ this.getStatusReason() == null) + return false; + if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); + return hashCode; + } + + @Override + public EndpointState clone() { + try { + return (EndpointState) 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.chimesdkidentity.model.transform.EndpointStateMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatus.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatus.java new file mode 100644 index 000000000000..b9182ae28703 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatus.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum EndpointStatus { + + ACTIVE("ACTIVE"), + INACTIVE("INACTIVE"); + + private String value; + + private EndpointStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return EndpointStatus corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static EndpointStatus fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (EndpointStatus enumEntry : EndpointStatus.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatusReason.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatusReason.java new file mode 100644 index 000000000000..a4aa96332344 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatusReason.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum EndpointStatusReason { + + INVALID_DEVICE_TOKEN("INVALID_DEVICE_TOKEN"), + INVALID_PINPOINT_ARN("INVALID_PINPOINT_ARN"); + + private String value; + + private EndpointStatusReason(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return EndpointStatusReason corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static EndpointStatusReason fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (EndpointStatusReason enumEntry : EndpointStatusReason.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsRequest.java new file mode 100644 index 000000000000..03f2bdc62e8f --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsRequest.java @@ -0,0 +1,230 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListAppInstanceUserEndpointsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The maximum number of endpoints that you want to return. + * + */ + private Integer maxResults; + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + */ + private String nextToken; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The maximum number of endpoints that you want to return. + * + * + * @param maxResults + * The maximum number of endpoints that you want to return. + */ + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + * + * The maximum number of endpoints that you want to return. + * + * + * @return The maximum number of endpoints that you want to return. + */ + + public Integer getMaxResults() { + return this.maxResults; + } + + /** + * + * The maximum number of endpoints that you want to return. + * + * + * @param maxResults + * The maximum number of endpoints that you want to return. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsRequest withMaxResults(Integer maxResults) { + setMaxResults(maxResults); + return this; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + */ + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @return The token passed by previous API calls until all requested endpoints are returned. + */ + + public String getNextToken() { + return this.nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsRequest withNextToken(String nextToken) { + setNextToken(nextToken); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getMaxResults() != null) + sb.append("MaxResults: ").append(getMaxResults()).append(","); + if (getNextToken() != null) + sb.append("NextToken: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListAppInstanceUserEndpointsRequest == false) + return false; + ListAppInstanceUserEndpointsRequest other = (ListAppInstanceUserEndpointsRequest) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public ListAppInstanceUserEndpointsRequest clone() { + return (ListAppInstanceUserEndpointsRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsResult.java new file mode 100644 index 000000000000..f67fd658e492 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsResult.java @@ -0,0 +1,209 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListAppInstanceUserEndpointsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + */ + private java.util.List appInstanceUserEndpoints; + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + */ + private String nextToken; + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * @return The information for each requested AppInstanceUserEndpoint. + */ + + public java.util.List getAppInstanceUserEndpoints() { + return appInstanceUserEndpoints; + } + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * @param appInstanceUserEndpoints + * The information for each requested AppInstanceUserEndpoint. + */ + + public void setAppInstanceUserEndpoints(java.util.Collection appInstanceUserEndpoints) { + if (appInstanceUserEndpoints == null) { + this.appInstanceUserEndpoints = null; + return; + } + + this.appInstanceUserEndpoints = new java.util.ArrayList(appInstanceUserEndpoints); + } + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setAppInstanceUserEndpoints(java.util.Collection)} or + * {@link #withAppInstanceUserEndpoints(java.util.Collection)} if you want to override the existing values. + * + * + * @param appInstanceUserEndpoints + * The information for each requested AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsResult withAppInstanceUserEndpoints(AppInstanceUserEndpointSummary... appInstanceUserEndpoints) { + if (this.appInstanceUserEndpoints == null) { + setAppInstanceUserEndpoints(new java.util.ArrayList(appInstanceUserEndpoints.length)); + } + for (AppInstanceUserEndpointSummary ele : appInstanceUserEndpoints) { + this.appInstanceUserEndpoints.add(ele); + } + return this; + } + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * @param appInstanceUserEndpoints + * The information for each requested AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsResult withAppInstanceUserEndpoints(java.util.Collection appInstanceUserEndpoints) { + setAppInstanceUserEndpoints(appInstanceUserEndpoints); + return this; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + */ + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @return The token passed by previous API calls until all requested endpoints are returned. + */ + + public String getNextToken() { + return this.nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsResult withNextToken(String nextToken) { + setNextToken(nextToken); + 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 (getAppInstanceUserEndpoints() != null) + sb.append("AppInstanceUserEndpoints: ").append(getAppInstanceUserEndpoints()).append(","); + if (getNextToken() != null) + sb.append("NextToken: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListAppInstanceUserEndpointsResult == false) + return false; + ListAppInstanceUserEndpointsResult other = (ListAppInstanceUserEndpointsResult) obj; + if (other.getAppInstanceUserEndpoints() == null ^ this.getAppInstanceUserEndpoints() == null) + return false; + if (other.getAppInstanceUserEndpoints() != null && other.getAppInstanceUserEndpoints().equals(this.getAppInstanceUserEndpoints()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserEndpoints() == null) ? 0 : getAppInstanceUserEndpoints().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public ListAppInstanceUserEndpointsResult clone() { + try { + return (ListAppInstanceUserEndpointsResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceRequest.java new file mode 100644 index 000000000000..1f515825bf75 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceRequest.java @@ -0,0 +1,124 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListTagsForResourceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the resource. + * + */ + private String resourceARN; + + /** + * + * The ARN of the resource. + * + * + * @param resourceARN + * The ARN of the resource. + */ + + public void setResourceARN(String resourceARN) { + this.resourceARN = resourceARN; + } + + /** + * + * The ARN of the resource. + * + * + * @return The ARN of the resource. + */ + + public String getResourceARN() { + return this.resourceARN; + } + + /** + * + * The ARN of the resource. + * + * + * @param resourceARN + * The ARN of the resource. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListTagsForResourceRequest withResourceARN(String resourceARN) { + setResourceARN(resourceARN); + 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 (getResourceARN() != null) + sb.append("ResourceARN: ").append(getResourceARN()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListTagsForResourceRequest == false) + return false; + ListTagsForResourceRequest other = (ListTagsForResourceRequest) obj; + if (other.getResourceARN() == null ^ this.getResourceARN() == null) + return false; + if (other.getResourceARN() != null && other.getResourceARN().equals(this.getResourceARN()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getResourceARN() == null) ? 0 : getResourceARN().hashCode()); + return hashCode; + } + + @Override + public ListTagsForResourceRequest clone() { + return (ListTagsForResourceRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceResult.java new file mode 100644 index 000000000000..4653c4ebbc7a --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceResult.java @@ -0,0 +1,156 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListTagsForResourceResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { + + /** + * + * The tag key-value pairs. + * + */ + private java.util.List tags; + + /** + * + * The tag key-value pairs. + * + * + * @return The tag key-value pairs. + */ + + public java.util.List getTags() { + return tags; + } + + /** + * + * The tag key-value pairs. + * + * + * @param tags + * The tag key-value pairs. + */ + + public void setTags(java.util.Collection tags) { + if (tags == null) { + this.tags = null; + return; + } + + this.tags = new java.util.ArrayList(tags); + } + + /** + * + * The tag key-value pairs. + * + * + * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the + * existing values. + * + * + * @param tags + * The tag key-value pairs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListTagsForResourceResult withTags(Tag... tags) { + if (this.tags == null) { + setTags(new java.util.ArrayList(tags.length)); + } + for (Tag ele : tags) { + this.tags.add(ele); + } + return this; + } + + /** + * + * The tag key-value pairs. + * + * + * @param tags + * The tag key-value pairs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListTagsForResourceResult withTags(java.util.Collection tags) { + setTags(tags); + 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 (getTags() != null) + sb.append("Tags: ").append(getTags()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListTagsForResourceResult == false) + return false; + ListTagsForResourceResult other = (ListTagsForResourceResult) obj; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + return hashCode; + } + + @Override + public ListTagsForResourceResult clone() { + try { + return (ListTagsForResourceResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/RegisterAppInstanceUserEndpointRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/RegisterAppInstanceUserEndpointRequest.java new file mode 100644 index 000000000000..23305814af41 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/RegisterAppInstanceUserEndpointRequest.java @@ -0,0 +1,670 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class RegisterAppInstanceUserEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * + */ + private String type; + /** + * + * The ARN of the resource to which the endpoint belongs. + * + */ + private String resourceArn; + /** + * + * The attributes of an Endpoint. + * + */ + private EndpointAttributes endpointAttributes; + /** + * + * The idempotency token for each client request. + * + */ + private String clientRequestToken; + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL + * indicates the endpoint receives all messages. NONE indicates the endpoint receives no messages. + * + */ + private String allowMessages; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public RegisterAppInstanceUserEndpointRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public RegisterAppInstanceUserEndpointRequest withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * + * + * @return The type of the AppInstanceUserEndpoint. Supported types:
* Gets the retention settings for an AppInstance. @@ -427,6 +501,41 @@ java.util.concurrent.Future getAppInstanc java.util.concurrent.Future listAppInstanceAdminsAsync(ListAppInstanceAdminsRequest listAppInstanceAdminsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return A Java Future containing the result of the ListAppInstanceUserEndpoints operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + java.util.concurrent.Future listAppInstanceUserEndpointsAsync( + ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest); + + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @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 ListAppInstanceUserEndpoints operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + java.util.concurrent.Future listAppInstanceUserEndpointsAsync( + ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -489,6 +598,37 @@ java.util.concurrent.Future listAppInstanceUsersAsyn java.util.concurrent.Future listAppInstancesAsync(ListAppInstancesRequest listAppInstancesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.ListTagsForResource + * @see AWS API Documentation + */ + java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest); + + /** + * + * Lists the tags applied to an Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.ListTagsForResource + * @see AWS API Documentation + */ + java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -526,6 +666,109 @@ java.util.concurrent.Future putAppInstanc PutAppInstanceRetentionSettingsRequest putAppInstanceRetentionSettingsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest); + + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @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 RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return A Java Future containing the result of the TagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return A Java Future containing the result of the UntagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Updates AppInstance metadata. @@ -588,4 +831,41 @@ java.util.concurrent.Future updateAppInstanceAsync(Upda java.util.concurrent.Future updateAppInstanceUserAsync(UpdateAppInstanceUserRequest updateAppInstanceUserRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest); + + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @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 UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + } diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java index 79a7c99c89a5..077b0ec961fd 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java @@ -277,6 +277,41 @@ public DeleteAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest request) { + + return deregisterAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + final DeregisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DeregisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DeregisterAppInstanceUserEndpointResult call() throws Exception { + DeregisterAppInstanceUserEndpointResult result = null; + + try { + result = executeDeregisterAppInstanceUserEndpoint(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 describeAppInstanceAsync(DescribeAppInstanceRequest request) { @@ -376,6 +411,41 @@ public DescribeAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest request) { + + return describeAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + final DescribeAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DescribeAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DescribeAppInstanceUserEndpointResult call() throws Exception { + DescribeAppInstanceUserEndpointResult result = null; + + try { + result = executeDescribeAppInstanceUserEndpoint(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 getAppInstanceRetentionSettingsAsync( GetAppInstanceRetentionSettingsRequest request) { @@ -444,6 +514,39 @@ public ListAppInstanceAdminsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(ListAppInstanceUserEndpointsRequest request) { + + return listAppInstanceUserEndpointsAsync(request, null); + } + + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(final ListAppInstanceUserEndpointsRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final ListAppInstanceUserEndpointsRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public ListAppInstanceUserEndpointsResult call() throws Exception { + ListAppInstanceUserEndpointsResult result = null; + + try { + result = executeListAppInstanceUserEndpoints(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 listAppInstanceUsersAsync(ListAppInstanceUsersRequest request) { @@ -510,6 +613,39 @@ public ListAppInstancesResult call() throws Exception { }); } + @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 putAppInstanceRetentionSettingsAsync( PutAppInstanceRetentionSettingsRequest request) { @@ -545,6 +681,107 @@ public PutAppInstanceRetentionSettingsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest request) { + + return registerAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + final RegisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final RegisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public RegisterAppInstanceUserEndpointResult call() throws Exception { + RegisterAppInstanceUserEndpointResult result = null; + + try { + result = executeRegisterAppInstanceUserEndpoint(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 updateAppInstanceAsync(UpdateAppInstanceRequest request) { @@ -611,6 +848,40 @@ public UpdateAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync(UpdateAppInstanceUserEndpointRequest request) { + + return updateAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + final UpdateAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final UpdateAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public UpdateAppInstanceUserEndpointResult call() throws Exception { + UpdateAppInstanceUserEndpointResult result = null; + + try { + result = executeUpdateAppInstanceUserEndpoint(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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java index 80c9443de5ff..b8eab7f2c6f7 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java @@ -603,6 +603,77 @@ final DeleteAppInstanceUserResult executeDeleteAppInstanceUser(DeleteAppInstance } } + /** + * + * Deregisters an AppInstanceUserEndpoint. + * + * + * @param deregisterAppInstanceUserEndpointRequest + * @return Result of the DeregisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DeregisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DeregisterAppInstanceUserEndpointResult deregisterAppInstanceUserEndpoint(DeregisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDeregisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DeregisterAppInstanceUserEndpointResult executeDeregisterAppInstanceUserEndpoint( + DeregisterAppInstanceUserEndpointRequest deregisterAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(deregisterAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DeregisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(deregisterAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DeregisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Returns the full details of an AppInstance. @@ -808,6 +879,77 @@ final DescribeAppInstanceUserResult executeDescribeAppInstanceUser(DescribeAppIn } } + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @return Result of the DescribeAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DescribeAppInstanceUserEndpointResult describeAppInstanceUserEndpoint(DescribeAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDescribeAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DescribeAppInstanceUserEndpointResult executeDescribeAppInstanceUserEndpoint( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(describeAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(describeAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DescribeAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Gets the retention settings for an AppInstance. @@ -949,6 +1091,75 @@ final ListAppInstanceAdminsResult executeListAppInstanceAdmins(ListAppInstanceAd } } + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return Result of the ListAppInstanceUserEndpoints operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + @Override + public ListAppInstanceUserEndpointsResult listAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest request) { + request = beforeClientExecution(request); + return executeListAppInstanceUserEndpoints(request); + } + + @SdkInternalApi + final ListAppInstanceUserEndpointsResult executeListAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest) { + + ExecutionContext executionContext = createExecutionContext(listAppInstanceUserEndpointsRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListAppInstanceUserEndpointsRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(listAppInstanceUserEndpointsRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAppInstanceUserEndpoints"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new ListAppInstanceUserEndpointsResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -1083,6 +1294,73 @@ final ListAppInstancesResult executeListAppInstances(ListAppInstancesRequest lis } } + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return Result of the ListTagsForResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListTagsForResource + * @see AWS API Documentation + */ + @Override + public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { + request = beforeClientExecution(request); + return executeListTagsForResource(request); + } + + @SdkInternalApi + final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -1154,6 +1432,219 @@ final PutAppInstanceRetentionSettingsResult executePutAppInstanceRetentionSettin } } + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return Result of the RegisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public RegisterAppInstanceUserEndpointResult registerAppInstanceUserEndpoint(RegisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeRegisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final RegisterAppInstanceUserEndpointResult executeRegisterAppInstanceUserEndpoint( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(registerAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new RegisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(registerAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new RegisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return Result of the TagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.TagResource + * @see AWS + * API Documentation + */ + @Override + public TagResourceResult tagResource(TagResourceRequest request) { + request = beforeClientExecution(request); + return executeTagResource(request); + } + + @SdkInternalApi + final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(tagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return Result of the UntagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UntagResource + * @see AWS API Documentation + */ + @Override + public UntagResourceResult untagResource(UntagResourceRequest request) { + request = beforeClientExecution(request); + return executeUntagResource(request); + } + + @SdkInternalApi + final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(untagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Updates AppInstance metadata. @@ -1295,6 +1786,78 @@ final UpdateAppInstanceUserResult executeUpdateAppInstanceUser(UpdateAppInstance } } + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return Result of the UpdateAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public UpdateAppInstanceUserEndpointResult updateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeUpdateAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final UpdateAppInstanceUserEndpointResult executeUpdateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(updateAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(updateAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new UpdateAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * 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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java new file mode 100644 index 000000000000..ce28b071e3b4 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AllowMessages { + + ALL("ALL"), + NONE("NONE"); + + private String value; + + private AllowMessages(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AllowMessages corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AllowMessages fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AllowMessages enumEntry : AllowMessages.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java new file mode 100644 index 000000000000..de7664ec425d --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java @@ -0,0 +1,858 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push + * notifications, the endpoint is a mobile device used to receive mobile push notifications for a user. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class AppInstanceUserEndpoint implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. + * + */ + private String type; + /** + * + * The ARN of the resource to which the endpoint belongs. + * + */ + private String resourceArn; + /** + * + * The attributes of an Endpoint. + * + */ + private EndpointAttributes endpointAttributes; + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + */ + private java.util.Date createdTimestamp; + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + */ + private java.util.Date lastUpdatedTimestamp; + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + */ + private String allowMessages; + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + */ + private EndpointState endpointState; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointId(String endpointId) { + setEndpointId(endpointId); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @return The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(String type) { + setType(type); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + */ + + public void setResourceArn(String resourceArn) { + this.resourceArn = resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @return The ARN of the resource to which the endpoint belongs. + */ + + public String getResourceArn() { + return this.resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withResourceArn(String resourceArn) { + setResourceArn(resourceArn); + return this; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + */ + + public void setEndpointAttributes(EndpointAttributes endpointAttributes) { + this.endpointAttributes = endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @return The attributes of an Endpoint. + */ + + public EndpointAttributes getEndpointAttributes() { + return this.endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointAttributes(EndpointAttributes endpointAttributes) { + setEndpointAttributes(endpointAttributes); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + */ + + public void setCreatedTimestamp(java.util.Date createdTimestamp) { + this.createdTimestamp = createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @return The time at which an AppInstanceUserEndpoint was created. + */ + + public java.util.Date getCreatedTimestamp() { + return this.createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withCreatedTimestamp(java.util.Date createdTimestamp) { + setCreatedTimestamp(createdTimestamp); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + */ + + public void setLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + this.lastUpdatedTimestamp = lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @return The time at which an AppInstanceUserEndpoint was last updated. + */ + + public java.util.Date getLastUpdatedTimestamp() { + return this.lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + setLastUpdatedTimestamp(lastUpdatedTimestamp); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public void setAllowMessages(String allowMessages) { + this.allowMessages = allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @return Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public String getAllowMessages() { + return this.allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(String allowMessages) { + setAllowMessages(allowMessages); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(AllowMessages allowMessages) { + this.allowMessages = allowMessages.toString(); + return this; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + */ + + public void setEndpointState(EndpointState endpointState) { + this.endpointState = endpointState; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @return A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. + * When ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + */ + + public EndpointState getEndpointState() { + return this.endpointState; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointState(EndpointState endpointState) { + setEndpointState(endpointState); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***").append(","); + if (getName() != null) + sb.append("Name: ").append("***Sensitive Data Redacted***").append(","); + if (getType() != null) + sb.append("Type: ").append(getType()).append(","); + if (getResourceArn() != null) + sb.append("ResourceArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointAttributes() != null) + sb.append("EndpointAttributes: ").append(getEndpointAttributes()).append(","); + if (getCreatedTimestamp() != null) + sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(","); + if (getLastUpdatedTimestamp() != null) + sb.append("LastUpdatedTimestamp: ").append(getLastUpdatedTimestamp()).append(","); + if (getAllowMessages() != null) + sb.append("AllowMessages: ").append(getAllowMessages()).append(","); + if (getEndpointState() != null) + sb.append("EndpointState: ").append(getEndpointState()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AppInstanceUserEndpoint == false) + return false; + AppInstanceUserEndpoint other = (AppInstanceUserEndpoint) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getResourceArn() == null ^ this.getResourceArn() == null) + return false; + if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) + return false; + if (other.getEndpointAttributes() == null ^ this.getEndpointAttributes() == null) + return false; + if (other.getEndpointAttributes() != null && other.getEndpointAttributes().equals(this.getEndpointAttributes()) == false) + return false; + if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null) + return false; + if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false) + return false; + if (other.getLastUpdatedTimestamp() == null ^ this.getLastUpdatedTimestamp() == null) + return false; + if (other.getLastUpdatedTimestamp() != null && other.getLastUpdatedTimestamp().equals(this.getLastUpdatedTimestamp()) == false) + return false; + if (other.getAllowMessages() == null ^ this.getAllowMessages() == null) + return false; + if (other.getAllowMessages() != null && other.getAllowMessages().equals(this.getAllowMessages()) == false) + return false; + if (other.getEndpointState() == null ^ this.getEndpointState() == null) + return false; + if (other.getEndpointState() != null && other.getEndpointState().equals(this.getEndpointState()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointAttributes() == null) ? 0 : getEndpointAttributes().hashCode()); + hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode()); + hashCode = prime * hashCode + ((getLastUpdatedTimestamp() == null) ? 0 : getLastUpdatedTimestamp().hashCode()); + hashCode = prime * hashCode + ((getAllowMessages() == null) ? 0 : getAllowMessages().hashCode()); + hashCode = prime * hashCode + ((getEndpointState() == null) ? 0 : getEndpointState().hashCode()); + return hashCode; + } + + @Override + public AppInstanceUserEndpoint clone() { + try { + return (AppInstanceUserEndpoint) 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.chimesdkidentity.model.transform.AppInstanceUserEndpointMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointSummary.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointSummary.java new file mode 100644 index 000000000000..2326e2e57cd7 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointSummary.java @@ -0,0 +1,457 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * Summary of the details of an AppInstanceUserEndpoint. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class AppInstanceUserEndpointSummary implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. + * + */ + private String type; + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + */ + private String allowMessages; + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + */ + private EndpointState endpointState; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withEndpointId(String endpointId) { + setEndpointId(endpointId); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @return The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpointSummary withType(String type) { + setType(type); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpointSummary withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public void setAllowMessages(String allowMessages) { + this.allowMessages = allowMessages; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @return BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public String getAllowMessages() { + return this.allowMessages; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpointSummary withAllowMessages(String allowMessages) { + setAllowMessages(allowMessages); + return this; + } + + /** + * + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpointSummary withAllowMessages(AllowMessages allowMessages) { + this.allowMessages = allowMessages.toString(); + return this; + } + + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + * + * @param endpointState + * A read-only field that represent the state of an AppInstanceUserEndpoint. + */ + + public void setEndpointState(EndpointState endpointState) { + this.endpointState = endpointState; + } + + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + * + * @return A read-only field that represent the state of an AppInstanceUserEndpoint. + */ + + public EndpointState getEndpointState() { + return this.endpointState; + } + + /** + * + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * + * + * @param endpointState + * A read-only field that represent the state of an AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpointSummary withEndpointState(EndpointState endpointState) { + setEndpointState(endpointState); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***").append(","); + if (getName() != null) + sb.append("Name: ").append("***Sensitive Data Redacted***").append(","); + if (getType() != null) + sb.append("Type: ").append(getType()).append(","); + if (getAllowMessages() != null) + sb.append("AllowMessages: ").append(getAllowMessages()).append(","); + if (getEndpointState() != null) + sb.append("EndpointState: ").append(getEndpointState()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof AppInstanceUserEndpointSummary == false) + return false; + AppInstanceUserEndpointSummary other = (AppInstanceUserEndpointSummary) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + if (other.getName() == null ^ this.getName() == null) + return false; + if (other.getName() != null && other.getName().equals(this.getName()) == false) + return false; + if (other.getType() == null ^ this.getType() == null) + return false; + if (other.getType() != null && other.getType().equals(this.getType()) == false) + return false; + if (other.getAllowMessages() == null ^ this.getAllowMessages() == null) + return false; + if (other.getAllowMessages() != null && other.getAllowMessages().equals(this.getAllowMessages()) == false) + return false; + if (other.getEndpointState() == null ^ this.getEndpointState() == null) + return false; + if (other.getEndpointState() != null && other.getEndpointState().equals(this.getEndpointState()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); + hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); + hashCode = prime * hashCode + ((getAllowMessages() == null) ? 0 : getAllowMessages().hashCode()); + hashCode = prime * hashCode + ((getEndpointState() == null) ? 0 : getEndpointState().hashCode()); + return hashCode; + } + + @Override + public AppInstanceUserEndpointSummary clone() { + try { + return (AppInstanceUserEndpointSummary) 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.chimesdkidentity.model.transform.AppInstanceUserEndpointSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointType.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointType.java new file mode 100644 index 000000000000..414a61fc8e90 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpointType.java @@ -0,0 +1,61 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AppInstanceUserEndpointType { + + APNS("APNS"), + APNS_SANDBOX("APNS_SANDBOX"), + GCM("GCM"); + + private String value; + + private AppInstanceUserEndpointType(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AppInstanceUserEndpointType corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AppInstanceUserEndpointType fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AppInstanceUserEndpointType enumEntry : AppInstanceUserEndpointType.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointRequest.java new file mode 100644 index 000000000000..7300d35f3bb6 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointRequest.java @@ -0,0 +1,177 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DeregisterAppInstanceUserEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DeregisterAppInstanceUserEndpointRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DeregisterAppInstanceUserEndpointRequest withEndpointId(String endpointId) { + setEndpointId(endpointId); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DeregisterAppInstanceUserEndpointRequest == false) + return false; + DeregisterAppInstanceUserEndpointRequest other = (DeregisterAppInstanceUserEndpointRequest) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + return hashCode; + } + + @Override + public DeregisterAppInstanceUserEndpointRequest clone() { + return (DeregisterAppInstanceUserEndpointRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointResult.java new file mode 100644 index 000000000000..c25cc0ed3ad3 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DeregisterAppInstanceUserEndpointResult.java @@ -0,0 +1,73 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DeregisterAppInstanceUserEndpointResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, + Cloneable { + + /** + * 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 DeregisterAppInstanceUserEndpointResult == false) + return false; + DeregisterAppInstanceUserEndpointResult other = (DeregisterAppInstanceUserEndpointResult) obj; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + return hashCode; + } + + @Override + public DeregisterAppInstanceUserEndpointResult clone() { + try { + return (DeregisterAppInstanceUserEndpointResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointRequest.java new file mode 100644 index 000000000000..d9f9b7713354 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointRequest.java @@ -0,0 +1,177 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DescribeAppInstanceUserEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DescribeAppInstanceUserEndpointRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DescribeAppInstanceUserEndpointRequest withEndpointId(String endpointId) { + setEndpointId(endpointId); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getEndpointId() != null) + sb.append("EndpointId: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeAppInstanceUserEndpointRequest == false) + return false; + DescribeAppInstanceUserEndpointRequest other = (DescribeAppInstanceUserEndpointRequest) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getEndpointId() == null ^ this.getEndpointId() == null) + return false; + if (other.getEndpointId() != null && other.getEndpointId().equals(this.getEndpointId()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getEndpointId() == null) ? 0 : getEndpointId().hashCode()); + return hashCode; + } + + @Override + public DescribeAppInstanceUserEndpointRequest clone() { + return (DescribeAppInstanceUserEndpointRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointResult.java new file mode 100644 index 000000000000..6dfd68f759aa --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/DescribeAppInstanceUserEndpointResult.java @@ -0,0 +1,141 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class DescribeAppInstanceUserEndpointResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, + Cloneable { + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + */ + private AppInstanceUserEndpoint appInstanceUserEndpoint; + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + * + * @param appInstanceUserEndpoint + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, + * name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All + * timestamps use epoch milliseconds. + */ + + public void setAppInstanceUserEndpoint(AppInstanceUserEndpoint appInstanceUserEndpoint) { + this.appInstanceUserEndpoint = appInstanceUserEndpoint; + } + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + * + * @return The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, + * name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All + * timestamps use epoch milliseconds. + */ + + public AppInstanceUserEndpoint getAppInstanceUserEndpoint() { + return this.appInstanceUserEndpoint; + } + + /** + * + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + * + * + * @param appInstanceUserEndpoint + * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, + * name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All + * timestamps use epoch milliseconds. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public DescribeAppInstanceUserEndpointResult withAppInstanceUserEndpoint(AppInstanceUserEndpoint appInstanceUserEndpoint) { + setAppInstanceUserEndpoint(appInstanceUserEndpoint); + 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 (getAppInstanceUserEndpoint() != null) + sb.append("AppInstanceUserEndpoint: ").append(getAppInstanceUserEndpoint()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof DescribeAppInstanceUserEndpointResult == false) + return false; + DescribeAppInstanceUserEndpointResult other = (DescribeAppInstanceUserEndpointResult) obj; + if (other.getAppInstanceUserEndpoint() == null ^ this.getAppInstanceUserEndpoint() == null) + return false; + if (other.getAppInstanceUserEndpoint() != null && other.getAppInstanceUserEndpoint().equals(this.getAppInstanceUserEndpoint()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserEndpoint() == null) ? 0 : getAppInstanceUserEndpoint().hashCode()); + return hashCode; + } + + @Override + public DescribeAppInstanceUserEndpointResult clone() { + try { + return (DescribeAppInstanceUserEndpointResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointAttributes.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointAttributes.java new file mode 100644 index 000000000000..651be768f6c3 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointAttributes.java @@ -0,0 +1,189 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * The attributes of an Endpoint. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class EndpointAttributes implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + */ + private String deviceToken; + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + */ + private String voipDeviceToken; + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + * + * @param deviceToken + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + */ + + public void setDeviceToken(String deviceToken) { + this.deviceToken = deviceToken; + } + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + * + * @return The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + */ + + public String getDeviceToken() { + return this.deviceToken; + } + + /** + * + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * + * + * @param deviceToken + * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public EndpointAttributes withDeviceToken(String deviceToken) { + setDeviceToken(deviceToken); + return this; + } + + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + * + * @param voipDeviceToken + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + */ + + public void setVoipDeviceToken(String voipDeviceToken) { + this.voipDeviceToken = voipDeviceToken; + } + + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + * + * @return The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + */ + + public String getVoipDeviceToken() { + return this.voipDeviceToken; + } + + /** + * + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * + * + * @param voipDeviceToken + * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public EndpointAttributes withVoipDeviceToken(String voipDeviceToken) { + setVoipDeviceToken(voipDeviceToken); + 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 (getDeviceToken() != null) + sb.append("DeviceToken: ").append("***Sensitive Data Redacted***").append(","); + if (getVoipDeviceToken() != null) + sb.append("VoipDeviceToken: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof EndpointAttributes == false) + return false; + EndpointAttributes other = (EndpointAttributes) obj; + if (other.getDeviceToken() == null ^ this.getDeviceToken() == null) + return false; + if (other.getDeviceToken() != null && other.getDeviceToken().equals(this.getDeviceToken()) == false) + return false; + if (other.getVoipDeviceToken() == null ^ this.getVoipDeviceToken() == null) + return false; + if (other.getVoipDeviceToken() != null && other.getVoipDeviceToken().equals(this.getVoipDeviceToken()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getDeviceToken() == null) ? 0 : getDeviceToken().hashCode()); + hashCode = prime * hashCode + ((getVoipDeviceToken() == null) ? 0 : getVoipDeviceToken().hashCode()); + return hashCode; + } + + @Override + public EndpointAttributes clone() { + try { + return (EndpointAttributes) 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.chimesdkidentity.model.transform.EndpointAttributesMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointState.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointState.java new file mode 100644 index 000000000000..0b7f1f6764d9 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointState.java @@ -0,0 +1,253 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When INACTIVE, + * the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE due + * to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE due + * to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @see AWS + * API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class EndpointState implements Serializable, Cloneable, StructuredPojo { + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + */ + private String status; + /** + * + * The reason for the EndpointStatus. + * + */ + private String statusReason; + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @param status + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * @see EndpointStatus + */ + + public void setStatus(String status) { + this.status = status; + } + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @return Enum that indicates the Status of an AppInstanceUserEndpoint. + * @see EndpointStatus + */ + + public String getStatus() { + return this.status; + } + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @param status + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatus + */ + + public EndpointState withStatus(String status) { + setStatus(status); + return this; + } + + /** + * + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * + * + * @param status + * Enum that indicates the Status of an AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatus + */ + + public EndpointState withStatus(EndpointStatus status) { + this.status = status.toString(); + return this; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @param statusReason + * The reason for the EndpointStatus. + * @see EndpointStatusReason + */ + + public void setStatusReason(String statusReason) { + this.statusReason = statusReason; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @return The reason for the EndpointStatus. + * @see EndpointStatusReason + */ + + public String getStatusReason() { + return this.statusReason; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @param statusReason + * The reason for the EndpointStatus. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatusReason + */ + + public EndpointState withStatusReason(String statusReason) { + setStatusReason(statusReason); + return this; + } + + /** + * + * The reason for the EndpointStatus. + * + * + * @param statusReason + * The reason for the EndpointStatus. + * @return Returns a reference to this object so that method calls can be chained together. + * @see EndpointStatusReason + */ + + public EndpointState withStatusReason(EndpointStatusReason statusReason) { + this.statusReason = statusReason.toString(); + 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 (getStatus() != null) + sb.append("Status: ").append(getStatus()).append(","); + if (getStatusReason() != null) + sb.append("StatusReason: ").append(getStatusReason()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof EndpointState == false) + return false; + EndpointState other = (EndpointState) obj; + if (other.getStatus() == null ^ this.getStatus() == null) + return false; + if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) + return false; + if (other.getStatusReason() == null ^ this.getStatusReason() == null) + return false; + if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); + hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); + return hashCode; + } + + @Override + public EndpointState clone() { + try { + return (EndpointState) 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.chimesdkidentity.model.transform.EndpointStateMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatus.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatus.java new file mode 100644 index 000000000000..b9182ae28703 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatus.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum EndpointStatus { + + ACTIVE("ACTIVE"), + INACTIVE("INACTIVE"); + + private String value; + + private EndpointStatus(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return EndpointStatus corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static EndpointStatus fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (EndpointStatus enumEntry : EndpointStatus.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatusReason.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatusReason.java new file mode 100644 index 000000000000..a4aa96332344 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/EndpointStatusReason.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum EndpointStatusReason { + + INVALID_DEVICE_TOKEN("INVALID_DEVICE_TOKEN"), + INVALID_PINPOINT_ARN("INVALID_PINPOINT_ARN"); + + private String value; + + private EndpointStatusReason(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return EndpointStatusReason corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static EndpointStatusReason fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (EndpointStatusReason enumEntry : EndpointStatusReason.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsRequest.java new file mode 100644 index 000000000000..03f2bdc62e8f --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsRequest.java @@ -0,0 +1,230 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListAppInstanceUserEndpointsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The maximum number of endpoints that you want to return. + * + */ + private Integer maxResults; + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + */ + private String nextToken; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The maximum number of endpoints that you want to return. + * + * + * @param maxResults + * The maximum number of endpoints that you want to return. + */ + + public void setMaxResults(Integer maxResults) { + this.maxResults = maxResults; + } + + /** + * + * The maximum number of endpoints that you want to return. + * + * + * @return The maximum number of endpoints that you want to return. + */ + + public Integer getMaxResults() { + return this.maxResults; + } + + /** + * + * The maximum number of endpoints that you want to return. + * + * + * @param maxResults + * The maximum number of endpoints that you want to return. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsRequest withMaxResults(Integer maxResults) { + setMaxResults(maxResults); + return this; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + */ + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @return The token passed by previous API calls until all requested endpoints are returned. + */ + + public String getNextToken() { + return this.nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsRequest withNextToken(String nextToken) { + setNextToken(nextToken); + 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 (getAppInstanceUserArn() != null) + sb.append("AppInstanceUserArn: ").append("***Sensitive Data Redacted***").append(","); + if (getMaxResults() != null) + sb.append("MaxResults: ").append(getMaxResults()).append(","); + if (getNextToken() != null) + sb.append("NextToken: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListAppInstanceUserEndpointsRequest == false) + return false; + ListAppInstanceUserEndpointsRequest other = (ListAppInstanceUserEndpointsRequest) obj; + if (other.getAppInstanceUserArn() == null ^ this.getAppInstanceUserArn() == null) + return false; + if (other.getAppInstanceUserArn() != null && other.getAppInstanceUserArn().equals(this.getAppInstanceUserArn()) == false) + return false; + if (other.getMaxResults() == null ^ this.getMaxResults() == null) + return false; + if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserArn() == null) ? 0 : getAppInstanceUserArn().hashCode()); + hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public ListAppInstanceUserEndpointsRequest clone() { + return (ListAppInstanceUserEndpointsRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsResult.java new file mode 100644 index 000000000000..f67fd658e492 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListAppInstanceUserEndpointsResult.java @@ -0,0 +1,209 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListAppInstanceUserEndpointsResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + */ + private java.util.List appInstanceUserEndpoints; + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + */ + private String nextToken; + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * @return The information for each requested AppInstanceUserEndpoint. + */ + + public java.util.List getAppInstanceUserEndpoints() { + return appInstanceUserEndpoints; + } + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * @param appInstanceUserEndpoints + * The information for each requested AppInstanceUserEndpoint. + */ + + public void setAppInstanceUserEndpoints(java.util.Collection appInstanceUserEndpoints) { + if (appInstanceUserEndpoints == null) { + this.appInstanceUserEndpoints = null; + return; + } + + this.appInstanceUserEndpoints = new java.util.ArrayList(appInstanceUserEndpoints); + } + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setAppInstanceUserEndpoints(java.util.Collection)} or + * {@link #withAppInstanceUserEndpoints(java.util.Collection)} if you want to override the existing values. + * + * + * @param appInstanceUserEndpoints + * The information for each requested AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsResult withAppInstanceUserEndpoints(AppInstanceUserEndpointSummary... appInstanceUserEndpoints) { + if (this.appInstanceUserEndpoints == null) { + setAppInstanceUserEndpoints(new java.util.ArrayList(appInstanceUserEndpoints.length)); + } + for (AppInstanceUserEndpointSummary ele : appInstanceUserEndpoints) { + this.appInstanceUserEndpoints.add(ele); + } + return this; + } + + /** + * + * The information for each requested AppInstanceUserEndpoint. + * + * + * @param appInstanceUserEndpoints + * The information for each requested AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsResult withAppInstanceUserEndpoints(java.util.Collection appInstanceUserEndpoints) { + setAppInstanceUserEndpoints(appInstanceUserEndpoints); + return this; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + */ + + public void setNextToken(String nextToken) { + this.nextToken = nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @return The token passed by previous API calls until all requested endpoints are returned. + */ + + public String getNextToken() { + return this.nextToken; + } + + /** + * + * The token passed by previous API calls until all requested endpoints are returned. + * + * + * @param nextToken + * The token passed by previous API calls until all requested endpoints are returned. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListAppInstanceUserEndpointsResult withNextToken(String nextToken) { + setNextToken(nextToken); + 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 (getAppInstanceUserEndpoints() != null) + sb.append("AppInstanceUserEndpoints: ").append(getAppInstanceUserEndpoints()).append(","); + if (getNextToken() != null) + sb.append("NextToken: ").append("***Sensitive Data Redacted***"); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListAppInstanceUserEndpointsResult == false) + return false; + ListAppInstanceUserEndpointsResult other = (ListAppInstanceUserEndpointsResult) obj; + if (other.getAppInstanceUserEndpoints() == null ^ this.getAppInstanceUserEndpoints() == null) + return false; + if (other.getAppInstanceUserEndpoints() != null && other.getAppInstanceUserEndpoints().equals(this.getAppInstanceUserEndpoints()) == false) + return false; + if (other.getNextToken() == null ^ this.getNextToken() == null) + return false; + if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getAppInstanceUserEndpoints() == null) ? 0 : getAppInstanceUserEndpoints().hashCode()); + hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); + return hashCode; + } + + @Override + public ListAppInstanceUserEndpointsResult clone() { + try { + return (ListAppInstanceUserEndpointsResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceRequest.java new file mode 100644 index 000000000000..1f515825bf75 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceRequest.java @@ -0,0 +1,124 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListTagsForResourceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the resource. + * + */ + private String resourceARN; + + /** + * + * The ARN of the resource. + * + * + * @param resourceARN + * The ARN of the resource. + */ + + public void setResourceARN(String resourceARN) { + this.resourceARN = resourceARN; + } + + /** + * + * The ARN of the resource. + * + * + * @return The ARN of the resource. + */ + + public String getResourceARN() { + return this.resourceARN; + } + + /** + * + * The ARN of the resource. + * + * + * @param resourceARN + * The ARN of the resource. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListTagsForResourceRequest withResourceARN(String resourceARN) { + setResourceARN(resourceARN); + 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 (getResourceARN() != null) + sb.append("ResourceARN: ").append(getResourceARN()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListTagsForResourceRequest == false) + return false; + ListTagsForResourceRequest other = (ListTagsForResourceRequest) obj; + if (other.getResourceARN() == null ^ this.getResourceARN() == null) + return false; + if (other.getResourceARN() != null && other.getResourceARN().equals(this.getResourceARN()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getResourceARN() == null) ? 0 : getResourceARN().hashCode()); + return hashCode; + } + + @Override + public ListTagsForResourceRequest clone() { + return (ListTagsForResourceRequest) super.clone(); + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceResult.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceResult.java new file mode 100644 index 000000000000..4653c4ebbc7a --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/ListTagsForResourceResult.java @@ -0,0 +1,156 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ListTagsForResourceResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { + + /** + * + * The tag key-value pairs. + * + */ + private java.util.List tags; + + /** + * + * The tag key-value pairs. + * + * + * @return The tag key-value pairs. + */ + + public java.util.List getTags() { + return tags; + } + + /** + * + * The tag key-value pairs. + * + * + * @param tags + * The tag key-value pairs. + */ + + public void setTags(java.util.Collection tags) { + if (tags == null) { + this.tags = null; + return; + } + + this.tags = new java.util.ArrayList(tags); + } + + /** + * + * The tag key-value pairs. + * + * + * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the + * existing values. + * + * + * @param tags + * The tag key-value pairs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListTagsForResourceResult withTags(Tag... tags) { + if (this.tags == null) { + setTags(new java.util.ArrayList(tags.length)); + } + for (Tag ele : tags) { + this.tags.add(ele); + } + return this; + } + + /** + * + * The tag key-value pairs. + * + * + * @param tags + * The tag key-value pairs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ListTagsForResourceResult withTags(java.util.Collection tags) { + setTags(tags); + 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 (getTags() != null) + sb.append("Tags: ").append(getTags()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ListTagsForResourceResult == false) + return false; + ListTagsForResourceResult other = (ListTagsForResourceResult) obj; + if (other.getTags() == null ^ this.getTags() == null) + return false; + if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); + return hashCode; + } + + @Override + public ListTagsForResourceResult clone() { + try { + return (ListTagsForResourceResult) super.clone(); + } catch (CloneNotSupportedException e) { + throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); + } + } + +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/RegisterAppInstanceUserEndpointRequest.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/RegisterAppInstanceUserEndpointRequest.java new file mode 100644 index 000000000000..23305814af41 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/RegisterAppInstanceUserEndpointRequest.java @@ -0,0 +1,670 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; + +import com.amazonaws.AmazonWebServiceRequest; + +/** + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class RegisterAppInstanceUserEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * + */ + private String type; + /** + * + * The ARN of the resource to which the endpoint belongs. + * + */ + private String resourceArn; + /** + * + * The attributes of an Endpoint. + * + */ + private EndpointAttributes endpointAttributes; + /** + * + * The idempotency token for each client request. + * + */ + private String clientRequestToken; + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL + * indicates the endpoint receives all messages. NONE indicates the endpoint receives no messages. + * + */ + private String allowMessages; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public RegisterAppInstanceUserEndpointRequest withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public RegisterAppInstanceUserEndpointRequest withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. Supported types: + * + * + * + * + * APNS: The mobile notification service for an Apple device. + * + * + * + * + * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + * + * + * + * + * GCM: The mobile notification service for an Android device. + * + * + * + * + * Populate the ResourceArn value of each type as PinpointAppArn. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. Supported types:
* List all AppInstanceUsers created under a single AppInstance. @@ -489,6 +598,37 @@ java.util.concurrent.Future listAppInstanceUsersAsyn java.util.concurrent.Future listAppInstancesAsync(ListAppInstancesRequest listAppInstancesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.ListTagsForResource + * @see AWS API Documentation + */ + java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest); + + /** + * + * Lists the tags applied to an Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.ListTagsForResource + * @see AWS API Documentation + */ + java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -526,6 +666,109 @@ java.util.concurrent.Future putAppInstanc PutAppInstanceRetentionSettingsRequest putAppInstanceRetentionSettingsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest); + + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @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 RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return A Java Future containing the result of the TagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return A Java Future containing the result of the UntagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Updates AppInstance metadata. @@ -588,4 +831,41 @@ java.util.concurrent.Future updateAppInstanceAsync(Upda java.util.concurrent.Future updateAppInstanceUserAsync(UpdateAppInstanceUserRequest updateAppInstanceUserRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest); + + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @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 UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + } diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java index 79a7c99c89a5..077b0ec961fd 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java @@ -277,6 +277,41 @@ public DeleteAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest request) { + + return deregisterAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + final DeregisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DeregisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DeregisterAppInstanceUserEndpointResult call() throws Exception { + DeregisterAppInstanceUserEndpointResult result = null; + + try { + result = executeDeregisterAppInstanceUserEndpoint(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 describeAppInstanceAsync(DescribeAppInstanceRequest request) { @@ -376,6 +411,41 @@ public DescribeAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest request) { + + return describeAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + final DescribeAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DescribeAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DescribeAppInstanceUserEndpointResult call() throws Exception { + DescribeAppInstanceUserEndpointResult result = null; + + try { + result = executeDescribeAppInstanceUserEndpoint(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 getAppInstanceRetentionSettingsAsync( GetAppInstanceRetentionSettingsRequest request) { @@ -444,6 +514,39 @@ public ListAppInstanceAdminsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(ListAppInstanceUserEndpointsRequest request) { + + return listAppInstanceUserEndpointsAsync(request, null); + } + + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(final ListAppInstanceUserEndpointsRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final ListAppInstanceUserEndpointsRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public ListAppInstanceUserEndpointsResult call() throws Exception { + ListAppInstanceUserEndpointsResult result = null; + + try { + result = executeListAppInstanceUserEndpoints(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 listAppInstanceUsersAsync(ListAppInstanceUsersRequest request) { @@ -510,6 +613,39 @@ public ListAppInstancesResult call() throws Exception { }); } + @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 putAppInstanceRetentionSettingsAsync( PutAppInstanceRetentionSettingsRequest request) { @@ -545,6 +681,107 @@ public PutAppInstanceRetentionSettingsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest request) { + + return registerAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + final RegisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final RegisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public RegisterAppInstanceUserEndpointResult call() throws Exception { + RegisterAppInstanceUserEndpointResult result = null; + + try { + result = executeRegisterAppInstanceUserEndpoint(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 updateAppInstanceAsync(UpdateAppInstanceRequest request) { @@ -611,6 +848,40 @@ public UpdateAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync(UpdateAppInstanceUserEndpointRequest request) { + + return updateAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + final UpdateAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final UpdateAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public UpdateAppInstanceUserEndpointResult call() throws Exception { + UpdateAppInstanceUserEndpointResult result = null; + + try { + result = executeUpdateAppInstanceUserEndpoint(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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java index 80c9443de5ff..b8eab7f2c6f7 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java @@ -603,6 +603,77 @@ final DeleteAppInstanceUserResult executeDeleteAppInstanceUser(DeleteAppInstance } } + /** + * + * Deregisters an AppInstanceUserEndpoint. + * + * + * @param deregisterAppInstanceUserEndpointRequest + * @return Result of the DeregisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DeregisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DeregisterAppInstanceUserEndpointResult deregisterAppInstanceUserEndpoint(DeregisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDeregisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DeregisterAppInstanceUserEndpointResult executeDeregisterAppInstanceUserEndpoint( + DeregisterAppInstanceUserEndpointRequest deregisterAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(deregisterAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DeregisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(deregisterAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DeregisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Returns the full details of an AppInstance. @@ -808,6 +879,77 @@ final DescribeAppInstanceUserResult executeDescribeAppInstanceUser(DescribeAppIn } } + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @return Result of the DescribeAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DescribeAppInstanceUserEndpointResult describeAppInstanceUserEndpoint(DescribeAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDescribeAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DescribeAppInstanceUserEndpointResult executeDescribeAppInstanceUserEndpoint( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(describeAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(describeAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DescribeAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Gets the retention settings for an AppInstance. @@ -949,6 +1091,75 @@ final ListAppInstanceAdminsResult executeListAppInstanceAdmins(ListAppInstanceAd } } + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return Result of the ListAppInstanceUserEndpoints operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + @Override + public ListAppInstanceUserEndpointsResult listAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest request) { + request = beforeClientExecution(request); + return executeListAppInstanceUserEndpoints(request); + } + + @SdkInternalApi + final ListAppInstanceUserEndpointsResult executeListAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest) { + + ExecutionContext executionContext = createExecutionContext(listAppInstanceUserEndpointsRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListAppInstanceUserEndpointsRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(listAppInstanceUserEndpointsRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAppInstanceUserEndpoints"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new ListAppInstanceUserEndpointsResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -1083,6 +1294,73 @@ final ListAppInstancesResult executeListAppInstances(ListAppInstancesRequest lis } } + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return Result of the ListTagsForResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListTagsForResource + * @see AWS API Documentation + */ + @Override + public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { + request = beforeClientExecution(request); + return executeListTagsForResource(request); + } + + @SdkInternalApi + final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -1154,6 +1432,219 @@ final PutAppInstanceRetentionSettingsResult executePutAppInstanceRetentionSettin } } + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return Result of the RegisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public RegisterAppInstanceUserEndpointResult registerAppInstanceUserEndpoint(RegisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeRegisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final RegisterAppInstanceUserEndpointResult executeRegisterAppInstanceUserEndpoint( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(registerAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new RegisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(registerAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new RegisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return Result of the TagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.TagResource + * @see AWS + * API Documentation + */ + @Override + public TagResourceResult tagResource(TagResourceRequest request) { + request = beforeClientExecution(request); + return executeTagResource(request); + } + + @SdkInternalApi + final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(tagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return Result of the UntagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UntagResource + * @see AWS API Documentation + */ + @Override + public UntagResourceResult untagResource(UntagResourceRequest request) { + request = beforeClientExecution(request); + return executeUntagResource(request); + } + + @SdkInternalApi + final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(untagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Updates AppInstance metadata. @@ -1295,6 +1786,78 @@ final UpdateAppInstanceUserResult executeUpdateAppInstanceUser(UpdateAppInstance } } + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return Result of the UpdateAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public UpdateAppInstanceUserEndpointResult updateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeUpdateAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final UpdateAppInstanceUserEndpointResult executeUpdateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(updateAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(updateAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new UpdateAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * 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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java new file mode 100644 index 000000000000..ce28b071e3b4 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AllowMessages { + + ALL("ALL"), + NONE("NONE"); + + private String value; + + private AllowMessages(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AllowMessages corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AllowMessages fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AllowMessages enumEntry : AllowMessages.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java new file mode 100644 index 000000000000..de7664ec425d --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java @@ -0,0 +1,858 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push + * notifications, the endpoint is a mobile device used to receive mobile push notifications for a user. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class AppInstanceUserEndpoint implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. + * + */ + private String type; + /** + * + * The ARN of the resource to which the endpoint belongs. + * + */ + private String resourceArn; + /** + * + * The attributes of an Endpoint. + * + */ + private EndpointAttributes endpointAttributes; + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + */ + private java.util.Date createdTimestamp; + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + */ + private java.util.Date lastUpdatedTimestamp; + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + */ + private String allowMessages; + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + */ + private EndpointState endpointState; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointId(String endpointId) { + setEndpointId(endpointId); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @return The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(String type) { + setType(type); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + */ + + public void setResourceArn(String resourceArn) { + this.resourceArn = resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @return The ARN of the resource to which the endpoint belongs. + */ + + public String getResourceArn() { + return this.resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withResourceArn(String resourceArn) { + setResourceArn(resourceArn); + return this; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + */ + + public void setEndpointAttributes(EndpointAttributes endpointAttributes) { + this.endpointAttributes = endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @return The attributes of an Endpoint. + */ + + public EndpointAttributes getEndpointAttributes() { + return this.endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointAttributes(EndpointAttributes endpointAttributes) { + setEndpointAttributes(endpointAttributes); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + */ + + public void setCreatedTimestamp(java.util.Date createdTimestamp) { + this.createdTimestamp = createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @return The time at which an AppInstanceUserEndpoint was created. + */ + + public java.util.Date getCreatedTimestamp() { + return this.createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withCreatedTimestamp(java.util.Date createdTimestamp) { + setCreatedTimestamp(createdTimestamp); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + */ + + public void setLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + this.lastUpdatedTimestamp = lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @return The time at which an AppInstanceUserEndpoint was last updated. + */ + + public java.util.Date getLastUpdatedTimestamp() { + return this.lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + setLastUpdatedTimestamp(lastUpdatedTimestamp); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public void setAllowMessages(String allowMessages) { + this.allowMessages = allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @return Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public String getAllowMessages() { + return this.allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(String allowMessages) { + setAllowMessages(allowMessages); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(AllowMessages allowMessages) { + this.allowMessages = allowMessages.toString(); + return this; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + */ + + public void setEndpointState(EndpointState endpointState) { + this.endpointState = endpointState; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @return A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. + * When ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + */ + + public EndpointState getEndpointState() { + return this.endpointState; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values:
* Sets the amount of time in days that a given AppInstance retains data. @@ -526,6 +666,109 @@ java.util.concurrent.Future putAppInstanc PutAppInstanceRetentionSettingsRequest putAppInstanceRetentionSettingsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest); + + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @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 RegisterAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return A Java Future containing the result of the TagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest); + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.TagResource + * @see AWS + * API Documentation + */ + java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return A Java Future containing the result of the UntagResource operation returned by the service. + * @sample AmazonChimeSDKIdentityAsync.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest); + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity 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 AmazonChimeSDKIdentityAsyncHandler.UntagResource + * @see AWS API Documentation + */ + java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Updates AppInstance metadata. @@ -588,4 +831,41 @@ java.util.concurrent.Future updateAppInstanceAsync(Upda java.util.concurrent.Future updateAppInstanceUserAsync(UpdateAppInstanceUserRequest updateAppInstanceUserRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest); + + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @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 UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + } diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java index 79a7c99c89a5..077b0ec961fd 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java @@ -277,6 +277,41 @@ public DeleteAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest request) { + + return deregisterAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + final DeregisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DeregisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DeregisterAppInstanceUserEndpointResult call() throws Exception { + DeregisterAppInstanceUserEndpointResult result = null; + + try { + result = executeDeregisterAppInstanceUserEndpoint(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 describeAppInstanceAsync(DescribeAppInstanceRequest request) { @@ -376,6 +411,41 @@ public DescribeAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest request) { + + return describeAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + final DescribeAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DescribeAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DescribeAppInstanceUserEndpointResult call() throws Exception { + DescribeAppInstanceUserEndpointResult result = null; + + try { + result = executeDescribeAppInstanceUserEndpoint(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 getAppInstanceRetentionSettingsAsync( GetAppInstanceRetentionSettingsRequest request) { @@ -444,6 +514,39 @@ public ListAppInstanceAdminsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(ListAppInstanceUserEndpointsRequest request) { + + return listAppInstanceUserEndpointsAsync(request, null); + } + + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(final ListAppInstanceUserEndpointsRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final ListAppInstanceUserEndpointsRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public ListAppInstanceUserEndpointsResult call() throws Exception { + ListAppInstanceUserEndpointsResult result = null; + + try { + result = executeListAppInstanceUserEndpoints(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 listAppInstanceUsersAsync(ListAppInstanceUsersRequest request) { @@ -510,6 +613,39 @@ public ListAppInstancesResult call() throws Exception { }); } + @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 putAppInstanceRetentionSettingsAsync( PutAppInstanceRetentionSettingsRequest request) { @@ -545,6 +681,107 @@ public PutAppInstanceRetentionSettingsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest request) { + + return registerAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + final RegisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final RegisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public RegisterAppInstanceUserEndpointResult call() throws Exception { + RegisterAppInstanceUserEndpointResult result = null; + + try { + result = executeRegisterAppInstanceUserEndpoint(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 updateAppInstanceAsync(UpdateAppInstanceRequest request) { @@ -611,6 +848,40 @@ public UpdateAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync(UpdateAppInstanceUserEndpointRequest request) { + + return updateAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + final UpdateAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final UpdateAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public UpdateAppInstanceUserEndpointResult call() throws Exception { + UpdateAppInstanceUserEndpointResult result = null; + + try { + result = executeUpdateAppInstanceUserEndpoint(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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java index 80c9443de5ff..b8eab7f2c6f7 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java @@ -603,6 +603,77 @@ final DeleteAppInstanceUserResult executeDeleteAppInstanceUser(DeleteAppInstance } } + /** + * + * Deregisters an AppInstanceUserEndpoint. + * + * + * @param deregisterAppInstanceUserEndpointRequest + * @return Result of the DeregisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DeregisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DeregisterAppInstanceUserEndpointResult deregisterAppInstanceUserEndpoint(DeregisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDeregisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DeregisterAppInstanceUserEndpointResult executeDeregisterAppInstanceUserEndpoint( + DeregisterAppInstanceUserEndpointRequest deregisterAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(deregisterAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DeregisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(deregisterAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DeregisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Returns the full details of an AppInstance. @@ -808,6 +879,77 @@ final DescribeAppInstanceUserResult executeDescribeAppInstanceUser(DescribeAppIn } } + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @return Result of the DescribeAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DescribeAppInstanceUserEndpointResult describeAppInstanceUserEndpoint(DescribeAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDescribeAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DescribeAppInstanceUserEndpointResult executeDescribeAppInstanceUserEndpoint( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(describeAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(describeAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DescribeAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Gets the retention settings for an AppInstance. @@ -949,6 +1091,75 @@ final ListAppInstanceAdminsResult executeListAppInstanceAdmins(ListAppInstanceAd } } + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return Result of the ListAppInstanceUserEndpoints operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + @Override + public ListAppInstanceUserEndpointsResult listAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest request) { + request = beforeClientExecution(request); + return executeListAppInstanceUserEndpoints(request); + } + + @SdkInternalApi + final ListAppInstanceUserEndpointsResult executeListAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest) { + + ExecutionContext executionContext = createExecutionContext(listAppInstanceUserEndpointsRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListAppInstanceUserEndpointsRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(listAppInstanceUserEndpointsRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAppInstanceUserEndpoints"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new ListAppInstanceUserEndpointsResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -1083,6 +1294,73 @@ final ListAppInstancesResult executeListAppInstances(ListAppInstancesRequest lis } } + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return Result of the ListTagsForResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListTagsForResource + * @see AWS API Documentation + */ + @Override + public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { + request = beforeClientExecution(request); + return executeListTagsForResource(request); + } + + @SdkInternalApi + final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -1154,6 +1432,219 @@ final PutAppInstanceRetentionSettingsResult executePutAppInstanceRetentionSettin } } + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return Result of the RegisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public RegisterAppInstanceUserEndpointResult registerAppInstanceUserEndpoint(RegisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeRegisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final RegisterAppInstanceUserEndpointResult executeRegisterAppInstanceUserEndpoint( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(registerAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new RegisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(registerAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new RegisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return Result of the TagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.TagResource + * @see AWS + * API Documentation + */ + @Override + public TagResourceResult tagResource(TagResourceRequest request) { + request = beforeClientExecution(request); + return executeTagResource(request); + } + + @SdkInternalApi + final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(tagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return Result of the UntagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UntagResource + * @see AWS API Documentation + */ + @Override + public UntagResourceResult untagResource(UntagResourceRequest request) { + request = beforeClientExecution(request); + return executeUntagResource(request); + } + + @SdkInternalApi + final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(untagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Updates AppInstance metadata. @@ -1295,6 +1786,78 @@ final UpdateAppInstanceUserResult executeUpdateAppInstanceUser(UpdateAppInstance } } + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return Result of the UpdateAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public UpdateAppInstanceUserEndpointResult updateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeUpdateAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final UpdateAppInstanceUserEndpointResult executeUpdateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(updateAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(updateAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new UpdateAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * 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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java new file mode 100644 index 000000000000..ce28b071e3b4 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AllowMessages { + + ALL("ALL"), + NONE("NONE"); + + private String value; + + private AllowMessages(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AllowMessages corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AllowMessages fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AllowMessages enumEntry : AllowMessages.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java new file mode 100644 index 000000000000..de7664ec425d --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java @@ -0,0 +1,858 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push + * notifications, the endpoint is a mobile device used to receive mobile push notifications for a user. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class AppInstanceUserEndpoint implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. + * + */ + private String type; + /** + * + * The ARN of the resource to which the endpoint belongs. + * + */ + private String resourceArn; + /** + * + * The attributes of an Endpoint. + * + */ + private EndpointAttributes endpointAttributes; + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + */ + private java.util.Date createdTimestamp; + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + */ + private java.util.Date lastUpdatedTimestamp; + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + */ + private String allowMessages; + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + */ + private EndpointState endpointState; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointId(String endpointId) { + setEndpointId(endpointId); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @return The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(String type) { + setType(type); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + */ + + public void setResourceArn(String resourceArn) { + this.resourceArn = resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @return The ARN of the resource to which the endpoint belongs. + */ + + public String getResourceArn() { + return this.resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withResourceArn(String resourceArn) { + setResourceArn(resourceArn); + return this; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + */ + + public void setEndpointAttributes(EndpointAttributes endpointAttributes) { + this.endpointAttributes = endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @return The attributes of an Endpoint. + */ + + public EndpointAttributes getEndpointAttributes() { + return this.endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointAttributes(EndpointAttributes endpointAttributes) { + setEndpointAttributes(endpointAttributes); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + */ + + public void setCreatedTimestamp(java.util.Date createdTimestamp) { + this.createdTimestamp = createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @return The time at which an AppInstanceUserEndpoint was created. + */ + + public java.util.Date getCreatedTimestamp() { + return this.createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withCreatedTimestamp(java.util.Date createdTimestamp) { + setCreatedTimestamp(createdTimestamp); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + */ + + public void setLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + this.lastUpdatedTimestamp = lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @return The time at which an AppInstanceUserEndpoint was last updated. + */ + + public java.util.Date getLastUpdatedTimestamp() { + return this.lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + setLastUpdatedTimestamp(lastUpdatedTimestamp); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public void setAllowMessages(String allowMessages) { + this.allowMessages = allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @return Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public String getAllowMessages() { + return this.allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(String allowMessages) { + setAllowMessages(allowMessages); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(AllowMessages allowMessages) { + this.allowMessages = allowMessages.toString(); + return this; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values: + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + * + * + */ + + public void setEndpointState(EndpointState endpointState) { + this.endpointState = endpointState; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @return A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values:
* Updates AppInstance metadata. @@ -588,4 +831,41 @@ java.util.concurrent.Future updateAppInstanceAsync(Upda java.util.concurrent.Future updateAppInstanceUserAsync(UpdateAppInstanceUserRequest updateAppInstanceUserRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return A Java Future containing the result of the UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsync.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest); + + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @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 UpdateAppInstanceUserEndpoint operation returned by the + * service. + * @sample AmazonChimeSDKIdentityAsyncHandler.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + } diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java index 79a7c99c89a5..077b0ec961fd 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityAsyncClient.java @@ -277,6 +277,41 @@ public DeleteAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + DeregisterAppInstanceUserEndpointRequest request) { + + return deregisterAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future deregisterAppInstanceUserEndpointAsync( + final DeregisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DeregisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DeregisterAppInstanceUserEndpointResult call() throws Exception { + DeregisterAppInstanceUserEndpointResult result = null; + + try { + result = executeDeregisterAppInstanceUserEndpoint(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 describeAppInstanceAsync(DescribeAppInstanceRequest request) { @@ -376,6 +411,41 @@ public DescribeAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + DescribeAppInstanceUserEndpointRequest request) { + + return describeAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future describeAppInstanceUserEndpointAsync( + final DescribeAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final DescribeAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public DescribeAppInstanceUserEndpointResult call() throws Exception { + DescribeAppInstanceUserEndpointResult result = null; + + try { + result = executeDescribeAppInstanceUserEndpoint(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 getAppInstanceRetentionSettingsAsync( GetAppInstanceRetentionSettingsRequest request) { @@ -444,6 +514,39 @@ public ListAppInstanceAdminsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(ListAppInstanceUserEndpointsRequest request) { + + return listAppInstanceUserEndpointsAsync(request, null); + } + + @Override + public java.util.concurrent.Future listAppInstanceUserEndpointsAsync(final ListAppInstanceUserEndpointsRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final ListAppInstanceUserEndpointsRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public ListAppInstanceUserEndpointsResult call() throws Exception { + ListAppInstanceUserEndpointsResult result = null; + + try { + result = executeListAppInstanceUserEndpoints(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 listAppInstanceUsersAsync(ListAppInstanceUsersRequest request) { @@ -510,6 +613,39 @@ public ListAppInstancesResult call() throws Exception { }); } + @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 putAppInstanceRetentionSettingsAsync( PutAppInstanceRetentionSettingsRequest request) { @@ -545,6 +681,107 @@ public PutAppInstanceRetentionSettingsResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + RegisterAppInstanceUserEndpointRequest request) { + + return registerAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future registerAppInstanceUserEndpointAsync( + final RegisterAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final RegisterAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public RegisterAppInstanceUserEndpointResult call() throws Exception { + RegisterAppInstanceUserEndpointResult result = null; + + try { + result = executeRegisterAppInstanceUserEndpoint(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 updateAppInstanceAsync(UpdateAppInstanceRequest request) { @@ -611,6 +848,40 @@ public UpdateAppInstanceUserResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync(UpdateAppInstanceUserEndpointRequest request) { + + return updateAppInstanceUserEndpointAsync(request, null); + } + + @Override + public java.util.concurrent.Future updateAppInstanceUserEndpointAsync( + final UpdateAppInstanceUserEndpointRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final UpdateAppInstanceUserEndpointRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public UpdateAppInstanceUserEndpointResult call() throws Exception { + UpdateAppInstanceUserEndpointResult result = null; + + try { + result = executeUpdateAppInstanceUserEndpoint(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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java index 80c9443de5ff..b8eab7f2c6f7 100644 --- a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/AmazonChimeSDKIdentityClient.java @@ -603,6 +603,77 @@ final DeleteAppInstanceUserResult executeDeleteAppInstanceUser(DeleteAppInstance } } + /** + * + * Deregisters an AppInstanceUserEndpoint. + * + * + * @param deregisterAppInstanceUserEndpointRequest + * @return Result of the DeregisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DeregisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DeregisterAppInstanceUserEndpointResult deregisterAppInstanceUserEndpoint(DeregisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDeregisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DeregisterAppInstanceUserEndpointResult executeDeregisterAppInstanceUserEndpoint( + DeregisterAppInstanceUserEndpointRequest deregisterAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(deregisterAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DeregisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(deregisterAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeregisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DeregisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Returns the full details of an AppInstance. @@ -808,6 +879,77 @@ final DescribeAppInstanceUserResult executeDescribeAppInstanceUser(DescribeAppIn } } + /** + * + * Returns the full details of an AppInstanceUserEndpoint. + * + * + * @param describeAppInstanceUserEndpointRequest + * @return Result of the DescribeAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.DescribeAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public DescribeAppInstanceUserEndpointResult describeAppInstanceUserEndpoint(DescribeAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeDescribeAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final DescribeAppInstanceUserEndpointResult executeDescribeAppInstanceUserEndpoint( + DescribeAppInstanceUserEndpointRequest describeAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(describeAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new DescribeAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(describeAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new DescribeAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Gets the retention settings for an AppInstance. @@ -949,6 +1091,75 @@ final ListAppInstanceAdminsResult executeListAppInstanceAdmins(ListAppInstanceAd } } + /** + * + * Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser. + * + * + * @param listAppInstanceUserEndpointsRequest + * @return Result of the ListAppInstanceUserEndpoints operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListAppInstanceUserEndpoints + * @see AWS API Documentation + */ + @Override + public ListAppInstanceUserEndpointsResult listAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest request) { + request = beforeClientExecution(request); + return executeListAppInstanceUserEndpoints(request); + } + + @SdkInternalApi + final ListAppInstanceUserEndpointsResult executeListAppInstanceUserEndpoints(ListAppInstanceUserEndpointsRequest listAppInstanceUserEndpointsRequest) { + + ExecutionContext executionContext = createExecutionContext(listAppInstanceUserEndpointsRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListAppInstanceUserEndpointsRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(listAppInstanceUserEndpointsRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListAppInstanceUserEndpoints"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new ListAppInstanceUserEndpointsResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * List all AppInstanceUsers created under a single AppInstance. @@ -1083,6 +1294,73 @@ final ListAppInstancesResult executeListAppInstances(ListAppInstancesRequest lis } } + /** + * + * Lists the tags applied to an Amazon Chime SDK identity resource. + * + * + * @param listTagsForResourceRequest + * @return Result of the ListTagsForResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.ListTagsForResource + * @see AWS API Documentation + */ + @Override + public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request) { + request = beforeClientExecution(request); + return executeListTagsForResource(request); + } + + @SdkInternalApi + final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new ListTagsForResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(listTagsForResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new ListTagsForResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Sets the amount of time in days that a given AppInstance retains data. @@ -1154,6 +1432,219 @@ final PutAppInstanceRetentionSettingsResult executePutAppInstanceRetentionSettin } } + /** + * + * Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a + * user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a + * user. + * + * + * @param registerAppInstanceUserEndpointRequest + * @return Result of the RegisterAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.RegisterAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public RegisterAppInstanceUserEndpointResult registerAppInstanceUserEndpoint(RegisterAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeRegisterAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final RegisterAppInstanceUserEndpointResult executeRegisterAppInstanceUserEndpoint( + RegisterAppInstanceUserEndpointRequest registerAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(registerAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new RegisterAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(registerAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new RegisterAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Applies the specified tags to the specified Amazon Chime SDK identity resource. + * + * + * @param tagResourceRequest + * @return Result of the TagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ResourceLimitExceededException + * The request exceeds the resource limit. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.TagResource + * @see AWS + * API Documentation + */ + @Override + public TagResourceResult tagResource(TagResourceRequest request) { + request = beforeClientExecution(request); + return executeTagResource(request); + } + + @SdkInternalApi + final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(tagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new TagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(tagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new TagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + + /** + * + * Removes the specified tags from the specified Amazon Chime SDK identity resource. + * + * + * @param untagResourceRequest + * @return Result of the UntagResource operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UntagResource + * @see AWS API Documentation + */ + @Override + public UntagResourceResult untagResource(UntagResourceRequest request) { + request = beforeClientExecution(request); + return executeUntagResource(request); + } + + @SdkInternalApi + final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) { + + ExecutionContext executionContext = createExecutionContext(untagResourceRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UntagResourceRequestProtocolMarshaller(protocolFactory).marshall(super.beforeMarshalling(untagResourceRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), new UntagResourceResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Updates AppInstance metadata. @@ -1295,6 +1786,78 @@ final UpdateAppInstanceUserResult executeUpdateAppInstanceUser(UpdateAppInstance } } + /** + * + * Updates the details of an AppInstanceUserEndpoint. You can update the name and + * AllowMessage values. + * + * + * @param updateAppInstanceUserEndpointRequest + * @return Result of the UpdateAppInstanceUserEndpoint operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKIdentity.UpdateAppInstanceUserEndpoint + * @see AWS API Documentation + */ + @Override + public UpdateAppInstanceUserEndpointResult updateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest request) { + request = beforeClientExecution(request); + return executeUpdateAppInstanceUserEndpoint(request); + } + + @SdkInternalApi + final UpdateAppInstanceUserEndpointResult executeUpdateAppInstanceUserEndpoint(UpdateAppInstanceUserEndpointRequest updateAppInstanceUserEndpointRequest) { + + ExecutionContext executionContext = createExecutionContext(updateAppInstanceUserEndpointRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new UpdateAppInstanceUserEndpointRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(updateAppInstanceUserEndpointRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Identity"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateAppInstanceUserEndpoint"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new UpdateAppInstanceUserEndpointResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * 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 diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java new file mode 100644 index 000000000000..ce28b071e3b4 --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AllowMessages.java @@ -0,0 +1,60 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AllowMessages { + + ALL("ALL"), + NONE("NONE"); + + private String value; + + private AllowMessages(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AllowMessages corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AllowMessages fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AllowMessages enumEntry : AllowMessages.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java new file mode 100644 index 000000000000..de7664ec425d --- /dev/null +++ b/aws-java-sdk-chimesdkidentity/src/main/java/com/amazonaws/services/chimesdkidentity/model/AppInstanceUserEndpoint.java @@ -0,0 +1,858 @@ +/* + * Copyright 2016-2021 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.chimesdkidentity.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push + * notifications, the endpoint is a mobile device used to receive mobile push notifications for a user. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class AppInstanceUserEndpoint implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The ARN of the AppInstanceUser. + * + */ + private String appInstanceUserArn; + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + */ + private String endpointId; + /** + * + * The name of the AppInstanceUserEndpoint. + * + */ + private String name; + /** + * + * The type of the AppInstanceUserEndpoint. + * + */ + private String type; + /** + * + * The ARN of the resource to which the endpoint belongs. + * + */ + private String resourceArn; + /** + * + * The attributes of an Endpoint. + * + */ + private EndpointAttributes endpointAttributes; + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + */ + private java.util.Date createdTimestamp; + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + */ + private java.util.Date lastUpdatedTimestamp; + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + */ + private String allowMessages; + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + */ + private EndpointState endpointState; + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + */ + + public void setAppInstanceUserArn(String appInstanceUserArn) { + this.appInstanceUserArn = appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @return The ARN of the AppInstanceUser. + */ + + public String getAppInstanceUserArn() { + return this.appInstanceUserArn; + } + + /** + * + * The ARN of the AppInstanceUser. + * + * + * @param appInstanceUserArn + * The ARN of the AppInstanceUser. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withAppInstanceUserArn(String appInstanceUserArn) { + setAppInstanceUserArn(appInstanceUserArn); + return this; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + */ + + public void setEndpointId(String endpointId) { + this.endpointId = endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @return The unique identifier of the AppInstanceUserEndpoint. + */ + + public String getEndpointId() { + return this.endpointId; + } + + /** + * + * The unique identifier of the AppInstanceUserEndpoint. + * + * + * @param endpointId + * The unique identifier of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointId(String endpointId) { + setEndpointId(endpointId); + return this; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + */ + + public void setName(String name) { + this.name = name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @return The name of the AppInstanceUserEndpoint. + */ + + public String getName() { + return this.name; + } + + /** + * + * The name of the AppInstanceUserEndpoint. + * + * + * @param name + * The name of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withName(String name) { + setName(name); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @return The type of the AppInstanceUserEndpoint. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(String type) { + setType(type); + return this; + } + + /** + * + * The type of the AppInstanceUserEndpoint. + * + * + * @param type + * The type of the AppInstanceUserEndpoint. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public AppInstanceUserEndpoint withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + */ + + public void setResourceArn(String resourceArn) { + this.resourceArn = resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @return The ARN of the resource to which the endpoint belongs. + */ + + public String getResourceArn() { + return this.resourceArn; + } + + /** + * + * The ARN of the resource to which the endpoint belongs. + * + * + * @param resourceArn + * The ARN of the resource to which the endpoint belongs. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withResourceArn(String resourceArn) { + setResourceArn(resourceArn); + return this; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + */ + + public void setEndpointAttributes(EndpointAttributes endpointAttributes) { + this.endpointAttributes = endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @return The attributes of an Endpoint. + */ + + public EndpointAttributes getEndpointAttributes() { + return this.endpointAttributes; + } + + /** + * + * The attributes of an Endpoint. + * + * + * @param endpointAttributes + * The attributes of an Endpoint. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withEndpointAttributes(EndpointAttributes endpointAttributes) { + setEndpointAttributes(endpointAttributes); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + */ + + public void setCreatedTimestamp(java.util.Date createdTimestamp) { + this.createdTimestamp = createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @return The time at which an AppInstanceUserEndpoint was created. + */ + + public java.util.Date getCreatedTimestamp() { + return this.createdTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was created. + * + * + * @param createdTimestamp + * The time at which an AppInstanceUserEndpoint was created. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withCreatedTimestamp(java.util.Date createdTimestamp) { + setCreatedTimestamp(createdTimestamp); + return this; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + */ + + public void setLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + this.lastUpdatedTimestamp = lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @return The time at which an AppInstanceUserEndpoint was last updated. + */ + + public java.util.Date getLastUpdatedTimestamp() { + return this.lastUpdatedTimestamp; + } + + /** + * + * The time at which an AppInstanceUserEndpoint was last updated. + * + * + * @param lastUpdatedTimestamp + * The time at which an AppInstanceUserEndpoint was last updated. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public AppInstanceUserEndpoint withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { + setLastUpdatedTimestamp(lastUpdatedTimestamp); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public void setAllowMessages(String allowMessages) { + this.allowMessages = allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @return Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @see AllowMessages + */ + + public String getAllowMessages() { + return this.allowMessages; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(String allowMessages) { + setAllowMessages(allowMessages); + return this; + } + + /** + * + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + * + * + * @param allowMessages + * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the + * endpoint will receive no messages. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AllowMessages + */ + + public AppInstanceUserEndpoint withAllowMessages(AllowMessages allowMessages) { + this.allowMessages = allowMessages.toString(); + return this; + } + + /** + * + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + * + * + * + * + * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + * + * + * + * + * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + * + * + * + * + * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + * + * + * + * + * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + * + * + * + * + * @param endpointState + * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported + * values:
* Returns the full details of an AppInstance. @@ -808,6 +879,77 @@ final DescribeAppInstanceUserResult executeDescribeAppInstanceUser(DescribeAppIn } } + /** + *
* Gets the retention settings for an AppInstance. @@ -949,6 +1091,75 @@ final ListAppInstanceAdminsResult executeListAppInstanceAdmins(ListAppInstanceAd } } + /** + *
* List all AppInstanceUsers created under a single AppInstance. @@ -1083,6 +1294,73 @@ final ListAppInstancesResult executeListAppInstances(ListAppInstancesRequest lis } } + /** + *
* Sets the amount of time in days that a given AppInstance retains data. @@ -1154,6 +1432,219 @@ final PutAppInstanceRetentionSettingsResult executePutAppInstanceRetentionSettin } } + /** + *
* Updates AppInstance metadata. @@ -1295,6 +1786,78 @@ final UpdateAppInstanceUserResult executeUpdateAppInstanceUser(UpdateAppInstance } } + /** + *
+ * An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push + * notifications, the endpoint is a mobile device used to receive mobile push notifications for a user. + *
+ * The ARN of the AppInstanceUser. + *
+ * The unique identifier of the AppInstanceUserEndpoint. + *
+ * The name of the AppInstanceUserEndpoint. + *
+ * The type of the AppInstanceUserEndpoint. + *
+ * The ARN of the resource to which the endpoint belongs. + *
+ * The attributes of an Endpoint. + *
Endpoint
+ * The time at which an AppInstanceUserEndpoint was created. + *
+ * The time at which an AppInstanceUserEndpoint was last updated. + *
+ * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + *
ALL
NONE
+ * A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: + *
+ * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When + * ACTIVE, the EndpointStatusReason remains empty. + *
ACTIVE
EndpointStatusReason
+ * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When + * INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. + *
INACTIVE
+ * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to invalid device token + *
INVALID_DEVICE_TOKEN
+ * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE + * due to an invalid pinpoint ARN that was input through the ResourceArn field. + *
INVALID_PINPOINT_ARN
ResourceArn
+ * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. + * When INACTIVE, the corresponding reason will be conveyed through + * EndpointStatusReason. + *
+ * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to invalid device token + *
+ * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is + * INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn + * field. + *
+ * ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. + * When ACTIVE, the EndpointStatusReason remains empty. + *
+ * Summary of the details of an AppInstanceUserEndpoint. + *
+ * BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. + * ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will + * receive no messages. + *
+ * A read-only field that represent the state of an AppInstanceUserEndpoint. + *
+ * The full details of an AppInstanceUserEndpoint: the AppInstanceUserArn, ID, name, type, + * resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use + * epoch milliseconds. + *
AppInstanceUserArn
+ * The device token for the GCM, APNS, and APNS_SANDBOX endpoint types. + *
+ * The VOIP device token for the APNS and APNS_SANDBOX endpoint types. + *
+ * INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When INACTIVE, + * the corresponding reason will be conveyed through EndpointStatusReason. + *
+ * INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE due + * to invalid device token + *
+ * INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE due + * to an invalid pinpoint ARN that was input through the ResourceArn field. + *
+ * Enum that indicates the Status of an AppInstanceUserEndpoint. + *
+ * The reason for the EndpointStatus. + *
EndpointStatus
+ * The maximum number of endpoints that you want to return. + *
+ * The token passed by previous API calls until all requested endpoints are returned. + *
+ * The information for each requested AppInstanceUserEndpoint. + *
+ * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setAppInstanceUserEndpoints(java.util.Collection)} or + * {@link #withAppInstanceUserEndpoints(java.util.Collection)} if you want to override the existing values. + *
+ * The ARN of the resource. + *
+ * The tag key-value pairs. + *
+ * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the + * existing values. + *
+ * The type of the AppInstanceUserEndpoint. Supported types: + *
+ * APNS: The mobile notification service for an Apple device. + *
APNS
+ * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple device. + *
APNS_SANDBOX
+ * GCM: The mobile notification service for an Android device. + *
GCM
+ * Populate the ResourceArn value of each type as PinpointAppArn. + *
PinpointAppArn
+ * The idempotency token for each client request. + *
+ * Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL + * indicates the endpoint receives all messages. NONE indicates the endpoint receives no messages. + *
+ * Populate the ResourceArn value of each type as PinpointAppArn. + * @see AppInstanceUserEndpointType + */ + + public void setType(String type) { + this.type = type; + } + + /** + *
+ * APNS_SANDBOX: The sandbox environment of the mobile notification service for an Apple + * device. + *
+ * Populate the ResourceArn value of each type as PinpointAppArn. + * @see AppInstanceUserEndpointType + */ + + public String getType() { + return this.type; + } + + /** + *
+ * Populate the ResourceArn value of each type as PinpointAppArn. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public RegisterAppInstanceUserEndpointRequest withType(String type) { + setType(type); + return this; + } + + /** + *
+ * Populate the ResourceArn value of each type as PinpointAppArn. + * @return Returns a reference to this object so that method calls can be chained together. + * @see AppInstanceUserEndpointType + */ + + public RegisterAppInstanceUserEndpointRequest withType(AppInstanceUserEndpointType type) { + this.type = type.toString(); + return this; + } + + /** + *
- * Describes a tag applied to a resource. + * A tag object containing a key-value pair. *
- * The key of the tag. + * The key in a tag. *
- * The value of the tag. + * The value in a tag. *
+ * The resource ARN. + *
+ * The tag keys. + *
+ * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setTagKeys(java.util.Collection)} or {@link #withTagKeys(java.util.Collection)} if you want to override + * the existing values. + *
- * Adds a user to a channel. The InvitedBy response field is derived from the request header. A channel - * member can: + * Adds a user to a channel. The InvitedBy field in ChannelMembership is derived from the + * request header. A channel member can: *
InvitedBy
ChannelMembership
+ * Gets the membership preferences of an AppInstanceUser for the specified channel. The + * AppInstanceUser must be a member of the channel. Only the AppInstanceUser who owns the + * membership can retrieve preferences. Users in the AppInstanceAdmin and channel moderator roles can't + * retrieve preferences for other users. Banned users can't retrieve membership preferences for the channel from + * which they are banned. + *
AppInstanceAdmin
* Gets the full details of a channel message. @@ -1082,6 +1112,11 @@ DescribeChannelModeratedByAppInstanceUserResult describeChannelModeratedByAppIns * user that makes the API call as the value in the header. *
+ * If you want to list the channels to which a specific app instance user belongs, see the ListChannelMembershipsForAppInstanceUser API. + *
+ * Sets the membership preferences of an AppInstanceUser for the specified channel. The + * AppInstanceUser must be a member of the channel. Only the AppInstanceUser who owns the + * membership can set preferences. Users in the AppInstanceAdmin and channel moderator roles can't set + * preferences for other users. Banned users can't set membership preferences for the channel from which they are + * banned. + *
* Redacts message content, but not metadata. The message exists in the back end, but the action returns null diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingAsync.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingAsync.java index 943ee9f11279..f5c6b7b631b7 100644 --- a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingAsync.java +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingAsync.java @@ -386,8 +386,8 @@ java.util.concurrent.Future createChannelFlowAsync(Crea /** * - * Adds a user to a channel. The InvitedBy response field is derived from the request header. A channel - * member can: + * Adds a user to a channel. The InvitedBy field in ChannelMembership is derived from the + * request header. A channel member can: * * * @@ -448,8 +448,8 @@ java.util.concurrent.Future createChannelFlowAsync(Crea /** * - * Adds a user to a channel. The InvitedBy response field is derived from the request header. A channel - * member can: + * Adds a user to a channel. The InvitedBy field in ChannelMembership is derived from the + * request header. A channel member can: * * * @@ -1224,6 +1224,51 @@ java.util.concurrent.Future describeChannelModer java.util.concurrent.Future disassociateChannelFlowAsync(DisassociateChannelFlowRequest disassociateChannelFlowRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); + /** + * + * Gets the membership preferences of an AppInstanceUser for the specified channel. The + * AppInstanceUser must be a member of the channel. Only the AppInstanceUser who owns the + * membership can retrieve preferences. Users in the AppInstanceAdmin and channel moderator roles can't + * retrieve preferences for other users. Banned users can't retrieve membership preferences for the channel from + * which they are banned. + * + * + * @param getChannelMembershipPreferencesRequest + * @return A Java Future containing the result of the GetChannelMembershipPreferences operation returned by the + * service. + * @sample AmazonChimeSDKMessagingAsync.GetChannelMembershipPreferences + * @see AWS API Documentation + */ + java.util.concurrent.Future getChannelMembershipPreferencesAsync( + GetChannelMembershipPreferencesRequest getChannelMembershipPreferencesRequest); + + /** + * + * Gets the membership preferences of an AppInstanceUser for the specified channel. The + * AppInstanceUser must be a member of the channel. Only the AppInstanceUser who owns the + * membership can retrieve preferences. Users in the AppInstanceAdmin and channel moderator roles can't + * retrieve preferences for other users. Banned users can't retrieve membership preferences for the channel from + * which they are banned. + * + * + * @param getChannelMembershipPreferencesRequest + * @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 GetChannelMembershipPreferences operation returned by the + * service. + * @sample AmazonChimeSDKMessagingAsyncHandler.GetChannelMembershipPreferences + * @see AWS API Documentation + */ + java.util.concurrent.Future getChannelMembershipPreferencesAsync( + GetChannelMembershipPreferencesRequest getChannelMembershipPreferencesRequest, + com.amazonaws.handlers.AsyncHandler asyncHandler); + /** * * Gets the full details of a channel message. @@ -1519,6 +1564,11 @@ java.util.concurrent.Future listChannelFlowsAsync(ListCh * user that makes the API call as the value in the header. * * + * + * If you want to list the channels to which a specific app instance user belongs, see the ListChannelMembershipsForAppInstanceUser API. + * * * @param listChannelMembershipsRequest * @return A Java Future containing the result of the ListChannelMemberships operation returned by the service. @@ -1538,6 +1588,11 @@ java.util.concurrent.Future listChannelFlowsAsync(ListCh * user that makes the API call as the value in the header. *
* Gets the full details of a channel message. @@ -1519,6 +1564,11 @@ java.util.concurrent.Future listChannelFlowsAsync(ListCh * user that makes the API call as the value in the header. *
* Redacts message content, but not metadata. The message exists in the back end, but the action returns null diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingAsyncClient.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingAsyncClient.java index 0bb1f5291d92..b2631e6f76bc 100644 --- a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingAsyncClient.java +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingAsyncClient.java @@ -809,6 +809,41 @@ public DisassociateChannelFlowResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future getChannelMembershipPreferencesAsync( + GetChannelMembershipPreferencesRequest request) { + + return getChannelMembershipPreferencesAsync(request, null); + } + + @Override + public java.util.concurrent.Future getChannelMembershipPreferencesAsync( + final GetChannelMembershipPreferencesRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final GetChannelMembershipPreferencesRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public GetChannelMembershipPreferencesResult call() throws Exception { + GetChannelMembershipPreferencesResult result = null; + + try { + result = executeGetChannelMembershipPreferences(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 getChannelMessageAsync(GetChannelMessageRequest request) { @@ -1244,6 +1279,41 @@ public ListTagsForResourceResult call() throws Exception { }); } + @Override + public java.util.concurrent.Future putChannelMembershipPreferencesAsync( + PutChannelMembershipPreferencesRequest request) { + + return putChannelMembershipPreferencesAsync(request, null); + } + + @Override + public java.util.concurrent.Future putChannelMembershipPreferencesAsync( + final PutChannelMembershipPreferencesRequest request, + final com.amazonaws.handlers.AsyncHandler asyncHandler) { + final PutChannelMembershipPreferencesRequest finalRequest = beforeClientExecution(request); + + return executorService.submit(new java.util.concurrent.Callable() { + @Override + public PutChannelMembershipPreferencesResult call() throws Exception { + PutChannelMembershipPreferencesResult result = null; + + try { + result = executePutChannelMembershipPreferences(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 redactChannelMessageAsync(RedactChannelMessageRequest request) { diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingClient.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingClient.java index 58a18008a0fe..7253c0367f63 100644 --- a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingClient.java +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/AmazonChimeSDKMessagingClient.java @@ -659,8 +659,8 @@ final CreateChannelFlowResult executeCreateChannelFlow(CreateChannelFlowRequest /** * - * Adds a user to a channel. The InvitedBy response field is derived from the request header. A channel - * member can: + * Adds a user to a channel. The InvitedBy field in ChannelMembership is derived from the + * request header. A channel member can: * * * @@ -1937,6 +1937,81 @@ final DisassociateChannelFlowResult executeDisassociateChannelFlow(DisassociateC } } + /** + * + * Gets the membership preferences of an AppInstanceUser for the specified channel. The + * AppInstanceUser must be a member of the channel. Only the AppInstanceUser who owns the + * membership can retrieve preferences. Users in the AppInstanceAdmin and channel moderator roles can't + * retrieve preferences for other users. Banned users can't retrieve membership preferences for the channel from + * which they are banned. + * + * + * @param getChannelMembershipPreferencesRequest + * @return Result of the GetChannelMembershipPreferences operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKMessaging.GetChannelMembershipPreferences + * @see AWS API Documentation + */ + @Override + public GetChannelMembershipPreferencesResult getChannelMembershipPreferences(GetChannelMembershipPreferencesRequest request) { + request = beforeClientExecution(request); + return executeGetChannelMembershipPreferences(request); + } + + @SdkInternalApi + final GetChannelMembershipPreferencesResult executeGetChannelMembershipPreferences( + GetChannelMembershipPreferencesRequest getChannelMembershipPreferencesRequest) { + + ExecutionContext executionContext = createExecutionContext(getChannelMembershipPreferencesRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new GetChannelMembershipPreferencesRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(getChannelMembershipPreferencesRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Messaging"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetChannelMembershipPreferences"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new GetChannelMembershipPreferencesResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Gets the full details of a channel message. @@ -2350,6 +2425,11 @@ final ListChannelFlowsResult executeListChannelFlows(ListChannelFlowsRequest lis * user that makes the API call as the value in the header. * * + * + * If you want to list the channels to which a specific app instance user belongs, see the ListChannelMembershipsForAppInstanceUser API. + * * * @param listChannelMembershipsRequest * @return Result of the ListChannelMemberships operation returned by the service. @@ -2950,6 +3030,83 @@ final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRe } } + /** + * + * Sets the membership preferences of an AppInstanceUser for the specified channel. The + * AppInstanceUser must be a member of the channel. Only the AppInstanceUser who owns the + * membership can set preferences. Users in the AppInstanceAdmin and channel moderator roles can't set + * preferences for other users. Banned users can't set membership preferences for the channel from which they are + * banned. + * + * + * @param putChannelMembershipPreferencesRequest + * @return Result of the PutChannelMembershipPreferences operation returned by the service. + * @throws BadRequestException + * The input parameters don't match the service's restrictions. + * @throws ConflictException + * The request could not be processed because of conflict in the current state of the resource. + * @throws UnauthorizedClientException + * The client is not currently authorized to make the request. + * @throws ForbiddenException + * The client is permanently forbidden from making the request. + * @throws ThrottledClientException + * The client exceeded its request rate limit. + * @throws ServiceUnavailableException + * The service is currently unavailable. + * @throws ServiceFailureException + * The service encountered an unexpected error. + * @sample AmazonChimeSDKMessaging.PutChannelMembershipPreferences + * @see AWS API Documentation + */ + @Override + public PutChannelMembershipPreferencesResult putChannelMembershipPreferences(PutChannelMembershipPreferencesRequest request) { + request = beforeClientExecution(request); + return executePutChannelMembershipPreferences(request); + } + + @SdkInternalApi + final PutChannelMembershipPreferencesResult executePutChannelMembershipPreferences( + PutChannelMembershipPreferencesRequest putChannelMembershipPreferencesRequest) { + + ExecutionContext executionContext = createExecutionContext(putChannelMembershipPreferencesRequest); + AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); + awsRequestMetrics.startEvent(Field.ClientExecuteTime); + Request request = null; + Response response = null; + + try { + awsRequestMetrics.startEvent(Field.RequestMarshallTime); + try { + request = new PutChannelMembershipPreferencesRequestProtocolMarshaller(protocolFactory).marshall(super + .beforeMarshalling(putChannelMembershipPreferencesRequest)); + // Binds the request metrics to the current request. + request.setAWSRequestMetrics(awsRequestMetrics); + request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); + request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); + request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion()); + request.addHandlerContext(HandlerContextKey.SERVICE_ID, "Chime SDK Messaging"); + request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutChannelMembershipPreferences"); + request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); + + } finally { + awsRequestMetrics.endEvent(Field.RequestMarshallTime); + } + + HttpResponseHandler> responseHandler = protocolFactory.createResponseHandler( + new JsonOperationMetadata().withPayloadJson(true).withHasStreamingSuccessResponse(false), + new PutChannelMembershipPreferencesResultJsonUnmarshaller()); + response = invoke(request, responseHandler, executionContext); + + return response.getAwsResponse(); + + } finally { + + endClientExecution(awsRequestMetrics, request, response); + } + } + /** * * Redacts message content, but not metadata. The message exists in the back end, but the action returns null diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/AllowNotifications.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/AllowNotifications.java new file mode 100644 index 000000000000..6fe96ca780d6 --- /dev/null +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/AllowNotifications.java @@ -0,0 +1,61 @@ +/* + * Copyright 2016-2021 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.chimesdkmessaging.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AllowNotifications { + + ALL("ALL"), + NONE("NONE"), + FILTERED("FILTERED"); + + private String value; + + private AllowNotifications(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AllowNotifications corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AllowNotifications fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AllowNotifications enumEntry : AllowNotifications.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipError.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipError.java index ab20c3886075..0abff45cc20a 100644 --- a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipError.java +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipError.java @@ -31,7 +31,7 @@ public class BatchCreateChannelMembershipError implements Serializable, Cloneabl /** * - * The ARN of the member that the service couldn't add. + * The AppInstanceUserArn of the member that the service couldn't add. * */ private String memberArn; @@ -50,11 +50,11 @@ public class BatchCreateChannelMembershipError implements Serializable, Cloneabl /** * - * The ARN of the member that the service couldn't add. + * The AppInstanceUserArn of the member that the service couldn't add. * * * @param memberArn - * The ARN of the member that the service couldn't add. + * The AppInstanceUserArn of the member that the service couldn't add. */ public void setMemberArn(String memberArn) { @@ -63,10 +63,10 @@ public void setMemberArn(String memberArn) { /** * - * The ARN of the member that the service couldn't add. + * The AppInstanceUserArn of the member that the service couldn't add. * * - * @return The ARN of the member that the service couldn't add. + * @return The AppInstanceUserArn of the member that the service couldn't add. */ public String getMemberArn() { @@ -75,11 +75,11 @@ public String getMemberArn() { /** * - * The ARN of the member that the service couldn't add. + * The AppInstanceUserArn of the member that the service couldn't add. * * * @param memberArn - * The ARN of the member that the service couldn't add. + * The AppInstanceUserArn of the member that the service couldn't add. * @return Returns a reference to this object so that method calls can be chained together. */ diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipRequest.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipRequest.java index 9fcb7d8e9d1b..c8592596d418 100644 --- a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipRequest.java +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipRequest.java @@ -42,7 +42,7 @@ public class BatchCreateChannelMembershipRequest extends com.amazonaws.AmazonWeb private String type; /** * - * The ARNs of the members you want to add to the channel. + * The AppInstanceUserArns of the members you want to add to the channel. * */ private java.util.List memberArns; @@ -178,10 +178,10 @@ public BatchCreateChannelMembershipRequest withType(ChannelMembershipType type) /** * - * The ARNs of the members you want to add to the channel. + * The AppInstanceUserArns of the members you want to add to the channel. * * - * @return The ARNs of the members you want to add to the channel. + * @return The AppInstanceUserArns of the members you want to add to the channel. */ public java.util.List getMemberArns() { @@ -190,11 +190,11 @@ public java.util.List getMemberArns() { /** * - * The ARNs of the members you want to add to the channel. + * The AppInstanceUserArns of the members you want to add to the channel. * * * @param memberArns - * The ARNs of the members you want to add to the channel. + * The AppInstanceUserArns of the members you want to add to the channel. */ public void setMemberArns(java.util.Collection memberArns) { @@ -208,7 +208,7 @@ public void setMemberArns(java.util.Collection memberArns) { /** * - * The ARNs of the members you want to add to the channel. + * The AppInstanceUserArns of the members you want to add to the channel. * * * NOTE: This method appends the values to the existing list (if any). Use @@ -217,7 +217,7 @@ public void setMemberArns(java.util.Collection memberArns) { * * * @param memberArns - * The ARNs of the members you want to add to the channel. + * The AppInstanceUserArns of the members you want to add to the channel. * @return Returns a reference to this object so that method calls can be chained together. */ @@ -233,11 +233,11 @@ public BatchCreateChannelMembershipRequest withMemberArns(String... memberArns) /** * - * The ARNs of the members you want to add to the channel. + * The AppInstanceUserArns of the members you want to add to the channel. * * * @param memberArns - * The ARNs of the members you want to add to the channel. + * The AppInstanceUserArns of the members you want to add to the channel. * @return Returns a reference to this object so that method calls can be chained together. */ diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/ChannelMembershipPreferences.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/ChannelMembershipPreferences.java new file mode 100644 index 000000000000..725920377929 --- /dev/null +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/ChannelMembershipPreferences.java @@ -0,0 +1,136 @@ +/* + * Copyright 2016-2021 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.chimesdkmessaging.model; + +import java.io.Serializable; +import javax.annotation.Generated; +import com.amazonaws.protocol.StructuredPojo; +import com.amazonaws.protocol.ProtocolMarshaller; + +/** + * + * The channel membership preferences for an AppInstanceUser. + * + * + * @see AWS API Documentation + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class ChannelMembershipPreferences implements Serializable, Cloneable, StructuredPojo { + + /** + * + * The push notification configuration of a message. + * + */ + private PushNotificationPreferences pushNotifications; + + /** + * + * The push notification configuration of a message. + * + * + * @param pushNotifications + * The push notification configuration of a message. + */ + + public void setPushNotifications(PushNotificationPreferences pushNotifications) { + this.pushNotifications = pushNotifications; + } + + /** + * + * The push notification configuration of a message. + * + * + * @return The push notification configuration of a message. + */ + + public PushNotificationPreferences getPushNotifications() { + return this.pushNotifications; + } + + /** + * + * The push notification configuration of a message. + * + * + * @param pushNotifications + * The push notification configuration of a message. + * @return Returns a reference to this object so that method calls can be chained together. + */ + + public ChannelMembershipPreferences withPushNotifications(PushNotificationPreferences pushNotifications) { + setPushNotifications(pushNotifications); + 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 (getPushNotifications() != null) + sb.append("PushNotifications: ").append(getPushNotifications()); + sb.append("}"); + return sb.toString(); + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + + if (obj instanceof ChannelMembershipPreferences == false) + return false; + ChannelMembershipPreferences other = (ChannelMembershipPreferences) obj; + if (other.getPushNotifications() == null ^ this.getPushNotifications() == null) + return false; + if (other.getPushNotifications() != null && other.getPushNotifications().equals(this.getPushNotifications()) == false) + return false; + return true; + } + + @Override + public int hashCode() { + final int prime = 31; + int hashCode = 1; + + hashCode = prime * hashCode + ((getPushNotifications() == null) ? 0 : getPushNotifications().hashCode()); + return hashCode; + } + + @Override + public ChannelMembershipPreferences clone() { + try { + return (ChannelMembershipPreferences) 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.chimesdkmessaging.model.transform.ChannelMembershipPreferencesMarshaller.getInstance().marshall(this, protocolMarshaller); + } +} diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/ChannelMessage.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/ChannelMessage.java index 0369b7f250ab..61a1a79db420 100644 --- a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/ChannelMessage.java +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/ChannelMessage.java @@ -100,6 +100,13 @@ public class ChannelMessage implements Serializable, Cloneable, StructuredPojo { *
* Gets the full details of a channel message. @@ -2350,6 +2425,11 @@ final ListChannelFlowsResult executeListChannelFlows(ListChannelFlowsRequest lis * user that makes the API call as the value in the header. *
* Redacts message content, but not metadata. The message exists in the back end, but the action returns null diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/AllowNotifications.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/AllowNotifications.java new file mode 100644 index 000000000000..6fe96ca780d6 --- /dev/null +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/AllowNotifications.java @@ -0,0 +1,61 @@ +/* + * Copyright 2016-2021 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.chimesdkmessaging.model; + +import javax.annotation.Generated; + +/** + * + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public enum AllowNotifications { + + ALL("ALL"), + NONE("NONE"), + FILTERED("FILTERED"); + + private String value; + + private AllowNotifications(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + /** + * Use this in place of valueOf. + * + * @param value + * real value + * @return AllowNotifications corresponding to the value + * + * @throws IllegalArgumentException + * If the specified value does not map to one of the known values in this enum. + */ + public static AllowNotifications fromValue(String value) { + if (value == null || "".equals(value)) { + throw new IllegalArgumentException("Value cannot be null or empty!"); + } + + for (AllowNotifications enumEntry : AllowNotifications.values()) { + if (enumEntry.toString().equals(value)) { + return enumEntry; + } + } + + throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); + } +} diff --git a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipError.java b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipError.java index ab20c3886075..0abff45cc20a 100644 --- a/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipError.java +++ b/aws-java-sdk-chimesdkmessaging/src/main/java/com/amazonaws/services/chimesdkmessaging/model/BatchCreateChannelMembershipError.java @@ -31,7 +31,7 @@ public class BatchCreateChannelMembershipError implements Serializable, Cloneabl /** *
- * The ARN of the member that the service couldn't add. + * The AppInstanceUserArn of the member that the service couldn't add. *
- * The ARNs of the members you want to add to the channel. + * The AppInstanceUserArns of the members you want to add to the channel. *
* NOTE: This method appends the values to the existing list (if any). Use @@ -217,7 +217,7 @@ public void setMemberArns(java.util.Collection memberArns) { *
+ * The channel membership preferences for an AppInstanceUser. + *
+ * The push notification configuration of a message. + *
+ * The attributes for the message, used for message filtering along with a FilterRule defined in the + * PushNotificationPreferences. + *
FilterRule
PushNotificationPreferences
@@ -631,6 +638,80 @@ public ChannelMessage withStatus(ChannelMessageStatusStructure status) { return this; } + /** + *
+ * The message attribues listed in a the summary of a channel message. + *
@@ -527,6 +533,74 @@ public ChannelMessageSummary withStatus(ChannelMessageStatusStructure status) { return this; } + /** + *
- * The ARN of the member being banned. + * The AppInstanceUserArn of the member being banned. *
- * The ARN of the member you want to add to the channel. + * The AppInstanceUserArn of the member you want to add to the channel. *
- * The ARN of the moderator. + * The AppInstanceUserArn of the moderator. *
- * The ARN of the member that you're removing from the channel. + * The AppInstanceUserArn of the member that you're removing from the channel. *
- * The ARN of the moderator being deleted. + * The AppInstanceUserArn of the moderator being deleted. *
- * The ARN of the member. + * The AppInstanceUserArn of the member. *
- * The ARN of the channel moderator. + * The AppInstanceUserArn of the channel moderator. *
+ * The ARN of the channel. + *
+ * The AppInstanceUserArn of the member retrieving the preferences. + *
+ * The AppInstanceUserARN of the user making the API call. + *
AppInstanceUserARN
+ * The channel membership preferences for an AppInstanceUser . + *
+ * A list of message attribute values. + *
+ * The strings in a message attribute value. + *
+ * NOTE: This method appends the values to the existing list (if any). Use + * {@link #setStringValues(java.util.Collection)} or {@link #withStringValues(java.util.Collection)} if you want to + * override the existing values. + *
- * Determines whether to continue or stop processing if communication with processor fails. If the last processor in - * a channel flow sequence has a fallback action of CONTINUE, and communication with the processor fails, the - * message is considered processed and sent to the recipients in the channel. + * Determines whether to continue with message processing or stop it in cases where communication with a processor + * fails. If a processor has a fallback action of ABORT and communication with it fails, the processor + * sets the message status to FAILED and does not send the message to any recipients. Note that if the + * last processor in the channel flow sequence has a fallback action of CONTINUE and communication with + * the processor fails, then the message is considered processed and sent to recipients of the channel. *
ABORT
FAILED
CONTINUE
+ * The push notification configuration of the message. + *
+ * The title of the push notification. + *
+ * The body of the push notification. + *
+ * Enum value that indicates the type of the push notification for a message. DEFAULT: Normal mobile + * push notification. VOIP: VOIP mobile push notification. + *
DEFAULT
VOIP
+ * The channel membership preferences for push notification. + *
+ * Enum value that indicates which push notifications to send to the requested member of a channel. ALL + * sends all push notifications, NONE sends no push notifications, FILTERED sends only + * filtered push notifications. + *
FILTERED
+ * The simple JSON object used to send a subset of a push notification to the requsted member. + *
+ * The AppInstanceUserArn of the member setting the preferences. + *
+ * The channel membership preferences of an AppInstanceUser . + *
+ * The ARN and metadata of the member being added. + *
@@ -386,6 +399,120 @@ public SendChannelMessageRequest withChimeBearer(String chimeBearer) { return this; } + /** + *
+ * The entity representing certificate data generated for managed endpoint. + *
+ * The ARN of the certificate generated for managed endpoint. + *
+ * The base64 encoded PEM certificate data generated for managed endpoint. + *
- * The certificate ARN of the managed endpoint. + * The certificate ARN provided by users for the managed endpoint. This fiedd is under deprecation and will be + * removed in future releases. *
@@ -282,39 +284,45 @@ public CreateManagedEndpointRequest withExecutionRoleArn(String executionRoleArn /** *
- * The certificate ARN of the endpoint. + * The certificate ARN of the endpoint. This field is under deprecation and will be removed in future. *
+ * The certificate generated by emr control plane on customer behalf to secure the managed endpoint. + *
* The configuration settings that are used to override existing configurations for endpoints. @@ -472,44 +479,84 @@ public Endpoint withExecutionRoleArn(String executionRoleArn) { /** *
* The configuration settings that are used to override existing configurations for endpoints. @@ -937,6 +984,8 @@ public String toString() { sb.append("ExecutionRoleArn: ").append(getExecutionRoleArn()).append(","); if (getCertificateArn() != null) sb.append("CertificateArn: ").append(getCertificateArn()).append(","); + if (getCertificateAuthority() != null) + sb.append("CertificateAuthority: ").append(getCertificateAuthority()).append(","); if (getConfigurationOverrides() != null) sb.append("ConfigurationOverrides: ").append(getConfigurationOverrides()).append(","); if (getServerUrl() != null) @@ -1003,6 +1052,10 @@ public boolean equals(Object obj) { return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; + if (other.getCertificateAuthority() == null ^ this.getCertificateAuthority() == null) + return false; + if (other.getCertificateAuthority() != null && other.getCertificateAuthority().equals(this.getCertificateAuthority()) == false) + return false; if (other.getConfigurationOverrides() == null ^ this.getConfigurationOverrides() == null) return false; if (other.getConfigurationOverrides() != null && other.getConfigurationOverrides().equals(this.getConfigurationOverrides()) == false) @@ -1052,6 +1105,7 @@ public int hashCode() { hashCode = prime * hashCode + ((getReleaseLabel() == null) ? 0 : getReleaseLabel().hashCode()); hashCode = prime * hashCode + ((getExecutionRoleArn() == null) ? 0 : getExecutionRoleArn().hashCode()); hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); + hashCode = prime * hashCode + ((getCertificateAuthority() == null) ? 0 : getCertificateAuthority().hashCode()); hashCode = prime * hashCode + ((getConfigurationOverrides() == null) ? 0 : getConfigurationOverrides().hashCode()); hashCode = prime * hashCode + ((getServerUrl() == null) ? 0 : getServerUrl().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); diff --git a/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/CertificateJsonUnmarshaller.java b/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/CertificateJsonUnmarshaller.java new file mode 100644 index 000000000000..4739f5b46b8a --- /dev/null +++ b/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/CertificateJsonUnmarshaller.java @@ -0,0 +1,78 @@ +/* + * Copyright 2016-2021 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.emrcontainers.model.transform; + +import java.math.*; + +import javax.annotation.Generated; + +import com.amazonaws.services.emrcontainers.model.*; +import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; +import com.amazonaws.transform.*; + +import com.fasterxml.jackson.core.JsonToken; +import static com.fasterxml.jackson.core.JsonToken.*; + +/** + * Certificate JSON Unmarshaller + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +public class CertificateJsonUnmarshaller implements Unmarshaller { + + public Certificate unmarshall(JsonUnmarshallerContext context) throws Exception { + Certificate certificate = new Certificate(); + + 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("certificateArn", targetDepth)) { + context.nextToken(); + certificate.setCertificateArn(context.getUnmarshaller(String.class).unmarshall(context)); + } + if (context.testExpression("certificateData", targetDepth)) { + context.nextToken(); + certificate.setCertificateData(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 certificate; + } + + private static CertificateJsonUnmarshaller instance; + + public static CertificateJsonUnmarshaller getInstance() { + if (instance == null) + instance = new CertificateJsonUnmarshaller(); + return instance; + } +} diff --git a/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/CertificateMarshaller.java b/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/CertificateMarshaller.java new file mode 100644 index 000000000000..8eb442cbfe45 --- /dev/null +++ b/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/CertificateMarshaller.java @@ -0,0 +1,58 @@ +/* + * Copyright 2016-2021 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.emrcontainers.model.transform; + +import javax.annotation.Generated; + +import com.amazonaws.SdkClientException; +import com.amazonaws.services.emrcontainers.model.*; + +import com.amazonaws.protocol.*; +import com.amazonaws.annotation.SdkInternalApi; + +/** + * CertificateMarshaller + */ +@Generated("com.amazonaws:aws-java-sdk-code-generator") +@SdkInternalApi +public class CertificateMarshaller { + + private static final MarshallingInfo CERTIFICATEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING) + .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("certificateArn").build(); + private static final MarshallingInfo CERTIFICATEDATA_BINDING = MarshallingInfo.builder(MarshallingType.STRING) + .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("certificateData").build(); + + private static final CertificateMarshaller instance = new CertificateMarshaller(); + + public static CertificateMarshaller getInstance() { + return instance; + } + + /** + * Marshall the given parameter object. + */ + public void marshall(Certificate certificate, ProtocolMarshaller protocolMarshaller) { + + if (certificate == null) { + throw new SdkClientException("Invalid argument passed to marshall(...)"); + } + + try { + protocolMarshaller.marshall(certificate.getCertificateArn(), CERTIFICATEARN_BINDING); + protocolMarshaller.marshall(certificate.getCertificateData(), CERTIFICATEDATA_BINDING); + } catch (Exception e) { + throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); + } + } + +} diff --git a/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/EndpointJsonUnmarshaller.java b/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/EndpointJsonUnmarshaller.java index 205d5d7a3d33..e1ee3838fdb4 100644 --- a/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/EndpointJsonUnmarshaller.java +++ b/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/EndpointJsonUnmarshaller.java @@ -84,6 +84,10 @@ public Endpoint unmarshall(JsonUnmarshallerContext context) throws Exception { context.nextToken(); endpoint.setCertificateArn(context.getUnmarshaller(String.class).unmarshall(context)); } + if (context.testExpression("certificateAuthority", targetDepth)) { + context.nextToken(); + endpoint.setCertificateAuthority(CertificateJsonUnmarshaller.getInstance().unmarshall(context)); + } if (context.testExpression("configurationOverrides", targetDepth)) { context.nextToken(); endpoint.setConfigurationOverrides(ConfigurationOverridesJsonUnmarshaller.getInstance().unmarshall(context)); diff --git a/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/EndpointMarshaller.java b/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/EndpointMarshaller.java index 4bc3f7f61475..843a5f25e57f 100644 --- a/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/EndpointMarshaller.java +++ b/aws-java-sdk-emrcontainers/src/main/java/com/amazonaws/services/emrcontainers/model/transform/EndpointMarshaller.java @@ -47,6 +47,8 @@ public class EndpointMarshaller { .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("executionRoleArn").build(); private static final MarshallingInfo CERTIFICATEARN_BINDING = MarshallingInfo.builder(MarshallingType.STRING) .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("certificateArn").build(); + private static final MarshallingInfo CERTIFICATEAUTHORITY_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED) + .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("certificateAuthority").build(); private static final MarshallingInfo CONFIGURATIONOVERRIDES_BINDING = MarshallingInfo.builder(MarshallingType.STRUCTURED) .marshallLocation(MarshallLocation.PAYLOAD).marshallLocationName("configurationOverrides").build(); private static final MarshallingInfo SERVERURL_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD) @@ -89,6 +91,7 @@ public void marshall(Endpoint endpoint, ProtocolMarshaller protocolMarshaller) { protocolMarshaller.marshall(endpoint.getReleaseLabel(), RELEASELABEL_BINDING); protocolMarshaller.marshall(endpoint.getExecutionRoleArn(), EXECUTIONROLEARN_BINDING); protocolMarshaller.marshall(endpoint.getCertificateArn(), CERTIFICATEARN_BINDING); + protocolMarshaller.marshall(endpoint.getCertificateAuthority(), CERTIFICATEAUTHORITY_BINDING); protocolMarshaller.marshall(endpoint.getConfigurationOverrides(), CONFIGURATIONOVERRIDES_BINDING); protocolMarshaller.marshall(endpoint.getServerUrl(), SERVERURL_BINDING); protocolMarshaller.marshall(endpoint.getCreatedAt(), CREATEDAT_BINDING); diff --git a/aws-java-sdk-eventbridge/pom.xml b/aws-java-sdk-eventbridge/pom.xml index 9d65aa5d361e..9bfad6e071bd 100644 --- a/aws-java-sdk-eventbridge/pom.xml +++ b/aws-java-sdk-eventbridge/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-eventbridge diff --git a/aws-java-sdk-events/pom.xml b/aws-java-sdk-events/pom.xml index 8de494570c67..7ddde91bba88 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-events diff --git a/aws-java-sdk-finspace/pom.xml b/aws-java-sdk-finspace/pom.xml index 0d8eabe90386..9d8f13af2fb6 100644 --- a/aws-java-sdk-finspace/pom.xml +++ b/aws-java-sdk-finspace/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-finspace diff --git a/aws-java-sdk-finspacedata/pom.xml b/aws-java-sdk-finspacedata/pom.xml index 206cdf0b34ff..80e5f9366dea 100644 --- a/aws-java-sdk-finspacedata/pom.xml +++ b/aws-java-sdk-finspacedata/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-finspacedata diff --git a/aws-java-sdk-fis/pom.xml b/aws-java-sdk-fis/pom.xml index a799ffe33e6e..cdeacf41c496 100644 --- a/aws-java-sdk-fis/pom.xml +++ b/aws-java-sdk-fis/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-fis diff --git a/aws-java-sdk-fms/pom.xml b/aws-java-sdk-fms/pom.xml index 7574bfb9ef79..1be364489107 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-fms diff --git a/aws-java-sdk-forecast/pom.xml b/aws-java-sdk-forecast/pom.xml index 320721697057..5217b130bc31 100644 --- a/aws-java-sdk-forecast/pom.xml +++ b/aws-java-sdk-forecast/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-forecast diff --git a/aws-java-sdk-forecastquery/pom.xml b/aws-java-sdk-forecastquery/pom.xml index e0f42d8083a6..ed0374d711b6 100644 --- a/aws-java-sdk-forecastquery/pom.xml +++ b/aws-java-sdk-forecastquery/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-forecastquery diff --git a/aws-java-sdk-frauddetector/pom.xml b/aws-java-sdk-frauddetector/pom.xml index 2e76d26466e8..bb18ccc124cf 100644 --- a/aws-java-sdk-frauddetector/pom.xml +++ b/aws-java-sdk-frauddetector/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-frauddetector diff --git a/aws-java-sdk-fsx/pom.xml b/aws-java-sdk-fsx/pom.xml index 212faa5eba9f..92232a34d5b3 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-fsx diff --git a/aws-java-sdk-gamelift/pom.xml b/aws-java-sdk-gamelift/pom.xml index 33f9b1ff36f7..e761022d8b9e 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-gamelift diff --git a/aws-java-sdk-glacier/pom.xml b/aws-java-sdk-glacier/pom.xml index db21f7d7af27..7f8651d96502 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-glacier diff --git a/aws-java-sdk-globalaccelerator/pom.xml b/aws-java-sdk-globalaccelerator/pom.xml index 5c75a2ed432c..9b4cf6cd7674 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-globalaccelerator diff --git a/aws-java-sdk-glue/pom.xml b/aws-java-sdk-glue/pom.xml index 7a94ead71e2e..aeb59ca1139e 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-glue diff --git a/aws-java-sdk-gluedatabrew/pom.xml b/aws-java-sdk-gluedatabrew/pom.xml index fcfb9fff571c..fd6ffbc480cd 100644 --- a/aws-java-sdk-gluedatabrew/pom.xml +++ b/aws-java-sdk-gluedatabrew/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-gluedatabrew diff --git a/aws-java-sdk-greengrass/pom.xml b/aws-java-sdk-greengrass/pom.xml index 61186087edca..01e8687ae41e 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-greengrass diff --git a/aws-java-sdk-greengrassv2/pom.xml b/aws-java-sdk-greengrassv2/pom.xml index 5e4643dfb441..58bbe627109a 100644 --- a/aws-java-sdk-greengrassv2/pom.xml +++ b/aws-java-sdk-greengrassv2/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-greengrassv2 diff --git a/aws-java-sdk-groundstation/pom.xml b/aws-java-sdk-groundstation/pom.xml index bd4f08c2cb35..a248021d666f 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-groundstation diff --git a/aws-java-sdk-guardduty/pom.xml b/aws-java-sdk-guardduty/pom.xml index be88e7ca3778..0250748d3826 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-guardduty diff --git a/aws-java-sdk-health/pom.xml b/aws-java-sdk-health/pom.xml index 7170544d52fc..4e5d26276e7b 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-health diff --git a/aws-java-sdk-healthlake/pom.xml b/aws-java-sdk-healthlake/pom.xml index 76a67e728d87..be2df5618e17 100644 --- a/aws-java-sdk-healthlake/pom.xml +++ b/aws-java-sdk-healthlake/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-healthlake diff --git a/aws-java-sdk-honeycode/pom.xml b/aws-java-sdk-honeycode/pom.xml index 3bba96ab8920..e86163277d75 100644 --- a/aws-java-sdk-honeycode/pom.xml +++ b/aws-java-sdk-honeycode/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-honeycode diff --git a/aws-java-sdk-iam/pom.xml b/aws-java-sdk-iam/pom.xml index b0cb289abb7e..8c46e52efffc 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iam diff --git a/aws-java-sdk-identitystore/pom.xml b/aws-java-sdk-identitystore/pom.xml index 9a9688b7ee24..acdd015bd700 100644 --- a/aws-java-sdk-identitystore/pom.xml +++ b/aws-java-sdk-identitystore/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-identitystore diff --git a/aws-java-sdk-imagebuilder/pom.xml b/aws-java-sdk-imagebuilder/pom.xml index 002dba08b864..28cd2ae91ad7 100644 --- a/aws-java-sdk-imagebuilder/pom.xml +++ b/aws-java-sdk-imagebuilder/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-imagebuilder diff --git a/aws-java-sdk-importexport/pom.xml b/aws-java-sdk-importexport/pom.xml index b475105c8b27..eb8b952eab90 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-importexport diff --git a/aws-java-sdk-inspector/pom.xml b/aws-java-sdk-inspector/pom.xml index a9d975d236dc..7d9124d1a4b4 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-inspector diff --git a/aws-java-sdk-iot/pom.xml b/aws-java-sdk-iot/pom.xml index dcfcf1c11219..2fd5bb015b51 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iot diff --git a/aws-java-sdk-iot1clickdevices/pom.xml b/aws-java-sdk-iot1clickdevices/pom.xml index 07240a6012dd..992d35660970 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iot1clickdevices diff --git a/aws-java-sdk-iot1clickprojects/pom.xml b/aws-java-sdk-iot1clickprojects/pom.xml index 783d3c755778..5e03b6f3845e 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iot1clickprojects diff --git a/aws-java-sdk-iotanalytics/pom.xml b/aws-java-sdk-iotanalytics/pom.xml index d77622a4f5f2..3f9b2fb8fd3f 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.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iotanalytics diff --git a/aws-java-sdk-iotdeviceadvisor/pom.xml b/aws-java-sdk-iotdeviceadvisor/pom.xml index 9f2a42266ede..efc290ef3d8a 100644 --- a/aws-java-sdk-iotdeviceadvisor/pom.xml +++ b/aws-java-sdk-iotdeviceadvisor/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iotdeviceadvisor diff --git a/aws-java-sdk-iotevents/pom.xml b/aws-java-sdk-iotevents/pom.xml index f06ad500cfe9..f9948d7c907e 100644 --- a/aws-java-sdk-iotevents/pom.xml +++ b/aws-java-sdk-iotevents/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iotevents diff --git a/aws-java-sdk-ioteventsdata/pom.xml b/aws-java-sdk-ioteventsdata/pom.xml index 887d10cdca94..12253d1ac3af 100644 --- a/aws-java-sdk-ioteventsdata/pom.xml +++ b/aws-java-sdk-ioteventsdata/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-ioteventsdata diff --git a/aws-java-sdk-iotfleethub/pom.xml b/aws-java-sdk-iotfleethub/pom.xml index 3e700333e271..3109397c93dc 100644 --- a/aws-java-sdk-iotfleethub/pom.xml +++ b/aws-java-sdk-iotfleethub/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iotfleethub diff --git a/aws-java-sdk-iotjobsdataplane/pom.xml b/aws-java-sdk-iotjobsdataplane/pom.xml index 3bf4fc2dce60..e597ef33a150 100644 --- a/aws-java-sdk-iotjobsdataplane/pom.xml +++ b/aws-java-sdk-iotjobsdataplane/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iotjobsdataplane diff --git a/aws-java-sdk-iotsecuretunneling/pom.xml b/aws-java-sdk-iotsecuretunneling/pom.xml index 9716729ca002..e29af1584828 100644 --- a/aws-java-sdk-iotsecuretunneling/pom.xml +++ b/aws-java-sdk-iotsecuretunneling/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iotsecuretunneling diff --git a/aws-java-sdk-iotsitewise/pom.xml b/aws-java-sdk-iotsitewise/pom.xml index dabf5bbb0343..b4abf225abfe 100644 --- a/aws-java-sdk-iotsitewise/pom.xml +++ b/aws-java-sdk-iotsitewise/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iotsitewise diff --git a/aws-java-sdk-iotthingsgraph/pom.xml b/aws-java-sdk-iotthingsgraph/pom.xml index eceaad0e3506..5584f08f1d3c 100644 --- a/aws-java-sdk-iotthingsgraph/pom.xml +++ b/aws-java-sdk-iotthingsgraph/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iotthingsgraph diff --git a/aws-java-sdk-iotwireless/pom.xml b/aws-java-sdk-iotwireless/pom.xml index 3933f32c5c82..edf483cb60fe 100644 --- a/aws-java-sdk-iotwireless/pom.xml +++ b/aws-java-sdk-iotwireless/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-iotwireless diff --git a/aws-java-sdk-ivs/pom.xml b/aws-java-sdk-ivs/pom.xml index 6df3e8a91270..1f571d8bb165 100644 --- a/aws-java-sdk-ivs/pom.xml +++ b/aws-java-sdk-ivs/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-ivs diff --git a/aws-java-sdk-kafka/pom.xml b/aws-java-sdk-kafka/pom.xml index 44c839ce0db3..c1a4da96bde7 100644 --- a/aws-java-sdk-kafka/pom.xml +++ b/aws-java-sdk-kafka/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-kafka diff --git a/aws-java-sdk-kafkaconnect/pom.xml b/aws-java-sdk-kafkaconnect/pom.xml index c92972dbec45..145a6a55d6b3 100644 --- a/aws-java-sdk-kafkaconnect/pom.xml +++ b/aws-java-sdk-kafkaconnect/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-kafkaconnect diff --git a/aws-java-sdk-kendra/pom.xml b/aws-java-sdk-kendra/pom.xml index b5fbf286ba61..f60113184d76 100644 --- a/aws-java-sdk-kendra/pom.xml +++ b/aws-java-sdk-kendra/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-kendra diff --git a/aws-java-sdk-kinesis/pom.xml b/aws-java-sdk-kinesis/pom.xml index 61e150506122..a875fc843aca 100644 --- a/aws-java-sdk-kinesis/pom.xml +++ b/aws-java-sdk-kinesis/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-kinesis diff --git a/aws-java-sdk-kinesisanalyticsv2/pom.xml b/aws-java-sdk-kinesisanalyticsv2/pom.xml index e0c70c60a69d..6831e18fbe9d 100644 --- a/aws-java-sdk-kinesisanalyticsv2/pom.xml +++ b/aws-java-sdk-kinesisanalyticsv2/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-kinesisanalyticsv2 diff --git a/aws-java-sdk-kinesisvideo/pom.xml b/aws-java-sdk-kinesisvideo/pom.xml index 9c439f096f0f..7675142ecd04 100644 --- a/aws-java-sdk-kinesisvideo/pom.xml +++ b/aws-java-sdk-kinesisvideo/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-kinesisvideo diff --git a/aws-java-sdk-kinesisvideosignalingchannels/pom.xml b/aws-java-sdk-kinesisvideosignalingchannels/pom.xml index 3b52edc11f59..8a845075107a 100644 --- a/aws-java-sdk-kinesisvideosignalingchannels/pom.xml +++ b/aws-java-sdk-kinesisvideosignalingchannels/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-kinesisvideosignalingchannels diff --git a/aws-java-sdk-kms/pom.xml b/aws-java-sdk-kms/pom.xml index 0ed00f45ff66..181ab10c45f8 100644 --- a/aws-java-sdk-kms/pom.xml +++ b/aws-java-sdk-kms/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-kms diff --git a/aws-java-sdk-lakeformation/pom.xml b/aws-java-sdk-lakeformation/pom.xml index c44d2c69b874..a4883042af8a 100644 --- a/aws-java-sdk-lakeformation/pom.xml +++ b/aws-java-sdk-lakeformation/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lakeformation diff --git a/aws-java-sdk-lambda/pom.xml b/aws-java-sdk-lambda/pom.xml index d36dc524d6e8..f27819024de2 100644 --- a/aws-java-sdk-lambda/pom.xml +++ b/aws-java-sdk-lambda/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lambda diff --git a/aws-java-sdk-lex/pom.xml b/aws-java-sdk-lex/pom.xml index 8f2f286c2bc5..746a5e25bd12 100644 --- a/aws-java-sdk-lex/pom.xml +++ b/aws-java-sdk-lex/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lex diff --git a/aws-java-sdk-lexmodelbuilding/pom.xml b/aws-java-sdk-lexmodelbuilding/pom.xml index 4e18d11dc814..c62e6c98f135 100644 --- a/aws-java-sdk-lexmodelbuilding/pom.xml +++ b/aws-java-sdk-lexmodelbuilding/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lexmodelbuilding diff --git a/aws-java-sdk-lexmodelsv2/pom.xml b/aws-java-sdk-lexmodelsv2/pom.xml index fbc3917a9481..9ab22584890f 100644 --- a/aws-java-sdk-lexmodelsv2/pom.xml +++ b/aws-java-sdk-lexmodelsv2/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lexmodelsv2 diff --git a/aws-java-sdk-lexruntimev2/pom.xml b/aws-java-sdk-lexruntimev2/pom.xml index 8c2e39f12542..b0e0bf34fb21 100644 --- a/aws-java-sdk-lexruntimev2/pom.xml +++ b/aws-java-sdk-lexruntimev2/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lexruntimev2 diff --git a/aws-java-sdk-licensemanager/pom.xml b/aws-java-sdk-licensemanager/pom.xml index 2fe9a2a677fe..ac970fee6597 100644 --- a/aws-java-sdk-licensemanager/pom.xml +++ b/aws-java-sdk-licensemanager/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-licensemanager diff --git a/aws-java-sdk-lightsail/pom.xml b/aws-java-sdk-lightsail/pom.xml index 27c10ba7fa25..3c0c26dffdb0 100644 --- a/aws-java-sdk-lightsail/pom.xml +++ b/aws-java-sdk-lightsail/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lightsail diff --git a/aws-java-sdk-location/pom.xml b/aws-java-sdk-location/pom.xml index 45da907c2f3f..66b7d3ceb163 100644 --- a/aws-java-sdk-location/pom.xml +++ b/aws-java-sdk-location/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-location diff --git a/aws-java-sdk-logs/pom.xml b/aws-java-sdk-logs/pom.xml index 2d5cb90efd42..56cbfc4ebad9 100644 --- a/aws-java-sdk-logs/pom.xml +++ b/aws-java-sdk-logs/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-logs diff --git a/aws-java-sdk-lookoutequipment/pom.xml b/aws-java-sdk-lookoutequipment/pom.xml index df6484fd8777..e280883c5f5c 100644 --- a/aws-java-sdk-lookoutequipment/pom.xml +++ b/aws-java-sdk-lookoutequipment/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lookoutequipment diff --git a/aws-java-sdk-lookoutforvision/pom.xml b/aws-java-sdk-lookoutforvision/pom.xml index c1120c183c05..9b4aa472f719 100644 --- a/aws-java-sdk-lookoutforvision/pom.xml +++ b/aws-java-sdk-lookoutforvision/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lookoutforvision diff --git a/aws-java-sdk-lookoutmetrics/pom.xml b/aws-java-sdk-lookoutmetrics/pom.xml index 4681768100c3..c0e988d21ce3 100644 --- a/aws-java-sdk-lookoutmetrics/pom.xml +++ b/aws-java-sdk-lookoutmetrics/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-lookoutmetrics diff --git a/aws-java-sdk-machinelearning/pom.xml b/aws-java-sdk-machinelearning/pom.xml index 8b15fa661fcf..97c8d914d3c4 100644 --- a/aws-java-sdk-machinelearning/pom.xml +++ b/aws-java-sdk-machinelearning/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-machinelearning diff --git a/aws-java-sdk-macie/pom.xml b/aws-java-sdk-macie/pom.xml index a5a2790a868b..d23537280e42 100644 --- a/aws-java-sdk-macie/pom.xml +++ b/aws-java-sdk-macie/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-macie diff --git a/aws-java-sdk-macie2/pom.xml b/aws-java-sdk-macie2/pom.xml index 5af4ac6d671d..d6159fe45c22 100644 --- a/aws-java-sdk-macie2/pom.xml +++ b/aws-java-sdk-macie2/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-macie2 diff --git a/aws-java-sdk-managedblockchain/pom.xml b/aws-java-sdk-managedblockchain/pom.xml index 6519f8e2fe3a..0e210ed00e4e 100644 --- a/aws-java-sdk-managedblockchain/pom.xml +++ b/aws-java-sdk-managedblockchain/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-managedblockchain diff --git a/aws-java-sdk-managedgrafana/pom.xml b/aws-java-sdk-managedgrafana/pom.xml index d2ca3b539ace..d81ce9872315 100644 --- a/aws-java-sdk-managedgrafana/pom.xml +++ b/aws-java-sdk-managedgrafana/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-managedgrafana diff --git a/aws-java-sdk-marketplacecatalog/pom.xml b/aws-java-sdk-marketplacecatalog/pom.xml index 5a6998286480..2b2e710e98d3 100644 --- a/aws-java-sdk-marketplacecatalog/pom.xml +++ b/aws-java-sdk-marketplacecatalog/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-marketplacecatalog diff --git a/aws-java-sdk-marketplacecommerceanalytics/pom.xml b/aws-java-sdk-marketplacecommerceanalytics/pom.xml index 325ed1d49226..ae93d6b44c8f 100644 --- a/aws-java-sdk-marketplacecommerceanalytics/pom.xml +++ b/aws-java-sdk-marketplacecommerceanalytics/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-marketplacecommerceanalytics diff --git a/aws-java-sdk-marketplaceentitlement/pom.xml b/aws-java-sdk-marketplaceentitlement/pom.xml index 75e4afcde733..e1d7a1346f82 100644 --- a/aws-java-sdk-marketplaceentitlement/pom.xml +++ b/aws-java-sdk-marketplaceentitlement/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-marketplaceentitlement diff --git a/aws-java-sdk-marketplacemeteringservice/pom.xml b/aws-java-sdk-marketplacemeteringservice/pom.xml index 9f6058063951..c1c8db741a38 100644 --- a/aws-java-sdk-marketplacemeteringservice/pom.xml +++ b/aws-java-sdk-marketplacemeteringservice/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-marketplacemeteringservice diff --git a/aws-java-sdk-mechanicalturkrequester/pom.xml b/aws-java-sdk-mechanicalturkrequester/pom.xml index 7f321a16b826..84bcd0e40f57 100644 --- a/aws-java-sdk-mechanicalturkrequester/pom.xml +++ b/aws-java-sdk-mechanicalturkrequester/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mechanicalturkrequester diff --git a/aws-java-sdk-mediaconnect/pom.xml b/aws-java-sdk-mediaconnect/pom.xml index affb36a0d256..f0170f295065 100644 --- a/aws-java-sdk-mediaconnect/pom.xml +++ b/aws-java-sdk-mediaconnect/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mediaconnect diff --git a/aws-java-sdk-mediaconvert/pom.xml b/aws-java-sdk-mediaconvert/pom.xml index 32430d1b37a8..0011352dac8c 100644 --- a/aws-java-sdk-mediaconvert/pom.xml +++ b/aws-java-sdk-mediaconvert/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mediaconvert diff --git a/aws-java-sdk-medialive/pom.xml b/aws-java-sdk-medialive/pom.xml index ed8a7b4ea782..f3902fe15eab 100644 --- a/aws-java-sdk-medialive/pom.xml +++ b/aws-java-sdk-medialive/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-medialive diff --git a/aws-java-sdk-mediapackage/pom.xml b/aws-java-sdk-mediapackage/pom.xml index a4518000e4bc..64078dc2325e 100644 --- a/aws-java-sdk-mediapackage/pom.xml +++ b/aws-java-sdk-mediapackage/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mediapackage diff --git a/aws-java-sdk-mediapackagevod/pom.xml b/aws-java-sdk-mediapackagevod/pom.xml index 676a7b3a063f..42b296e33e96 100644 --- a/aws-java-sdk-mediapackagevod/pom.xml +++ b/aws-java-sdk-mediapackagevod/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mediapackagevod diff --git a/aws-java-sdk-mediastore/pom.xml b/aws-java-sdk-mediastore/pom.xml index da8db8e8ec02..e63a2675f777 100644 --- a/aws-java-sdk-mediastore/pom.xml +++ b/aws-java-sdk-mediastore/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mediastore diff --git a/aws-java-sdk-mediastoredata/pom.xml b/aws-java-sdk-mediastoredata/pom.xml index 949deb6d0dff..1ea9c0878c2c 100644 --- a/aws-java-sdk-mediastoredata/pom.xml +++ b/aws-java-sdk-mediastoredata/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mediastoredata diff --git a/aws-java-sdk-mediatailor/pom.xml b/aws-java-sdk-mediatailor/pom.xml index bc8cdd645559..06f621573460 100644 --- a/aws-java-sdk-mediatailor/pom.xml +++ b/aws-java-sdk-mediatailor/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mediatailor diff --git a/aws-java-sdk-memorydb/pom.xml b/aws-java-sdk-memorydb/pom.xml index 5d71aaf17f23..987954e0744c 100644 --- a/aws-java-sdk-memorydb/pom.xml +++ b/aws-java-sdk-memorydb/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-memorydb diff --git a/aws-java-sdk-mgn/pom.xml b/aws-java-sdk-mgn/pom.xml index f721d178372e..6b668ff87910 100644 --- a/aws-java-sdk-mgn/pom.xml +++ b/aws-java-sdk-mgn/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mgn diff --git a/aws-java-sdk-migrationhub/pom.xml b/aws-java-sdk-migrationhub/pom.xml index 52be027cfbb5..8940bd055af1 100644 --- a/aws-java-sdk-migrationhub/pom.xml +++ b/aws-java-sdk-migrationhub/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-migrationhub diff --git a/aws-java-sdk-migrationhubconfig/pom.xml b/aws-java-sdk-migrationhubconfig/pom.xml index 255172c73c4e..de2400e80ab1 100644 --- a/aws-java-sdk-migrationhubconfig/pom.xml +++ b/aws-java-sdk-migrationhubconfig/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-migrationhubconfig diff --git a/aws-java-sdk-mobile/pom.xml b/aws-java-sdk-mobile/pom.xml index 8ac23fc562e3..6308748d5c6d 100644 --- a/aws-java-sdk-mobile/pom.xml +++ b/aws-java-sdk-mobile/pom.xml @@ -5,7 +5,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-mobile diff --git a/aws-java-sdk-models/pom.xml b/aws-java-sdk-models/pom.xml index ef4f02f6098a..72c144e41e62 100644 --- a/aws-java-sdk-models/pom.xml +++ b/aws-java-sdk-models/pom.xml @@ -6,7 +6,7 @@ com.amazonaws aws-java-sdk-pom - 1.12.96-SNAPSHOT + 1.12.96 com.amazonaws aws-java-sdk-models diff --git a/aws-java-sdk-models/src/main/resources/models/AWS242AppRegistry-2020-06-24-intermediate.json b/aws-java-sdk-models/src/main/resources/models/AWS242AppRegistry-2020-06-24-intermediate.json index 726b922c5f47..423f09df32fe 100644 --- a/aws-java-sdk-models/src/main/resources/models/AWS242AppRegistry-2020-06-24-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/AWS242AppRegistry-2020-06-24-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "ClientConstructors", "ClientMutationMethods", "EnumSetterOverload" ], + "deprecatedSuppressions" : [ "ClientMutationMethods", "ClientConstructors", "EnumSetterOverload" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/AWSApplicationCostProfiler-2020-09-10-intermediate.json b/aws-java-sdk-models/src/main/resources/models/AWSApplicationCostProfiler-2020-09-10-intermediate.json index 2ab466567058..1c98db273ff4 100644 --- a/aws-java-sdk-models/src/main/resources/models/AWSApplicationCostProfiler-2020-09-10-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/AWSApplicationCostProfiler-2020-09-10-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientMutationMethods", "ClientConstructors" ], + "deprecatedSuppressions" : [ "ClientMutationMethods", "ClientConstructors", "EnumSetterOverload" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/amp-2020-08-01-intermediate.json b/aws-java-sdk-models/src/main/resources/models/amp-2020-08-01-intermediate.json index c90aabe488ca..04992f0e9771 100644 --- a/aws-java-sdk-models/src/main/resources/models/amp-2020-08-01-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/amp-2020-08-01-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientMutationMethods", "ClientConstructors" ], + "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientConstructors", "ClientMutationMethods" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/api.mediatailor-2018-04-23-intermediate.json b/aws-java-sdk-models/src/main/resources/models/api.mediatailor-2018-04-23-intermediate.json index 34b94c5d8a3f..85992a4a97e1 100644 --- a/aws-java-sdk-models/src/main/resources/models/api.mediatailor-2018-04-23-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/api.mediatailor-2018-04-23-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "ClientConstructors", "ClientMutationMethods", "EnumSetterOverload" ], + "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientMutationMethods", "ClientConstructors" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/appconfig-2019-10-09-intermediate.json b/aws-java-sdk-models/src/main/resources/models/appconfig-2019-10-09-intermediate.json index 179449fc4b26..0af87bd6e14b 100644 --- a/aws-java-sdk-models/src/main/resources/models/appconfig-2019-10-09-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/appconfig-2019-10-09-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientConstructors", "ClientMutationMethods" ], + "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientMutationMethods", "ClientConstructors" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/appflow-2020-08-23-intermediate.json b/aws-java-sdk-models/src/main/resources/models/appflow-2020-08-23-intermediate.json index 38be7c7ca206..b360f825e2aa 100644 --- a/aws-java-sdk-models/src/main/resources/models/appflow-2020-08-23-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/appflow-2020-08-23-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientConstructors", "ClientMutationMethods" ], + "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientMutationMethods", "ClientConstructors" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/application-insights-2018-11-25-intermediate.json b/aws-java-sdk-models/src/main/resources/models/application-insights-2018-11-25-intermediate.json index 2b5e5505a18a..a40a5c155d79 100644 --- a/aws-java-sdk-models/src/main/resources/models/application-insights-2018-11-25-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/application-insights-2018-11-25-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "ClientMutationMethods", "ClientConstructors", "EnumSetterOverload" ], + "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientMutationMethods", "ClientConstructors" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/appsync-2017-07-25-intermediate.json b/aws-java-sdk-models/src/main/resources/models/appsync-2017-07-25-intermediate.json index 178a3e658a65..a282f912618e 100644 --- a/aws-java-sdk-models/src/main/resources/models/appsync-2017-07-25-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/appsync-2017-07-25-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "ClientConstructors", "ClientMutationMethods", "EnumSetterOverload" ], + "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientMutationMethods", "ClientConstructors" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/auditmanager-2017-07-25-intermediate.json b/aws-java-sdk-models/src/main/resources/models/auditmanager-2017-07-25-intermediate.json index 68dd5aabbb57..eea2bca5662f 100644 --- a/aws-java-sdk-models/src/main/resources/models/auditmanager-2017-07-25-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/auditmanager-2017-07-25-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientMutationMethods", "ClientConstructors" ], + "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientConstructors", "ClientMutationMethods" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/autoscaling-plans-2018-01-06-intermediate.json b/aws-java-sdk-models/src/main/resources/models/autoscaling-plans-2018-01-06-intermediate.json index 46c54f2077d2..5e362c7b1e5b 100644 --- a/aws-java-sdk-models/src/main/resources/models/autoscaling-plans-2018-01-06-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/autoscaling-plans-2018-01-06-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "ClientConstructors", "ClientMutationMethods", "EnumSetterOverload" ], + "deprecatedSuppressions" : [ "ClientMutationMethods", "ClientConstructors", "EnumSetterOverload" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/braket-2019-09-01-intermediate.json b/aws-java-sdk-models/src/main/resources/models/braket-2019-09-01-intermediate.json index 349a0d5de452..b659f641e08c 100644 --- a/aws-java-sdk-models/src/main/resources/models/braket-2019-09-01-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/braket-2019-09-01-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "ClientConstructors", "EnumSetterOverload", "ClientMutationMethods" ], + "deprecatedSuppressions" : [ "ClientMutationMethods", "EnumSetterOverload", "ClientConstructors" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/ce-2017-10-25-intermediate.json b/aws-java-sdk-models/src/main/resources/models/ce-2017-10-25-intermediate.json index 6bb14659401b..f5885a59b7fd 100644 --- a/aws-java-sdk-models/src/main/resources/models/ce-2017-10-25-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/ce-2017-10-25-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientMutationMethods", "ClientConstructors" ], + "deprecatedSuppressions" : [ "EnumSetterOverload", "ClientConstructors", "ClientMutationMethods" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, diff --git a/aws-java-sdk-models/src/main/resources/models/chime-sdk-identity-2021-04-20-intermediate.json b/aws-java-sdk-models/src/main/resources/models/chime-sdk-identity-2021-04-20-intermediate.json index 1f916b504427..2bac5858b7e7 100644 --- a/aws-java-sdk-models/src/main/resources/models/chime-sdk-identity-2021-04-20-intermediate.json +++ b/aws-java-sdk-models/src/main/resources/models/chime-sdk-identity-2021-04-20-intermediate.json @@ -20,7 +20,7 @@ "customServiceMetadata" : null, "customServiceNameForRequest" : null, "customSignerProvider" : null, - "deprecatedSuppressions" : [ "ClientMutationMethods", "ClientConstructors", "EnumSetterOverload" ], + "deprecatedSuppressions" : [ "ClientConstructors", "ClientMutationMethods", "EnumSetterOverload" ], "emitLegacyEnumSetterFor" : null, "operationModifiers" : null, "operationsWithResponseStreamContentLengthValidation" : null, @@ -471,6 +471,63 @@ }, "syncReturnType" : "DeleteAppInstanceUserResult" }, + "DeregisterAppInstanceUserEndpoint" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "DeregisterAppInstanceUserEndpointResult", + "authenticated" : true, + "deprecated" : false, + "documentation" : "Deregisters an AppInstanceUserEndpoint.", + "endpointCacheRequired" : false, + "endpointDiscovery" : null, + "endpointOperation" : false, + "endpointTrait" : null, + "exceptions" : [ { + "exceptionName" : "BadRequestException", + "documentation" : "The input parameters don't match the service's restrictions.", + "httpStatusCode" : 400 + }, { + "exceptionName" : "ForbiddenException", + "documentation" : "The client is permanently forbidden from making the request.", + "httpStatusCode" : 403 + }, { + "exceptionName" : "ThrottledClientException", + "documentation" : "The client exceeded its request rate limit.", + "httpStatusCode" : 429 + }, { + "exceptionName" : "UnauthorizedClientException", + "documentation" : "The client is not currently authorized to make the request.", + "httpStatusCode" : 401 + }, { + "exceptionName" : "ServiceUnavailableException", + "documentation" : "The service is currently unavailable.", + "httpStatusCode" : 503 + }, { + "exceptionName" : "ServiceFailureException", + "documentation" : "The service encountered an unexpected error.", + "httpStatusCode" : 500 + } ], + "hasBlobMemberAsPayload" : false, + "hostPrefixProcessor" : null, + "input" : { + "timestampFormat" : null, + "variableDeclarationType" : "DeregisterAppInstanceUserEndpointRequest", + "variableName" : "deregisterAppInstanceUserEndpointRequest", + "variableType" : "DeregisterAppInstanceUserEndpointRequest", + "documentation" : "", + "simpleType" : "DeregisterAppInstanceUserEndpointRequest", + "variableSetterType" : "DeregisterAppInstanceUserEndpointRequest" + }, + "inputStreamPropertyName" : null, + "methodName" : "deregisterAppInstanceUserEndpoint", + "operationName" : "DeregisterAppInstanceUserEndpoint", + "returnType" : { + "returnType" : "DeregisterAppInstanceUserEndpointResult", + "documentation" : null + }, + "syncReturnType" : "DeregisterAppInstanceUserEndpointResult" + }, "DescribeAppInstance" : { "asyncCallableType" : "java.util.concurrent.Callable", "asyncFutureType" : "java.util.concurrent.Future", @@ -642,6 +699,63 @@ }, "syncReturnType" : "DescribeAppInstanceUserResult" }, + "DescribeAppInstanceUserEndpoint" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "DescribeAppInstanceUserEndpointResult", + "authenticated" : true, + "deprecated" : false, + "documentation" : "Returns the full details of an AppInstanceUserEndpoint.", + "endpointCacheRequired" : false, + "endpointDiscovery" : null, + "endpointOperation" : false, + "endpointTrait" : null, + "exceptions" : [ { + "exceptionName" : "BadRequestException", + "documentation" : "The input parameters don't match the service's restrictions.", + "httpStatusCode" : 400 + }, { + "exceptionName" : "ForbiddenException", + "documentation" : "The client is permanently forbidden from making the request.", + "httpStatusCode" : 403 + }, { + "exceptionName" : "ThrottledClientException", + "documentation" : "The client exceeded its request rate limit.", + "httpStatusCode" : 429 + }, { + "exceptionName" : "UnauthorizedClientException", + "documentation" : "The client is not currently authorized to make the request.", + "httpStatusCode" : 401 + }, { + "exceptionName" : "ServiceUnavailableException", + "documentation" : "The service is currently unavailable.", + "httpStatusCode" : 503 + }, { + "exceptionName" : "ServiceFailureException", + "documentation" : "The service encountered an unexpected error.", + "httpStatusCode" : 500 + } ], + "hasBlobMemberAsPayload" : false, + "hostPrefixProcessor" : null, + "input" : { + "timestampFormat" : null, + "variableDeclarationType" : "DescribeAppInstanceUserEndpointRequest", + "variableName" : "describeAppInstanceUserEndpointRequest", + "variableType" : "DescribeAppInstanceUserEndpointRequest", + "documentation" : "", + "simpleType" : "DescribeAppInstanceUserEndpointRequest", + "variableSetterType" : "DescribeAppInstanceUserEndpointRequest" + }, + "inputStreamPropertyName" : null, + "methodName" : "describeAppInstanceUserEndpoint", + "operationName" : "DescribeAppInstanceUserEndpoint", + "returnType" : { + "returnType" : "DescribeAppInstanceUserEndpointResult", + "documentation" : null + }, + "syncReturnType" : "DescribeAppInstanceUserEndpointResult" + }, "GetAppInstanceRetentionSettings" : { "asyncCallableType" : "java.util.concurrent.Callable", "asyncFutureType" : "java.util.concurrent.Future", @@ -760,6 +874,63 @@ }, "syncReturnType" : "ListAppInstanceAdminsResult" }, + "ListAppInstanceUserEndpoints" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "ListAppInstanceUserEndpointsResult", + "authenticated" : true, + "deprecated" : false, + "documentation" : "Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser.", + "endpointCacheRequired" : false, + "endpointDiscovery" : null, + "endpointOperation" : false, + "endpointTrait" : null, + "exceptions" : [ { + "exceptionName" : "BadRequestException", + "documentation" : "The input parameters don't match the service's restrictions.", + "httpStatusCode" : 400 + }, { + "exceptionName" : "ForbiddenException", + "documentation" : "The client is permanently forbidden from making the request.", + "httpStatusCode" : 403 + }, { + "exceptionName" : "ThrottledClientException", + "documentation" : "The client exceeded its request rate limit.", + "httpStatusCode" : 429 + }, { + "exceptionName" : "UnauthorizedClientException", + "documentation" : "The client is not currently authorized to make the request.", + "httpStatusCode" : 401 + }, { + "exceptionName" : "ServiceUnavailableException", + "documentation" : "The service is currently unavailable.", + "httpStatusCode" : 503 + }, { + "exceptionName" : "ServiceFailureException", + "documentation" : "The service encountered an unexpected error.", + "httpStatusCode" : 500 + } ], + "hasBlobMemberAsPayload" : false, + "hostPrefixProcessor" : null, + "input" : { + "timestampFormat" : null, + "variableDeclarationType" : "ListAppInstanceUserEndpointsRequest", + "variableName" : "listAppInstanceUserEndpointsRequest", + "variableType" : "ListAppInstanceUserEndpointsRequest", + "documentation" : "", + "simpleType" : "ListAppInstanceUserEndpointsRequest", + "variableSetterType" : "ListAppInstanceUserEndpointsRequest" + }, + "inputStreamPropertyName" : null, + "methodName" : "listAppInstanceUserEndpoints", + "operationName" : "ListAppInstanceUserEndpoints", + "returnType" : { + "returnType" : "ListAppInstanceUserEndpointsResult", + "documentation" : null + }, + "syncReturnType" : "ListAppInstanceUserEndpointsResult" + }, "ListAppInstanceUsers" : { "asyncCallableType" : "java.util.concurrent.Callable", "asyncFutureType" : "java.util.concurrent.Future", @@ -874,6 +1045,63 @@ }, "syncReturnType" : "ListAppInstancesResult" }, + "ListTagsForResource" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "ListTagsForResourceResult", + "authenticated" : true, + "deprecated" : false, + "documentation" : "Lists the tags applied to an Amazon Chime SDK identity resource.", + "endpointCacheRequired" : false, + "endpointDiscovery" : null, + "endpointOperation" : false, + "endpointTrait" : null, + "exceptions" : [ { + "exceptionName" : "BadRequestException", + "documentation" : "The input parameters don't match the service's restrictions.", + "httpStatusCode" : 400 + }, { + "exceptionName" : "ForbiddenException", + "documentation" : "The client is permanently forbidden from making the request.", + "httpStatusCode" : 403 + }, { + "exceptionName" : "UnauthorizedClientException", + "documentation" : "The client is not currently authorized to make the request.", + "httpStatusCode" : 401 + }, { + "exceptionName" : "ThrottledClientException", + "documentation" : "The client exceeded its request rate limit.", + "httpStatusCode" : 429 + }, { + "exceptionName" : "ServiceUnavailableException", + "documentation" : "The service is currently unavailable.", + "httpStatusCode" : 503 + }, { + "exceptionName" : "ServiceFailureException", + "documentation" : "The service encountered an unexpected error.", + "httpStatusCode" : 500 + } ], + "hasBlobMemberAsPayload" : false, + "hostPrefixProcessor" : null, + "input" : { + "timestampFormat" : null, + "variableDeclarationType" : "ListTagsForResourceRequest", + "variableName" : "listTagsForResourceRequest", + "variableType" : "ListTagsForResourceRequest", + "documentation" : "", + "simpleType" : "ListTagsForResourceRequest", + "variableSetterType" : "ListTagsForResourceRequest" + }, + "inputStreamPropertyName" : null, + "methodName" : "listTagsForResource", + "operationName" : "ListTagsForResource", + "returnType" : { + "returnType" : "ListTagsForResourceResult", + "documentation" : null + }, + "syncReturnType" : "ListTagsForResourceResult" + }, "PutAppInstanceRetentionSettings" : { "asyncCallableType" : "java.util.concurrent.Callable", "asyncFutureType" : "java.util.concurrent.Future", @@ -931,14 +1159,14 @@ }, "syncReturnType" : "PutAppInstanceRetentionSettingsResult" }, - "UpdateAppInstance" : { - "asyncCallableType" : "java.util.concurrent.Callable", - "asyncFutureType" : "java.util.concurrent.Future", - "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", - "asyncReturnType" : "UpdateAppInstanceResult", + "RegisterAppInstanceUserEndpoint" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "RegisterAppInstanceUserEndpointResult", "authenticated" : true, "deprecated" : false, - "documentation" : "Updates AppInstance metadata.", + "documentation" : "Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.", "endpointCacheRequired" : false, "endpointDiscovery" : null, "endpointOperation" : false, @@ -955,6 +1183,10 @@ "exceptionName" : "ForbiddenException", "documentation" : "The client is permanently forbidden from making the request.", "httpStatusCode" : 403 + }, { + "exceptionName" : "ResourceLimitExceededException", + "documentation" : "The request exceeds the resource limit.", + "httpStatusCode" : 400 }, { "exceptionName" : "ThrottledClientException", "documentation" : "The client exceeded its request rate limit.", @@ -976,30 +1208,30 @@ "hostPrefixProcessor" : null, "input" : { "timestampFormat" : null, - "variableDeclarationType" : "UpdateAppInstanceRequest", - "variableName" : "updateAppInstanceRequest", - "variableType" : "UpdateAppInstanceRequest", + "variableDeclarationType" : "RegisterAppInstanceUserEndpointRequest", + "variableName" : "registerAppInstanceUserEndpointRequest", + "variableType" : "RegisterAppInstanceUserEndpointRequest", "documentation" : "", - "simpleType" : "UpdateAppInstanceRequest", - "variableSetterType" : "UpdateAppInstanceRequest" + "simpleType" : "RegisterAppInstanceUserEndpointRequest", + "variableSetterType" : "RegisterAppInstanceUserEndpointRequest" }, "inputStreamPropertyName" : null, - "methodName" : "updateAppInstance", - "operationName" : "UpdateAppInstance", + "methodName" : "registerAppInstanceUserEndpoint", + "operationName" : "RegisterAppInstanceUserEndpoint", "returnType" : { - "returnType" : "UpdateAppInstanceResult", + "returnType" : "RegisterAppInstanceUserEndpointResult", "documentation" : null }, - "syncReturnType" : "UpdateAppInstanceResult" + "syncReturnType" : "RegisterAppInstanceUserEndpointResult" }, - "UpdateAppInstanceUser" : { - "asyncCallableType" : "java.util.concurrent.Callable", - "asyncFutureType" : "java.util.concurrent.Future", - "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", - "asyncReturnType" : "UpdateAppInstanceUserResult", + "TagResource" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "TagResourceResult", "authenticated" : true, "deprecated" : false, - "documentation" : "Updates the details of an AppInstanceUser. You can update names and metadata.", + "documentation" : "Applies the specified tags to the specified Amazon Chime SDK identity resource.", "endpointCacheRequired" : false, "endpointDiscovery" : null, "endpointOperation" : false, @@ -1008,14 +1240,14 @@ "exceptionName" : "BadRequestException", "documentation" : "The input parameters don't match the service's restrictions.", "httpStatusCode" : 400 - }, { - "exceptionName" : "ConflictException", - "documentation" : "The request could not be processed because of conflict in the current state of the resource.", - "httpStatusCode" : 409 }, { "exceptionName" : "ForbiddenException", "documentation" : "The client is permanently forbidden from making the request.", "httpStatusCode" : 403 + }, { + "exceptionName" : "UnauthorizedClientException", + "documentation" : "The client is not currently authorized to make the request.", + "httpStatusCode" : 401 }, { "exceptionName" : "ResourceLimitExceededException", "documentation" : "The request exceeds the resource limit.", @@ -1024,10 +1256,63 @@ "exceptionName" : "ThrottledClientException", "documentation" : "The client exceeded its request rate limit.", "httpStatusCode" : 429 + }, { + "exceptionName" : "ServiceUnavailableException", + "documentation" : "The service is currently unavailable.", + "httpStatusCode" : 503 + }, { + "exceptionName" : "ServiceFailureException", + "documentation" : "The service encountered an unexpected error.", + "httpStatusCode" : 500 + } ], + "hasBlobMemberAsPayload" : false, + "hostPrefixProcessor" : null, + "input" : { + "timestampFormat" : null, + "variableDeclarationType" : "TagResourceRequest", + "variableName" : "tagResourceRequest", + "variableType" : "TagResourceRequest", + "documentation" : "", + "simpleType" : "TagResourceRequest", + "variableSetterType" : "TagResourceRequest" + }, + "inputStreamPropertyName" : null, + "methodName" : "tagResource", + "operationName" : "TagResource", + "returnType" : { + "returnType" : "TagResourceResult", + "documentation" : null + }, + "syncReturnType" : "TagResourceResult" + }, + "UntagResource" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "UntagResourceResult", + "authenticated" : true, + "deprecated" : false, + "documentation" : "Removes the specified tags from the specified Amazon Chime SDK identity resource.", + "endpointCacheRequired" : false, + "endpointDiscovery" : null, + "endpointOperation" : false, + "endpointTrait" : null, + "exceptions" : [ { + "exceptionName" : "BadRequestException", + "documentation" : "The input parameters don't match the service's restrictions.", + "httpStatusCode" : 400 + }, { + "exceptionName" : "ForbiddenException", + "documentation" : "The client is permanently forbidden from making the request.", + "httpStatusCode" : 403 }, { "exceptionName" : "UnauthorizedClientException", "documentation" : "The client is not currently authorized to make the request.", "httpStatusCode" : 401 + }, { + "exceptionName" : "ThrottledClientException", + "documentation" : "The client exceeded its request rate limit.", + "httpStatusCode" : 429 }, { "exceptionName" : "ServiceUnavailableException", "documentation" : "The service is currently unavailable.", @@ -1041,29 +1326,266 @@ "hostPrefixProcessor" : null, "input" : { "timestampFormat" : null, - "variableDeclarationType" : "UpdateAppInstanceUserRequest", - "variableName" : "updateAppInstanceUserRequest", - "variableType" : "UpdateAppInstanceUserRequest", + "variableDeclarationType" : "UntagResourceRequest", + "variableName" : "untagResourceRequest", + "variableType" : "UntagResourceRequest", "documentation" : "", - "simpleType" : "UpdateAppInstanceUserRequest", - "variableSetterType" : "UpdateAppInstanceUserRequest" + "simpleType" : "UntagResourceRequest", + "variableSetterType" : "UntagResourceRequest" }, "inputStreamPropertyName" : null, - "methodName" : "updateAppInstanceUser", - "operationName" : "UpdateAppInstanceUser", + "methodName" : "untagResource", + "operationName" : "UntagResource", "returnType" : { - "returnType" : "UpdateAppInstanceUserResult", + "returnType" : "UntagResourceResult", "documentation" : null }, - "syncReturnType" : "UpdateAppInstanceUserResult" - } - }, - "shapes" : { - "AppInstance" : { - "c2jName" : "AppInstance", - "customization" : { - "artificialResultWrapper" : null, - "skipGeneratingMarshaller" : false, + "syncReturnType" : "UntagResourceResult" + }, + "UpdateAppInstance" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "UpdateAppInstanceResult", + "authenticated" : true, + "deprecated" : false, + "documentation" : "Updates AppInstance metadata.", + "endpointCacheRequired" : false, + "endpointDiscovery" : null, + "endpointOperation" : false, + "endpointTrait" : null, + "exceptions" : [ { + "exceptionName" : "BadRequestException", + "documentation" : "The input parameters don't match the service's restrictions.", + "httpStatusCode" : 400 + }, { + "exceptionName" : "ConflictException", + "documentation" : "The request could not be processed because of conflict in the current state of the resource.", + "httpStatusCode" : 409 + }, { + "exceptionName" : "ForbiddenException", + "documentation" : "The client is permanently forbidden from making the request.", + "httpStatusCode" : 403 + }, { + "exceptionName" : "ThrottledClientException", + "documentation" : "The client exceeded its request rate limit.", + "httpStatusCode" : 429 + }, { + "exceptionName" : "UnauthorizedClientException", + "documentation" : "The client is not currently authorized to make the request.", + "httpStatusCode" : 401 + }, { + "exceptionName" : "ServiceUnavailableException", + "documentation" : "The service is currently unavailable.", + "httpStatusCode" : 503 + }, { + "exceptionName" : "ServiceFailureException", + "documentation" : "The service encountered an unexpected error.", + "httpStatusCode" : 500 + } ], + "hasBlobMemberAsPayload" : false, + "hostPrefixProcessor" : null, + "input" : { + "timestampFormat" : null, + "variableDeclarationType" : "UpdateAppInstanceRequest", + "variableName" : "updateAppInstanceRequest", + "variableType" : "UpdateAppInstanceRequest", + "documentation" : "", + "simpleType" : "UpdateAppInstanceRequest", + "variableSetterType" : "UpdateAppInstanceRequest" + }, + "inputStreamPropertyName" : null, + "methodName" : "updateAppInstance", + "operationName" : "UpdateAppInstance", + "returnType" : { + "returnType" : "UpdateAppInstanceResult", + "documentation" : null + }, + "syncReturnType" : "UpdateAppInstanceResult" + }, + "UpdateAppInstanceUser" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "UpdateAppInstanceUserResult", + "authenticated" : true, + "deprecated" : false, + "documentation" : "Updates the details of an AppInstanceUser. You can update names and metadata.", + "endpointCacheRequired" : false, + "endpointDiscovery" : null, + "endpointOperation" : false, + "endpointTrait" : null, + "exceptions" : [ { + "exceptionName" : "BadRequestException", + "documentation" : "The input parameters don't match the service's restrictions.", + "httpStatusCode" : 400 + }, { + "exceptionName" : "ConflictException", + "documentation" : "The request could not be processed because of conflict in the current state of the resource.", + "httpStatusCode" : 409 + }, { + "exceptionName" : "ForbiddenException", + "documentation" : "The client is permanently forbidden from making the request.", + "httpStatusCode" : 403 + }, { + "exceptionName" : "ResourceLimitExceededException", + "documentation" : "The request exceeds the resource limit.", + "httpStatusCode" : 400 + }, { + "exceptionName" : "ThrottledClientException", + "documentation" : "The client exceeded its request rate limit.", + "httpStatusCode" : 429 + }, { + "exceptionName" : "UnauthorizedClientException", + "documentation" : "The client is not currently authorized to make the request.", + "httpStatusCode" : 401 + }, { + "exceptionName" : "ServiceUnavailableException", + "documentation" : "The service is currently unavailable.", + "httpStatusCode" : 503 + }, { + "exceptionName" : "ServiceFailureException", + "documentation" : "The service encountered an unexpected error.", + "httpStatusCode" : 500 + } ], + "hasBlobMemberAsPayload" : false, + "hostPrefixProcessor" : null, + "input" : { + "timestampFormat" : null, + "variableDeclarationType" : "UpdateAppInstanceUserRequest", + "variableName" : "updateAppInstanceUserRequest", + "variableType" : "UpdateAppInstanceUserRequest", + "documentation" : "", + "simpleType" : "UpdateAppInstanceUserRequest", + "variableSetterType" : "UpdateAppInstanceUserRequest" + }, + "inputStreamPropertyName" : null, + "methodName" : "updateAppInstanceUser", + "operationName" : "UpdateAppInstanceUser", + "returnType" : { + "returnType" : "UpdateAppInstanceUserResult", + "documentation" : null + }, + "syncReturnType" : "UpdateAppInstanceUserResult" + }, + "UpdateAppInstanceUserEndpoint" : { + "asyncCallableType" : "java.util.concurrent.Callable", + "asyncFutureType" : "java.util.concurrent.Future", + "asyncHandlerType" : "com.amazonaws.handlers.AsyncHandler", + "asyncReturnType" : "UpdateAppInstanceUserEndpointResult", + "authenticated" : true, + "deprecated" : false, + "documentation" : "Updates the details of an AppInstanceUserEndpoint. You can update the name and AllowMessage values.", + "endpointCacheRequired" : false, + "endpointDiscovery" : null, + "endpointOperation" : false, + "endpointTrait" : null, + "exceptions" : [ { + "exceptionName" : "BadRequestException", + "documentation" : "The input parameters don't match the service's restrictions.", + "httpStatusCode" : 400 + }, { + "exceptionName" : "ConflictException", + "documentation" : "The request could not be processed because of conflict in the current state of the resource.", + "httpStatusCode" : 409 + }, { + "exceptionName" : "ForbiddenException", + "documentation" : "The client is permanently forbidden from making the request.", + "httpStatusCode" : 403 + }, { + "exceptionName" : "ThrottledClientException", + "documentation" : "The client exceeded its request rate limit.", + "httpStatusCode" : 429 + }, { + "exceptionName" : "UnauthorizedClientException", + "documentation" : "The client is not currently authorized to make the request.", + "httpStatusCode" : 401 + }, { + "exceptionName" : "ServiceUnavailableException", + "documentation" : "The service is currently unavailable.", + "httpStatusCode" : 503 + }, { + "exceptionName" : "ServiceFailureException", + "documentation" : "The service encountered an unexpected error.", + "httpStatusCode" : 500 + } ], + "hasBlobMemberAsPayload" : false, + "hostPrefixProcessor" : null, + "input" : { + "timestampFormat" : null, + "variableDeclarationType" : "UpdateAppInstanceUserEndpointRequest", + "variableName" : "updateAppInstanceUserEndpointRequest", + "variableType" : "UpdateAppInstanceUserEndpointRequest", + "documentation" : "", + "simpleType" : "UpdateAppInstanceUserEndpointRequest", + "variableSetterType" : "UpdateAppInstanceUserEndpointRequest" + }, + "inputStreamPropertyName" : null, + "methodName" : "updateAppInstanceUserEndpoint", + "operationName" : "UpdateAppInstanceUserEndpoint", + "returnType" : { + "returnType" : "UpdateAppInstanceUserEndpointResult", + "documentation" : null + }, + "syncReturnType" : "UpdateAppInstanceUserEndpointResult" + } + }, + "shapes" : { + "AllowMessages" : { + "c2jName" : "AllowMessages", + "customization" : { + "artificialResultWrapper" : null, + "skipGeneratingMarshaller" : false, + "skipGeneratingModelClass" : false, + "skipGeneratingUnmarshaller" : false + }, + "deprecated" : false, + "documentation" : "", + "endpointDiscoveryMembers" : null, + "enums" : [ { + "name" : "ALL", + "value" : "ALL" + }, { + "name" : "NONE", + "value" : "NONE" + } ], + "errorCode" : null, + "fullyQualifiedName" : "com.amazonaws.services.chimesdkidentity.enum.AllowMessages", + "hasHeaderMember" : false, + "hasPayloadMember" : false, + "hasRequiresLengthMember" : false, + "hasStatusCodeMember" : false, + "hasStreamingMember" : false, + "marshaller" : null, + "members" : null, + "membersAsMap" : { }, + "packageName" : "com.amazonaws.services.chimesdkidentity.enum", + "requestSignerAware" : false, + "requestSignerClassFqcn" : null, + "required" : [ ], + "shapeName" : "AllowMessages", + "signerAware" : false, + "signerType" : null, + "unmarshaller" : { + "flattened" : false, + "resultWrapper" : null + }, + "variable" : { + "timestampFormat" : null, + "variableDeclarationType" : "AllowMessages", + "variableName" : "allowMessages", + "variableType" : "AllowMessages", + "documentation" : null, + "simpleType" : "AllowMessages", + "variableSetterType" : "AllowMessages" + }, + "wrapper" : false + }, + "AppInstance" : { + "c2jName" : "AppInstance", + "customization" : { + "artificialResultWrapper" : null, + "skipGeneratingMarshaller" : false, "skipGeneratingModelClass" : false, "skipGeneratingUnmarshaller" : false }, @@ -3831,8 +4353,8 @@ }, "wrapper" : false }, - "AppInstanceUserSummary" : { - "c2jName" : "AppInstanceUserSummary", + "AppInstanceUserEndpoint" : { + "c2jName" : "AppInstanceUserEndpoint", "customization" : { "artificialResultWrapper" : null, "skipGeneratingMarshaller" : false, @@ -3840,11 +4362,11 @@ "skipGeneratingUnmarshaller" : false }, "deprecated" : false, - "documentation" : "Summary of the details of an AppInstanceUser.", + "documentation" : "An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.", "endpointDiscoveryMembers" : null, "enums" : null, "errorCode" : null, - "fullyQualifiedName" : "com.amazonaws.services.chimesdkidentity.model.AppInstanceUserSummary", + "fullyQualifiedName" : "com.amazonaws.services.chimesdkidentity.model.AppInstanceUserEndpoint", "hasHeaderMember" : false, "hasPayloadMember" : false, "hasRequiresLengthMember" : false, @@ -3853,7 +4375,7 @@ "marshaller" : null, "members" : [ { "c2jName" : "AppInstanceUserArn", - "c2jShape" : "ChimeArn", + "c2jShape" : "SensitiveChimeArn", "deprecated" : false, "documentation" : "The ARN of the AppInstanceUser.", "endpointDiscoveryId" : false, @@ -3893,7 +4415,7 @@ "marshallingTargetClass" : "String", "marshallingType" : "STRING", "name" : "AppInstanceUserArn", - "sensitive" : false, + "sensitive" : true, "setterDocumentation" : "/**The ARN of the AppInstanceUser.\n@param appInstanceUserArn The ARN of the AppInstanceUser.*/", "setterMethodName" : "setAppInstanceUserArn", "setterModel" : { @@ -3921,16 +4443,16 @@ }, "xmlNameSpaceUri" : null }, { - "c2jName" : "Name", - "c2jShape" : "UserName", + "c2jName" : "EndpointId", + "c2jShape" : "SensitiveString64", "deprecated" : false, - "documentation" : "The name of an AppInstanceUser.", + "documentation" : "The unique identifier of the AppInstanceUserEndpoint.", "endpointDiscoveryId" : false, "enumType" : null, - "fluentSetterDocumentation" : "/**The name of an AppInstanceUser.\n@param name The name of an AppInstanceUser.\n@return Returns a reference to this object so that method calls can be chained together.*/", - "fluentSetterMethodName" : "withName", - "getterDocumentation" : "/**The name of an AppInstanceUser.\n@return The name of an AppInstanceUser.*/", - "getterMethodName" : "getName", + "fluentSetterDocumentation" : "/**The unique identifier of the AppInstanceUserEndpoint.\n@param endpointId The unique identifier of the AppInstanceUserEndpoint.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "fluentSetterMethodName" : "withEndpointId", + "getterDocumentation" : "/**The unique identifier of the AppInstanceUserEndpoint.\n@return The unique identifier of the AppInstanceUserEndpoint.*/", + "getterMethodName" : "getEndpointId", "getterModel" : { "returnType" : "String", "documentation" : null @@ -3945,11 +4467,11 @@ "isStreaming" : false, "location" : null, "marshallLocation" : "PAYLOAD", - "marshallLocationName" : "Name", + "marshallLocationName" : "EndpointId", "queryString" : false, "requiresLength" : false, "statusCode" : false, - "unmarshallLocationName" : "Name", + "unmarshallLocationName" : "EndpointId", "uri" : false }, "idempotencyToken" : false, @@ -3961,14 +4483,14 @@ "mapModel" : null, "marshallingTargetClass" : "String", "marshallingType" : "STRING", - "name" : "Name", + "name" : "EndpointId", "sensitive" : true, - "setterDocumentation" : "/**The name of an AppInstanceUser.\n@param name The name of an AppInstanceUser.*/", - "setterMethodName" : "setName", + "setterDocumentation" : "/**The unique identifier of the AppInstanceUserEndpoint.\n@param endpointId The unique identifier of the AppInstanceUserEndpoint.*/", + "setterMethodName" : "setEndpointId", "setterModel" : { "timestampFormat" : null, "variableDeclarationType" : "String", - "variableName" : "name", + "variableName" : "endpointId", "variableType" : "String", "documentation" : "", "simpleType" : "String", @@ -3978,28 +4500,28 @@ "shouldFullyQualify" : false, "simple" : true, "unmarshallingType" : null, - "varargSetterDocumentation" : "/**The name of an AppInstanceUser.\n@param name The name of an AppInstanceUser.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "varargSetterDocumentation" : "/**The unique identifier of the AppInstanceUserEndpoint.\n@param endpointId The unique identifier of the AppInstanceUserEndpoint.\n@return Returns a reference to this object so that method calls can be chained together.*/", "variable" : { "timestampFormat" : null, "variableDeclarationType" : "String", - "variableName" : "name", + "variableName" : "endpointId", "variableType" : "String", - "documentation" : "The name of an AppInstanceUser.", + "documentation" : "The unique identifier of the AppInstanceUserEndpoint.", "simpleType" : "String", "variableSetterType" : "String" }, "xmlNameSpaceUri" : null }, { - "c2jName" : "Metadata", - "c2jShape" : "Metadata", + "c2jName" : "Name", + "c2jShape" : "SensitiveString1600", "deprecated" : false, - "documentation" : "The metadata of the AppInstanceUser.", + "documentation" : "The name of the AppInstanceUserEndpoint.", "endpointDiscoveryId" : false, "enumType" : null, - "fluentSetterDocumentation" : "/**The metadata of the AppInstanceUser.\n@param metadata The metadata of the AppInstanceUser.\n@return Returns a reference to this object so that method calls can be chained together.*/", - "fluentSetterMethodName" : "withMetadata", - "getterDocumentation" : "/**The metadata of the AppInstanceUser.\n@return The metadata of the AppInstanceUser.*/", - "getterMethodName" : "getMetadata", + "fluentSetterDocumentation" : "/**The name of the AppInstanceUserEndpoint.\n@param name The name of the AppInstanceUserEndpoint.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "fluentSetterMethodName" : "withName", + "getterDocumentation" : "/**The name of the AppInstanceUserEndpoint.\n@return The name of the AppInstanceUserEndpoint.*/", + "getterMethodName" : "getName", "getterModel" : { "returnType" : "String", "documentation" : null @@ -4014,11 +4536,11 @@ "isStreaming" : false, "location" : null, "marshallLocation" : "PAYLOAD", - "marshallLocationName" : "Metadata", + "marshallLocationName" : "Name", "queryString" : false, "requiresLength" : false, "statusCode" : false, - "unmarshallLocationName" : "Metadata", + "unmarshallLocationName" : "Name", "uri" : false }, "idempotencyToken" : false, @@ -4030,14 +4552,14 @@ "mapModel" : null, "marshallingTargetClass" : "String", "marshallingType" : "STRING", - "name" : "Metadata", + "name" : "Name", "sensitive" : true, - "setterDocumentation" : "/**The metadata of the AppInstanceUser.\n@param metadata The metadata of the AppInstanceUser.*/", - "setterMethodName" : "setMetadata", + "setterDocumentation" : "/**The name of the AppInstanceUserEndpoint.\n@param name The name of the AppInstanceUserEndpoint.*/", + "setterMethodName" : "setName", "setterModel" : { "timestampFormat" : null, "variableDeclarationType" : "String", - "variableName" : "metadata", + "variableName" : "name", "variableType" : "String", "documentation" : "", "simpleType" : "String", @@ -4047,30 +4569,5450 @@ "shouldFullyQualify" : false, "simple" : true, "unmarshallingType" : null, - "varargSetterDocumentation" : "/**The metadata of the AppInstanceUser.\n@param metadata The metadata of the AppInstanceUser.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "varargSetterDocumentation" : "/**The name of the AppInstanceUserEndpoint.\n@param name The name of the AppInstanceUserEndpoint.\n@return Returns a reference to this object so that method calls can be chained together.*/", "variable" : { "timestampFormat" : null, "variableDeclarationType" : "String", - "variableName" : "metadata", + "variableName" : "name", "variableType" : "String", - "documentation" : "The metadata of the AppInstanceUser.", + "documentation" : "The name of the AppInstanceUserEndpoint.", + "simpleType" : "String", + "variableSetterType" : "String" + }, + "xmlNameSpaceUri" : null + }, { + "c2jName" : "Type", + "c2jShape" : "AppInstanceUserEndpointType", + "deprecated" : false, + "documentation" : "The type of the AppInstanceUserEndpoint.", + "endpointDiscoveryId" : false, + "enumType" : "AppInstanceUserEndpointType", + "fluentSetterDocumentation" : "/**The type of the AppInstanceUserEndpoint.\n@param type The type of the AppInstanceUserEndpoint.\n@return Returns a reference to this object so that method calls can be chained together.\n@see AppInstanceUserEndpointType*/", + "fluentSetterMethodName" : "withType", + "getterDocumentation" : "/**The type of the AppInstanceUserEndpoint.\n@return The type of the AppInstanceUserEndpoint.\n@see AppInstanceUserEndpointType*/", + "getterMethodName" : "getType", + "getterModel" : { + "returnType" : "String", + "documentation" : null + }, + "http" : { + "additionalMarshallingPath" : null, + "additionalUnmarshallingPath" : null, + "flattened" : false, + "greedy" : false, + "header" : false, + "isPayload" : false, + "isStreaming" : false, + "location" : null, + "marshallLocation" : "PAYLOAD", + "marshallLocationName" : "Type", + "queryString" : false, + "requiresLength" : false, + "statusCode" : false, + "unmarshallLocationName" : "Type", + "uri" : false + }, + "idempotencyToken" : false, + "isBinary" : false, + "jsonValue" : false, + "list" : false, + "listModel" : null, + "map" : false, + "mapModel" : null, + "marshallingTargetClass" : "String", + "marshallingType" : "STRING", + "name" : "Type", + "sensitive" : false, + "setterDocumentation" : "/**The type of the AppInstanceUserEndpoint.\n@param type The type of the AppInstanceUserEndpoint.\n@see AppInstanceUserEndpointType*/", + "setterMethodName" : "setType", + "setterModel" : { + "timestampFormat" : null, + "variableDeclarationType" : "String", + "variableName" : "type", + "variableType" : "String", + "documentation" : "", + "simpleType" : "String", + "variableSetterType" : "String" + }, + "shouldEmitLegacyEnumSetter" : false, + "shouldFullyQualify" : false, + "simple" : true, + "unmarshallingType" : null, + "varargSetterDocumentation" : "/**The type of the AppInstanceUserEndpoint.\n@param type The type of the AppInstanceUserEndpoint.\n@return Returns a reference to this object so that method calls can be chained together.\n@see AppInstanceUserEndpointType*/", + "variable" : { + "timestampFormat" : null, + "variableDeclarationType" : "String", + "variableName" : "type", + "variableType" : "String", + "documentation" : "The type of the AppInstanceUserEndpoint.", + "simpleType" : "String", + "variableSetterType" : "String" + }, + "xmlNameSpaceUri" : null + }, { + "c2jName" : "ResourceArn", + "c2jShape" : "SensitiveChimeArn", + "deprecated" : false, + "documentation" : "The ARN of the resource to which the endpoint belongs.", + "endpointDiscoveryId" : false, + "enumType" : null, + "fluentSetterDocumentation" : "/**The ARN of the resource to which the endpoint belongs.\n@param resourceArn The ARN of the resource to which the endpoint belongs.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "fluentSetterMethodName" : "withResourceArn", + "getterDocumentation" : "/**The ARN of the resource to which the endpoint belongs.\n@return The ARN of the resource to which the endpoint belongs.*/", + "getterMethodName" : "getResourceArn", + "getterModel" : { + "returnType" : "String", + "documentation" : null + }, + "http" : { + "additionalMarshallingPath" : null, + "additionalUnmarshallingPath" : null, + "flattened" : false, + "greedy" : false, + "header" : false, + "isPayload" : false, + "isStreaming" : false, + "location" : null, + "marshallLocation" : "PAYLOAD", + "marshallLocationName" : "ResourceArn", + "queryString" : false, + "requiresLength" : false, + "statusCode" : false, + "unmarshallLocationName" : "ResourceArn", + "uri" : false + }, + "idempotencyToken" : false, + "isBinary" : false, + "jsonValue" : false, + "list" : false, + "listModel" : null, + "map" : false, + "mapModel" : null, + "marshallingTargetClass" : "String", + "marshallingType" : "STRING", + "name" : "ResourceArn", + "sensitive" : true, + "setterDocumentation" : "/**The ARN of the resource to which the endpoint belongs.\n@param resourceArn The ARN of the resource to which the endpoint belongs.*/", + "setterMethodName" : "setResourceArn", + "setterModel" : { + "timestampFormat" : null, + "variableDeclarationType" : "String", + "variableName" : "resourceArn", + "variableType" : "String", + "documentation" : "", + "simpleType" : "String", + "variableSetterType" : "String" + }, + "shouldEmitLegacyEnumSetter" : false, + "shouldFullyQualify" : false, + "simple" : true, + "unmarshallingType" : null, + "varargSetterDocumentation" : "/**The ARN of the resource to which the endpoint belongs.\n@param resourceArn The ARN of the resource to which the endpoint belongs.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "variable" : { + "timestampFormat" : null, + "variableDeclarationType" : "String", + "variableName" : "resourceArn", + "variableType" : "String", + "documentation" : "The ARN of the resource to which the endpoint belongs.", "simpleType" : "String", "variableSetterType" : "String" }, - "xmlNameSpaceUri" : null - } ], - "membersAsMap" : { - "AppInstanceUserArn" : { - "c2jName" : "AppInstanceUserArn", - "c2jShape" : "ChimeArn", + "xmlNameSpaceUri" : null + }, { + "c2jName" : "EndpointAttributes", + "c2jShape" : "EndpointAttributes", + "deprecated" : false, + "documentation" : "The attributes of an Endpoint.", + "endpointDiscoveryId" : false, + "enumType" : null, + "fluentSetterDocumentation" : "/**The attributes of an Endpoint.\n@param endpointAttributes The attributes of an Endpoint.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "fluentSetterMethodName" : "withEndpointAttributes", + "getterDocumentation" : "/**The attributes of an Endpoint.\n@return The attributes of an Endpoint.*/", + "getterMethodName" : "getEndpointAttributes", + "getterModel" : { + "returnType" : "EndpointAttributes", + "documentation" : null + }, + "http" : { + "additionalMarshallingPath" : null, + "additionalUnmarshallingPath" : null, + "flattened" : false, + "greedy" : false, + "header" : false, + "isPayload" : false, + "isStreaming" : false, + "location" : null, + "marshallLocation" : "PAYLOAD", + "marshallLocationName" : "EndpointAttributes", + "queryString" : false, + "requiresLength" : false, + "statusCode" : false, + "unmarshallLocationName" : "EndpointAttributes", + "uri" : false + }, + "idempotencyToken" : false, + "isBinary" : false, + "jsonValue" : false, + "list" : false, + "listModel" : null, + "map" : false, + "mapModel" : null, + "marshallingTargetClass" : "StructuredPojo", + "marshallingType" : "STRUCTURED", + "name" : "EndpointAttributes", + "sensitive" : false, + "setterDocumentation" : "/**The attributes of an Endpoint.\n@param endpointAttributes The attributes of an Endpoint.*/", + "setterMethodName" : "setEndpointAttributes", + "setterModel" : { + "timestampFormat" : null, + "variableDeclarationType" : "EndpointAttributes", + "variableName" : "endpointAttributes", + "variableType" : "EndpointAttributes", + "documentation" : "", + "simpleType" : "EndpointAttributes", + "variableSetterType" : "EndpointAttributes" + }, + "shouldEmitLegacyEnumSetter" : false, + "shouldFullyQualify" : false, + "simple" : false, + "unmarshallingType" : null, + "varargSetterDocumentation" : "/**The attributes of an Endpoint.\n@param endpointAttributes The attributes of an Endpoint.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "variable" : { + "timestampFormat" : null, + "variableDeclarationType" : "EndpointAttributes", + "variableName" : "endpointAttributes", + "variableType" : "EndpointAttributes", + "documentation" : "The attributes of an Endpoint.", + "simpleType" : "EndpointAttributes", + "variableSetterType" : "EndpointAttributes" + }, + "xmlNameSpaceUri" : null + }, { + "c2jName" : "CreatedTimestamp", + "c2jShape" : "Timestamp", + "deprecated" : false, + "documentation" : "The time at which an AppInstanceUserEndpoint was created.", + "endpointDiscoveryId" : false, + "enumType" : null, + "fluentSetterDocumentation" : "/**The time at which an AppInstanceUserEndpoint was created.\n@param createdTimestamp The time at which an AppInstanceUserEndpoint was created.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "fluentSetterMethodName" : "withCreatedTimestamp", + "getterDocumentation" : "/**The time at which an AppInstanceUserEndpoint was created.\n@return The time at which an AppInstanceUserEndpoint was created.*/", + "getterMethodName" : "getCreatedTimestamp", + "getterModel" : { + "returnType" : "java.util.Date", + "documentation" : null + }, + "http" : { + "additionalMarshallingPath" : null, + "additionalUnmarshallingPath" : null, + "flattened" : false, + "greedy" : false, + "header" : false, + "isPayload" : false, + "isStreaming" : false, + "location" : null, + "marshallLocation" : "PAYLOAD", + "marshallLocationName" : "CreatedTimestamp", + "queryString" : false, + "requiresLength" : false, + "statusCode" : false, + "unmarshallLocationName" : "CreatedTimestamp", + "uri" : false + }, + "idempotencyToken" : false, + "isBinary" : false, + "jsonValue" : false, + "list" : false, + "listModel" : null, + "map" : false, + "mapModel" : null, + "marshallingTargetClass" : "java.util.Date", + "marshallingType" : "DATE", + "name" : "CreatedTimestamp", + "sensitive" : false, + "setterDocumentation" : "/**The time at which an AppInstanceUserEndpoint was created.\n@param createdTimestamp The time at which an AppInstanceUserEndpoint was created.*/", + "setterMethodName" : "setCreatedTimestamp", + "setterModel" : { + "timestampFormat" : null, + "variableDeclarationType" : "java.util.Date", + "variableName" : "createdTimestamp", + "variableType" : "java.util.Date", + "documentation" : "", + "simpleType" : "Date", + "variableSetterType" : "java.util.Date" + }, + "shouldEmitLegacyEnumSetter" : false, + "shouldFullyQualify" : false, + "simple" : true, + "unmarshallingType" : null, + "varargSetterDocumentation" : "/**The time at which an AppInstanceUserEndpoint was created.\n@param createdTimestamp The time at which an AppInstanceUserEndpoint was created.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "variable" : { + "timestampFormat" : "unixTimestamp", + "variableDeclarationType" : "java.util.Date", + "variableName" : "createdTimestamp", + "variableType" : "java.util.Date", + "documentation" : "The time at which an AppInstanceUserEndpoint was created.", + "simpleType" : "Date", + "variableSetterType" : "java.util.Date" + }, + "xmlNameSpaceUri" : null + }, { + "c2jName" : "LastUpdatedTimestamp", + "c2jShape" : "Timestamp", + "deprecated" : false, + "documentation" : "The time at which an AppInstanceUserEndpoint was last updated.", + "endpointDiscoveryId" : false, + "enumType" : null, + "fluentSetterDocumentation" : "/**The time at which an AppInstanceUserEndpoint was last updated.\n@param lastUpdatedTimestamp The time at which an AppInstanceUserEndpoint was last updated.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "fluentSetterMethodName" : "withLastUpdatedTimestamp", + "getterDocumentation" : "/**The time at which an AppInstanceUserEndpoint was last updated.\n@return The time at which an AppInstanceUserEndpoint was last updated.*/", + "getterMethodName" : "getLastUpdatedTimestamp", + "getterModel" : { + "returnType" : "java.util.Date", + "documentation" : null + }, + "http" : { + "additionalMarshallingPath" : null, + "additionalUnmarshallingPath" : null, + "flattened" : false, + "greedy" : false, + "header" : false, + "isPayload" : false, + "isStreaming" : false, + "location" : null, + "marshallLocation" : "PAYLOAD", + "marshallLocationName" : "LastUpdatedTimestamp", + "queryString" : false, + "requiresLength" : false, + "statusCode" : false, + "unmarshallLocationName" : "LastUpdatedTimestamp", + "uri" : false + }, + "idempotencyToken" : false, + "isBinary" : false, + "jsonValue" : false, + "list" : false, + "listModel" : null, + "map" : false, + "mapModel" : null, + "marshallingTargetClass" : "java.util.Date", + "marshallingType" : "DATE", + "name" : "LastUpdatedTimestamp", + "sensitive" : false, + "setterDocumentation" : "/**The time at which an AppInstanceUserEndpoint was last updated.\n@param lastUpdatedTimestamp The time at which an AppInstanceUserEndpoint was last updated.*/", + "setterMethodName" : "setLastUpdatedTimestamp", + "setterModel" : { + "timestampFormat" : null, + "variableDeclarationType" : "java.util.Date", + "variableName" : "lastUpdatedTimestamp", + "variableType" : "java.util.Date", + "documentation" : "", + "simpleType" : "Date", + "variableSetterType" : "java.util.Date" + }, + "shouldEmitLegacyEnumSetter" : false, + "shouldFullyQualify" : false, + "simple" : true, + "unmarshallingType" : null, + "varargSetterDocumentation" : "/**The time at which an AppInstanceUserEndpoint was last updated.\n@param lastUpdatedTimestamp The time at which an AppInstanceUserEndpoint was last updated.\n@return Returns a reference to this object so that method calls can be chained together.*/", + "variable" : { + "timestampFormat" : "unixTimestamp", + "variableDeclarationType" : "java.util.Date", + "variableName" : "lastUpdatedTimestamp", + "variableType" : "java.util.Date", + "documentation" : "The time at which an AppInstanceUserEndpoint was last updated.", + "simpleType" : "Date", + "variableSetterType" : "java.util.Date" + }, + "xmlNameSpaceUri" : null + }, { + "c2jName" : "AllowMessages", + "c2jShape" : "AllowMessages", + "deprecated" : false, + "documentation" : "Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.", + "endpointDiscoveryId" : false, + "enumType" : "AllowMessages", + "fluentSetterDocumentation" : "/**Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.\n@param allowMessages Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.\n@return Returns a reference to this object so that method calls can be chained together.\n@see AllowMessages*/", + "fluentSetterMethodName" : "withAllowMessages", + "getterDocumentation" : "/**Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.\n@return Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.\n@see AllowMessages*/", + "getterMethodName" : "getAllowMessages", + "getterModel" : { + "returnType" : "String", + "documentation" : null + }, + "http" : { + "additionalMarshallingPath" : null, + "additionalUnmarshallingPath" : null, + "flattened" : false, + "greedy" : false, + "header" : false, + "isPayload" : false, + "isStreaming" : false, + "location" : null, + "marshallLocation" : "PAYLOAD", + "marshallLocationName" : "AllowMessages", + "queryString" : false, + "requiresLength" : false, + "statusCode" : false, + "unmarshallLocationName" : "AllowMessages", + "uri" : false + }, + "idempotencyToken" : false, + "isBinary" : false, + "jsonValue" : false, + "list" : false, + "listModel" : null, + "map" : false, + "mapModel" : null, + "marshallingTargetClass" : "String", + "marshallingType" : "STRING", + "name" : "AllowMessages", + "sensitive" : false, + "setterDocumentation" : "/**Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.\n@param allowMessages Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.\n@see AllowMessages*/", + "setterMethodName" : "setAllowMessages", + "setterModel" : { + "timestampFormat" : null, + "variableDeclarationType" : "String", + "variableName" : "allowMessages", + "variableType" : "String", + "documentation" : "", + "simpleType" : "String", + "variableSetterType" : "String" + }, + "shouldEmitLegacyEnumSetter" : false, + "shouldFullyQualify" : false, + "simple" : true, + "unmarshallingType" : null, + "varargSetterDocumentation" : "/**Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.\n@param allowMessages Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.\n@return Returns a reference to this object so that method calls can be chained together.\n@see AllowMessages*/", + "variable" : { + "timestampFormat" : null, + "variableDeclarationType" : "String", + "variableName" : "allowMessages", + "variableType" : "String", + "documentation" : "Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.", + "simpleType" : "String", + "variableSetterType" : "String" + }, + "xmlNameSpaceUri" : null + }, { + "c2jName" : "EndpointState", + "c2jShape" : "EndpointState", + "deprecated" : false, + "documentation" : "A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When ACTIVE, the EndpointStatusReason remains empty. INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE due to invalid device token INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn field. ", + "endpointDiscoveryId" : false, + "enumType" : null, + "fluentSetterDocumentation" : "/**A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values: ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When ACTIVE, the EndpointStatusReason remains empty. INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason. INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE due to invalid device token INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn field. \n@param endpointState A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values:
Deregisters an AppInstanceUserEndpoint.
The input parameters don't match the service's restrictions.
The client is permanently forbidden from making the request.
The client exceeded its request rate limit.
The client is not currently authorized to make the request.
The service is currently unavailable.
The service encountered an unexpected error.
Returns the full details of an AppInstanceUserEndpoint.
Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser.
Lists the tags applied to an Amazon Chime SDK identity resource.
Updates AppInstance metadata.
Registers an endpoint under an Amazon Chime AppInstanceUser. The endpoint receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.
The request exceeds the resource limit.
Updates the details of an AppInstanceUser. You can update names and metadata.
Applies the specified tags to the specified Amazon Chime SDK identity resource.
The request could not be processed because of conflict in the current state of the resource.
Removes the specified tags from the specified Amazon Chime SDK identity resource.
Updates the details of an AppInstanceUserEndpoint. You can update the name and AllowMessage values.
Summary of the details of an AppInstanceUser.
An endpoint under an Amazon Chime AppInstanceUser that receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.
The ARN of the AppInstanceUser.
The name of an AppInstanceUser.
The unique identifier of the AppInstanceUserEndpoint.
The metadata of the AppInstanceUser.
The name of the AppInstanceUserEndpoint.
The type of the AppInstanceUserEndpoint.
The ARN of the resource to which the endpoint belongs.
The attributes of an Endpoint.
The time at which an AppInstanceUserEndpoint was created.
The time at which an AppInstanceUserEndpoint was last updated.
Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.
A read-only field that represents the state of an AppInstanceUserEndpoint. Supported values:
ACTIVE: The AppInstanceUserEndpoint is active and able to receive messages. When ACTIVE, the EndpointStatusReason remains empty.
INACTIVE: The AppInstanceUserEndpoint is inactive and can't receive message. When INACTIVE, the corresponding reason will be conveyed through EndpointStatusReason.
INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE due to invalid device token
INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn field.
Summary of the details of an AppInstanceUserEndpoint.
BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.
A read-only field that represent the state of an AppInstanceUserEndpoint.
The details of the retention settings for a channel.
The time in days to retain the messages in a channel.
The ARN of the administrator of the current AppInstance.
The ARN of the AppInstance.
The name and ARN of the admin for the AppInstance.
The ARN of the of the admin for the AppInstance.
The name of the AppInstance.
The metadata of the AppInstance. Limited to a 1KB string in UTF-8.
The ClientRequestToken of the AppInstance.
ClientRequestToken
Tags assigned to the AppInstanceUser.
NOTE: This method appends the values to the existing list (if any). Use {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the existing values.
The Amazon Resource Number (ARN) of the AppInstance.
The ARN of the AppInstance request.
The user ID of the AppInstance.
The user's name.
The request's metadata. Limited to a 1KB string in UTF-8.
The token assigned to the user requesting an AppInstance.
The user's ARN.
The ARN of the AppInstance's administrator.
The ARN of the user request being deleted.
The ARN of the AppInstanceAdmin.
The ARN and name of the AppInstanceUser, the ARN of the AppInstance, and the created and last-updated timestamps. All timestamps use epoch milliseconds.
The ARN, metadata, created and last-updated timestamps, and the name of the AppInstance. All timestamps use epoch milliseconds.