Skip to content

Commit 8d645e2

Browse files
authored
feat(aws-android-sdk-iot): update models to latest (#2858)
1 parent 3bd2ae7 commit 8d645e2

13 files changed

+1431
-102
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5055,6 +5055,31 @@ ListManagedJobTemplatesResult listManagedJobTemplates(
50555055
ListManagedJobTemplatesRequest listManagedJobTemplatesRequest)
50565056
throws AmazonClientException, AmazonServiceException;
50575057

5058+
/**
5059+
* <p>
5060+
* Lists the values reported for an IoT Device Defender metric (device-side
5061+
* metric, cloud-side metric, or custom metric) by the given thing during
5062+
* the specified time period.
5063+
* </p>
5064+
*
5065+
* @param listMetricValuesRequest
5066+
* @return listMetricValuesResult The response from the ListMetricValues
5067+
* service method, as returned by AWS IoT.
5068+
* @throws InvalidRequestException
5069+
* @throws ThrottlingException
5070+
* @throws InternalFailureException
5071+
* @throws ResourceNotFoundException
5072+
* @throws AmazonClientException If any internal errors are encountered
5073+
* inside the client while attempting to make the request or
5074+
* handle the response. For example if a network connection is
5075+
* not available.
5076+
* @throws AmazonServiceException If an error response is returned by AWS
5077+
* IoT indicating either a problem with the data in the request,
5078+
* or a server side issue.
5079+
*/
5080+
ListMetricValuesResult listMetricValues(ListMetricValuesRequest listMetricValuesRequest)
5081+
throws AmazonClientException, AmazonServiceException;
5082+
50585083
/**
50595084
* <p>
50605085
* Gets a list of all mitigation actions that match the specified filter

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9405,6 +9405,57 @@ public ListManagedJobTemplatesResult listManagedJobTemplates(
94059405
}
94069406
}
94079407

9408+
/**
9409+
* <p>
9410+
* Lists the values reported for an IoT Device Defender metric (device-side
9411+
* metric, cloud-side metric, or custom metric) by the given thing during
9412+
* the specified time period.
9413+
* </p>
9414+
*
9415+
* @param listMetricValuesRequest
9416+
* @return listMetricValuesResult The response from the ListMetricValues
9417+
* service method, as returned by AWS IoT.
9418+
* @throws InvalidRequestException
9419+
* @throws ThrottlingException
9420+
* @throws InternalFailureException
9421+
* @throws ResourceNotFoundException
9422+
* @throws AmazonClientException If any internal errors are encountered
9423+
* inside the client while attempting to make the request or
9424+
* handle the response. For example if a network connection is
9425+
* not available.
9426+
* @throws AmazonServiceException If an error response is returned by AWS
9427+
* IoT indicating either a problem with the data in the request,
9428+
* or a server side issue.
9429+
*/
9430+
public ListMetricValuesResult listMetricValues(ListMetricValuesRequest listMetricValuesRequest)
9431+
throws AmazonServiceException, AmazonClientException {
9432+
ExecutionContext executionContext = createExecutionContext(listMetricValuesRequest);
9433+
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
9434+
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
9435+
Request<ListMetricValuesRequest> request = null;
9436+
Response<ListMetricValuesResult> response = null;
9437+
try {
9438+
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
9439+
try {
9440+
request = new ListMetricValuesRequestMarshaller().marshall(listMetricValuesRequest);
9441+
// Binds the request metrics to the current request.
9442+
request.setAWSRequestMetrics(awsRequestMetrics);
9443+
} finally {
9444+
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
9445+
}
9446+
Unmarshaller<ListMetricValuesResult, JsonUnmarshallerContext> unmarshaller = new ListMetricValuesResultJsonUnmarshaller();
9447+
JsonResponseHandler<ListMetricValuesResult> responseHandler = new JsonResponseHandler<ListMetricValuesResult>(
9448+
unmarshaller);
9449+
9450+
response = invoke(request, responseHandler, executionContext);
9451+
9452+
return response.getAwsResponse();
9453+
} finally {
9454+
awsRequestMetrics.endEvent(Field.ClientExecuteTime);
9455+
endClientExecution(awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
9456+
}
9457+
}
9458+
94089459
/**
94099460
* <p>
94109461
* Gets a list of all mitigation actions that match the specified filter

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public class ActiveViolation implements Serializable {
9696
* <p>
9797
* <b>Constraints:</b><br/>
9898
* <b>Length: </b> - 1000<br/>
99-
* <b>Pattern: </b>[\p{Graph}\x20]*<br/>
99+
* <b>Pattern: </b>[^\p{Cntrl}]*<br/>
100100
*/
101101
private String verificationStateDescription;
102102

@@ -534,7 +534,7 @@ public ActiveViolation withVerificationState(VerificationState verificationState
534534
* <p>
535535
* <b>Constraints:</b><br/>
536536
* <b>Length: </b> - 1000<br/>
537-
* <b>Pattern: </b>[\p{Graph}\x20]*<br/>
537+
* <b>Pattern: </b>[^\p{Cntrl}]*<br/>
538538
*
539539
* @return <p>
540540
* The description of the verification state of the violation.
@@ -551,7 +551,7 @@ public String getVerificationStateDescription() {
551551
* <p>
552552
* <b>Constraints:</b><br/>
553553
* <b>Length: </b> - 1000<br/>
554-
* <b>Pattern: </b>[\p{Graph}\x20]*<br/>
554+
* <b>Pattern: </b>[^\p{Cntrl}]*<br/>
555555
*
556556
* @param verificationStateDescription <p>
557557
* The description of the verification state of the violation.
@@ -571,7 +571,7 @@ public void setVerificationStateDescription(String verificationStateDescription)
571571
* <p>
572572
* <b>Constraints:</b><br/>
573573
* <b>Length: </b> - 1000<br/>
574-
* <b>Pattern: </b>[\p{Graph}\x20]*<br/>
574+
* <b>Pattern: </b>[^\p{Cntrl}]*<br/>
575575
*
576576
* @param verificationStateDescription <p>
577577
* The description of the verification state of the violation.

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

Lines changed: 14 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -39,24 +39,14 @@ public class CustomCodeSigning implements Serializable {
3939

4040
/**
4141
* <p>
42-
* The hash algorithm used to code sign the file. You can use a string as
43-
* the algorithm name if the target over-the-air (OTA) update devices are
44-
* able to verify the signature that was generated using the same signature
45-
* algorithm. For example, FreeRTOS uses <code>SHA256</code> or
46-
* <code>SHA1</code>, so you can pass either of them based on which was used
47-
* for generating the signature.
42+
* The hash algorithm used to code sign the file.
4843
* </p>
4944
*/
5045
private String hashAlgorithm;
5146

5247
/**
5348
* <p>
54-
* The signature algorithm used to code sign the file. You can use a string
55-
* as the algorithm name if the target over-the-air (OTA) update devices are
56-
* able to verify the signature that was generated using the same signature
57-
* algorithm. For example, FreeRTOS uses <code>ECDSA</code> or
58-
* <code>RSA</code>, so you can pass either of them based on which was used
59-
* for generating the signature.
49+
* The signature algorithm used to code sign the file.
6050
* </p>
6151
*/
6252
private String signatureAlgorithm;
@@ -153,22 +143,11 @@ public CustomCodeSigning withCertificateChain(CodeSigningCertificateChain certif
153143

154144
/**
155145
* <p>
156-
* The hash algorithm used to code sign the file. You can use a string as
157-
* the algorithm name if the target over-the-air (OTA) update devices are
158-
* able to verify the signature that was generated using the same signature
159-
* algorithm. For example, FreeRTOS uses <code>SHA256</code> or
160-
* <code>SHA1</code>, so you can pass either of them based on which was used
161-
* for generating the signature.
146+
* The hash algorithm used to code sign the file.
162147
* </p>
163148
*
164149
* @return <p>
165-
* The hash algorithm used to code sign the file. You can use a
166-
* string as the algorithm name if the target over-the-air (OTA)
167-
* update devices are able to verify the signature that was
168-
* generated using the same signature algorithm. For example,
169-
* FreeRTOS uses <code>SHA256</code> or <code>SHA1</code>, so you
170-
* can pass either of them based on which was used for generating
171-
* the signature.
150+
* The hash algorithm used to code sign the file.
172151
* </p>
173152
*/
174153
public String getHashAlgorithm() {
@@ -177,22 +156,11 @@ public String getHashAlgorithm() {
177156

178157
/**
179158
* <p>
180-
* The hash algorithm used to code sign the file. You can use a string as
181-
* the algorithm name if the target over-the-air (OTA) update devices are
182-
* able to verify the signature that was generated using the same signature
183-
* algorithm. For example, FreeRTOS uses <code>SHA256</code> or
184-
* <code>SHA1</code>, so you can pass either of them based on which was used
185-
* for generating the signature.
159+
* The hash algorithm used to code sign the file.
186160
* </p>
187161
*
188162
* @param hashAlgorithm <p>
189-
* The hash algorithm used to code sign the file. You can use a
190-
* string as the algorithm name if the target over-the-air (OTA)
191-
* update devices are able to verify the signature that was
192-
* generated using the same signature algorithm. For example,
193-
* FreeRTOS uses <code>SHA256</code> or <code>SHA1</code>, so you
194-
* can pass either of them based on which was used for generating
195-
* the signature.
163+
* The hash algorithm used to code sign the file.
196164
* </p>
197165
*/
198166
public void setHashAlgorithm(String hashAlgorithm) {
@@ -201,25 +169,14 @@ public void setHashAlgorithm(String hashAlgorithm) {
201169

202170
/**
203171
* <p>
204-
* The hash algorithm used to code sign the file. You can use a string as
205-
* the algorithm name if the target over-the-air (OTA) update devices are
206-
* able to verify the signature that was generated using the same signature
207-
* algorithm. For example, FreeRTOS uses <code>SHA256</code> or
208-
* <code>SHA1</code>, so you can pass either of them based on which was used
209-
* for generating the signature.
172+
* The hash algorithm used to code sign the file.
210173
* </p>
211174
* <p>
212175
* Returns a reference to this object so that method calls can be chained
213176
* together.
214177
*
215178
* @param hashAlgorithm <p>
216-
* The hash algorithm used to code sign the file. You can use a
217-
* string as the algorithm name if the target over-the-air (OTA)
218-
* update devices are able to verify the signature that was
219-
* generated using the same signature algorithm. For example,
220-
* FreeRTOS uses <code>SHA256</code> or <code>SHA1</code>, so you
221-
* can pass either of them based on which was used for generating
222-
* the signature.
179+
* The hash algorithm used to code sign the file.
223180
* </p>
224181
* @return A reference to this updated object so that method calls can be
225182
* chained together.
@@ -231,22 +188,11 @@ public CustomCodeSigning withHashAlgorithm(String hashAlgorithm) {
231188

232189
/**
233190
* <p>
234-
* The signature algorithm used to code sign the file. You can use a string
235-
* as the algorithm name if the target over-the-air (OTA) update devices are
236-
* able to verify the signature that was generated using the same signature
237-
* algorithm. For example, FreeRTOS uses <code>ECDSA</code> or
238-
* <code>RSA</code>, so you can pass either of them based on which was used
239-
* for generating the signature.
191+
* The signature algorithm used to code sign the file.
240192
* </p>
241193
*
242194
* @return <p>
243-
* The signature algorithm used to code sign the file. You can use a
244-
* string as the algorithm name if the target over-the-air (OTA)
245-
* update devices are able to verify the signature that was
246-
* generated using the same signature algorithm. For example,
247-
* FreeRTOS uses <code>ECDSA</code> or <code>RSA</code>, so you can
248-
* pass either of them based on which was used for generating the
249-
* signature.
195+
* The signature algorithm used to code sign the file.
250196
* </p>
251197
*/
252198
public String getSignatureAlgorithm() {
@@ -255,22 +201,11 @@ public String getSignatureAlgorithm() {
255201

256202
/**
257203
* <p>
258-
* The signature algorithm used to code sign the file. You can use a string
259-
* as the algorithm name if the target over-the-air (OTA) update devices are
260-
* able to verify the signature that was generated using the same signature
261-
* algorithm. For example, FreeRTOS uses <code>ECDSA</code> or
262-
* <code>RSA</code>, so you can pass either of them based on which was used
263-
* for generating the signature.
204+
* The signature algorithm used to code sign the file.
264205
* </p>
265206
*
266207
* @param signatureAlgorithm <p>
267-
* The signature algorithm used to code sign the file. You can
268-
* use a string as the algorithm name if the target over-the-air
269-
* (OTA) update devices are able to verify the signature that was
270-
* generated using the same signature algorithm. For example,
271-
* FreeRTOS uses <code>ECDSA</code> or <code>RSA</code>, so you
272-
* can pass either of them based on which was used for generating
273-
* the signature.
208+
* The signature algorithm used to code sign the file.
274209
* </p>
275210
*/
276211
public void setSignatureAlgorithm(String signatureAlgorithm) {
@@ -279,25 +214,14 @@ public void setSignatureAlgorithm(String signatureAlgorithm) {
279214

280215
/**
281216
* <p>
282-
* The signature algorithm used to code sign the file. You can use a string
283-
* as the algorithm name if the target over-the-air (OTA) update devices are
284-
* able to verify the signature that was generated using the same signature
285-
* algorithm. For example, FreeRTOS uses <code>ECDSA</code> or
286-
* <code>RSA</code>, so you can pass either of them based on which was used
287-
* for generating the signature.
217+
* The signature algorithm used to code sign the file.
288218
* </p>
289219
* <p>
290220
* Returns a reference to this object so that method calls can be chained
291221
* together.
292222
*
293223
* @param signatureAlgorithm <p>
294-
* The signature algorithm used to code sign the file. You can
295-
* use a string as the algorithm name if the target over-the-air
296-
* (OTA) update devices are able to verify the signature that was
297-
* generated using the same signature algorithm. For example,
298-
* FreeRTOS uses <code>ECDSA</code> or <code>RSA</code>, so you
299-
* can pass either of them based on which was used for generating
300-
* the signature.
224+
* The signature algorithm used to code sign the file.
301225
* </p>
302226
* @return A reference to this updated object so that method calls can be
303227
* chained together.

0 commit comments

Comments
 (0)