Skip to content

Commit dad769f

Browse files
awsmobilesdkraphkim
authored andcommitted
[aws-android-sdk-sns] Update models to latest (#1183)
1 parent b0340b6 commit dad769f

File tree

76 files changed

+7583
-1126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+7583
-1126
lines changed

aws-android-sdk-sns/src/main/java/com/amazonaws/auth/policy/actions/SNSActions.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ public enum SNSActions implements Action {
8282
/** Action for the ListSubscriptionsByTopic operation. */
8383
ListSubscriptionsByTopic("sns:ListSubscriptionsByTopic"),
8484

85+
/** Action for the ListTagsForResource operation. */
86+
ListTagsForResource("sns:ListTagsForResource"),
87+
8588
/** Action for the ListTopics operation. */
8689
ListTopics("sns:ListTopics"),
8790

@@ -112,8 +115,14 @@ public enum SNSActions implements Action {
112115
/** Action for the Subscribe operation. */
113116
Subscribe("sns:Subscribe"),
114117

118+
/** Action for the TagResource operation. */
119+
TagResource("sns:TagResource"),
120+
115121
/** Action for the Unsubscribe operation. */
116-
Unsubscribe("sns:Unsubscribe");
122+
Unsubscribe("sns:Unsubscribe"),
123+
124+
/** Action for the UntagResource operation. */
125+
UntagResource("sns:UntagResource");
117126

118127
private final String action;
119128

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNS.java

Lines changed: 467 additions & 95 deletions
Large diffs are not rendered by default.

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNSAsync.java

Lines changed: 445 additions & 68 deletions
Large diffs are not rendered by default.

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNSAsyncClient.java

Lines changed: 495 additions & 68 deletions
Large diffs are not rendered by default.

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/AmazonSNSClient.java

Lines changed: 564 additions & 107 deletions
Large diffs are not rendered by default.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
package com.amazonaws.services.sns.model;
17+
18+
import com.amazonaws.AmazonServiceException;
19+
20+
/**
21+
* <p>
22+
* Can't perform multiple operations on a tag simultaneously. Perform the
23+
* operations sequentially.
24+
* </p>
25+
*/
26+
public class ConcurrentAccessException extends AmazonServiceException {
27+
private static final long serialVersionUID = 1L;
28+
29+
/**
30+
* Constructs a new ConcurrentAccessException with the specified error
31+
* message.
32+
*
33+
* @param message Describes the error encountered.
34+
*/
35+
public ConcurrentAccessException(String message) {
36+
super(message);
37+
}
38+
}

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/model/CreatePlatformApplicationRequest.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* <p>
2424
* Creates a platform application object for one of the supported push
25-
* notification services, such as APNS and GCM, to which devices and mobile apps
25+
* notification services, such as APNS and FCM, to which devices and mobile apps
2626
* may register. You must specify PlatformPrincipal and PlatformCredential
2727
* attributes when using the <code>CreatePlatformApplication</code> action. The
2828
* PlatformPrincipal is received from the notification service. For
@@ -41,21 +41,21 @@
4141
* "secret key". The PlatformApplicationArn that is returned when using
4242
* <code>CreatePlatformApplication</code> is then used as an attribute for the
4343
* <code>CreatePlatformEndpoint</code> action. For more information, see <a
44-
* href="http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html">Using
44+
* href="https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html">Using
4545
* Amazon SNS Mobile Push Notifications</a>. For more information about
4646
* obtaining the PlatformPrincipal and PlatformCredential for each of the
4747
* supported push notification services, see <a
48-
* href="http://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html">Getting
49-
* Started with Apple Push Notification Service</a>, <a
50-
* href="http://docs.aws.amazon.com/sns/latest/dg/mobile-push-adm.html">Getting
48+
* href="https://docs.aws.amazon.com/sns/latest/dg/mobile-push-apns.html"
49+
* >Getting Started with Apple Push Notification Service</a>, <a
50+
* href="https://docs.aws.amazon.com/sns/latest/dg/mobile-push-adm.html">Getting
5151
* Started with Amazon Device Messaging</a>, <a
52-
* href="http://docs.aws.amazon.com/sns/latest/dg/mobile-push-baidu.html"
52+
* href="https://docs.aws.amazon.com/sns/latest/dg/mobile-push-baidu.html"
5353
* >Getting Started with Baidu Cloud Push</a>, <a
54-
* href="http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html">Getting
54+
* href="https://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html">Getting
5555
* Started with Google Cloud Messaging for Android</a>, <a
56-
* href="http://docs.aws.amazon.com/sns/latest/dg/mobile-push-mpns.html">Getting
57-
* Started with MPNS</a>, or <a
58-
* href="http://docs.aws.amazon.com/sns/latest/dg/mobile-push-wns.html">Getting
56+
* href="https://docs.aws.amazon.com/sns/latest/dg/mobile-push-mpns.html"
57+
* >Getting Started with MPNS</a>, or <a
58+
* href="https://docs.aws.amazon.com/sns/latest/dg/mobile-push-wns.html">Getting
5959
* Started with WNS</a>.
6060
* </p>
6161
*/
@@ -82,7 +82,7 @@ public class CreatePlatformApplicationRequest extends AmazonWebServiceRequest im
8282
/**
8383
* <p>
8484
* For a list of attributes, see <a href=
85-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
85+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
8686
* >SetPlatformApplicationAttributes</a>
8787
* </p>
8888
*/
@@ -205,13 +205,13 @@ public CreatePlatformApplicationRequest withPlatform(String platform) {
205205
/**
206206
* <p>
207207
* For a list of attributes, see <a href=
208-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
208+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
209209
* >SetPlatformApplicationAttributes</a>
210210
* </p>
211211
*
212212
* @return <p>
213213
* For a list of attributes, see <a href=
214-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
214+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
215215
* >SetPlatformApplicationAttributes</a>
216216
* </p>
217217
*/
@@ -222,13 +222,13 @@ public java.util.Map<String, String> getAttributes() {
222222
/**
223223
* <p>
224224
* For a list of attributes, see <a href=
225-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
225+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
226226
* >SetPlatformApplicationAttributes</a>
227227
* </p>
228228
*
229229
* @param attributes <p>
230230
* For a list of attributes, see <a href=
231-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
231+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
232232
* >SetPlatformApplicationAttributes</a>
233233
* </p>
234234
*/
@@ -239,7 +239,7 @@ public void setAttributes(java.util.Map<String, String> attributes) {
239239
/**
240240
* <p>
241241
* For a list of attributes, see <a href=
242-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
242+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
243243
* >SetPlatformApplicationAttributes</a>
244244
* </p>
245245
* <p>
@@ -248,7 +248,7 @@ public void setAttributes(java.util.Map<String, String> attributes) {
248248
*
249249
* @param attributes <p>
250250
* For a list of attributes, see <a href=
251-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
251+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
252252
* >SetPlatformApplicationAttributes</a>
253253
* </p>
254254
* @return A reference to this updated object so that method calls can be
@@ -262,7 +262,7 @@ public CreatePlatformApplicationRequest withAttributes(java.util.Map<String, Str
262262
/**
263263
* <p>
264264
* For a list of attributes, see <a href=
265-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
265+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html"
266266
* >SetPlatformApplicationAttributes</a>
267267
* </p>
268268
* <p>

aws-android-sdk-sns/src/main/java/com/amazonaws/services/sns/model/CreatePlatformEndpointRequest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
* already owns an endpoint with the same device token and attributes, that
3333
* endpoint's ARN is returned without creating a new endpoint. For more
3434
* information, see <a
35-
* href="http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html">Using
35+
* href="https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html">Using
3636
* Amazon SNS Mobile Push Notifications</a>.
3737
* </p>
3838
* <p>
3939
* When using <code>CreatePlatformEndpoint</code> with Baidu, two attributes
4040
* must be provided: ChannelId and UserId. The token field must also contain the
4141
* ChannelId. For more information, see <a href=
42-
* "http://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushBaiduEndpoint.html"
42+
* "https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushBaiduEndpoint.html"
4343
* >Creating an Amazon SNS Endpoint for Baidu</a>.
4444
* </p>
4545
*/
@@ -75,7 +75,7 @@ public class CreatePlatformEndpointRequest extends AmazonWebServiceRequest imple
7575
/**
7676
* <p>
7777
* For a list of attributes, see <a href=
78-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
78+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
7979
* >SetEndpointAttributes</a>.
8080
* </p>
8181
*/
@@ -264,13 +264,13 @@ public CreatePlatformEndpointRequest withCustomUserData(String customUserData) {
264264
/**
265265
* <p>
266266
* For a list of attributes, see <a href=
267-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
267+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
268268
* >SetEndpointAttributes</a>.
269269
* </p>
270270
*
271271
* @return <p>
272272
* For a list of attributes, see <a href=
273-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
273+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
274274
* >SetEndpointAttributes</a>.
275275
* </p>
276276
*/
@@ -281,13 +281,13 @@ public java.util.Map<String, String> getAttributes() {
281281
/**
282282
* <p>
283283
* For a list of attributes, see <a href=
284-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
284+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
285285
* >SetEndpointAttributes</a>.
286286
* </p>
287287
*
288288
* @param attributes <p>
289289
* For a list of attributes, see <a href=
290-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
290+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
291291
* >SetEndpointAttributes</a>.
292292
* </p>
293293
*/
@@ -298,7 +298,7 @@ public void setAttributes(java.util.Map<String, String> attributes) {
298298
/**
299299
* <p>
300300
* For a list of attributes, see <a href=
301-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
301+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
302302
* >SetEndpointAttributes</a>.
303303
* </p>
304304
* <p>
@@ -307,7 +307,7 @@ public void setAttributes(java.util.Map<String, String> attributes) {
307307
*
308308
* @param attributes <p>
309309
* For a list of attributes, see <a href=
310-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
310+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
311311
* >SetEndpointAttributes</a>.
312312
* </p>
313313
* @return A reference to this updated object so that method calls can be
@@ -321,7 +321,7 @@ public CreatePlatformEndpointRequest withAttributes(java.util.Map<String, String
321321
/**
322322
* <p>
323323
* For a list of attributes, see <a href=
324-
* "http://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
324+
* "https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html"
325325
* >SetEndpointAttributes</a>.
326326
* </p>
327327
* <p>

0 commit comments

Comments
 (0)