Skip to content

Commit 8456f25

Browse files
authored
feat(aws-android-sdk-kms): update models to latest (#2302)
1 parent 0749506 commit 8456f25

File tree

120 files changed

+7173
-1901
lines changed

Some content is hidden

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

120 files changed

+7173
-1901
lines changed

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/AWSKMS.java

Lines changed: 1770 additions & 276 deletions
Large diffs are not rendered by default.

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/AWSKMSClient.java

Lines changed: 1766 additions & 272 deletions
Large diffs are not rendered by default.

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/AliasListEntry.java

Lines changed: 151 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,31 @@ public class AliasListEntry implements Serializable {
4747

4848
/**
4949
* <p>
50-
* String that contains the key identifier referred to by the alias.
50+
* String that contains the key identifier of the CMK associated with the
51+
* alias.
5152
* </p>
5253
* <p>
5354
* <b>Constraints:</b><br/>
5455
* <b>Length: </b>1 - 2048<br/>
5556
*/
5657
private String targetKeyId;
5758

59+
/**
60+
* <p>
61+
* Date and time that the alias was most recently created in the account and
62+
* Region. Formatted as Unix time.
63+
* </p>
64+
*/
65+
private java.util.Date creationDate;
66+
67+
/**
68+
* <p>
69+
* Date and time that the alias was most recently associated with a CMK in
70+
* the account and Region. Formatted as Unix time.
71+
* </p>
72+
*/
73+
private java.util.Date lastUpdatedDate;
74+
5875
/**
5976
* <p>
6077
* String that contains the alias. This value begins with
@@ -174,14 +191,16 @@ public AliasListEntry withAliasArn(String aliasArn) {
174191

175192
/**
176193
* <p>
177-
* String that contains the key identifier referred to by the alias.
194+
* String that contains the key identifier of the CMK associated with the
195+
* alias.
178196
* </p>
179197
* <p>
180198
* <b>Constraints:</b><br/>
181199
* <b>Length: </b>1 - 2048<br/>
182200
*
183201
* @return <p>
184-
* String that contains the key identifier referred to by the alias.
202+
* String that contains the key identifier of the CMK associated
203+
* with the alias.
185204
* </p>
186205
*/
187206
public String getTargetKeyId() {
@@ -190,15 +209,16 @@ public String getTargetKeyId() {
190209

191210
/**
192211
* <p>
193-
* String that contains the key identifier referred to by the alias.
212+
* String that contains the key identifier of the CMK associated with the
213+
* alias.
194214
* </p>
195215
* <p>
196216
* <b>Constraints:</b><br/>
197217
* <b>Length: </b>1 - 2048<br/>
198218
*
199219
* @param targetKeyId <p>
200-
* String that contains the key identifier referred to by the
201-
* alias.
220+
* String that contains the key identifier of the CMK associated
221+
* with the alias.
202222
* </p>
203223
*/
204224
public void setTargetKeyId(String targetKeyId) {
@@ -207,7 +227,8 @@ public void setTargetKeyId(String targetKeyId) {
207227

208228
/**
209229
* <p>
210-
* String that contains the key identifier referred to by the alias.
230+
* String that contains the key identifier of the CMK associated with the
231+
* alias.
211232
* </p>
212233
* <p>
213234
* Returns a reference to this object so that method calls can be chained
@@ -217,8 +238,8 @@ public void setTargetKeyId(String targetKeyId) {
217238
* <b>Length: </b>1 - 2048<br/>
218239
*
219240
* @param targetKeyId <p>
220-
* String that contains the key identifier referred to by the
221-
* alias.
241+
* String that contains the key identifier of the CMK associated
242+
* with the alias.
222243
* </p>
223244
* @return A reference to this updated object so that method calls can be
224245
* chained together.
@@ -228,6 +249,108 @@ public AliasListEntry withTargetKeyId(String targetKeyId) {
228249
return this;
229250
}
230251

252+
/**
253+
* <p>
254+
* Date and time that the alias was most recently created in the account and
255+
* Region. Formatted as Unix time.
256+
* </p>
257+
*
258+
* @return <p>
259+
* Date and time that the alias was most recently created in the
260+
* account and Region. Formatted as Unix time.
261+
* </p>
262+
*/
263+
public java.util.Date getCreationDate() {
264+
return creationDate;
265+
}
266+
267+
/**
268+
* <p>
269+
* Date and time that the alias was most recently created in the account and
270+
* Region. Formatted as Unix time.
271+
* </p>
272+
*
273+
* @param creationDate <p>
274+
* Date and time that the alias was most recently created in the
275+
* account and Region. Formatted as Unix time.
276+
* </p>
277+
*/
278+
public void setCreationDate(java.util.Date creationDate) {
279+
this.creationDate = creationDate;
280+
}
281+
282+
/**
283+
* <p>
284+
* Date and time that the alias was most recently created in the account and
285+
* Region. Formatted as Unix time.
286+
* </p>
287+
* <p>
288+
* Returns a reference to this object so that method calls can be chained
289+
* together.
290+
*
291+
* @param creationDate <p>
292+
* Date and time that the alias was most recently created in the
293+
* account and Region. Formatted as Unix time.
294+
* </p>
295+
* @return A reference to this updated object so that method calls can be
296+
* chained together.
297+
*/
298+
public AliasListEntry withCreationDate(java.util.Date creationDate) {
299+
this.creationDate = creationDate;
300+
return this;
301+
}
302+
303+
/**
304+
* <p>
305+
* Date and time that the alias was most recently associated with a CMK in
306+
* the account and Region. Formatted as Unix time.
307+
* </p>
308+
*
309+
* @return <p>
310+
* Date and time that the alias was most recently associated with a
311+
* CMK in the account and Region. Formatted as Unix time.
312+
* </p>
313+
*/
314+
public java.util.Date getLastUpdatedDate() {
315+
return lastUpdatedDate;
316+
}
317+
318+
/**
319+
* <p>
320+
* Date and time that the alias was most recently associated with a CMK in
321+
* the account and Region. Formatted as Unix time.
322+
* </p>
323+
*
324+
* @param lastUpdatedDate <p>
325+
* Date and time that the alias was most recently associated with
326+
* a CMK in the account and Region. Formatted as Unix time.
327+
* </p>
328+
*/
329+
public void setLastUpdatedDate(java.util.Date lastUpdatedDate) {
330+
this.lastUpdatedDate = lastUpdatedDate;
331+
}
332+
333+
/**
334+
* <p>
335+
* Date and time that the alias was most recently associated with a CMK in
336+
* the account and Region. Formatted as Unix time.
337+
* </p>
338+
* <p>
339+
* Returns a reference to this object so that method calls can be chained
340+
* together.
341+
*
342+
* @param lastUpdatedDate <p>
343+
* Date and time that the alias was most recently associated with
344+
* a CMK in the account and Region. Formatted as Unix time.
345+
* </p>
346+
* @return A reference to this updated object so that method calls can be
347+
* chained together.
348+
*/
349+
public AliasListEntry withLastUpdatedDate(java.util.Date lastUpdatedDate) {
350+
this.lastUpdatedDate = lastUpdatedDate;
351+
return this;
352+
}
353+
231354
/**
232355
* Returns a string representation of this object; useful for testing and
233356
* debugging.
@@ -244,7 +367,11 @@ public String toString() {
244367
if (getAliasArn() != null)
245368
sb.append("AliasArn: " + getAliasArn() + ",");
246369
if (getTargetKeyId() != null)
247-
sb.append("TargetKeyId: " + getTargetKeyId());
370+
sb.append("TargetKeyId: " + getTargetKeyId() + ",");
371+
if (getCreationDate() != null)
372+
sb.append("CreationDate: " + getCreationDate() + ",");
373+
if (getLastUpdatedDate() != null)
374+
sb.append("LastUpdatedDate: " + getLastUpdatedDate());
248375
sb.append("}");
249376
return sb.toString();
250377
}
@@ -258,6 +385,10 @@ public int hashCode() {
258385
hashCode = prime * hashCode + ((getAliasArn() == null) ? 0 : getAliasArn().hashCode());
259386
hashCode = prime * hashCode
260387
+ ((getTargetKeyId() == null) ? 0 : getTargetKeyId().hashCode());
388+
hashCode = prime * hashCode
389+
+ ((getCreationDate() == null) ? 0 : getCreationDate().hashCode());
390+
hashCode = prime * hashCode
391+
+ ((getLastUpdatedDate() == null) ? 0 : getLastUpdatedDate().hashCode());
261392
return hashCode;
262393
}
263394

@@ -286,6 +417,16 @@ public boolean equals(Object obj) {
286417
if (other.getTargetKeyId() != null
287418
&& other.getTargetKeyId().equals(this.getTargetKeyId()) == false)
288419
return false;
420+
if (other.getCreationDate() == null ^ this.getCreationDate() == null)
421+
return false;
422+
if (other.getCreationDate() != null
423+
&& other.getCreationDate().equals(this.getCreationDate()) == false)
424+
return false;
425+
if (other.getLastUpdatedDate() == null ^ this.getLastUpdatedDate() == null)
426+
return false;
427+
if (other.getLastUpdatedDate() != null
428+
&& other.getLastUpdatedDate().equals(this.getLastUpdatedDate()) == false)
429+
return false;
289430
return true;
290431
}
291432
}

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/CancelKeyDeletionRequest.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@
2323
* <p>
2424
* Cancels the deletion of a customer master key (CMK). When this operation
2525
* succeeds, the key state of the CMK is <code>Disabled</code>. To enable the
26-
* CMK, use <a>EnableKey</a>. You cannot perform this operation on a CMK in a
27-
* different AWS account.
26+
* CMK, use <a>EnableKey</a>.
2827
* </p>
2928
* <p>
3029
* For more information about scheduling and canceling deletion of a CMK, see <a
@@ -40,6 +39,18 @@
4039
* >How Key State Affects Use of a Customer Master Key</a> in the <i>AWS Key
4140
* Management Service Developer Guide</i>.
4241
* </p>
42+
* <p>
43+
* <b>Cross-account use</b>: No. You cannot perform this operation on a CMK in a
44+
* different AWS account.
45+
* </p>
46+
* <p>
47+
* <b>Required permissions</b>: <a href=
48+
* "https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
49+
* >kms:CancelKeyDeletion</a> (key policy)
50+
* </p>
51+
* <p>
52+
* <b>Related operations</b>: <a>ScheduleKeyDeletion</a>
53+
* </p>
4354
*/
4455
public class CancelKeyDeletionRequest extends AmazonWebServiceRequest implements Serializable {
4556
/**

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/CancelKeyDeletionResult.java

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
public class CancelKeyDeletionResult implements Serializable {
2121
/**
2222
* <p>
23-
* The unique identifier of the master key for which deletion is canceled.
23+
* The Amazon Resource Name (<a href=
24+
* "https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN"
25+
* >key ARN</a>) of the CMK whose deletion is canceled.
2426
* </p>
2527
* <p>
2628
* <b>Constraints:</b><br/>
@@ -30,15 +32,18 @@ public class CancelKeyDeletionResult implements Serializable {
3032

3133
/**
3234
* <p>
33-
* The unique identifier of the master key for which deletion is canceled.
35+
* The Amazon Resource Name (<a href=
36+
* "https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN"
37+
* >key ARN</a>) of the CMK whose deletion is canceled.
3438
* </p>
3539
* <p>
3640
* <b>Constraints:</b><br/>
3741
* <b>Length: </b>1 - 2048<br/>
3842
*
3943
* @return <p>
40-
* The unique identifier of the master key for which deletion is
41-
* canceled.
44+
* The Amazon Resource Name (<a href=
45+
* "https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN"
46+
* >key ARN</a>) of the CMK whose deletion is canceled.
4247
* </p>
4348
*/
4449
public String getKeyId() {
@@ -47,15 +52,18 @@ public String getKeyId() {
4752

4853
/**
4954
* <p>
50-
* The unique identifier of the master key for which deletion is canceled.
55+
* The Amazon Resource Name (<a href=
56+
* "https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN"
57+
* >key ARN</a>) of the CMK whose deletion is canceled.
5158
* </p>
5259
* <p>
5360
* <b>Constraints:</b><br/>
5461
* <b>Length: </b>1 - 2048<br/>
5562
*
5663
* @param keyId <p>
57-
* The unique identifier of the master key for which deletion is
58-
* canceled.
64+
* The Amazon Resource Name (<a href=
65+
* "https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN"
66+
* >key ARN</a>) of the CMK whose deletion is canceled.
5967
* </p>
6068
*/
6169
public void setKeyId(String keyId) {
@@ -64,7 +72,9 @@ public void setKeyId(String keyId) {
6472

6573
/**
6674
* <p>
67-
* The unique identifier of the master key for which deletion is canceled.
75+
* The Amazon Resource Name (<a href=
76+
* "https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN"
77+
* >key ARN</a>) of the CMK whose deletion is canceled.
6878
* </p>
6979
* <p>
7080
* Returns a reference to this object so that method calls can be chained
@@ -74,8 +84,9 @@ public void setKeyId(String keyId) {
7484
* <b>Length: </b>1 - 2048<br/>
7585
*
7686
* @param keyId <p>
77-
* The unique identifier of the master key for which deletion is
78-
* canceled.
87+
* The Amazon Resource Name (<a href=
88+
* "https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id-key-ARN"
89+
* >key ARN</a>) of the CMK whose deletion is canceled.
7990
* </p>
8091
* @return A reference to this updated object so that method calls can be
8192
* chained together.

aws-android-sdk-kms/src/main/java/com/amazonaws/services/kms/model/ConnectCustomKeyStoreRequest.java

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,45 @@
7777
* >Troubleshooting a Custom Key Store</a> in the <i>AWS Key Management Service
7878
* Developer Guide</i>.
7979
* </p>
80+
* <p>
81+
* <b>Cross-account use</b>: No. You cannot perform this operation on a custom
82+
* key store in a different AWS account.
83+
* </p>
84+
* <p>
85+
* <b>Required permissions</b>: <a href=
86+
* "https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html"
87+
* >kms:ConnectCustomKeyStore</a> (IAM policy)
88+
* </p>
89+
* <p>
90+
* <b>Related operations</b>
91+
* </p>
92+
* <ul>
93+
* <li>
94+
* <p>
95+
* <a>CreateCustomKeyStore</a>
96+
* </p>
97+
* </li>
98+
* <li>
99+
* <p>
100+
* <a>DeleteCustomKeyStore</a>
101+
* </p>
102+
* </li>
103+
* <li>
104+
* <p>
105+
* <a>DescribeCustomKeyStores</a>
106+
* </p>
107+
* </li>
108+
* <li>
109+
* <p>
110+
* <a>DisconnectCustomKeyStore</a>
111+
* </p>
112+
* </li>
113+
* <li>
114+
* <p>
115+
* <a>UpdateCustomKeyStore</a>
116+
* </p>
117+
* </li>
118+
* </ul>
80119
*/
81120
public class ConnectCustomKeyStoreRequest extends AmazonWebServiceRequest implements Serializable {
82121
/**

0 commit comments

Comments
 (0)