id
int32 0
165k
| repo
stringlengths 7
58
| path
stringlengths 12
218
| func_name
stringlengths 3
140
| original_string
stringlengths 73
34.1k
| language
stringclasses 1
value | code
stringlengths 73
34.1k
| code_tokens
list | docstring
stringlengths 3
16k
| docstring_tokens
list | sha
stringlengths 40
40
| url
stringlengths 105
339
|
|---|---|---|---|---|---|---|---|---|---|---|---|
19,800
|
aws/aws-sdk-java
|
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/waiters/AmazonElastiCacheWaiters.java
|
AmazonElastiCacheWaiters.replicationGroupAvailable
|
public Waiter<DescribeReplicationGroupsRequest> replicationGroupAvailable() {
return new WaiterBuilder<DescribeReplicationGroupsRequest, DescribeReplicationGroupsResult>()
.withSdkFunction(new DescribeReplicationGroupsFunction(client))
.withAcceptors(new ReplicationGroupAvailable.IsAvailableMatcher(), new ReplicationGroupAvailable.IsDeletedMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeReplicationGroupsRequest> replicationGroupAvailable() {
return new WaiterBuilder<DescribeReplicationGroupsRequest, DescribeReplicationGroupsResult>()
.withSdkFunction(new DescribeReplicationGroupsFunction(client))
.withAcceptors(new ReplicationGroupAvailable.IsAvailableMatcher(), new ReplicationGroupAvailable.IsDeletedMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeReplicationGroupsRequest",
">",
"replicationGroupAvailable",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeReplicationGroupsRequest",
",",
"DescribeReplicationGroupsResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeReplicationGroupsFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"ReplicationGroupAvailable",
".",
"IsAvailableMatcher",
"(",
")",
",",
"new",
"ReplicationGroupAvailable",
".",
"IsDeletedMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"40",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"15",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a ReplicationGroupAvailable waiter by using custom parameters waiterParameters and other parameters
defined in the waiters specification, and then polls until it determines whether the resource entered the desired
state or not, where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"ReplicationGroupAvailable",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/waiters/AmazonElastiCacheWaiters.java#L68-L75
|
19,801
|
aws/aws-sdk-java
|
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/waiters/AmazonElastiCacheWaiters.java
|
AmazonElastiCacheWaiters.cacheClusterAvailable
|
public Waiter<DescribeCacheClustersRequest> cacheClusterAvailable() {
return new WaiterBuilder<DescribeCacheClustersRequest, DescribeCacheClustersResult>()
.withSdkFunction(new DescribeCacheClustersFunction(client))
.withAcceptors(new CacheClusterAvailable.IsAvailableMatcher(), new CacheClusterAvailable.IsDeletedMatcher(),
new CacheClusterAvailable.IsDeletingMatcher(), new CacheClusterAvailable.IsIncompatiblenetworkMatcher(),
new CacheClusterAvailable.IsRestorefailedMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeCacheClustersRequest> cacheClusterAvailable() {
return new WaiterBuilder<DescribeCacheClustersRequest, DescribeCacheClustersResult>()
.withSdkFunction(new DescribeCacheClustersFunction(client))
.withAcceptors(new CacheClusterAvailable.IsAvailableMatcher(), new CacheClusterAvailable.IsDeletedMatcher(),
new CacheClusterAvailable.IsDeletingMatcher(), new CacheClusterAvailable.IsIncompatiblenetworkMatcher(),
new CacheClusterAvailable.IsRestorefailedMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeCacheClustersRequest",
">",
"cacheClusterAvailable",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeCacheClustersRequest",
",",
"DescribeCacheClustersResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeCacheClustersFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"CacheClusterAvailable",
".",
"IsAvailableMatcher",
"(",
")",
",",
"new",
"CacheClusterAvailable",
".",
"IsDeletedMatcher",
"(",
")",
",",
"new",
"CacheClusterAvailable",
".",
"IsDeletingMatcher",
"(",
")",
",",
"new",
"CacheClusterAvailable",
".",
"IsIncompatiblenetworkMatcher",
"(",
")",
",",
"new",
"CacheClusterAvailable",
".",
"IsRestorefailedMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"40",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"15",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a CacheClusterAvailable waiter by using custom parameters waiterParameters and other parameters defined in
the waiters specification, and then polls until it determines whether the resource entered the desired state or
not, where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"CacheClusterAvailable",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/waiters/AmazonElastiCacheWaiters.java#L82-L91
|
19,802
|
aws/aws-sdk-java
|
aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/waiters/AmazonElastiCacheWaiters.java
|
AmazonElastiCacheWaiters.replicationGroupDeleted
|
public Waiter<DescribeReplicationGroupsRequest> replicationGroupDeleted() {
return new WaiterBuilder<DescribeReplicationGroupsRequest, DescribeReplicationGroupsResult>()
.withSdkFunction(new DescribeReplicationGroupsFunction(client))
.withAcceptors(new ReplicationGroupDeleted.IsDeletedMatcher(), new ReplicationGroupDeleted.IsAvailableMatcher(),
new ReplicationGroupDeleted.IsReplicationGroupNotFoundFaultMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeReplicationGroupsRequest> replicationGroupDeleted() {
return new WaiterBuilder<DescribeReplicationGroupsRequest, DescribeReplicationGroupsResult>()
.withSdkFunction(new DescribeReplicationGroupsFunction(client))
.withAcceptors(new ReplicationGroupDeleted.IsDeletedMatcher(), new ReplicationGroupDeleted.IsAvailableMatcher(),
new ReplicationGroupDeleted.IsReplicationGroupNotFoundFaultMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeReplicationGroupsRequest",
">",
"replicationGroupDeleted",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeReplicationGroupsRequest",
",",
"DescribeReplicationGroupsResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeReplicationGroupsFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"ReplicationGroupDeleted",
".",
"IsDeletedMatcher",
"(",
")",
",",
"new",
"ReplicationGroupDeleted",
".",
"IsAvailableMatcher",
"(",
")",
",",
"new",
"ReplicationGroupDeleted",
".",
"IsReplicationGroupNotFoundFaultMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"40",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"15",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a ReplicationGroupDeleted waiter by using custom parameters waiterParameters and other parameters defined
in the waiters specification, and then polls until it determines whether the resource entered the desired state
or not, where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"ReplicationGroupDeleted",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticache/src/main/java/com/amazonaws/services/elasticache/waiters/AmazonElastiCacheWaiters.java#L98-L106
|
19,803
|
aws/aws-sdk-java
|
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ExportJobsResponse.java
|
ExportJobsResponse.setItem
|
public void setItem(java.util.Collection<ExportJobResponse> item) {
if (item == null) {
this.item = null;
return;
}
this.item = new java.util.ArrayList<ExportJobResponse>(item);
}
|
java
|
public void setItem(java.util.Collection<ExportJobResponse> item) {
if (item == null) {
this.item = null;
return;
}
this.item = new java.util.ArrayList<ExportJobResponse>(item);
}
|
[
"public",
"void",
"setItem",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"ExportJobResponse",
">",
"item",
")",
"{",
"if",
"(",
"item",
"==",
"null",
")",
"{",
"this",
".",
"item",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"item",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"ExportJobResponse",
">",
"(",
"item",
")",
";",
"}"
] |
A list of export jobs for the application.
@param item
A list of export jobs for the application.
|
[
"A",
"list",
"of",
"export",
"jobs",
"for",
"the",
"application",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ExportJobsResponse.java#L51-L58
|
19,804
|
aws/aws-sdk-java
|
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/AmazonRoute53AsyncClient.java
|
AmazonRoute53AsyncClient.getHealthCheckCountAsync
|
@Override
public java.util.concurrent.Future<GetHealthCheckCountResult> getHealthCheckCountAsync(
com.amazonaws.handlers.AsyncHandler<GetHealthCheckCountRequest, GetHealthCheckCountResult> asyncHandler) {
return getHealthCheckCountAsync(new GetHealthCheckCountRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<GetHealthCheckCountResult> getHealthCheckCountAsync(
com.amazonaws.handlers.AsyncHandler<GetHealthCheckCountRequest, GetHealthCheckCountResult> asyncHandler) {
return getHealthCheckCountAsync(new GetHealthCheckCountRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"GetHealthCheckCountResult",
">",
"getHealthCheckCountAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"GetHealthCheckCountRequest",
",",
"GetHealthCheckCountResult",
">",
"asyncHandler",
")",
"{",
"return",
"getHealthCheckCountAsync",
"(",
"new",
"GetHealthCheckCountRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the GetHealthCheckCount operation with an AsyncHandler.
@see #getHealthCheckCountAsync(GetHealthCheckCountRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"GetHealthCheckCount",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/AmazonRoute53AsyncClient.java#L1138-L1143
|
19,805
|
aws/aws-sdk-java
|
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/AmazonRoute53AsyncClient.java
|
AmazonRoute53AsyncClient.listHostedZonesAsync
|
@Override
public java.util.concurrent.Future<ListHostedZonesResult> listHostedZonesAsync(
com.amazonaws.handlers.AsyncHandler<ListHostedZonesRequest, ListHostedZonesResult> asyncHandler) {
return listHostedZonesAsync(new ListHostedZonesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListHostedZonesResult> listHostedZonesAsync(
com.amazonaws.handlers.AsyncHandler<ListHostedZonesRequest, ListHostedZonesResult> asyncHandler) {
return listHostedZonesAsync(new ListHostedZonesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListHostedZonesResult",
">",
"listHostedZonesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListHostedZonesRequest",
",",
"ListHostedZonesResult",
">",
"asyncHandler",
")",
"{",
"return",
"listHostedZonesAsync",
"(",
"new",
"ListHostedZonesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListHostedZones operation with an AsyncHandler.
@see #listHostedZonesAsync(ListHostedZonesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListHostedZones",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/AmazonRoute53AsyncClient.java#L1720-L1725
|
19,806
|
aws/aws-sdk-java
|
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/AmazonRoute53AsyncClient.java
|
AmazonRoute53AsyncClient.listTrafficPolicyInstancesAsync
|
@Override
public java.util.concurrent.Future<ListTrafficPolicyInstancesResult> listTrafficPolicyInstancesAsync(
com.amazonaws.handlers.AsyncHandler<ListTrafficPolicyInstancesRequest, ListTrafficPolicyInstancesResult> asyncHandler) {
return listTrafficPolicyInstancesAsync(new ListTrafficPolicyInstancesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListTrafficPolicyInstancesResult> listTrafficPolicyInstancesAsync(
com.amazonaws.handlers.AsyncHandler<ListTrafficPolicyInstancesRequest, ListTrafficPolicyInstancesResult> asyncHandler) {
return listTrafficPolicyInstancesAsync(new ListTrafficPolicyInstancesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListTrafficPolicyInstancesResult",
">",
"listTrafficPolicyInstancesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListTrafficPolicyInstancesRequest",
",",
"ListTrafficPolicyInstancesResult",
">",
"asyncHandler",
")",
"{",
"return",
"listTrafficPolicyInstancesAsync",
"(",
"new",
"ListTrafficPolicyInstancesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListTrafficPolicyInstances operation with an AsyncHandler.
@see #listTrafficPolicyInstancesAsync(ListTrafficPolicyInstancesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListTrafficPolicyInstances",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53/AmazonRoute53AsyncClient.java#L2076-L2081
|
19,807
|
aws/aws-sdk-java
|
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AbstractAmazonAutoScalingAsync.java
|
AbstractAmazonAutoScalingAsync.describeMetricCollectionTypesAsync
|
@Override
public java.util.concurrent.Future<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(
com.amazonaws.handlers.AsyncHandler<DescribeMetricCollectionTypesRequest, DescribeMetricCollectionTypesResult> asyncHandler) {
return describeMetricCollectionTypesAsync(new DescribeMetricCollectionTypesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(
com.amazonaws.handlers.AsyncHandler<DescribeMetricCollectionTypesRequest, DescribeMetricCollectionTypesResult> asyncHandler) {
return describeMetricCollectionTypesAsync(new DescribeMetricCollectionTypesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeMetricCollectionTypesResult",
">",
"describeMetricCollectionTypesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeMetricCollectionTypesRequest",
",",
"DescribeMetricCollectionTypesResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeMetricCollectionTypesAsync",
"(",
"new",
"DescribeMetricCollectionTypesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeMetricCollectionTypes operation with an AsyncHandler.
@see #describeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest,
com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeMetricCollectionTypes",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AbstractAmazonAutoScalingAsync.java#L591-L596
|
19,808
|
aws/aws-sdk-java
|
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AbstractAmazonAutoScalingAsync.java
|
AbstractAmazonAutoScalingAsync.describePoliciesAsync
|
@Override
public java.util.concurrent.Future<DescribePoliciesResult> describePoliciesAsync(
com.amazonaws.handlers.AsyncHandler<DescribePoliciesRequest, DescribePoliciesResult> asyncHandler) {
return describePoliciesAsync(new DescribePoliciesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribePoliciesResult> describePoliciesAsync(
com.amazonaws.handlers.AsyncHandler<DescribePoliciesRequest, DescribePoliciesResult> asyncHandler) {
return describePoliciesAsync(new DescribePoliciesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribePoliciesResult",
">",
"describePoliciesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribePoliciesRequest",
",",
"DescribePoliciesResult",
">",
"asyncHandler",
")",
"{",
"return",
"describePoliciesAsync",
"(",
"new",
"DescribePoliciesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribePolicies operation with an AsyncHandler.
@see #describePoliciesAsync(DescribePoliciesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribePolicies",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AbstractAmazonAutoScalingAsync.java#L666-L671
|
19,809
|
aws/aws-sdk-java
|
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AbstractAmazonAutoScalingAsync.java
|
AbstractAmazonAutoScalingAsync.describeScalingProcessTypesAsync
|
@Override
public java.util.concurrent.Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(
com.amazonaws.handlers.AsyncHandler<DescribeScalingProcessTypesRequest, DescribeScalingProcessTypesResult> asyncHandler) {
return describeScalingProcessTypesAsync(new DescribeScalingProcessTypesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(
com.amazonaws.handlers.AsyncHandler<DescribeScalingProcessTypesRequest, DescribeScalingProcessTypesResult> asyncHandler) {
return describeScalingProcessTypesAsync(new DescribeScalingProcessTypesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeScalingProcessTypesResult",
">",
"describeScalingProcessTypesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeScalingProcessTypesRequest",
",",
"DescribeScalingProcessTypesResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeScalingProcessTypesAsync",
"(",
"new",
"DescribeScalingProcessTypesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeScalingProcessTypes operation with an AsyncHandler.
@see #describeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeScalingProcessTypes",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AbstractAmazonAutoScalingAsync.java#L738-L743
|
19,810
|
aws/aws-sdk-java
|
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/waiters/AmazonElasticMapReduceWaiters.java
|
AmazonElasticMapReduceWaiters.clusterRunning
|
public Waiter<DescribeClusterRequest> clusterRunning() {
return new WaiterBuilder<DescribeClusterRequest, DescribeClusterResult>()
.withSdkFunction(new DescribeClusterFunction(client))
.withAcceptors(new ClusterRunning.IsRUNNINGMatcher(), new ClusterRunning.IsWAITINGMatcher(), new ClusterRunning.IsTERMINATINGMatcher(),
new ClusterRunning.IsTERMINATEDMatcher(), new ClusterRunning.IsTERMINATED_WITH_ERRORSMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeClusterRequest> clusterRunning() {
return new WaiterBuilder<DescribeClusterRequest, DescribeClusterResult>()
.withSdkFunction(new DescribeClusterFunction(client))
.withAcceptors(new ClusterRunning.IsRUNNINGMatcher(), new ClusterRunning.IsWAITINGMatcher(), new ClusterRunning.IsTERMINATINGMatcher(),
new ClusterRunning.IsTERMINATEDMatcher(), new ClusterRunning.IsTERMINATED_WITH_ERRORSMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeClusterRequest",
">",
"clusterRunning",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeClusterRequest",
",",
"DescribeClusterResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeClusterFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"ClusterRunning",
".",
"IsRUNNINGMatcher",
"(",
")",
",",
"new",
"ClusterRunning",
".",
"IsWAITINGMatcher",
"(",
")",
",",
"new",
"ClusterRunning",
".",
"IsTERMINATINGMatcher",
"(",
")",
",",
"new",
"ClusterRunning",
".",
"IsTERMINATEDMatcher",
"(",
")",
",",
"new",
"ClusterRunning",
".",
"IsTERMINATED_WITH_ERRORSMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"60",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"30",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a ClusterRunning waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"ClusterRunning",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/waiters/AmazonElasticMapReduceWaiters.java#L51-L59
|
19,811
|
aws/aws-sdk-java
|
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/waiters/AmazonElasticMapReduceWaiters.java
|
AmazonElasticMapReduceWaiters.stepComplete
|
public Waiter<DescribeStepRequest> stepComplete() {
return new WaiterBuilder<DescribeStepRequest, DescribeStepResult>().withSdkFunction(new DescribeStepFunction(client))
.withAcceptors(new StepComplete.IsCOMPLETEDMatcher(), new StepComplete.IsFAILEDMatcher(), new StepComplete.IsCANCELLEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeStepRequest> stepComplete() {
return new WaiterBuilder<DescribeStepRequest, DescribeStepResult>().withSdkFunction(new DescribeStepFunction(client))
.withAcceptors(new StepComplete.IsCOMPLETEDMatcher(), new StepComplete.IsFAILEDMatcher(), new StepComplete.IsCANCELLEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeStepRequest",
">",
"stepComplete",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeStepRequest",
",",
"DescribeStepResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeStepFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"StepComplete",
".",
"IsCOMPLETEDMatcher",
"(",
")",
",",
"new",
"StepComplete",
".",
"IsFAILEDMatcher",
"(",
")",
",",
"new",
"StepComplete",
".",
"IsCANCELLEDMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"60",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"30",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a StepComplete waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"StepComplete",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/waiters/AmazonElasticMapReduceWaiters.java#L66-L72
|
19,812
|
aws/aws-sdk-java
|
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/waiters/AmazonElasticMapReduceWaiters.java
|
AmazonElasticMapReduceWaiters.clusterTerminated
|
public Waiter<DescribeClusterRequest> clusterTerminated() {
return new WaiterBuilder<DescribeClusterRequest, DescribeClusterResult>().withSdkFunction(new DescribeClusterFunction(client))
.withAcceptors(new ClusterTerminated.IsTERMINATEDMatcher(), new ClusterTerminated.IsTERMINATED_WITH_ERRORSMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeClusterRequest> clusterTerminated() {
return new WaiterBuilder<DescribeClusterRequest, DescribeClusterResult>().withSdkFunction(new DescribeClusterFunction(client))
.withAcceptors(new ClusterTerminated.IsTERMINATEDMatcher(), new ClusterTerminated.IsTERMINATED_WITH_ERRORSMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeClusterRequest",
">",
"clusterTerminated",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeClusterRequest",
",",
"DescribeClusterResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeClusterFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"ClusterTerminated",
".",
"IsTERMINATEDMatcher",
"(",
")",
",",
"new",
"ClusterTerminated",
".",
"IsTERMINATED_WITH_ERRORSMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"60",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"30",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a ClusterTerminated waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"ClusterTerminated",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/waiters/AmazonElasticMapReduceWaiters.java#L79-L85
|
19,813
|
aws/aws-sdk-java
|
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java
|
AmazonCloudFormationWaiters.stackExists
|
public Waiter<DescribeStacksRequest> stackExists() {
return new WaiterBuilder<DescribeStacksRequest, DescribeStacksResult>().withSdkFunction(new DescribeStacksFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new StackExists.IsValidationErrorMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(20), new FixedDelayStrategy(5)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeStacksRequest> stackExists() {
return new WaiterBuilder<DescribeStacksRequest, DescribeStacksResult>().withSdkFunction(new DescribeStacksFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new StackExists.IsValidationErrorMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(20), new FixedDelayStrategy(5)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeStacksRequest",
">",
"stackExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeStacksRequest",
",",
"DescribeStacksResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeStacksFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"HttpSuccessStatusAcceptor",
"(",
"WaiterState",
".",
"SUCCESS",
")",
",",
"new",
"StackExists",
".",
"IsValidationErrorMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"20",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"5",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a StackExists waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"StackExists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java#L51-L57
|
19,814
|
aws/aws-sdk-java
|
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java
|
AmazonCloudFormationWaiters.stackCreateComplete
|
public Waiter<DescribeStacksRequest> stackCreateComplete() {
return new WaiterBuilder<DescribeStacksRequest, DescribeStacksResult>()
.withSdkFunction(new DescribeStacksFunction(client))
.withAcceptors(new StackCreateComplete.IsCREATE_COMPLETEMatcher(), new StackCreateComplete.IsCREATE_FAILEDMatcher(),
new StackCreateComplete.IsDELETE_COMPLETEMatcher(), new StackCreateComplete.IsDELETE_FAILEDMatcher(),
new StackCreateComplete.IsROLLBACK_FAILEDMatcher(), new StackCreateComplete.IsROLLBACK_COMPLETEMatcher(),
new StackCreateComplete.IsValidationErrorMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeStacksRequest> stackCreateComplete() {
return new WaiterBuilder<DescribeStacksRequest, DescribeStacksResult>()
.withSdkFunction(new DescribeStacksFunction(client))
.withAcceptors(new StackCreateComplete.IsCREATE_COMPLETEMatcher(), new StackCreateComplete.IsCREATE_FAILEDMatcher(),
new StackCreateComplete.IsDELETE_COMPLETEMatcher(), new StackCreateComplete.IsDELETE_FAILEDMatcher(),
new StackCreateComplete.IsROLLBACK_FAILEDMatcher(), new StackCreateComplete.IsROLLBACK_COMPLETEMatcher(),
new StackCreateComplete.IsValidationErrorMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeStacksRequest",
">",
"stackCreateComplete",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeStacksRequest",
",",
"DescribeStacksResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeStacksFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"StackCreateComplete",
".",
"IsCREATE_COMPLETEMatcher",
"(",
")",
",",
"new",
"StackCreateComplete",
".",
"IsCREATE_FAILEDMatcher",
"(",
")",
",",
"new",
"StackCreateComplete",
".",
"IsDELETE_COMPLETEMatcher",
"(",
")",
",",
"new",
"StackCreateComplete",
".",
"IsDELETE_FAILEDMatcher",
"(",
")",
",",
"new",
"StackCreateComplete",
".",
"IsROLLBACK_FAILEDMatcher",
"(",
")",
",",
"new",
"StackCreateComplete",
".",
"IsROLLBACK_COMPLETEMatcher",
"(",
")",
",",
"new",
"StackCreateComplete",
".",
"IsValidationErrorMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"120",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"30",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a StackCreateComplete waiter by using custom parameters waiterParameters and other parameters defined in
the waiters specification, and then polls until it determines whether the resource entered the desired state or
not, where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"StackCreateComplete",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java#L64-L74
|
19,815
|
aws/aws-sdk-java
|
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java
|
AmazonCloudFormationWaiters.changeSetCreateComplete
|
public Waiter<DescribeChangeSetRequest> changeSetCreateComplete() {
return new WaiterBuilder<DescribeChangeSetRequest, DescribeChangeSetResult>()
.withSdkFunction(new DescribeChangeSetFunction(client))
.withAcceptors(new ChangeSetCreateComplete.IsCREATE_COMPLETEMatcher(), new ChangeSetCreateComplete.IsFAILEDMatcher(),
new ChangeSetCreateComplete.IsValidationErrorMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeChangeSetRequest> changeSetCreateComplete() {
return new WaiterBuilder<DescribeChangeSetRequest, DescribeChangeSetResult>()
.withSdkFunction(new DescribeChangeSetFunction(client))
.withAcceptors(new ChangeSetCreateComplete.IsCREATE_COMPLETEMatcher(), new ChangeSetCreateComplete.IsFAILEDMatcher(),
new ChangeSetCreateComplete.IsValidationErrorMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeChangeSetRequest",
">",
"changeSetCreateComplete",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeChangeSetRequest",
",",
"DescribeChangeSetResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeChangeSetFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"ChangeSetCreateComplete",
".",
"IsCREATE_COMPLETEMatcher",
"(",
")",
",",
"new",
"ChangeSetCreateComplete",
".",
"IsFAILEDMatcher",
"(",
")",
",",
"new",
"ChangeSetCreateComplete",
".",
"IsValidationErrorMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"120",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"30",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a ChangeSetCreateComplete waiter by using custom parameters waiterParameters and other parameters defined
in the waiters specification, and then polls until it determines whether the resource entered the desired state
or not, where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"ChangeSetCreateComplete",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java#L81-L89
|
19,816
|
aws/aws-sdk-java
|
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java
|
AmazonCloudFormationWaiters.stackDeleteComplete
|
public Waiter<DescribeStacksRequest> stackDeleteComplete() {
return new WaiterBuilder<DescribeStacksRequest, DescribeStacksResult>()
.withSdkFunction(new DescribeStacksFunction(client))
.withAcceptors(new StackDeleteComplete.IsDELETE_COMPLETEMatcher(), new StackDeleteComplete.IsValidationErrorMatcher(),
new StackDeleteComplete.IsDELETE_FAILEDMatcher(), new StackDeleteComplete.IsCREATE_FAILEDMatcher(),
new StackDeleteComplete.IsROLLBACK_FAILEDMatcher(), new StackDeleteComplete.IsUPDATE_ROLLBACK_FAILEDMatcher(),
new StackDeleteComplete.IsUPDATE_ROLLBACK_IN_PROGRESSMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeStacksRequest> stackDeleteComplete() {
return new WaiterBuilder<DescribeStacksRequest, DescribeStacksResult>()
.withSdkFunction(new DescribeStacksFunction(client))
.withAcceptors(new StackDeleteComplete.IsDELETE_COMPLETEMatcher(), new StackDeleteComplete.IsValidationErrorMatcher(),
new StackDeleteComplete.IsDELETE_FAILEDMatcher(), new StackDeleteComplete.IsCREATE_FAILEDMatcher(),
new StackDeleteComplete.IsROLLBACK_FAILEDMatcher(), new StackDeleteComplete.IsUPDATE_ROLLBACK_FAILEDMatcher(),
new StackDeleteComplete.IsUPDATE_ROLLBACK_IN_PROGRESSMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeStacksRequest",
">",
"stackDeleteComplete",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeStacksRequest",
",",
"DescribeStacksResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeStacksFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"StackDeleteComplete",
".",
"IsDELETE_COMPLETEMatcher",
"(",
")",
",",
"new",
"StackDeleteComplete",
".",
"IsValidationErrorMatcher",
"(",
")",
",",
"new",
"StackDeleteComplete",
".",
"IsDELETE_FAILEDMatcher",
"(",
")",
",",
"new",
"StackDeleteComplete",
".",
"IsCREATE_FAILEDMatcher",
"(",
")",
",",
"new",
"StackDeleteComplete",
".",
"IsROLLBACK_FAILEDMatcher",
"(",
")",
",",
"new",
"StackDeleteComplete",
".",
"IsUPDATE_ROLLBACK_FAILEDMatcher",
"(",
")",
",",
"new",
"StackDeleteComplete",
".",
"IsUPDATE_ROLLBACK_IN_PROGRESSMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"120",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"30",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a StackDeleteComplete waiter by using custom parameters waiterParameters and other parameters defined in
the waiters specification, and then polls until it determines whether the resource entered the desired state or
not, where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"StackDeleteComplete",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java#L96-L106
|
19,817
|
aws/aws-sdk-java
|
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java
|
AmazonCloudFormationWaiters.stackUpdateComplete
|
public Waiter<DescribeStacksRequest> stackUpdateComplete() {
return new WaiterBuilder<DescribeStacksRequest, DescribeStacksResult>()
.withSdkFunction(new DescribeStacksFunction(client))
.withAcceptors(new StackUpdateComplete.IsUPDATE_COMPLETEMatcher(), new StackUpdateComplete.IsUPDATE_FAILEDMatcher(),
new StackUpdateComplete.IsUPDATE_ROLLBACK_FAILEDMatcher(), new StackUpdateComplete.IsUPDATE_ROLLBACK_COMPLETEMatcher(),
new StackUpdateComplete.IsValidationErrorMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeStacksRequest> stackUpdateComplete() {
return new WaiterBuilder<DescribeStacksRequest, DescribeStacksResult>()
.withSdkFunction(new DescribeStacksFunction(client))
.withAcceptors(new StackUpdateComplete.IsUPDATE_COMPLETEMatcher(), new StackUpdateComplete.IsUPDATE_FAILEDMatcher(),
new StackUpdateComplete.IsUPDATE_ROLLBACK_FAILEDMatcher(), new StackUpdateComplete.IsUPDATE_ROLLBACK_COMPLETEMatcher(),
new StackUpdateComplete.IsValidationErrorMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeStacksRequest",
">",
"stackUpdateComplete",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeStacksRequest",
",",
"DescribeStacksResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeStacksFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"StackUpdateComplete",
".",
"IsUPDATE_COMPLETEMatcher",
"(",
")",
",",
"new",
"StackUpdateComplete",
".",
"IsUPDATE_FAILEDMatcher",
"(",
")",
",",
"new",
"StackUpdateComplete",
".",
"IsUPDATE_ROLLBACK_FAILEDMatcher",
"(",
")",
",",
"new",
"StackUpdateComplete",
".",
"IsUPDATE_ROLLBACK_COMPLETEMatcher",
"(",
")",
",",
"new",
"StackUpdateComplete",
".",
"IsValidationErrorMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"120",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"30",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a StackUpdateComplete waiter by using custom parameters waiterParameters and other parameters defined in
the waiters specification, and then polls until it determines whether the resource entered the desired state or
not, where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"StackUpdateComplete",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/waiters/AmazonCloudFormationWaiters.java#L113-L122
|
19,818
|
aws/aws-sdk-java
|
aws-java-sdk-opensdk/src/main/java/com/amazonaws/opensdk/protect/protocol/ApiGatewayProtocolFactoryImpl.java
|
ApiGatewayProtocolFactoryImpl.createResponseHandler
|
public <T extends BaseResult> HttpResponseHandler<T> createResponseHandler(
JsonOperationMetadata operationMetadata,
Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller) {
final JsonResponseHandler<T> responseHandler = JSON_FACTORY
.createResponseHandler(operationMetadata, responseUnmarshaller);
return new ApiGatewayResponseHandler<>(responseHandler);
}
|
java
|
public <T extends BaseResult> HttpResponseHandler<T> createResponseHandler(
JsonOperationMetadata operationMetadata,
Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller) {
final JsonResponseHandler<T> responseHandler = JSON_FACTORY
.createResponseHandler(operationMetadata, responseUnmarshaller);
return new ApiGatewayResponseHandler<>(responseHandler);
}
|
[
"public",
"<",
"T",
"extends",
"BaseResult",
">",
"HttpResponseHandler",
"<",
"T",
">",
"createResponseHandler",
"(",
"JsonOperationMetadata",
"operationMetadata",
",",
"Unmarshaller",
"<",
"T",
",",
"JsonUnmarshallerContext",
">",
"responseUnmarshaller",
")",
"{",
"final",
"JsonResponseHandler",
"<",
"T",
">",
"responseHandler",
"=",
"JSON_FACTORY",
".",
"createResponseHandler",
"(",
"operationMetadata",
",",
"responseUnmarshaller",
")",
";",
"return",
"new",
"ApiGatewayResponseHandler",
"<>",
"(",
"responseHandler",
")",
";",
"}"
] |
Creates a response handler to be used for handling a successful response.
@param operationMetadata Additional context information about an operation to create the appropriate response handler.
|
[
"Creates",
"a",
"response",
"handler",
"to",
"be",
"used",
"for",
"handling",
"a",
"successful",
"response",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-opensdk/src/main/java/com/amazonaws/opensdk/protect/protocol/ApiGatewayProtocolFactoryImpl.java#L87-L93
|
19,819
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/Connector.java
|
Connector.withParameters
|
public Connector withParameters(java.util.Map<String, String> parameters) {
setParameters(parameters);
return this;
}
|
java
|
public Connector withParameters(java.util.Map<String, String> parameters) {
setParameters(parameters);
return this;
}
|
[
"public",
"Connector",
"withParameters",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"String",
">",
"parameters",
")",
"{",
"setParameters",
"(",
"parameters",
")",
";",
"return",
"this",
";",
"}"
] |
The parameters or configuration that the connector uses.
@param parameters
The parameters or configuration that the connector uses.
@return Returns a reference to this object so that method calls can be chained together.
|
[
"The",
"parameters",
"or",
"configuration",
"that",
"the",
"connector",
"uses",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/Connector.java#L143-L146
|
19,820
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ObjectMetadata.java
|
ObjectMetadata.getInstanceLength
|
public long getInstanceLength() {
// See Content-Range in
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
String contentRange = (String)metadata.get(Headers.CONTENT_RANGE);
if (contentRange != null) {
int pos = contentRange.lastIndexOf("/");
if (pos >= 0)
return Long.parseLong(contentRange.substring(pos+1));
}
return getContentLength();
}
|
java
|
public long getInstanceLength() {
// See Content-Range in
// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
String contentRange = (String)metadata.get(Headers.CONTENT_RANGE);
if (contentRange != null) {
int pos = contentRange.lastIndexOf("/");
if (pos >= 0)
return Long.parseLong(contentRange.substring(pos+1));
}
return getContentLength();
}
|
[
"public",
"long",
"getInstanceLength",
"(",
")",
"{",
"// See Content-Range in",
"// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html",
"String",
"contentRange",
"=",
"(",
"String",
")",
"metadata",
".",
"get",
"(",
"Headers",
".",
"CONTENT_RANGE",
")",
";",
"if",
"(",
"contentRange",
"!=",
"null",
")",
"{",
"int",
"pos",
"=",
"contentRange",
".",
"lastIndexOf",
"(",
"\"/\"",
")",
";",
"if",
"(",
"pos",
">=",
"0",
")",
"return",
"Long",
".",
"parseLong",
"(",
"contentRange",
".",
"substring",
"(",
"pos",
"+",
"1",
")",
")",
";",
"}",
"return",
"getContentLength",
"(",
")",
";",
"}"
] |
Returns the physical length of the entire object stored in S3.
This is useful during, for example, a range get operation.
|
[
"Returns",
"the",
"physical",
"length",
"of",
"the",
"entire",
"object",
"stored",
"in",
"S3",
".",
"This",
"is",
"useful",
"during",
"for",
"example",
"a",
"range",
"get",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ObjectMetadata.java#L307-L317
|
19,821
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ObjectMetadata.java
|
ObjectMetadata.getObjectLockRetainUntilDate
|
public Date getObjectLockRetainUntilDate() {
String dateStr = (String) metadata.get(Headers.OBJECT_LOCK_RETAIN_UNTIL_DATE);
if (dateStr != null) {
return DateUtils.parseISO8601Date(dateStr);
}
return null;
}
|
java
|
public Date getObjectLockRetainUntilDate() {
String dateStr = (String) metadata.get(Headers.OBJECT_LOCK_RETAIN_UNTIL_DATE);
if (dateStr != null) {
return DateUtils.parseISO8601Date(dateStr);
}
return null;
}
|
[
"public",
"Date",
"getObjectLockRetainUntilDate",
"(",
")",
"{",
"String",
"dateStr",
"=",
"(",
"String",
")",
"metadata",
".",
"get",
"(",
"Headers",
".",
"OBJECT_LOCK_RETAIN_UNTIL_DATE",
")",
";",
"if",
"(",
"dateStr",
"!=",
"null",
")",
"{",
"return",
"DateUtils",
".",
"parseISO8601Date",
"(",
"dateStr",
")",
";",
"}",
"return",
"null",
";",
"}"
] |
The date and time this object's Object Lock will expire.
|
[
"The",
"date",
"and",
"time",
"this",
"object",
"s",
"Object",
"Lock",
"will",
"expire",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ObjectMetadata.java#L970-L976
|
19,822
|
aws/aws-sdk-java
|
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/EventDimensions.java
|
EventDimensions.withAttributes
|
public EventDimensions withAttributes(java.util.Map<String, AttributeDimension> attributes) {
setAttributes(attributes);
return this;
}
|
java
|
public EventDimensions withAttributes(java.util.Map<String, AttributeDimension> attributes) {
setAttributes(attributes);
return this;
}
|
[
"public",
"EventDimensions",
"withAttributes",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"AttributeDimension",
">",
"attributes",
")",
"{",
"setAttributes",
"(",
"attributes",
")",
";",
"return",
"this",
";",
"}"
] |
Custom attributes that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria
when you create an event filter.
@param attributes
Custom attributes that your app reports to Amazon Pinpoint. You can use these attributes as selection
criteria when you create an event filter.
@return Returns a reference to this object so that method calls can be chained together.
|
[
"Custom",
"attributes",
"that",
"your",
"app",
"reports",
"to",
"Amazon",
"Pinpoint",
".",
"You",
"can",
"use",
"these",
"attributes",
"as",
"selection",
"criteria",
"when",
"you",
"create",
"an",
"event",
"filter",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/EventDimensions.java#L80-L83
|
19,823
|
aws/aws-sdk-java
|
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/EventDimensions.java
|
EventDimensions.withMetrics
|
public EventDimensions withMetrics(java.util.Map<String, MetricDimension> metrics) {
setMetrics(metrics);
return this;
}
|
java
|
public EventDimensions withMetrics(java.util.Map<String, MetricDimension> metrics) {
setMetrics(metrics);
return this;
}
|
[
"public",
"EventDimensions",
"withMetrics",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"MetricDimension",
">",
"metrics",
")",
"{",
"setMetrics",
"(",
"metrics",
")",
";",
"return",
"this",
";",
"}"
] |
Custom metrics that your app reports to Amazon Pinpoint. You can use these attributes as selection criteria when
you create an event filter.
@param metrics
Custom metrics that your app reports to Amazon Pinpoint. You can use these attributes as selection
criteria when you create an event filter.
@return Returns a reference to this object so that method calls can be chained together.
|
[
"Custom",
"metrics",
"that",
"your",
"app",
"reports",
"to",
"Amazon",
"Pinpoint",
".",
"You",
"can",
"use",
"these",
"attributes",
"as",
"selection",
"criteria",
"when",
"you",
"create",
"an",
"event",
"filter",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/EventDimensions.java#L181-L184
|
19,824
|
aws/aws-sdk-java
|
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/S3Link.java
|
S3Link.fromJson
|
public static S3Link fromJson(S3ClientCache s3cc, String json) {
ID id = Jackson.fromJsonString(json, ID.class);
return new S3Link(s3cc, id);
}
|
java
|
public static S3Link fromJson(S3ClientCache s3cc, String json) {
ID id = Jackson.fromJsonString(json, ID.class);
return new S3Link(s3cc, id);
}
|
[
"public",
"static",
"S3Link",
"fromJson",
"(",
"S3ClientCache",
"s3cc",
",",
"String",
"json",
")",
"{",
"ID",
"id",
"=",
"Jackson",
".",
"fromJsonString",
"(",
"json",
",",
"ID",
".",
"class",
")",
";",
"return",
"new",
"S3Link",
"(",
"s3cc",
",",
"id",
")",
";",
"}"
] |
Deserializes from a JSON string.
|
[
"Deserializes",
"from",
"a",
"JSON",
"string",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/S3Link.java#L171-L174
|
19,825
|
aws/aws-sdk-java
|
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/ListFlowsResult.java
|
ListFlowsResult.setFlows
|
public void setFlows(java.util.Collection<ListedFlow> flows) {
if (flows == null) {
this.flows = null;
return;
}
this.flows = new java.util.ArrayList<ListedFlow>(flows);
}
|
java
|
public void setFlows(java.util.Collection<ListedFlow> flows) {
if (flows == null) {
this.flows = null;
return;
}
this.flows = new java.util.ArrayList<ListedFlow>(flows);
}
|
[
"public",
"void",
"setFlows",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"ListedFlow",
">",
"flows",
")",
"{",
"if",
"(",
"flows",
"==",
"null",
")",
"{",
"this",
".",
"flows",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"flows",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"ListedFlow",
">",
"(",
"flows",
")",
";",
"}"
] |
A list of flow summaries.
@param flows
A list of flow summaries.
|
[
"A",
"list",
"of",
"flow",
"summaries",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/ListFlowsResult.java#L53-L60
|
19,826
|
aws/aws-sdk-java
|
src/samples/AmazonKinesisFirehose/AmazonKinesisFirehoseToRedshiftSample.java
|
AmazonKinesisFirehoseToRedshiftSample.createDeliveryStream
|
private static void createDeliveryStream() throws Exception {
boolean deliveryStreamExists = false;
LOG.info("Checking if " + deliveryStreamName + " already exits");
List<String> deliveryStreamNames = listDeliveryStreams();
if (deliveryStreamNames != null && deliveryStreamNames.contains(deliveryStreamName)) {
deliveryStreamExists = true;
LOG.info("DeliveryStream " + deliveryStreamName + " already exists. Not creating the new delivery stream");
} else {
LOG.info("DeliveryStream " + deliveryStreamName + " does not exist");
}
if (!deliveryStreamExists) {
// Create DeliveryStream
CreateDeliveryStreamRequest createDeliveryStreamRequest = new CreateDeliveryStreamRequest();
createDeliveryStreamRequest.setDeliveryStreamName(deliveryStreamName);
S3DestinationConfiguration redshiftS3Configuration = new S3DestinationConfiguration();
redshiftS3Configuration.setBucketARN(s3BucketARN);
redshiftS3Configuration.setPrefix(s3ObjectPrefix);
BufferingHints bufferingHints = null;
if (s3DestinationSizeInMBs != null || s3DestinationIntervalInSeconds != null) {
bufferingHints = new BufferingHints();
bufferingHints.setSizeInMBs(s3DestinationSizeInMBs);
bufferingHints.setIntervalInSeconds(s3DestinationIntervalInSeconds);
}
redshiftS3Configuration.setBufferingHints(bufferingHints);
// Create and set IAM role so that firehose service has access to the S3Buckets to put data.
// Please check the trustPolicyDocument.json and permissionsPolicyDocument.json files
// for the trust and permissions policies set for the role.
String iamRoleArn = createIamRole(s3ObjectPrefix);
redshiftS3Configuration.setRoleARN(iamRoleArn);
CopyCommand copyCommand = new CopyCommand();
copyCommand.withCopyOptions(copyOptions)
.withDataTableName(dataTableName);
RedshiftDestinationConfiguration redshiftDestinationConfiguration = new RedshiftDestinationConfiguration();
redshiftDestinationConfiguration.withClusterJDBCURL(clusterJDBCUrl)
.withRoleARN(iamRoleArn)
.withUsername(username)
.withPassword(password)
.withCopyCommand(copyCommand)
.withS3Configuration(redshiftS3Configuration);
createDeliveryStreamRequest.setRedshiftDestinationConfiguration(redshiftDestinationConfiguration);
firehoseClient.createDeliveryStream(createDeliveryStreamRequest);
// The Delivery Stream is now being created.
LOG.info("Creating DeliveryStream : " + deliveryStreamName);
waitForDeliveryStreamToBecomeAvailable(deliveryStreamName);
}
}
|
java
|
private static void createDeliveryStream() throws Exception {
boolean deliveryStreamExists = false;
LOG.info("Checking if " + deliveryStreamName + " already exits");
List<String> deliveryStreamNames = listDeliveryStreams();
if (deliveryStreamNames != null && deliveryStreamNames.contains(deliveryStreamName)) {
deliveryStreamExists = true;
LOG.info("DeliveryStream " + deliveryStreamName + " already exists. Not creating the new delivery stream");
} else {
LOG.info("DeliveryStream " + deliveryStreamName + " does not exist");
}
if (!deliveryStreamExists) {
// Create DeliveryStream
CreateDeliveryStreamRequest createDeliveryStreamRequest = new CreateDeliveryStreamRequest();
createDeliveryStreamRequest.setDeliveryStreamName(deliveryStreamName);
S3DestinationConfiguration redshiftS3Configuration = new S3DestinationConfiguration();
redshiftS3Configuration.setBucketARN(s3BucketARN);
redshiftS3Configuration.setPrefix(s3ObjectPrefix);
BufferingHints bufferingHints = null;
if (s3DestinationSizeInMBs != null || s3DestinationIntervalInSeconds != null) {
bufferingHints = new BufferingHints();
bufferingHints.setSizeInMBs(s3DestinationSizeInMBs);
bufferingHints.setIntervalInSeconds(s3DestinationIntervalInSeconds);
}
redshiftS3Configuration.setBufferingHints(bufferingHints);
// Create and set IAM role so that firehose service has access to the S3Buckets to put data.
// Please check the trustPolicyDocument.json and permissionsPolicyDocument.json files
// for the trust and permissions policies set for the role.
String iamRoleArn = createIamRole(s3ObjectPrefix);
redshiftS3Configuration.setRoleARN(iamRoleArn);
CopyCommand copyCommand = new CopyCommand();
copyCommand.withCopyOptions(copyOptions)
.withDataTableName(dataTableName);
RedshiftDestinationConfiguration redshiftDestinationConfiguration = new RedshiftDestinationConfiguration();
redshiftDestinationConfiguration.withClusterJDBCURL(clusterJDBCUrl)
.withRoleARN(iamRoleArn)
.withUsername(username)
.withPassword(password)
.withCopyCommand(copyCommand)
.withS3Configuration(redshiftS3Configuration);
createDeliveryStreamRequest.setRedshiftDestinationConfiguration(redshiftDestinationConfiguration);
firehoseClient.createDeliveryStream(createDeliveryStreamRequest);
// The Delivery Stream is now being created.
LOG.info("Creating DeliveryStream : " + deliveryStreamName);
waitForDeliveryStreamToBecomeAvailable(deliveryStreamName);
}
}
|
[
"private",
"static",
"void",
"createDeliveryStream",
"(",
")",
"throws",
"Exception",
"{",
"boolean",
"deliveryStreamExists",
"=",
"false",
";",
"LOG",
".",
"info",
"(",
"\"Checking if \"",
"+",
"deliveryStreamName",
"+",
"\" already exits\"",
")",
";",
"List",
"<",
"String",
">",
"deliveryStreamNames",
"=",
"listDeliveryStreams",
"(",
")",
";",
"if",
"(",
"deliveryStreamNames",
"!=",
"null",
"&&",
"deliveryStreamNames",
".",
"contains",
"(",
"deliveryStreamName",
")",
")",
"{",
"deliveryStreamExists",
"=",
"true",
";",
"LOG",
".",
"info",
"(",
"\"DeliveryStream \"",
"+",
"deliveryStreamName",
"+",
"\" already exists. Not creating the new delivery stream\"",
")",
";",
"}",
"else",
"{",
"LOG",
".",
"info",
"(",
"\"DeliveryStream \"",
"+",
"deliveryStreamName",
"+",
"\" does not exist\"",
")",
";",
"}",
"if",
"(",
"!",
"deliveryStreamExists",
")",
"{",
"// Create DeliveryStream",
"CreateDeliveryStreamRequest",
"createDeliveryStreamRequest",
"=",
"new",
"CreateDeliveryStreamRequest",
"(",
")",
";",
"createDeliveryStreamRequest",
".",
"setDeliveryStreamName",
"(",
"deliveryStreamName",
")",
";",
"S3DestinationConfiguration",
"redshiftS3Configuration",
"=",
"new",
"S3DestinationConfiguration",
"(",
")",
";",
"redshiftS3Configuration",
".",
"setBucketARN",
"(",
"s3BucketARN",
")",
";",
"redshiftS3Configuration",
".",
"setPrefix",
"(",
"s3ObjectPrefix",
")",
";",
"BufferingHints",
"bufferingHints",
"=",
"null",
";",
"if",
"(",
"s3DestinationSizeInMBs",
"!=",
"null",
"||",
"s3DestinationIntervalInSeconds",
"!=",
"null",
")",
"{",
"bufferingHints",
"=",
"new",
"BufferingHints",
"(",
")",
";",
"bufferingHints",
".",
"setSizeInMBs",
"(",
"s3DestinationSizeInMBs",
")",
";",
"bufferingHints",
".",
"setIntervalInSeconds",
"(",
"s3DestinationIntervalInSeconds",
")",
";",
"}",
"redshiftS3Configuration",
".",
"setBufferingHints",
"(",
"bufferingHints",
")",
";",
"// Create and set IAM role so that firehose service has access to the S3Buckets to put data. ",
"// Please check the trustPolicyDocument.json and permissionsPolicyDocument.json files ",
"// for the trust and permissions policies set for the role.",
"String",
"iamRoleArn",
"=",
"createIamRole",
"(",
"s3ObjectPrefix",
")",
";",
"redshiftS3Configuration",
".",
"setRoleARN",
"(",
"iamRoleArn",
")",
";",
"CopyCommand",
"copyCommand",
"=",
"new",
"CopyCommand",
"(",
")",
";",
"copyCommand",
".",
"withCopyOptions",
"(",
"copyOptions",
")",
".",
"withDataTableName",
"(",
"dataTableName",
")",
";",
"RedshiftDestinationConfiguration",
"redshiftDestinationConfiguration",
"=",
"new",
"RedshiftDestinationConfiguration",
"(",
")",
";",
"redshiftDestinationConfiguration",
".",
"withClusterJDBCURL",
"(",
"clusterJDBCUrl",
")",
".",
"withRoleARN",
"(",
"iamRoleArn",
")",
".",
"withUsername",
"(",
"username",
")",
".",
"withPassword",
"(",
"password",
")",
".",
"withCopyCommand",
"(",
"copyCommand",
")",
".",
"withS3Configuration",
"(",
"redshiftS3Configuration",
")",
";",
"createDeliveryStreamRequest",
".",
"setRedshiftDestinationConfiguration",
"(",
"redshiftDestinationConfiguration",
")",
";",
"firehoseClient",
".",
"createDeliveryStream",
"(",
"createDeliveryStreamRequest",
")",
";",
"// The Delivery Stream is now being created.",
"LOG",
".",
"info",
"(",
"\"Creating DeliveryStream : \"",
"+",
"deliveryStreamName",
")",
";",
"waitForDeliveryStreamToBecomeAvailable",
"(",
"deliveryStreamName",
")",
";",
"}",
"}"
] |
Method to create delivery stream with Redshift destination configuration.
@throws Exception
|
[
"Method",
"to",
"create",
"delivery",
"stream",
"with",
"Redshift",
"destination",
"configuration",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AmazonKinesisFirehoseToRedshiftSample.java#L207-L263
|
19,827
|
aws/aws-sdk-java
|
src/samples/AmazonKinesisFirehose/AmazonKinesisFirehoseToRedshiftSample.java
|
AmazonKinesisFirehoseToRedshiftSample.updateDeliveryStream
|
private static void updateDeliveryStream() {
DeliveryStreamDescription deliveryStreamDescription = describeDeliveryStream(deliveryStreamName);
LOG.info("Updating DeliveryStream Destination: " + deliveryStreamName + " with new configuration options");
// get(0) -> DeliveryStream currently supports only one destination per DeliveryStream
UpdateDestinationRequest updateDestinationRequest =
new UpdateDestinationRequest()
.withDeliveryStreamName(deliveryStreamName)
.withCurrentDeliveryStreamVersionId(deliveryStreamDescription.getVersionId())
.withDestinationId(deliveryStreamDescription.getDestinations().get(0).getDestinationId());
CopyCommand updatedCopyCommand = new CopyCommand()
.withDataTableName(dataTableName)
.withCopyOptions(updatedCopyOptions);
RedshiftDestinationUpdate redshiftDestinationUpdate = new RedshiftDestinationUpdate()
.withCopyCommand(updatedCopyCommand);
updateDestinationRequest.setRedshiftDestinationUpdate(redshiftDestinationUpdate);
// Update DeliveryStream destination with new configuration options such as s3Prefix and Buffering Hints.
// Can also update Compression format, KMS key values and IAM Role.
firehoseClient.updateDestination(updateDestinationRequest);
}
|
java
|
private static void updateDeliveryStream() {
DeliveryStreamDescription deliveryStreamDescription = describeDeliveryStream(deliveryStreamName);
LOG.info("Updating DeliveryStream Destination: " + deliveryStreamName + " with new configuration options");
// get(0) -> DeliveryStream currently supports only one destination per DeliveryStream
UpdateDestinationRequest updateDestinationRequest =
new UpdateDestinationRequest()
.withDeliveryStreamName(deliveryStreamName)
.withCurrentDeliveryStreamVersionId(deliveryStreamDescription.getVersionId())
.withDestinationId(deliveryStreamDescription.getDestinations().get(0).getDestinationId());
CopyCommand updatedCopyCommand = new CopyCommand()
.withDataTableName(dataTableName)
.withCopyOptions(updatedCopyOptions);
RedshiftDestinationUpdate redshiftDestinationUpdate = new RedshiftDestinationUpdate()
.withCopyCommand(updatedCopyCommand);
updateDestinationRequest.setRedshiftDestinationUpdate(redshiftDestinationUpdate);
// Update DeliveryStream destination with new configuration options such as s3Prefix and Buffering Hints.
// Can also update Compression format, KMS key values and IAM Role.
firehoseClient.updateDestination(updateDestinationRequest);
}
|
[
"private",
"static",
"void",
"updateDeliveryStream",
"(",
")",
"{",
"DeliveryStreamDescription",
"deliveryStreamDescription",
"=",
"describeDeliveryStream",
"(",
"deliveryStreamName",
")",
";",
"LOG",
".",
"info",
"(",
"\"Updating DeliveryStream Destination: \"",
"+",
"deliveryStreamName",
"+",
"\" with new configuration options\"",
")",
";",
"// get(0) -> DeliveryStream currently supports only one destination per DeliveryStream",
"UpdateDestinationRequest",
"updateDestinationRequest",
"=",
"new",
"UpdateDestinationRequest",
"(",
")",
".",
"withDeliveryStreamName",
"(",
"deliveryStreamName",
")",
".",
"withCurrentDeliveryStreamVersionId",
"(",
"deliveryStreamDescription",
".",
"getVersionId",
"(",
")",
")",
".",
"withDestinationId",
"(",
"deliveryStreamDescription",
".",
"getDestinations",
"(",
")",
".",
"get",
"(",
"0",
")",
".",
"getDestinationId",
"(",
")",
")",
";",
"CopyCommand",
"updatedCopyCommand",
"=",
"new",
"CopyCommand",
"(",
")",
".",
"withDataTableName",
"(",
"dataTableName",
")",
".",
"withCopyOptions",
"(",
"updatedCopyOptions",
")",
";",
"RedshiftDestinationUpdate",
"redshiftDestinationUpdate",
"=",
"new",
"RedshiftDestinationUpdate",
"(",
")",
".",
"withCopyCommand",
"(",
"updatedCopyCommand",
")",
";",
"updateDestinationRequest",
".",
"setRedshiftDestinationUpdate",
"(",
"redshiftDestinationUpdate",
")",
";",
"// Update DeliveryStream destination with new configuration options such as s3Prefix and Buffering Hints.",
"// Can also update Compression format, KMS key values and IAM Role.",
"firehoseClient",
".",
"updateDestination",
"(",
"updateDestinationRequest",
")",
";",
"}"
] |
Method to update redshift destination with updated copy options.
|
[
"Method",
"to",
"update",
"redshift",
"destination",
"with",
"updated",
"copy",
"options",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AmazonKinesisFirehoseToRedshiftSample.java#L268-L290
|
19,828
|
aws/aws-sdk-java
|
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/ListEntitlementsResult.java
|
ListEntitlementsResult.setEntitlements
|
public void setEntitlements(java.util.Collection<ListedEntitlement> entitlements) {
if (entitlements == null) {
this.entitlements = null;
return;
}
this.entitlements = new java.util.ArrayList<ListedEntitlement>(entitlements);
}
|
java
|
public void setEntitlements(java.util.Collection<ListedEntitlement> entitlements) {
if (entitlements == null) {
this.entitlements = null;
return;
}
this.entitlements = new java.util.ArrayList<ListedEntitlement>(entitlements);
}
|
[
"public",
"void",
"setEntitlements",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"ListedEntitlement",
">",
"entitlements",
")",
"{",
"if",
"(",
"entitlements",
"==",
"null",
")",
"{",
"this",
".",
"entitlements",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"entitlements",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"ListedEntitlement",
">",
"(",
"entitlements",
")",
";",
"}"
] |
A list of entitlements that have been granted to you from other AWS accounts.
@param entitlements
A list of entitlements that have been granted to you from other AWS accounts.
|
[
"A",
"list",
"of",
"entitlements",
"that",
"have",
"been",
"granted",
"to",
"you",
"from",
"other",
"AWS",
"accounts",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/ListEntitlementsResult.java#L53-L60
|
19,829
|
aws/aws-sdk-java
|
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/AbstractAmazonDirectConnectAsync.java
|
AbstractAmazonDirectConnectAsync.describeConnectionsAsync
|
@Override
public java.util.concurrent.Future<DescribeConnectionsResult> describeConnectionsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeConnectionsRequest, DescribeConnectionsResult> asyncHandler) {
return describeConnectionsAsync(new DescribeConnectionsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeConnectionsResult> describeConnectionsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeConnectionsRequest, DescribeConnectionsResult> asyncHandler) {
return describeConnectionsAsync(new DescribeConnectionsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeConnectionsResult",
">",
"describeConnectionsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeConnectionsRequest",
",",
"DescribeConnectionsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeConnectionsAsync",
"(",
"new",
"DescribeConnectionsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeConnections operation with an AsyncHandler.
@see #describeConnectionsAsync(DescribeConnectionsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeConnections",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/AbstractAmazonDirectConnectAsync.java#L454-L459
|
19,830
|
aws/aws-sdk-java
|
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/tasks/ModelClassGeneratorTasks.java
|
ModelClassGeneratorTasks.shouldGenerateSdkRequestConfigSetter
|
private boolean shouldGenerateSdkRequestConfigSetter(ShapeModel shape) {
return model.getMetadata().getProtocol() == Protocol.API_GATEWAY && shape.getShapeType() == ShapeType.Request;
}
|
java
|
private boolean shouldGenerateSdkRequestConfigSetter(ShapeModel shape) {
return model.getMetadata().getProtocol() == Protocol.API_GATEWAY && shape.getShapeType() == ShapeType.Request;
}
|
[
"private",
"boolean",
"shouldGenerateSdkRequestConfigSetter",
"(",
"ShapeModel",
"shape",
")",
"{",
"return",
"model",
".",
"getMetadata",
"(",
")",
".",
"getProtocol",
"(",
")",
"==",
"Protocol",
".",
"API_GATEWAY",
"&&",
"shape",
".",
"getShapeType",
"(",
")",
"==",
"ShapeType",
".",
"Request",
";",
"}"
] |
For API Gateway request classes we override the sdkRequestConfig fluent setter to return the correct concrete request type
for better method chaining.
@return True if sdkRequestConfig should be overriden by template. False if not.
|
[
"For",
"API",
"Gateway",
"request",
"classes",
"we",
"override",
"the",
"sdkRequestConfig",
"fluent",
"setter",
"to",
"return",
"the",
"correct",
"concrete",
"request",
"type",
"for",
"better",
"method",
"chaining",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/tasks/ModelClassGeneratorTasks.java#L90-L92
|
19,831
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/protocol/json/JsonProtocolMarshallerBuilder.java
|
JsonProtocolMarshallerBuilder.marshallerOverride
|
public <MarshallT> JsonProtocolMarshallerBuilder<T> marshallerOverride(MarshallLocation marshallLocation,
MarshallingType<MarshallT> marshallingType,
StructuredJsonMarshaller<MarshallT> marshaller) {
if (marshallerRegistry == null) {
this.marshallerRegistry = MarshallerRegistry.builder();
}
marshallerRegistry.addMarshaller(marshallLocation, marshallingType, SimpleTypeJsonMarshallers.adapt(marshaller));
return this;
}
|
java
|
public <MarshallT> JsonProtocolMarshallerBuilder<T> marshallerOverride(MarshallLocation marshallLocation,
MarshallingType<MarshallT> marshallingType,
StructuredJsonMarshaller<MarshallT> marshaller) {
if (marshallerRegistry == null) {
this.marshallerRegistry = MarshallerRegistry.builder();
}
marshallerRegistry.addMarshaller(marshallLocation, marshallingType, SimpleTypeJsonMarshallers.adapt(marshaller));
return this;
}
|
[
"public",
"<",
"MarshallT",
">",
"JsonProtocolMarshallerBuilder",
"<",
"T",
">",
"marshallerOverride",
"(",
"MarshallLocation",
"marshallLocation",
",",
"MarshallingType",
"<",
"MarshallT",
">",
"marshallingType",
",",
"StructuredJsonMarshaller",
"<",
"MarshallT",
">",
"marshaller",
")",
"{",
"if",
"(",
"marshallerRegistry",
"==",
"null",
")",
"{",
"this",
".",
"marshallerRegistry",
"=",
"MarshallerRegistry",
".",
"builder",
"(",
")",
";",
"}",
"marshallerRegistry",
".",
"addMarshaller",
"(",
"marshallLocation",
",",
"marshallingType",
",",
"SimpleTypeJsonMarshallers",
".",
"adapt",
"(",
"marshaller",
")",
")",
";",
"return",
"this",
";",
"}"
] |
Registers an override for the marshaller registry.
@param marshallLocation Location to override marshaller for.
@param marshallingType Type to override marshaller for.
@param marshaller Marshaller to use for the given location and type.
@param <MarshallT> Type of thing being marshalled.
@return This builder for method chaining.
|
[
"Registers",
"an",
"override",
"for",
"the",
"marshaller",
"registry",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/protocol/json/JsonProtocolMarshallerBuilder.java#L85-L93
|
19,832
|
aws/aws-sdk-java
|
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/TypeUtils.java
|
TypeUtils.getJavaDataType
|
public String getJavaDataType(Map<String, Shape> shapes, String shapeName) {
return getJavaDataType(shapes, shapeName, null);
}
|
java
|
public String getJavaDataType(Map<String, Shape> shapes, String shapeName) {
return getJavaDataType(shapes, shapeName, null);
}
|
[
"public",
"String",
"getJavaDataType",
"(",
"Map",
"<",
"String",
",",
"Shape",
">",
"shapes",
",",
"String",
"shapeName",
")",
"{",
"return",
"getJavaDataType",
"(",
"shapes",
",",
"shapeName",
",",
"null",
")",
";",
"}"
] |
Returns the default Java type of the specified shape.
|
[
"Returns",
"the",
"default",
"Java",
"type",
"of",
"the",
"specified",
"shape",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/TypeUtils.java#L125-L127
|
19,833
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java
|
SignatureVerifier.verifySignature
|
void verifySignature(JsonNode messageJson) {
if (!signatureChecker.verifySignature(toMap(messageJson), fetchPublicKey(messageJson))) {
throw new SdkClientException("Signature in SNS message was invalid");
}
}
|
java
|
void verifySignature(JsonNode messageJson) {
if (!signatureChecker.verifySignature(toMap(messageJson), fetchPublicKey(messageJson))) {
throw new SdkClientException("Signature in SNS message was invalid");
}
}
|
[
"void",
"verifySignature",
"(",
"JsonNode",
"messageJson",
")",
"{",
"if",
"(",
"!",
"signatureChecker",
".",
"verifySignature",
"(",
"toMap",
"(",
"messageJson",
")",
",",
"fetchPublicKey",
"(",
"messageJson",
")",
")",
")",
"{",
"throw",
"new",
"SdkClientException",
"(",
"\"Signature in SNS message was invalid\"",
")",
";",
"}",
"}"
] |
Verifies the signature of the SNS message by downloading the public certificate from SNS and computing
the signature from the request properties. If the signature does not match, or if the cert is inaccessible or invalid
and exception will be thrown.
@param messageJson JSON message object.
|
[
"Verifies",
"the",
"signature",
"of",
"the",
"SNS",
"message",
"by",
"downloading",
"the",
"public",
"certificate",
"from",
"SNS",
"and",
"computing",
"the",
"signature",
"from",
"the",
"request",
"properties",
".",
"If",
"the",
"signature",
"does",
"not",
"match",
"or",
"if",
"the",
"cert",
"is",
"inaccessible",
"or",
"invalid",
"and",
"exception",
"will",
"be",
"thrown",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java#L90-L94
|
19,834
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java
|
SignatureVerifier.fetchPublicKey
|
private synchronized PublicKey fetchPublicKey(JsonNode messageJson) {
URI certUrl = URI.create(messageJson.get(SIGNING_CERT_URL).asText());
PublicKey publicKey = certificateCache.get(certUrl.toString());
if (publicKey == null) {
publicKey = createPublicKey(downloadCertWithRetries(certUrl));
certificateCache.add(certUrl.toString(), publicKey);
}
return publicKey;
}
|
java
|
private synchronized PublicKey fetchPublicKey(JsonNode messageJson) {
URI certUrl = URI.create(messageJson.get(SIGNING_CERT_URL).asText());
PublicKey publicKey = certificateCache.get(certUrl.toString());
if (publicKey == null) {
publicKey = createPublicKey(downloadCertWithRetries(certUrl));
certificateCache.add(certUrl.toString(), publicKey);
}
return publicKey;
}
|
[
"private",
"synchronized",
"PublicKey",
"fetchPublicKey",
"(",
"JsonNode",
"messageJson",
")",
"{",
"URI",
"certUrl",
"=",
"URI",
".",
"create",
"(",
"messageJson",
".",
"get",
"(",
"SIGNING_CERT_URL",
")",
".",
"asText",
"(",
")",
")",
";",
"PublicKey",
"publicKey",
"=",
"certificateCache",
".",
"get",
"(",
"certUrl",
".",
"toString",
"(",
")",
")",
";",
"if",
"(",
"publicKey",
"==",
"null",
")",
"{",
"publicKey",
"=",
"createPublicKey",
"(",
"downloadCertWithRetries",
"(",
"certUrl",
")",
")",
";",
"certificateCache",
".",
"add",
"(",
"certUrl",
".",
"toString",
"(",
")",
",",
"publicKey",
")",
";",
"}",
"return",
"publicKey",
";",
"}"
] |
Retrieve the certificate public key from the cache if available, otherwise download it from the URL
in the message JSON.
@param messageJson Message JSON.
@return Public key of SNS certificate.
|
[
"Retrieve",
"the",
"certificate",
"public",
"key",
"from",
"the",
"cache",
"if",
"available",
"otherwise",
"download",
"it",
"from",
"the",
"URL",
"in",
"the",
"message",
"JSON",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java#L103-L111
|
19,835
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java
|
SignatureVerifier.downloadCertWithRetries
|
private String downloadCertWithRetries(URI certUrl) {
try {
return downloadCert(certUrl);
} catch (SdkBaseException e) {
if (isRetryable(e)) {
return downloadCert(certUrl);
} else {
throw e;
}
}
}
|
java
|
private String downloadCertWithRetries(URI certUrl) {
try {
return downloadCert(certUrl);
} catch (SdkBaseException e) {
if (isRetryable(e)) {
return downloadCert(certUrl);
} else {
throw e;
}
}
}
|
[
"private",
"String",
"downloadCertWithRetries",
"(",
"URI",
"certUrl",
")",
"{",
"try",
"{",
"return",
"downloadCert",
"(",
"certUrl",
")",
";",
"}",
"catch",
"(",
"SdkBaseException",
"e",
")",
"{",
"if",
"(",
"isRetryable",
"(",
"e",
")",
")",
"{",
"return",
"downloadCert",
"(",
"certUrl",
")",
";",
"}",
"else",
"{",
"throw",
"e",
";",
"}",
"}",
"}"
] |
Downloads the certificate from the provided URL, retrying once if applicable.
@param certUrl URL to download certificate from.
@return String contents of certificate.
|
[
"Downloads",
"the",
"certificate",
"from",
"the",
"provided",
"URL",
"retrying",
"once",
"if",
"applicable",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java#L119-L129
|
19,836
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java
|
SignatureVerifier.isRetryable
|
private boolean isRetryable(SdkBaseException e) {
if (e.getCause() instanceof IOException) {
return true;
} else if (e instanceof HttpException) {
// Only retry on 500s.
return ((HttpException) e).getStatusCode() / 100 == 5;
} else {
return false;
}
}
|
java
|
private boolean isRetryable(SdkBaseException e) {
if (e.getCause() instanceof IOException) {
return true;
} else if (e instanceof HttpException) {
// Only retry on 500s.
return ((HttpException) e).getStatusCode() / 100 == 5;
} else {
return false;
}
}
|
[
"private",
"boolean",
"isRetryable",
"(",
"SdkBaseException",
"e",
")",
"{",
"if",
"(",
"e",
".",
"getCause",
"(",
")",
"instanceof",
"IOException",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"e",
"instanceof",
"HttpException",
")",
"{",
"// Only retry on 500s.",
"return",
"(",
"(",
"HttpException",
")",
"e",
")",
".",
"getStatusCode",
"(",
")",
"/",
"100",
"==",
"5",
";",
"}",
"else",
"{",
"return",
"false",
";",
"}",
"}"
] |
Determines if the exception received when downloading the certificate is retryable or not.
@param e Exception when downloading certificate from provided URL.
@return True if it is retryable, false otherwise.
|
[
"Determines",
"if",
"the",
"exception",
"received",
"when",
"downloading",
"the",
"certificate",
"is",
"retryable",
"or",
"not",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java#L137-L146
|
19,837
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java
|
SignatureVerifier.downloadCert
|
private String downloadCert(URI certUrl) {
try {
signingCertUrlVerifier.verifyCertUrl(certUrl);
HttpResponse response = client.execute(new HttpGet(certUrl));
if (ApacheUtils.isRequestSuccessful(response)) {
try {
return IOUtils.toString(response.getEntity().getContent());
} finally {
response.getEntity().getContent().close();
}
} else {
throw new HttpException("Could not download the certificate from SNS", response);
}
} catch (IOException e) {
throw new SdkClientException("Unable to download SNS certificate from " + certUrl.toString(), e);
}
}
|
java
|
private String downloadCert(URI certUrl) {
try {
signingCertUrlVerifier.verifyCertUrl(certUrl);
HttpResponse response = client.execute(new HttpGet(certUrl));
if (ApacheUtils.isRequestSuccessful(response)) {
try {
return IOUtils.toString(response.getEntity().getContent());
} finally {
response.getEntity().getContent().close();
}
} else {
throw new HttpException("Could not download the certificate from SNS", response);
}
} catch (IOException e) {
throw new SdkClientException("Unable to download SNS certificate from " + certUrl.toString(), e);
}
}
|
[
"private",
"String",
"downloadCert",
"(",
"URI",
"certUrl",
")",
"{",
"try",
"{",
"signingCertUrlVerifier",
".",
"verifyCertUrl",
"(",
"certUrl",
")",
";",
"HttpResponse",
"response",
"=",
"client",
".",
"execute",
"(",
"new",
"HttpGet",
"(",
"certUrl",
")",
")",
";",
"if",
"(",
"ApacheUtils",
".",
"isRequestSuccessful",
"(",
"response",
")",
")",
"{",
"try",
"{",
"return",
"IOUtils",
".",
"toString",
"(",
"response",
".",
"getEntity",
"(",
")",
".",
"getContent",
"(",
")",
")",
";",
"}",
"finally",
"{",
"response",
".",
"getEntity",
"(",
")",
".",
"getContent",
"(",
")",
".",
"close",
"(",
")",
";",
"}",
"}",
"else",
"{",
"throw",
"new",
"HttpException",
"(",
"\"Could not download the certificate from SNS\"",
",",
"response",
")",
";",
"}",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"SdkClientException",
"(",
"\"Unable to download SNS certificate from \"",
"+",
"certUrl",
".",
"toString",
"(",
")",
",",
"e",
")",
";",
"}",
"}"
] |
Downloads the certificate from the provided URL. Asserts that the endpoint is an SNS endpoint and that
the certificate is vended over HTTPs.
@param certUrl URL to download certificate from.
@return String contents of certificate.
@throws SdkClientException If certificate cannot be downloaded or URL is invalid.
|
[
"Downloads",
"the",
"certificate",
"from",
"the",
"provided",
"URL",
".",
"Asserts",
"that",
"the",
"endpoint",
"is",
"an",
"SNS",
"endpoint",
"and",
"that",
"the",
"certificate",
"is",
"vended",
"over",
"HTTPs",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java#L156-L172
|
19,838
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java
|
SignatureVerifier.createPublicKey
|
private PublicKey createPublicKey(String cert) {
try {
CertificateFactory fact = CertificateFactory.getInstance("X.509");
InputStream stream = new ByteArrayInputStream(cert.getBytes(Charset.forName("UTF-8")));
X509Certificate cer = (X509Certificate) fact.generateCertificate(stream);
validateCertificate(cer);
return cer.getPublicKey();
} catch (SdkBaseException e) {
throw e;
} catch (Exception e) {
throw new SdkClientException("Could not create public key from certificate", e);
}
}
|
java
|
private PublicKey createPublicKey(String cert) {
try {
CertificateFactory fact = CertificateFactory.getInstance("X.509");
InputStream stream = new ByteArrayInputStream(cert.getBytes(Charset.forName("UTF-8")));
X509Certificate cer = (X509Certificate) fact.generateCertificate(stream);
validateCertificate(cer);
return cer.getPublicKey();
} catch (SdkBaseException e) {
throw e;
} catch (Exception e) {
throw new SdkClientException("Could not create public key from certificate", e);
}
}
|
[
"private",
"PublicKey",
"createPublicKey",
"(",
"String",
"cert",
")",
"{",
"try",
"{",
"CertificateFactory",
"fact",
"=",
"CertificateFactory",
".",
"getInstance",
"(",
"\"X.509\"",
")",
";",
"InputStream",
"stream",
"=",
"new",
"ByteArrayInputStream",
"(",
"cert",
".",
"getBytes",
"(",
"Charset",
".",
"forName",
"(",
"\"UTF-8\"",
")",
")",
")",
";",
"X509Certificate",
"cer",
"=",
"(",
"X509Certificate",
")",
"fact",
".",
"generateCertificate",
"(",
"stream",
")",
";",
"validateCertificate",
"(",
"cer",
")",
";",
"return",
"cer",
".",
"getPublicKey",
"(",
")",
";",
"}",
"catch",
"(",
"SdkBaseException",
"e",
")",
"{",
"throw",
"e",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
"new",
"SdkClientException",
"(",
"\"Could not create public key from certificate\"",
",",
"e",
")",
";",
"}",
"}"
] |
Build a PublicKey object from a cert
@param cert The cert body
@return A public key
|
[
"Build",
"a",
"PublicKey",
"object",
"from",
"a",
"cert"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SignatureVerifier.java#L196-L208
|
19,839
|
aws/aws-sdk-java
|
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/BlockingRequestBuilder.java
|
BlockingRequestBuilder.summarize
|
private void summarize(MetricDatum datum, Map<String, MetricDatum> uniqueMetrics) {
Double value = datum.getValue();
if (value == null) {
return;
}
List<Dimension> dims = datum.getDimensions();
Collections.sort(dims, DimensionComparator.INSTANCE);
String metricName = datum.getMetricName();
String key = metricName + Jackson.toJsonString(dims);
MetricDatum statDatum = uniqueMetrics.get(key);
if (statDatum == null) {
statDatum = new MetricDatum()
.withDimensions(datum.getDimensions())
.withMetricName(metricName)
.withUnit(datum.getUnit())
.withStatisticValues(new StatisticSet()
.withMaximum(value)
.withMinimum(value)
.withSampleCount(0.0)
.withSum(0.0))
;
uniqueMetrics.put(key, statDatum);
}
StatisticSet stat = statDatum.getStatisticValues();
stat.setSampleCount(stat.getSampleCount() + 1.0);
stat.setSum(stat.getSum() + value);
if (value > stat.getMaximum()) {
stat.setMaximum(value);
} else if (value < stat.getMinimum()) {
stat.setMinimum(value);
}
}
|
java
|
private void summarize(MetricDatum datum, Map<String, MetricDatum> uniqueMetrics) {
Double value = datum.getValue();
if (value == null) {
return;
}
List<Dimension> dims = datum.getDimensions();
Collections.sort(dims, DimensionComparator.INSTANCE);
String metricName = datum.getMetricName();
String key = metricName + Jackson.toJsonString(dims);
MetricDatum statDatum = uniqueMetrics.get(key);
if (statDatum == null) {
statDatum = new MetricDatum()
.withDimensions(datum.getDimensions())
.withMetricName(metricName)
.withUnit(datum.getUnit())
.withStatisticValues(new StatisticSet()
.withMaximum(value)
.withMinimum(value)
.withSampleCount(0.0)
.withSum(0.0))
;
uniqueMetrics.put(key, statDatum);
}
StatisticSet stat = statDatum.getStatisticValues();
stat.setSampleCount(stat.getSampleCount() + 1.0);
stat.setSum(stat.getSum() + value);
if (value > stat.getMaximum()) {
stat.setMaximum(value);
} else if (value < stat.getMinimum()) {
stat.setMinimum(value);
}
}
|
[
"private",
"void",
"summarize",
"(",
"MetricDatum",
"datum",
",",
"Map",
"<",
"String",
",",
"MetricDatum",
">",
"uniqueMetrics",
")",
"{",
"Double",
"value",
"=",
"datum",
".",
"getValue",
"(",
")",
";",
"if",
"(",
"value",
"==",
"null",
")",
"{",
"return",
";",
"}",
"List",
"<",
"Dimension",
">",
"dims",
"=",
"datum",
".",
"getDimensions",
"(",
")",
";",
"Collections",
".",
"sort",
"(",
"dims",
",",
"DimensionComparator",
".",
"INSTANCE",
")",
";",
"String",
"metricName",
"=",
"datum",
".",
"getMetricName",
"(",
")",
";",
"String",
"key",
"=",
"metricName",
"+",
"Jackson",
".",
"toJsonString",
"(",
"dims",
")",
";",
"MetricDatum",
"statDatum",
"=",
"uniqueMetrics",
".",
"get",
"(",
"key",
")",
";",
"if",
"(",
"statDatum",
"==",
"null",
")",
"{",
"statDatum",
"=",
"new",
"MetricDatum",
"(",
")",
".",
"withDimensions",
"(",
"datum",
".",
"getDimensions",
"(",
")",
")",
".",
"withMetricName",
"(",
"metricName",
")",
".",
"withUnit",
"(",
"datum",
".",
"getUnit",
"(",
")",
")",
".",
"withStatisticValues",
"(",
"new",
"StatisticSet",
"(",
")",
".",
"withMaximum",
"(",
"value",
")",
".",
"withMinimum",
"(",
"value",
")",
".",
"withSampleCount",
"(",
"0.0",
")",
".",
"withSum",
"(",
"0.0",
")",
")",
";",
"uniqueMetrics",
".",
"put",
"(",
"key",
",",
"statDatum",
")",
";",
"}",
"StatisticSet",
"stat",
"=",
"statDatum",
".",
"getStatisticValues",
"(",
")",
";",
"stat",
".",
"setSampleCount",
"(",
"stat",
".",
"getSampleCount",
"(",
")",
"+",
"1.0",
")",
";",
"stat",
".",
"setSum",
"(",
"stat",
".",
"getSum",
"(",
")",
"+",
"value",
")",
";",
"if",
"(",
"value",
">",
"stat",
".",
"getMaximum",
"(",
")",
")",
"{",
"stat",
".",
"setMaximum",
"(",
"value",
")",
";",
"}",
"else",
"if",
"(",
"value",
"<",
"stat",
".",
"getMinimum",
"(",
")",
")",
"{",
"stat",
".",
"setMinimum",
"(",
"value",
")",
";",
"}",
"}"
] |
Summarizes the given datum into the statistics of the respective unique metric.
|
[
"Summarizes",
"the",
"given",
"datum",
"into",
"the",
"statistics",
"of",
"the",
"respective",
"unique",
"metric",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/BlockingRequestBuilder.java#L106-L137
|
19,840
|
aws/aws-sdk-java
|
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/BlockingRequestBuilder.java
|
BlockingRequestBuilder.toPutMetricDataRequests
|
private Iterable<PutMetricDataRequest> toPutMetricDataRequests(Map<String, MetricDatum> uniqueMetrics) {
// Opportunistically generates some machine metrics whenever there
// is metrics consolidation
for (MetricDatum datum: machineMetricFactory.generateMetrics()) {
summarize(datum, uniqueMetrics);
}
List<PutMetricDataRequest> list = new ArrayList<PutMetricDataRequest>();
List<MetricDatum> data = new ArrayList<MetricDatum>();
for (MetricDatum m: uniqueMetrics.values()) {
data.add(m);
if (data.size() == CloudWatchMetricConfig.MAX_METRICS_DATUM_SIZE) {
list.addAll(newPutMetricDataRequests(data));
data.clear();
}
}
if (data.size() > 0) {
list.addAll(newPutMetricDataRequests(data));
}
return list;
}
|
java
|
private Iterable<PutMetricDataRequest> toPutMetricDataRequests(Map<String, MetricDatum> uniqueMetrics) {
// Opportunistically generates some machine metrics whenever there
// is metrics consolidation
for (MetricDatum datum: machineMetricFactory.generateMetrics()) {
summarize(datum, uniqueMetrics);
}
List<PutMetricDataRequest> list = new ArrayList<PutMetricDataRequest>();
List<MetricDatum> data = new ArrayList<MetricDatum>();
for (MetricDatum m: uniqueMetrics.values()) {
data.add(m);
if (data.size() == CloudWatchMetricConfig.MAX_METRICS_DATUM_SIZE) {
list.addAll(newPutMetricDataRequests(data));
data.clear();
}
}
if (data.size() > 0) {
list.addAll(newPutMetricDataRequests(data));
}
return list;
}
|
[
"private",
"Iterable",
"<",
"PutMetricDataRequest",
">",
"toPutMetricDataRequests",
"(",
"Map",
"<",
"String",
",",
"MetricDatum",
">",
"uniqueMetrics",
")",
"{",
"// Opportunistically generates some machine metrics whenever there",
"// is metrics consolidation",
"for",
"(",
"MetricDatum",
"datum",
":",
"machineMetricFactory",
".",
"generateMetrics",
"(",
")",
")",
"{",
"summarize",
"(",
"datum",
",",
"uniqueMetrics",
")",
";",
"}",
"List",
"<",
"PutMetricDataRequest",
">",
"list",
"=",
"new",
"ArrayList",
"<",
"PutMetricDataRequest",
">",
"(",
")",
";",
"List",
"<",
"MetricDatum",
">",
"data",
"=",
"new",
"ArrayList",
"<",
"MetricDatum",
">",
"(",
")",
";",
"for",
"(",
"MetricDatum",
"m",
":",
"uniqueMetrics",
".",
"values",
"(",
")",
")",
"{",
"data",
".",
"add",
"(",
"m",
")",
";",
"if",
"(",
"data",
".",
"size",
"(",
")",
"==",
"CloudWatchMetricConfig",
".",
"MAX_METRICS_DATUM_SIZE",
")",
"{",
"list",
".",
"addAll",
"(",
"newPutMetricDataRequests",
"(",
"data",
")",
")",
";",
"data",
".",
"clear",
"(",
")",
";",
"}",
"}",
"if",
"(",
"data",
".",
"size",
"(",
")",
">",
"0",
")",
"{",
"list",
".",
"addAll",
"(",
"newPutMetricDataRequests",
"(",
"data",
")",
")",
";",
"}",
"return",
"list",
";",
"}"
] |
Consolidates the input metrics into a list of PutMetricDataRequest, each
within the maximum size limit imposed by CloudWatch.
|
[
"Consolidates",
"the",
"input",
"metrics",
"into",
"a",
"list",
"of",
"PutMetricDataRequest",
"each",
"within",
"the",
"maximum",
"size",
"limit",
"imposed",
"by",
"CloudWatch",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/BlockingRequestBuilder.java#L142-L162
|
19,841
|
aws/aws-sdk-java
|
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/BlockingRequestBuilder.java
|
BlockingRequestBuilder.filterOSMetrics
|
private Collection<MetricDatum> filterOSMetrics(Collection<MetricDatum> data) {
Collection<MetricDatum> output = new ArrayList<MetricDatum>(data.size());
for (MetricDatum datum: data) {
if (!OS_METRIC_NAME.equals(datum.getMetricName()))
output.add(datum);
}
return output;
}
|
java
|
private Collection<MetricDatum> filterOSMetrics(Collection<MetricDatum> data) {
Collection<MetricDatum> output = new ArrayList<MetricDatum>(data.size());
for (MetricDatum datum: data) {
if (!OS_METRIC_NAME.equals(datum.getMetricName()))
output.add(datum);
}
return output;
}
|
[
"private",
"Collection",
"<",
"MetricDatum",
">",
"filterOSMetrics",
"(",
"Collection",
"<",
"MetricDatum",
">",
"data",
")",
"{",
"Collection",
"<",
"MetricDatum",
">",
"output",
"=",
"new",
"ArrayList",
"<",
"MetricDatum",
">",
"(",
"data",
".",
"size",
"(",
")",
")",
";",
"for",
"(",
"MetricDatum",
"datum",
":",
"data",
")",
"{",
"if",
"(",
"!",
"OS_METRIC_NAME",
".",
"equals",
"(",
"datum",
".",
"getMetricName",
"(",
")",
")",
")",
"output",
".",
"add",
"(",
"datum",
")",
";",
"}",
"return",
"output",
";",
"}"
] |
Return a collection of metrics almost the same as the input except with
all OS metrics removed.
|
[
"Return",
"a",
"collection",
"of",
"metrics",
"almost",
"the",
"same",
"as",
"the",
"input",
"except",
"with",
"all",
"OS",
"metrics",
"removed",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/BlockingRequestBuilder.java#L225-L232
|
19,842
|
aws/aws-sdk-java
|
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/BlockingRequestBuilder.java
|
BlockingRequestBuilder.cloneMetricDatum
|
final MetricDatum cloneMetricDatum(MetricDatum md) {
return new MetricDatum()
.withDimensions(md.getDimensions()) // a new collection is created
.withMetricName(md.getMetricName())
.withStatisticValues(md.getStatisticValues())
.withTimestamp(md.getTimestamp())
.withUnit(md.getUnit())
.withValue(md.getValue());
}
|
java
|
final MetricDatum cloneMetricDatum(MetricDatum md) {
return new MetricDatum()
.withDimensions(md.getDimensions()) // a new collection is created
.withMetricName(md.getMetricName())
.withStatisticValues(md.getStatisticValues())
.withTimestamp(md.getTimestamp())
.withUnit(md.getUnit())
.withValue(md.getValue());
}
|
[
"final",
"MetricDatum",
"cloneMetricDatum",
"(",
"MetricDatum",
"md",
")",
"{",
"return",
"new",
"MetricDatum",
"(",
")",
".",
"withDimensions",
"(",
"md",
".",
"getDimensions",
"(",
")",
")",
"// a new collection is created",
".",
"withMetricName",
"(",
"md",
".",
"getMetricName",
"(",
")",
")",
".",
"withStatisticValues",
"(",
"md",
".",
"getStatisticValues",
"(",
")",
")",
".",
"withTimestamp",
"(",
"md",
".",
"getTimestamp",
"(",
")",
")",
".",
"withUnit",
"(",
"md",
".",
"getUnit",
"(",
")",
")",
".",
"withValue",
"(",
"md",
".",
"getValue",
"(",
")",
")",
";",
"}"
] |
Returns a metric datum cloned from the given one.
Made package private only for testing purposes.
|
[
"Returns",
"a",
"metric",
"datum",
"cloned",
"from",
"the",
"given",
"one",
".",
"Made",
"package",
"private",
"only",
"for",
"testing",
"purposes",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/BlockingRequestBuilder.java#L260-L268
|
19,843
|
aws/aws-sdk-java
|
aws-java-sdk-mediapackage/src/main/java/com/amazonaws/services/mediapackage/model/ListChannelsResult.java
|
ListChannelsResult.setChannels
|
public void setChannels(java.util.Collection<Channel> channels) {
if (channels == null) {
this.channels = null;
return;
}
this.channels = new java.util.ArrayList<Channel>(channels);
}
|
java
|
public void setChannels(java.util.Collection<Channel> channels) {
if (channels == null) {
this.channels = null;
return;
}
this.channels = new java.util.ArrayList<Channel>(channels);
}
|
[
"public",
"void",
"setChannels",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"Channel",
">",
"channels",
")",
"{",
"if",
"(",
"channels",
"==",
"null",
")",
"{",
"this",
".",
"channels",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"channels",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"Channel",
">",
"(",
"channels",
")",
";",
"}"
] |
A list of Channel records.
@param channels
A list of Channel records.
|
[
"A",
"list",
"of",
"Channel",
"records",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediapackage/src/main/java/com/amazonaws/services/mediapackage/model/ListChannelsResult.java#L48-L55
|
19,844
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.archiveFindings
|
@Override
public ArchiveFindingsResult archiveFindings(ArchiveFindingsRequest request) {
request = beforeClientExecution(request);
return executeArchiveFindings(request);
}
|
java
|
@Override
public ArchiveFindingsResult archiveFindings(ArchiveFindingsRequest request) {
request = beforeClientExecution(request);
return executeArchiveFindings(request);
}
|
[
"@",
"Override",
"public",
"ArchiveFindingsResult",
"archiveFindings",
"(",
"ArchiveFindingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeArchiveFindings",
"(",
"request",
")",
";",
"}"
] |
Archives Amazon GuardDuty findings specified by the list of finding IDs.
@param archiveFindingsRequest
ArchiveFindings request body.
@return Result of the ArchiveFindings operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.ArchiveFindings
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ArchiveFindings" target="_top">AWS API
Documentation</a>
|
[
"Archives",
"Amazon",
"GuardDuty",
"findings",
"specified",
"by",
"the",
"list",
"of",
"finding",
"IDs",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L201-L205
|
19,845
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.createDetector
|
@Override
public CreateDetectorResult createDetector(CreateDetectorRequest request) {
request = beforeClientExecution(request);
return executeCreateDetector(request);
}
|
java
|
@Override
public CreateDetectorResult createDetector(CreateDetectorRequest request) {
request = beforeClientExecution(request);
return executeCreateDetector(request);
}
|
[
"@",
"Override",
"public",
"CreateDetectorResult",
"createDetector",
"(",
"CreateDetectorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDetector",
"(",
"request",
")",
";",
"}"
] |
Creates a single Amazon GuardDuty detector. A detector is an object that represents the GuardDuty service. A
detector must be created in order for GuardDuty to become operational.
@param createDetectorRequest
CreateDetector request body.
@return Result of the CreateDetector operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.CreateDetector
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateDetector" target="_top">AWS API
Documentation</a>
|
[
"Creates",
"a",
"single",
"Amazon",
"GuardDuty",
"detector",
".",
"A",
"detector",
"is",
"an",
"object",
"that",
"represents",
"the",
"GuardDuty",
"service",
".",
"A",
"detector",
"must",
"be",
"created",
"in",
"order",
"for",
"GuardDuty",
"to",
"become",
"operational",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L257-L261
|
19,846
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.createFilter
|
@Override
public CreateFilterResult createFilter(CreateFilterRequest request) {
request = beforeClientExecution(request);
return executeCreateFilter(request);
}
|
java
|
@Override
public CreateFilterResult createFilter(CreateFilterRequest request) {
request = beforeClientExecution(request);
return executeCreateFilter(request);
}
|
[
"@",
"Override",
"public",
"CreateFilterResult",
"createFilter",
"(",
"CreateFilterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateFilter",
"(",
"request",
")",
";",
"}"
] |
Creates a filter using the specified finding criteria.
@param createFilterRequest
CreateFilterRequest request body.
@return Result of the CreateFilter operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.CreateFilter
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateFilter" target="_top">AWS API
Documentation</a>
|
[
"Creates",
"a",
"filter",
"using",
"the",
"specified",
"finding",
"criteria",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L312-L316
|
19,847
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.createIPSet
|
@Override
public CreateIPSetResult createIPSet(CreateIPSetRequest request) {
request = beforeClientExecution(request);
return executeCreateIPSet(request);
}
|
java
|
@Override
public CreateIPSetResult createIPSet(CreateIPSetRequest request) {
request = beforeClientExecution(request);
return executeCreateIPSet(request);
}
|
[
"@",
"Override",
"public",
"CreateIPSetResult",
"createIPSet",
"(",
"CreateIPSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateIPSet",
"(",
"request",
")",
";",
"}"
] |
Creates a new IPSet - a list of trusted IP addresses that have been whitelisted for secure communication with AWS
infrastructure and applications.
@param createIPSetRequest
CreateIPSet request body.
@return Result of the CreateIPSet operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.CreateIPSet
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateIPSet" target="_top">AWS API
Documentation</a>
|
[
"Creates",
"a",
"new",
"IPSet",
"-",
"a",
"list",
"of",
"trusted",
"IP",
"addresses",
"that",
"have",
"been",
"whitelisted",
"for",
"secure",
"communication",
"with",
"AWS",
"infrastructure",
"and",
"applications",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L368-L372
|
19,848
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.createSampleFindings
|
@Override
public CreateSampleFindingsResult createSampleFindings(CreateSampleFindingsRequest request) {
request = beforeClientExecution(request);
return executeCreateSampleFindings(request);
}
|
java
|
@Override
public CreateSampleFindingsResult createSampleFindings(CreateSampleFindingsRequest request) {
request = beforeClientExecution(request);
return executeCreateSampleFindings(request);
}
|
[
"@",
"Override",
"public",
"CreateSampleFindingsResult",
"createSampleFindings",
"(",
"CreateSampleFindingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateSampleFindings",
"(",
"request",
")",
";",
"}"
] |
Generates example findings of types specified by the list of finding types. If 'NULL' is specified for
findingTypes, the API generates example findings of all supported finding types.
@param createSampleFindingsRequest
CreateSampleFindings request body.
@return Result of the CreateSampleFindings operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.CreateSampleFindings
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateSampleFindings" target="_top">AWS
API Documentation</a>
|
[
"Generates",
"example",
"findings",
"of",
"types",
"specified",
"by",
"the",
"list",
"of",
"finding",
"types",
".",
"If",
"NULL",
"is",
"specified",
"for",
"findingTypes",
"the",
"API",
"generates",
"example",
"findings",
"of",
"all",
"supported",
"finding",
"types",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L480-L484
|
19,849
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.createThreatIntelSet
|
@Override
public CreateThreatIntelSetResult createThreatIntelSet(CreateThreatIntelSetRequest request) {
request = beforeClientExecution(request);
return executeCreateThreatIntelSet(request);
}
|
java
|
@Override
public CreateThreatIntelSetResult createThreatIntelSet(CreateThreatIntelSetRequest request) {
request = beforeClientExecution(request);
return executeCreateThreatIntelSet(request);
}
|
[
"@",
"Override",
"public",
"CreateThreatIntelSetResult",
"createThreatIntelSet",
"(",
"CreateThreatIntelSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateThreatIntelSet",
"(",
"request",
")",
";",
"}"
] |
Create a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates
findings based on ThreatIntelSets.
@param createThreatIntelSetRequest
CreateThreatIntelSet request body.
@return Result of the CreateThreatIntelSet operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.CreateThreatIntelSet
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateThreatIntelSet" target="_top">AWS
API Documentation</a>
|
[
"Create",
"a",
"new",
"ThreatIntelSet",
".",
"ThreatIntelSets",
"consist",
"of",
"known",
"malicious",
"IP",
"addresses",
".",
"GuardDuty",
"generates",
"findings",
"based",
"on",
"ThreatIntelSets",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L536-L540
|
19,850
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.deleteDetector
|
@Override
public DeleteDetectorResult deleteDetector(DeleteDetectorRequest request) {
request = beforeClientExecution(request);
return executeDeleteDetector(request);
}
|
java
|
@Override
public DeleteDetectorResult deleteDetector(DeleteDetectorRequest request) {
request = beforeClientExecution(request);
return executeDeleteDetector(request);
}
|
[
"@",
"Override",
"public",
"DeleteDetectorResult",
"deleteDetector",
"(",
"DeleteDetectorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDetector",
"(",
"request",
")",
";",
"}"
] |
Deletes a Amazon GuardDuty detector specified by the detector ID.
@param deleteDetectorRequest
@return Result of the DeleteDetector operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.DeleteDetector
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteDetector" target="_top">AWS API
Documentation</a>
|
[
"Deletes",
"a",
"Amazon",
"GuardDuty",
"detector",
"specified",
"by",
"the",
"detector",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L645-L649
|
19,851
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.deleteFilter
|
@Override
public DeleteFilterResult deleteFilter(DeleteFilterRequest request) {
request = beforeClientExecution(request);
return executeDeleteFilter(request);
}
|
java
|
@Override
public DeleteFilterResult deleteFilter(DeleteFilterRequest request) {
request = beforeClientExecution(request);
return executeDeleteFilter(request);
}
|
[
"@",
"Override",
"public",
"DeleteFilterResult",
"deleteFilter",
"(",
"DeleteFilterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteFilter",
"(",
"request",
")",
";",
"}"
] |
Deletes the filter specified by the filter name.
@param deleteFilterRequest
@return Result of the DeleteFilter operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.DeleteFilter
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteFilter" target="_top">AWS API
Documentation</a>
|
[
"Deletes",
"the",
"filter",
"specified",
"by",
"the",
"filter",
"name",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L699-L703
|
19,852
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.deleteIPSet
|
@Override
public DeleteIPSetResult deleteIPSet(DeleteIPSetRequest request) {
request = beforeClientExecution(request);
return executeDeleteIPSet(request);
}
|
java
|
@Override
public DeleteIPSetResult deleteIPSet(DeleteIPSetRequest request) {
request = beforeClientExecution(request);
return executeDeleteIPSet(request);
}
|
[
"@",
"Override",
"public",
"DeleteIPSetResult",
"deleteIPSet",
"(",
"DeleteIPSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteIPSet",
"(",
"request",
")",
";",
"}"
] |
Deletes the IPSet specified by the IPSet ID.
@param deleteIPSetRequest
@return Result of the DeleteIPSet operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.DeleteIPSet
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteIPSet" target="_top">AWS API
Documentation</a>
|
[
"Deletes",
"the",
"IPSet",
"specified",
"by",
"the",
"IPSet",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L753-L757
|
19,853
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.deleteThreatIntelSet
|
@Override
public DeleteThreatIntelSetResult deleteThreatIntelSet(DeleteThreatIntelSetRequest request) {
request = beforeClientExecution(request);
return executeDeleteThreatIntelSet(request);
}
|
java
|
@Override
public DeleteThreatIntelSetResult deleteThreatIntelSet(DeleteThreatIntelSetRequest request) {
request = beforeClientExecution(request);
return executeDeleteThreatIntelSet(request);
}
|
[
"@",
"Override",
"public",
"DeleteThreatIntelSetResult",
"deleteThreatIntelSet",
"(",
"DeleteThreatIntelSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteThreatIntelSet",
"(",
"request",
")",
";",
"}"
] |
Deletes ThreatIntelSet specified by the ThreatIntelSet ID.
@param deleteThreatIntelSetRequest
@return Result of the DeleteThreatIntelSet operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.DeleteThreatIntelSet
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteThreatIntelSet" target="_top">AWS
API Documentation</a>
|
[
"Deletes",
"ThreatIntelSet",
"specified",
"by",
"the",
"ThreatIntelSet",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L917-L921
|
19,854
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.getDetector
|
@Override
public GetDetectorResult getDetector(GetDetectorRequest request) {
request = beforeClientExecution(request);
return executeGetDetector(request);
}
|
java
|
@Override
public GetDetectorResult getDetector(GetDetectorRequest request) {
request = beforeClientExecution(request);
return executeGetDetector(request);
}
|
[
"@",
"Override",
"public",
"GetDetectorResult",
"getDetector",
"(",
"GetDetectorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetDetector",
"(",
"request",
")",
";",
"}"
] |
Retrieves an Amazon GuardDuty detector specified by the detectorId.
@param getDetectorRequest
@return Result of the GetDetector operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.GetDetector
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetDetector" target="_top">AWS API
Documentation</a>
|
[
"Retrieves",
"an",
"Amazon",
"GuardDuty",
"detector",
"specified",
"by",
"the",
"detectorId",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1082-L1086
|
19,855
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.getFilter
|
@Override
public GetFilterResult getFilter(GetFilterRequest request) {
request = beforeClientExecution(request);
return executeGetFilter(request);
}
|
java
|
@Override
public GetFilterResult getFilter(GetFilterRequest request) {
request = beforeClientExecution(request);
return executeGetFilter(request);
}
|
[
"@",
"Override",
"public",
"GetFilterResult",
"getFilter",
"(",
"GetFilterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetFilter",
"(",
"request",
")",
";",
"}"
] |
Returns the details of the filter specified by the filter name.
@param getFilterRequest
@return Result of the GetFilter operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.GetFilter
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFilter" target="_top">AWS API
Documentation</a>
|
[
"Returns",
"the",
"details",
"of",
"the",
"filter",
"specified",
"by",
"the",
"filter",
"name",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1136-L1140
|
19,856
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.getFindingsStatistics
|
@Override
public GetFindingsStatisticsResult getFindingsStatistics(GetFindingsStatisticsRequest request) {
request = beforeClientExecution(request);
return executeGetFindingsStatistics(request);
}
|
java
|
@Override
public GetFindingsStatisticsResult getFindingsStatistics(GetFindingsStatisticsRequest request) {
request = beforeClientExecution(request);
return executeGetFindingsStatistics(request);
}
|
[
"@",
"Override",
"public",
"GetFindingsStatisticsResult",
"getFindingsStatistics",
"(",
"GetFindingsStatisticsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetFindingsStatistics",
"(",
"request",
")",
";",
"}"
] |
Lists Amazon GuardDuty findings' statistics for the specified detector ID.
@param getFindingsStatisticsRequest
GetFindingsStatistics request body.
@return Result of the GetFindingsStatistics operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.GetFindingsStatistics
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindingsStatistics"
target="_top">AWS API Documentation</a>
|
[
"Lists",
"Amazon",
"GuardDuty",
"findings",
"statistics",
"for",
"the",
"specified",
"detector",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1246-L1250
|
19,857
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.getIPSet
|
@Override
public GetIPSetResult getIPSet(GetIPSetRequest request) {
request = beforeClientExecution(request);
return executeGetIPSet(request);
}
|
java
|
@Override
public GetIPSetResult getIPSet(GetIPSetRequest request) {
request = beforeClientExecution(request);
return executeGetIPSet(request);
}
|
[
"@",
"Override",
"public",
"GetIPSetResult",
"getIPSet",
"(",
"GetIPSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetIPSet",
"(",
"request",
")",
";",
"}"
] |
Retrieves the IPSet specified by the IPSet ID.
@param getIPSetRequest
@return Result of the GetIPSet operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.GetIPSet
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetIPSet" target="_top">AWS API
Documentation</a>
|
[
"Retrieves",
"the",
"IPSet",
"specified",
"by",
"the",
"IPSet",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1301-L1305
|
19,858
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.getThreatIntelSet
|
@Override
public GetThreatIntelSetResult getThreatIntelSet(GetThreatIntelSetRequest request) {
request = beforeClientExecution(request);
return executeGetThreatIntelSet(request);
}
|
java
|
@Override
public GetThreatIntelSetResult getThreatIntelSet(GetThreatIntelSetRequest request) {
request = beforeClientExecution(request);
return executeGetThreatIntelSet(request);
}
|
[
"@",
"Override",
"public",
"GetThreatIntelSetResult",
"getThreatIntelSet",
"(",
"GetThreatIntelSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetThreatIntelSet",
"(",
"request",
")",
";",
"}"
] |
Retrieves the ThreatIntelSet that is specified by the ThreatIntelSet ID.
@param getThreatIntelSetRequest
@return Result of the GetThreatIntelSet operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.GetThreatIntelSet
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetThreatIntelSet" target="_top">AWS
API Documentation</a>
|
[
"Retrieves",
"the",
"ThreatIntelSet",
"that",
"is",
"specified",
"by",
"the",
"ThreatIntelSet",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1519-L1523
|
19,859
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.listDetectors
|
@Override
public ListDetectorsResult listDetectors(ListDetectorsRequest request) {
request = beforeClientExecution(request);
return executeListDetectors(request);
}
|
java
|
@Override
public ListDetectorsResult listDetectors(ListDetectorsRequest request) {
request = beforeClientExecution(request);
return executeListDetectors(request);
}
|
[
"@",
"Override",
"public",
"ListDetectorsResult",
"listDetectors",
"(",
"ListDetectorsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDetectors",
"(",
"request",
")",
";",
"}"
] |
Lists detectorIds of all the existing Amazon GuardDuty detector resources.
@param listDetectorsRequest
@return Result of the ListDetectors operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.ListDetectors
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListDetectors" target="_top">AWS API
Documentation</a>
|
[
"Lists",
"detectorIds",
"of",
"all",
"the",
"existing",
"Amazon",
"GuardDuty",
"detector",
"resources",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1630-L1634
|
19,860
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.listFilters
|
@Override
public ListFiltersResult listFilters(ListFiltersRequest request) {
request = beforeClientExecution(request);
return executeListFilters(request);
}
|
java
|
@Override
public ListFiltersResult listFilters(ListFiltersRequest request) {
request = beforeClientExecution(request);
return executeListFilters(request);
}
|
[
"@",
"Override",
"public",
"ListFiltersResult",
"listFilters",
"(",
"ListFiltersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListFilters",
"(",
"request",
")",
";",
"}"
] |
Returns a paginated list of the current filters.
@param listFiltersRequest
@return Result of the ListFilters operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.ListFilters
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListFilters" target="_top">AWS API
Documentation</a>
|
[
"Returns",
"a",
"paginated",
"list",
"of",
"the",
"current",
"filters",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1684-L1688
|
19,861
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.listFindings
|
@Override
public ListFindingsResult listFindings(ListFindingsRequest request) {
request = beforeClientExecution(request);
return executeListFindings(request);
}
|
java
|
@Override
public ListFindingsResult listFindings(ListFindingsRequest request) {
request = beforeClientExecution(request);
return executeListFindings(request);
}
|
[
"@",
"Override",
"public",
"ListFindingsResult",
"listFindings",
"(",
"ListFindingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListFindings",
"(",
"request",
")",
";",
"}"
] |
Lists Amazon GuardDuty findings for the specified detector ID.
@param listFindingsRequest
ListFindings request body.
@return Result of the ListFindings operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.ListFindings
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListFindings" target="_top">AWS API
Documentation</a>
|
[
"Lists",
"Amazon",
"GuardDuty",
"findings",
"for",
"the",
"specified",
"detector",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1739-L1743
|
19,862
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.listIPSets
|
@Override
public ListIPSetsResult listIPSets(ListIPSetsRequest request) {
request = beforeClientExecution(request);
return executeListIPSets(request);
}
|
java
|
@Override
public ListIPSetsResult listIPSets(ListIPSetsRequest request) {
request = beforeClientExecution(request);
return executeListIPSets(request);
}
|
[
"@",
"Override",
"public",
"ListIPSetsResult",
"listIPSets",
"(",
"ListIPSetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListIPSets",
"(",
"request",
")",
";",
"}"
] |
Lists the IPSets of the GuardDuty service specified by the detector ID.
@param listIPSetsRequest
@return Result of the ListIPSets operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.ListIPSets
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListIPSets" target="_top">AWS API
Documentation</a>
|
[
"Lists",
"the",
"IPSets",
"of",
"the",
"GuardDuty",
"service",
"specified",
"by",
"the",
"detector",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1793-L1797
|
19,863
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.listThreatIntelSets
|
@Override
public ListThreatIntelSetsResult listThreatIntelSets(ListThreatIntelSetsRequest request) {
request = beforeClientExecution(request);
return executeListThreatIntelSets(request);
}
|
java
|
@Override
public ListThreatIntelSetsResult listThreatIntelSets(ListThreatIntelSetsRequest request) {
request = beforeClientExecution(request);
return executeListThreatIntelSets(request);
}
|
[
"@",
"Override",
"public",
"ListThreatIntelSetsResult",
"listThreatIntelSets",
"(",
"ListThreatIntelSetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListThreatIntelSets",
"(",
"request",
")",
";",
"}"
] |
Lists the ThreatIntelSets of the GuardDuty service specified by the detector ID.
@param listThreatIntelSetsRequest
@return Result of the ListThreatIntelSets operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.ListThreatIntelSets
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ListThreatIntelSets" target="_top">AWS
API Documentation</a>
|
[
"Lists",
"the",
"ThreatIntelSets",
"of",
"the",
"GuardDuty",
"service",
"specified",
"by",
"the",
"detector",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L1955-L1959
|
19,864
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.startMonitoringMembers
|
@Override
public StartMonitoringMembersResult startMonitoringMembers(StartMonitoringMembersRequest request) {
request = beforeClientExecution(request);
return executeStartMonitoringMembers(request);
}
|
java
|
@Override
public StartMonitoringMembersResult startMonitoringMembers(StartMonitoringMembersRequest request) {
request = beforeClientExecution(request);
return executeStartMonitoringMembers(request);
}
|
[
"@",
"Override",
"public",
"StartMonitoringMembersResult",
"startMonitoringMembers",
"(",
"StartMonitoringMembersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartMonitoringMembers",
"(",
"request",
")",
";",
"}"
] |
Re-enables GuardDuty to monitor findings of the member accounts specified by the account IDs. A master GuardDuty
account can run this command after disabling GuardDuty from monitoring these members' findings by running
StopMonitoringMembers.
@param startMonitoringMembersRequest
StartMonitoringMembers request body.
@return Result of the StartMonitoringMembers operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.StartMonitoringMembers
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/StartMonitoringMembers"
target="_top">AWS API Documentation</a>
|
[
"Re",
"-",
"enables",
"GuardDuty",
"to",
"monitor",
"findings",
"of",
"the",
"member",
"accounts",
"specified",
"by",
"the",
"account",
"IDs",
".",
"A",
"master",
"GuardDuty",
"account",
"can",
"run",
"this",
"command",
"after",
"disabling",
"GuardDuty",
"from",
"monitoring",
"these",
"members",
"findings",
"by",
"running",
"StopMonitoringMembers",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L2012-L2016
|
19,865
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.unarchiveFindings
|
@Override
public UnarchiveFindingsResult unarchiveFindings(UnarchiveFindingsRequest request) {
request = beforeClientExecution(request);
return executeUnarchiveFindings(request);
}
|
java
|
@Override
public UnarchiveFindingsResult unarchiveFindings(UnarchiveFindingsRequest request) {
request = beforeClientExecution(request);
return executeUnarchiveFindings(request);
}
|
[
"@",
"Override",
"public",
"UnarchiveFindingsResult",
"unarchiveFindings",
"(",
"UnarchiveFindingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUnarchiveFindings",
"(",
"request",
")",
";",
"}"
] |
Unarchives Amazon GuardDuty findings specified by the list of finding IDs.
@param unarchiveFindingsRequest
UnarchiveFindings request body.
@return Result of the UnarchiveFindings operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.UnarchiveFindings
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UnarchiveFindings" target="_top">AWS
API Documentation</a>
|
[
"Unarchives",
"Amazon",
"GuardDuty",
"findings",
"specified",
"by",
"the",
"list",
"of",
"finding",
"IDs",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L2126-L2130
|
19,866
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.updateDetector
|
@Override
public UpdateDetectorResult updateDetector(UpdateDetectorRequest request) {
request = beforeClientExecution(request);
return executeUpdateDetector(request);
}
|
java
|
@Override
public UpdateDetectorResult updateDetector(UpdateDetectorRequest request) {
request = beforeClientExecution(request);
return executeUpdateDetector(request);
}
|
[
"@",
"Override",
"public",
"UpdateDetectorResult",
"updateDetector",
"(",
"UpdateDetectorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDetector",
"(",
"request",
")",
";",
"}"
] |
Updates an Amazon GuardDuty detector specified by the detectorId.
@param updateDetectorRequest
UpdateDetector request body.
@return Result of the UpdateDetector operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.UpdateDetector
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateDetector" target="_top">AWS API
Documentation</a>
|
[
"Updates",
"an",
"Amazon",
"GuardDuty",
"detector",
"specified",
"by",
"the",
"detectorId",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L2181-L2185
|
19,867
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.updateFilter
|
@Override
public UpdateFilterResult updateFilter(UpdateFilterRequest request) {
request = beforeClientExecution(request);
return executeUpdateFilter(request);
}
|
java
|
@Override
public UpdateFilterResult updateFilter(UpdateFilterRequest request) {
request = beforeClientExecution(request);
return executeUpdateFilter(request);
}
|
[
"@",
"Override",
"public",
"UpdateFilterResult",
"updateFilter",
"(",
"UpdateFilterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateFilter",
"(",
"request",
")",
";",
"}"
] |
Updates the filter specified by the filter name.
@param updateFilterRequest
UpdateFilterRequest request body.
@return Result of the UpdateFilter operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.UpdateFilter
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateFilter" target="_top">AWS API
Documentation</a>
|
[
"Updates",
"the",
"filter",
"specified",
"by",
"the",
"filter",
"name",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L2236-L2240
|
19,868
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.updateFindingsFeedback
|
@Override
public UpdateFindingsFeedbackResult updateFindingsFeedback(UpdateFindingsFeedbackRequest request) {
request = beforeClientExecution(request);
return executeUpdateFindingsFeedback(request);
}
|
java
|
@Override
public UpdateFindingsFeedbackResult updateFindingsFeedback(UpdateFindingsFeedbackRequest request) {
request = beforeClientExecution(request);
return executeUpdateFindingsFeedback(request);
}
|
[
"@",
"Override",
"public",
"UpdateFindingsFeedbackResult",
"updateFindingsFeedback",
"(",
"UpdateFindingsFeedbackRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateFindingsFeedback",
"(",
"request",
")",
";",
"}"
] |
Marks specified Amazon GuardDuty findings as useful or not useful.
@param updateFindingsFeedbackRequest
UpdateFindingsFeedback request body.
@return Result of the UpdateFindingsFeedback operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.UpdateFindingsFeedback
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateFindingsFeedback"
target="_top">AWS API Documentation</a>
|
[
"Marks",
"specified",
"Amazon",
"GuardDuty",
"findings",
"as",
"useful",
"or",
"not",
"useful",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L2291-L2295
|
19,869
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.updateIPSet
|
@Override
public UpdateIPSetResult updateIPSet(UpdateIPSetRequest request) {
request = beforeClientExecution(request);
return executeUpdateIPSet(request);
}
|
java
|
@Override
public UpdateIPSetResult updateIPSet(UpdateIPSetRequest request) {
request = beforeClientExecution(request);
return executeUpdateIPSet(request);
}
|
[
"@",
"Override",
"public",
"UpdateIPSetResult",
"updateIPSet",
"(",
"UpdateIPSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateIPSet",
"(",
"request",
")",
";",
"}"
] |
Updates the IPSet specified by the IPSet ID.
@param updateIPSetRequest
UpdateIPSet request body.
@return Result of the UpdateIPSet operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.UpdateIPSet
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateIPSet" target="_top">AWS API
Documentation</a>
|
[
"Updates",
"the",
"IPSet",
"specified",
"by",
"the",
"IPSet",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L2347-L2351
|
19,870
|
aws/aws-sdk-java
|
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java
|
AmazonGuardDutyClient.updateThreatIntelSet
|
@Override
public UpdateThreatIntelSetResult updateThreatIntelSet(UpdateThreatIntelSetRequest request) {
request = beforeClientExecution(request);
return executeUpdateThreatIntelSet(request);
}
|
java
|
@Override
public UpdateThreatIntelSetResult updateThreatIntelSet(UpdateThreatIntelSetRequest request) {
request = beforeClientExecution(request);
return executeUpdateThreatIntelSet(request);
}
|
[
"@",
"Override",
"public",
"UpdateThreatIntelSetResult",
"updateThreatIntelSet",
"(",
"UpdateThreatIntelSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateThreatIntelSet",
"(",
"request",
")",
";",
"}"
] |
Updates the ThreatIntelSet specified by ThreatIntelSet ID.
@param updateThreatIntelSetRequest
UpdateThreatIntelSet request body.
@return Result of the UpdateThreatIntelSet operation returned by the service.
@throws BadRequestException
400 response
@throws InternalServerErrorException
500 response
@sample AmazonGuardDuty.UpdateThreatIntelSet
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/UpdateThreatIntelSet" target="_top">AWS
API Documentation</a>
|
[
"Updates",
"the",
"ThreatIntelSet",
"specified",
"by",
"ThreatIntelSet",
"ID",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/AmazonGuardDutyClient.java#L2402-L2406
|
19,871
|
aws/aws-sdk-java
|
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ActivitiesResponse.java
|
ActivitiesResponse.setItem
|
public void setItem(java.util.Collection<ActivityResponse> item) {
if (item == null) {
this.item = null;
return;
}
this.item = new java.util.ArrayList<ActivityResponse>(item);
}
|
java
|
public void setItem(java.util.Collection<ActivityResponse> item) {
if (item == null) {
this.item = null;
return;
}
this.item = new java.util.ArrayList<ActivityResponse>(item);
}
|
[
"public",
"void",
"setItem",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"ActivityResponse",
">",
"item",
")",
"{",
"if",
"(",
"item",
"==",
"null",
")",
"{",
"this",
".",
"item",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"item",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"ActivityResponse",
">",
"(",
"item",
")",
";",
"}"
] |
List of campaign activities
@param item
List of campaign activities
|
[
"List",
"of",
"campaign",
"activities"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ActivitiesResponse.java#L51-L58
|
19,872
|
aws/aws-sdk-java
|
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/waiters/AmazonKinesisWaiters.java
|
AmazonKinesisWaiters.streamExists
|
public Waiter<DescribeStreamRequest> streamExists() {
return new WaiterBuilder<DescribeStreamRequest, DescribeStreamResult>().withSdkFunction(new DescribeStreamFunction(client))
.withAcceptors(new StreamExists.IsACTIVEMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(18), new FixedDelayStrategy(10)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeStreamRequest> streamExists() {
return new WaiterBuilder<DescribeStreamRequest, DescribeStreamResult>().withSdkFunction(new DescribeStreamFunction(client))
.withAcceptors(new StreamExists.IsACTIVEMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(18), new FixedDelayStrategy(10)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeStreamRequest",
">",
"streamExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeStreamRequest",
",",
"DescribeStreamResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeStreamFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"StreamExists",
".",
"IsACTIVEMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"18",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"10",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a StreamExists waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"StreamExists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/waiters/AmazonKinesisWaiters.java#L51-L57
|
19,873
|
aws/aws-sdk-java
|
aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/waiters/AmazonKinesisWaiters.java
|
AmazonKinesisWaiters.streamNotExists
|
public Waiter<DescribeStreamRequest> streamNotExists() {
return new WaiterBuilder<DescribeStreamRequest, DescribeStreamResult>().withSdkFunction(new DescribeStreamFunction(client))
.withAcceptors(new StreamNotExists.IsResourceNotFoundExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(18), new FixedDelayStrategy(10)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeStreamRequest> streamNotExists() {
return new WaiterBuilder<DescribeStreamRequest, DescribeStreamResult>().withSdkFunction(new DescribeStreamFunction(client))
.withAcceptors(new StreamNotExists.IsResourceNotFoundExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(18), new FixedDelayStrategy(10)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeStreamRequest",
">",
"streamNotExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeStreamRequest",
",",
"DescribeStreamResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeStreamFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"StreamNotExists",
".",
"IsResourceNotFoundExceptionMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"18",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"10",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a StreamNotExists waiter by using custom parameters waiterParameters and other parameters defined in the
waiters specification, and then polls until it determines whether the resource entered the desired state or not,
where polling criteria is bound by either default polling strategy or custom polling strategy.
|
[
"Builds",
"a",
"StreamNotExists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
"entered",
"the",
"desired",
"state",
"or",
"not",
"where",
"polling",
"criteria",
"is",
"bound",
"by",
"either",
"default",
"polling",
"strategy",
"or",
"custom",
"polling",
"strategy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-kinesis/src/main/java/com/amazonaws/services/kinesis/waiters/AmazonKinesisWaiters.java#L64-L70
|
19,874
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/auth/internal/AWS4SignerRequestParams.java
|
AWS4SignerRequestParams.generateScope
|
private String generateScope(SignableRequest<?> request, String dateStamp,
String serviceName, String regionName) {
final StringBuilder scopeBuilder = new StringBuilder();
return scopeBuilder.append(dateStamp).append("/").append(regionName)
.append("/").append(serviceName).append("/")
.append(SignerConstants.AWS4_TERMINATOR).toString();
}
|
java
|
private String generateScope(SignableRequest<?> request, String dateStamp,
String serviceName, String regionName) {
final StringBuilder scopeBuilder = new StringBuilder();
return scopeBuilder.append(dateStamp).append("/").append(regionName)
.append("/").append(serviceName).append("/")
.append(SignerConstants.AWS4_TERMINATOR).toString();
}
|
[
"private",
"String",
"generateScope",
"(",
"SignableRequest",
"<",
"?",
">",
"request",
",",
"String",
"dateStamp",
",",
"String",
"serviceName",
",",
"String",
"regionName",
")",
"{",
"final",
"StringBuilder",
"scopeBuilder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"return",
"scopeBuilder",
".",
"append",
"(",
"dateStamp",
")",
".",
"append",
"(",
"\"/\"",
")",
".",
"append",
"(",
"regionName",
")",
".",
"append",
"(",
"\"/\"",
")",
".",
"append",
"(",
"serviceName",
")",
".",
"append",
"(",
"\"/\"",
")",
".",
"append",
"(",
"SignerConstants",
".",
"AWS4_TERMINATOR",
")",
".",
"toString",
"(",
")",
";",
"}"
] |
Returns the scope to be used for the signing.
|
[
"Returns",
"the",
"scope",
"to",
"be",
"used",
"for",
"the",
"signing",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/internal/AWS4SignerRequestParams.java#L135-L141
|
19,875
|
aws/aws-sdk-java
|
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/BootstrapActions.java
|
BootstrapActions.newRunIf
|
public BootstrapActionConfig newRunIf(String condition, BootstrapActionConfig config) {
List<String> args = config.getScriptBootstrapAction().getArgs();
args.add(0, condition);
args.add(1, config.getScriptBootstrapAction().getPath());
return new BootstrapActionConfig()
.withName("Run If, " + config.getName())
.withScriptBootstrapAction(new ScriptBootstrapActionConfig()
.withPath("s3://" + bucket + "/bootstrap-actions/run-if")
.withArgs(args));
}
|
java
|
public BootstrapActionConfig newRunIf(String condition, BootstrapActionConfig config) {
List<String> args = config.getScriptBootstrapAction().getArgs();
args.add(0, condition);
args.add(1, config.getScriptBootstrapAction().getPath());
return new BootstrapActionConfig()
.withName("Run If, " + config.getName())
.withScriptBootstrapAction(new ScriptBootstrapActionConfig()
.withPath("s3://" + bucket + "/bootstrap-actions/run-if")
.withArgs(args));
}
|
[
"public",
"BootstrapActionConfig",
"newRunIf",
"(",
"String",
"condition",
",",
"BootstrapActionConfig",
"config",
")",
"{",
"List",
"<",
"String",
">",
"args",
"=",
"config",
".",
"getScriptBootstrapAction",
"(",
")",
".",
"getArgs",
"(",
")",
";",
"args",
".",
"add",
"(",
"0",
",",
"condition",
")",
";",
"args",
".",
"add",
"(",
"1",
",",
"config",
".",
"getScriptBootstrapAction",
"(",
")",
".",
"getPath",
"(",
")",
")",
";",
"return",
"new",
"BootstrapActionConfig",
"(",
")",
".",
"withName",
"(",
"\"Run If, \"",
"+",
"config",
".",
"getName",
"(",
")",
")",
".",
"withScriptBootstrapAction",
"(",
"new",
"ScriptBootstrapActionConfig",
"(",
")",
".",
"withPath",
"(",
"\"s3://\"",
"+",
"bucket",
"+",
"\"/bootstrap-actions/run-if\"",
")",
".",
"withArgs",
"(",
"args",
")",
")",
";",
"}"
] |
Create a new run-if bootstrap action which lets you conditionally run bootstrap actions.
@param condition The condition to evaluate, if true the bootstrap action executes.
@param config The bootstrap action to execute in case of successful evaluation.
@return A BootstrapActionConfig to be provided when running a job flow.
|
[
"Create",
"a",
"new",
"run",
"-",
"if",
"bootstrap",
"action",
"which",
"lets",
"you",
"conditionally",
"run",
"bootstrap",
"actions",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/BootstrapActions.java#L77-L87
|
19,876
|
aws/aws-sdk-java
|
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/Messages.java
|
Messages.setErrors
|
public void setErrors(java.util.Collection<String> errors) {
if (errors == null) {
this.errors = null;
return;
}
this.errors = new java.util.ArrayList<String>(errors);
}
|
java
|
public void setErrors(java.util.Collection<String> errors) {
if (errors == null) {
this.errors = null;
return;
}
this.errors = new java.util.ArrayList<String>(errors);
}
|
[
"public",
"void",
"setErrors",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"String",
">",
"errors",
")",
"{",
"if",
"(",
"errors",
"==",
"null",
")",
"{",
"this",
".",
"errors",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"errors",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"String",
">",
"(",
"errors",
")",
";",
"}"
] |
A list of errors that might have been generated from processes on this flow.
@param errors
A list of errors that might have been generated from processes on this flow.
|
[
"A",
"list",
"of",
"errors",
"that",
"might",
"have",
"been",
"generated",
"from",
"processes",
"on",
"this",
"flow",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/Messages.java#L49-L56
|
19,877
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/AccessControlTranslation.java
|
AccessControlTranslation.withOwner
|
public AccessControlTranslation withOwner(OwnerOverride owner) {
setOwner(owner == null ? null : owner.toString());
return this;
}
|
java
|
public AccessControlTranslation withOwner(OwnerOverride owner) {
setOwner(owner == null ? null : owner.toString());
return this;
}
|
[
"public",
"AccessControlTranslation",
"withOwner",
"(",
"OwnerOverride",
"owner",
")",
"{",
"setOwner",
"(",
"owner",
"==",
"null",
"?",
"null",
":",
"owner",
".",
"toString",
"(",
")",
")",
";",
"return",
"this",
";",
"}"
] |
Sets the override value for the owner of the replica object.
@param owner New owner override
@return This object for method chaining.
|
[
"Sets",
"the",
"override",
"value",
"for",
"the",
"owner",
"of",
"the",
"replica",
"object",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/AccessControlTranslation.java#L66-L69
|
19,878
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/http/IdleConnectionReaper.java
|
IdleConnectionReaper.registerConnectionManager
|
public static boolean registerConnectionManager(HttpClientConnectionManager connectionManager, long maxIdleInMs) {
if (instance == null) {
synchronized (IdleConnectionReaper.class) {
if (instance == null) {
instance = new IdleConnectionReaper();
instance.start();
}
}
}
return connectionManagers.put(connectionManager, maxIdleInMs) == null;
}
|
java
|
public static boolean registerConnectionManager(HttpClientConnectionManager connectionManager, long maxIdleInMs) {
if (instance == null) {
synchronized (IdleConnectionReaper.class) {
if (instance == null) {
instance = new IdleConnectionReaper();
instance.start();
}
}
}
return connectionManagers.put(connectionManager, maxIdleInMs) == null;
}
|
[
"public",
"static",
"boolean",
"registerConnectionManager",
"(",
"HttpClientConnectionManager",
"connectionManager",
",",
"long",
"maxIdleInMs",
")",
"{",
"if",
"(",
"instance",
"==",
"null",
")",
"{",
"synchronized",
"(",
"IdleConnectionReaper",
".",
"class",
")",
"{",
"if",
"(",
"instance",
"==",
"null",
")",
"{",
"instance",
"=",
"new",
"IdleConnectionReaper",
"(",
")",
";",
"instance",
".",
"start",
"(",
")",
";",
"}",
"}",
"}",
"return",
"connectionManagers",
".",
"put",
"(",
"connectionManager",
",",
"maxIdleInMs",
")",
"==",
"null",
";",
"}"
] |
Registers the given connection manager with this reaper;
@param connectionManager Connection manager to register
@param maxIdleInMs Max idle connection timeout in milliseconds for this connection manager.
@return true if the connection manager has been successfully registered; false otherwise.
|
[
"Registers",
"the",
"given",
"connection",
"manager",
"with",
"this",
"reaper",
";"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/http/IdleConnectionReaper.java#L105-L115
|
19,879
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/http/IdleConnectionReaper.java
|
IdleConnectionReaper.removeConnectionManager
|
public static boolean removeConnectionManager(HttpClientConnectionManager connectionManager) {
boolean wasRemoved = connectionManagers.remove(connectionManager) != null;
if (connectionManagers.isEmpty()) {
shutdown();
}
return wasRemoved;
}
|
java
|
public static boolean removeConnectionManager(HttpClientConnectionManager connectionManager) {
boolean wasRemoved = connectionManagers.remove(connectionManager) != null;
if (connectionManagers.isEmpty()) {
shutdown();
}
return wasRemoved;
}
|
[
"public",
"static",
"boolean",
"removeConnectionManager",
"(",
"HttpClientConnectionManager",
"connectionManager",
")",
"{",
"boolean",
"wasRemoved",
"=",
"connectionManagers",
".",
"remove",
"(",
"connectionManager",
")",
"!=",
"null",
";",
"if",
"(",
"connectionManagers",
".",
"isEmpty",
"(",
")",
")",
"{",
"shutdown",
"(",
")",
";",
"}",
"return",
"wasRemoved",
";",
"}"
] |
Removes the given connection manager from this reaper,
and shutting down the reaper if there is zero connection manager left.
@return true if the connection manager has been successfully removed;
false otherwise.
|
[
"Removes",
"the",
"given",
"connection",
"manager",
"from",
"this",
"reaper",
"and",
"shutting",
"down",
"the",
"reaper",
"if",
"there",
"is",
"zero",
"connection",
"manager",
"left",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/http/IdleConnectionReaper.java#L124-L130
|
19,880
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.createAccessKeyAsync
|
@Override
public java.util.concurrent.Future<CreateAccessKeyResult> createAccessKeyAsync(
com.amazonaws.handlers.AsyncHandler<CreateAccessKeyRequest, CreateAccessKeyResult> asyncHandler) {
return createAccessKeyAsync(new CreateAccessKeyRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<CreateAccessKeyResult> createAccessKeyAsync(
com.amazonaws.handlers.AsyncHandler<CreateAccessKeyRequest, CreateAccessKeyResult> asyncHandler) {
return createAccessKeyAsync(new CreateAccessKeyRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"CreateAccessKeyResult",
">",
"createAccessKeyAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"CreateAccessKeyRequest",
",",
"CreateAccessKeyResult",
">",
"asyncHandler",
")",
"{",
"return",
"createAccessKeyAsync",
"(",
"new",
"CreateAccessKeyRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the CreateAccessKey operation with an AsyncHandler.
@see #createAccessKeyAsync(CreateAccessKeyRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"CreateAccessKey",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L592-L597
|
19,881
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.getAccountAuthorizationDetailsAsync
|
@Override
public java.util.concurrent.Future<GetAccountAuthorizationDetailsResult> getAccountAuthorizationDetailsAsync(
com.amazonaws.handlers.AsyncHandler<GetAccountAuthorizationDetailsRequest, GetAccountAuthorizationDetailsResult> asyncHandler) {
return getAccountAuthorizationDetailsAsync(new GetAccountAuthorizationDetailsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<GetAccountAuthorizationDetailsResult> getAccountAuthorizationDetailsAsync(
com.amazonaws.handlers.AsyncHandler<GetAccountAuthorizationDetailsRequest, GetAccountAuthorizationDetailsResult> asyncHandler) {
return getAccountAuthorizationDetailsAsync(new GetAccountAuthorizationDetailsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"GetAccountAuthorizationDetailsResult",
">",
"getAccountAuthorizationDetailsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"GetAccountAuthorizationDetailsRequest",
",",
"GetAccountAuthorizationDetailsResult",
">",
"asyncHandler",
")",
"{",
"return",
"getAccountAuthorizationDetailsAsync",
"(",
"new",
"GetAccountAuthorizationDetailsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the GetAccountAuthorizationDetails operation with an AsyncHandler.
@see #getAccountAuthorizationDetailsAsync(GetAccountAuthorizationDetailsRequest,
com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"GetAccountAuthorizationDetails",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L2156-L2161
|
19,882
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.getAccountSummaryAsync
|
@Override
public java.util.concurrent.Future<GetAccountSummaryResult> getAccountSummaryAsync(
com.amazonaws.handlers.AsyncHandler<GetAccountSummaryRequest, GetAccountSummaryResult> asyncHandler) {
return getAccountSummaryAsync(new GetAccountSummaryRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<GetAccountSummaryResult> getAccountSummaryAsync(
com.amazonaws.handlers.AsyncHandler<GetAccountSummaryRequest, GetAccountSummaryResult> asyncHandler) {
return getAccountSummaryAsync(new GetAccountSummaryRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"GetAccountSummaryResult",
">",
"getAccountSummaryAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"GetAccountSummaryRequest",
",",
"GetAccountSummaryResult",
">",
"asyncHandler",
")",
"{",
"return",
"getAccountSummaryAsync",
"(",
"new",
"GetAccountSummaryRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the GetAccountSummary operation with an AsyncHandler.
@see #getAccountSummaryAsync(GetAccountSummaryRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"GetAccountSummary",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L2268-L2273
|
19,883
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.getUserAsync
|
@Override
public java.util.concurrent.Future<GetUserResult> getUserAsync(com.amazonaws.handlers.AsyncHandler<GetUserRequest, GetUserResult> asyncHandler) {
return getUserAsync(new GetUserRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<GetUserResult> getUserAsync(com.amazonaws.handlers.AsyncHandler<GetUserRequest, GetUserResult> asyncHandler) {
return getUserAsync(new GetUserRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"GetUserResult",
">",
"getUserAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"GetUserRequest",
",",
"GetUserResult",
">",
"asyncHandler",
")",
"{",
"return",
"getUserAsync",
"(",
"new",
"GetUserRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the GetUser operation with an AsyncHandler.
@see #getUserAsync(GetUserRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"GetUser",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L2949-L2953
|
19,884
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.listAccessKeysAsync
|
@Override
public java.util.concurrent.Future<ListAccessKeysResult> listAccessKeysAsync(
com.amazonaws.handlers.AsyncHandler<ListAccessKeysRequest, ListAccessKeysResult> asyncHandler) {
return listAccessKeysAsync(new ListAccessKeysRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListAccessKeysResult> listAccessKeysAsync(
com.amazonaws.handlers.AsyncHandler<ListAccessKeysRequest, ListAccessKeysResult> asyncHandler) {
return listAccessKeysAsync(new ListAccessKeysRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListAccessKeysResult",
">",
"listAccessKeysAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListAccessKeysRequest",
",",
"ListAccessKeysResult",
">",
"asyncHandler",
")",
"{",
"return",
"listAccessKeysAsync",
"(",
"new",
"ListAccessKeysRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListAccessKeys operation with an AsyncHandler.
@see #listAccessKeysAsync(ListAccessKeysRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListAccessKeys",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L3037-L3042
|
19,885
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.listAccountAliasesAsync
|
@Override
public java.util.concurrent.Future<ListAccountAliasesResult> listAccountAliasesAsync(
com.amazonaws.handlers.AsyncHandler<ListAccountAliasesRequest, ListAccountAliasesResult> asyncHandler) {
return listAccountAliasesAsync(new ListAccountAliasesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListAccountAliasesResult> listAccountAliasesAsync(
com.amazonaws.handlers.AsyncHandler<ListAccountAliasesRequest, ListAccountAliasesResult> asyncHandler) {
return listAccountAliasesAsync(new ListAccountAliasesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListAccountAliasesResult",
">",
"listAccountAliasesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListAccountAliasesRequest",
",",
"ListAccountAliasesResult",
">",
"asyncHandler",
")",
"{",
"return",
"listAccountAliasesAsync",
"(",
"new",
"ListAccountAliasesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListAccountAliases operation with an AsyncHandler.
@see #listAccountAliasesAsync(ListAccountAliasesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListAccountAliases",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L3093-L3098
|
19,886
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.listOpenIDConnectProvidersAsync
|
@Override
public java.util.concurrent.Future<ListOpenIDConnectProvidersResult> listOpenIDConnectProvidersAsync(
com.amazonaws.handlers.AsyncHandler<ListOpenIDConnectProvidersRequest, ListOpenIDConnectProvidersResult> asyncHandler) {
return listOpenIDConnectProvidersAsync(new ListOpenIDConnectProvidersRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListOpenIDConnectProvidersResult> listOpenIDConnectProvidersAsync(
com.amazonaws.handlers.AsyncHandler<ListOpenIDConnectProvidersRequest, ListOpenIDConnectProvidersResult> asyncHandler) {
return listOpenIDConnectProvidersAsync(new ListOpenIDConnectProvidersRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListOpenIDConnectProvidersResult",
">",
"listOpenIDConnectProvidersAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListOpenIDConnectProvidersRequest",
",",
"ListOpenIDConnectProvidersResult",
">",
"asyncHandler",
")",
"{",
"return",
"listOpenIDConnectProvidersAsync",
"(",
"new",
"ListOpenIDConnectProvidersRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListOpenIDConnectProviders operation with an AsyncHandler.
@see #listOpenIDConnectProvidersAsync(ListOpenIDConnectProvidersRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListOpenIDConnectProviders",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L3547-L3552
|
19,887
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.listPoliciesAsync
|
@Override
public java.util.concurrent.Future<ListPoliciesResult> listPoliciesAsync(
com.amazonaws.handlers.AsyncHandler<ListPoliciesRequest, ListPoliciesResult> asyncHandler) {
return listPoliciesAsync(new ListPoliciesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListPoliciesResult> listPoliciesAsync(
com.amazonaws.handlers.AsyncHandler<ListPoliciesRequest, ListPoliciesResult> asyncHandler) {
return listPoliciesAsync(new ListPoliciesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListPoliciesResult",
">",
"listPoliciesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListPoliciesRequest",
",",
"ListPoliciesResult",
">",
"asyncHandler",
")",
"{",
"return",
"listPoliciesAsync",
"(",
"new",
"ListPoliciesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListPolicies operation with an AsyncHandler.
@see #listPoliciesAsync(ListPoliciesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListPolicies",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L3603-L3608
|
19,888
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.listRolesAsync
|
@Override
public java.util.concurrent.Future<ListRolesResult> listRolesAsync(com.amazonaws.handlers.AsyncHandler<ListRolesRequest, ListRolesResult> asyncHandler) {
return listRolesAsync(new ListRolesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListRolesResult> listRolesAsync(com.amazonaws.handlers.AsyncHandler<ListRolesRequest, ListRolesResult> asyncHandler) {
return listRolesAsync(new ListRolesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListRolesResult",
">",
"listRolesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListRolesRequest",
",",
"ListRolesResult",
">",
"asyncHandler",
")",
"{",
"return",
"listRolesAsync",
"(",
"new",
"ListRolesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListRoles operation with an AsyncHandler.
@see #listRolesAsync(ListRolesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListRoles",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L3793-L3797
|
19,889
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.listSAMLProvidersAsync
|
@Override
public java.util.concurrent.Future<ListSAMLProvidersResult> listSAMLProvidersAsync(
com.amazonaws.handlers.AsyncHandler<ListSAMLProvidersRequest, ListSAMLProvidersResult> asyncHandler) {
return listSAMLProvidersAsync(new ListSAMLProvidersRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListSAMLProvidersResult> listSAMLProvidersAsync(
com.amazonaws.handlers.AsyncHandler<ListSAMLProvidersRequest, ListSAMLProvidersResult> asyncHandler) {
return listSAMLProvidersAsync(new ListSAMLProvidersRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListSAMLProvidersResult",
">",
"listSAMLProvidersAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListSAMLProvidersRequest",
",",
"ListSAMLProvidersResult",
">",
"asyncHandler",
")",
"{",
"return",
"listSAMLProvidersAsync",
"(",
"new",
"ListSAMLProvidersRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListSAMLProviders operation with an AsyncHandler.
@see #listSAMLProvidersAsync(ListSAMLProvidersRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListSAMLProviders",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L3848-L3853
|
19,890
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.listSSHPublicKeysAsync
|
@Override
public java.util.concurrent.Future<ListSSHPublicKeysResult> listSSHPublicKeysAsync(
com.amazonaws.handlers.AsyncHandler<ListSSHPublicKeysRequest, ListSSHPublicKeysResult> asyncHandler) {
return listSSHPublicKeysAsync(new ListSSHPublicKeysRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListSSHPublicKeysResult> listSSHPublicKeysAsync(
com.amazonaws.handlers.AsyncHandler<ListSSHPublicKeysRequest, ListSSHPublicKeysResult> asyncHandler) {
return listSSHPublicKeysAsync(new ListSSHPublicKeysRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListSSHPublicKeysResult",
">",
"listSSHPublicKeysAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListSSHPublicKeysRequest",
",",
"ListSSHPublicKeysResult",
">",
"asyncHandler",
")",
"{",
"return",
"listSSHPublicKeysAsync",
"(",
"new",
"ListSSHPublicKeysRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListSSHPublicKeys operation with an AsyncHandler.
@see #listSSHPublicKeysAsync(ListSSHPublicKeysRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListSSHPublicKeys",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L3904-L3909
|
19,891
|
aws/aws-sdk-java
|
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java
|
AmazonIdentityManagementAsyncClient.listVirtualMFADevicesAsync
|
@Override
public java.util.concurrent.Future<ListVirtualMFADevicesResult> listVirtualMFADevicesAsync(
com.amazonaws.handlers.AsyncHandler<ListVirtualMFADevicesRequest, ListVirtualMFADevicesResult> asyncHandler) {
return listVirtualMFADevicesAsync(new ListVirtualMFADevicesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListVirtualMFADevicesResult> listVirtualMFADevicesAsync(
com.amazonaws.handlers.AsyncHandler<ListVirtualMFADevicesRequest, ListVirtualMFADevicesResult> asyncHandler) {
return listVirtualMFADevicesAsync(new ListVirtualMFADevicesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListVirtualMFADevicesResult",
">",
"listVirtualMFADevicesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListVirtualMFADevicesRequest",
",",
"ListVirtualMFADevicesResult",
">",
"asyncHandler",
")",
"{",
"return",
"listVirtualMFADevicesAsync",
"(",
"new",
"ListVirtualMFADevicesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListVirtualMFADevices operation with an AsyncHandler.
@see #listVirtualMFADevicesAsync(ListVirtualMFADevicesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListVirtualMFADevices",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/AmazonIdentityManagementAsyncClient.java#L4227-L4232
|
19,892
|
aws/aws-sdk-java
|
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/OutputDestination.java
|
OutputDestination.setMediaPackageSettings
|
public void setMediaPackageSettings(java.util.Collection<MediaPackageOutputDestinationSettings> mediaPackageSettings) {
if (mediaPackageSettings == null) {
this.mediaPackageSettings = null;
return;
}
this.mediaPackageSettings = new java.util.ArrayList<MediaPackageOutputDestinationSettings>(mediaPackageSettings);
}
|
java
|
public void setMediaPackageSettings(java.util.Collection<MediaPackageOutputDestinationSettings> mediaPackageSettings) {
if (mediaPackageSettings == null) {
this.mediaPackageSettings = null;
return;
}
this.mediaPackageSettings = new java.util.ArrayList<MediaPackageOutputDestinationSettings>(mediaPackageSettings);
}
|
[
"public",
"void",
"setMediaPackageSettings",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"MediaPackageOutputDestinationSettings",
">",
"mediaPackageSettings",
")",
"{",
"if",
"(",
"mediaPackageSettings",
"==",
"null",
")",
"{",
"this",
".",
"mediaPackageSettings",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"mediaPackageSettings",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"MediaPackageOutputDestinationSettings",
">",
"(",
"mediaPackageSettings",
")",
";",
"}"
] |
Destination settings for a MediaPackage output; one destination for both encoders.
@param mediaPackageSettings
Destination settings for a MediaPackage output; one destination for both encoders.
|
[
"Destination",
"settings",
"for",
"a",
"MediaPackage",
"output",
";",
"one",
"destination",
"for",
"both",
"encoders",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/OutputDestination.java#L87-L94
|
19,893
|
aws/aws-sdk-java
|
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/OutputDestination.java
|
OutputDestination.setSettings
|
public void setSettings(java.util.Collection<OutputDestinationSettings> settings) {
if (settings == null) {
this.settings = null;
return;
}
this.settings = new java.util.ArrayList<OutputDestinationSettings>(settings);
}
|
java
|
public void setSettings(java.util.Collection<OutputDestinationSettings> settings) {
if (settings == null) {
this.settings = null;
return;
}
this.settings = new java.util.ArrayList<OutputDestinationSettings>(settings);
}
|
[
"public",
"void",
"setSettings",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"OutputDestinationSettings",
">",
"settings",
")",
"{",
"if",
"(",
"settings",
"==",
"null",
")",
"{",
"this",
".",
"settings",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"settings",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"OutputDestinationSettings",
">",
"(",
"settings",
")",
";",
"}"
] |
Destination settings for a standard output; one destination for each redundant encoder.
@param settings
Destination settings for a standard output; one destination for each redundant encoder.
|
[
"Destination",
"settings",
"for",
"a",
"standard",
"output",
";",
"one",
"destination",
"for",
"each",
"redundant",
"encoder",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/OutputDestination.java#L149-L156
|
19,894
|
aws/aws-sdk-java
|
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBMappingsRegistry.java
|
DynamoDBMappingsRegistry.mappingsOf
|
final Mappings mappingsOf(final Class<?> clazz) {
if (!mappings.containsKey(clazz)) {
mappings.putIfAbsent(clazz, new Mappings(clazz));
}
return mappings.get(clazz);
}
|
java
|
final Mappings mappingsOf(final Class<?> clazz) {
if (!mappings.containsKey(clazz)) {
mappings.putIfAbsent(clazz, new Mappings(clazz));
}
return mappings.get(clazz);
}
|
[
"final",
"Mappings",
"mappingsOf",
"(",
"final",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"if",
"(",
"!",
"mappings",
".",
"containsKey",
"(",
"clazz",
")",
")",
"{",
"mappings",
".",
"putIfAbsent",
"(",
"clazz",
",",
"new",
"Mappings",
"(",
"clazz",
")",
")",
";",
"}",
"return",
"mappings",
".",
"get",
"(",
"clazz",
")",
";",
"}"
] |
Gets the mapping definition for a given class.
@param clazz The class.
@return The mapping definition.
|
[
"Gets",
"the",
"mapping",
"definition",
"for",
"a",
"given",
"class",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBMappingsRegistry.java#L59-L64
|
19,895
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/CreateFunctionDefinitionVersionRequest.java
|
CreateFunctionDefinitionVersionRequest.setFunctions
|
public void setFunctions(java.util.Collection<Function> functions) {
if (functions == null) {
this.functions = null;
return;
}
this.functions = new java.util.ArrayList<Function>(functions);
}
|
java
|
public void setFunctions(java.util.Collection<Function> functions) {
if (functions == null) {
this.functions = null;
return;
}
this.functions = new java.util.ArrayList<Function>(functions);
}
|
[
"public",
"void",
"setFunctions",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"Function",
">",
"functions",
")",
"{",
"if",
"(",
"functions",
"==",
"null",
")",
"{",
"this",
".",
"functions",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"functions",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"Function",
">",
"(",
"functions",
")",
";",
"}"
] |
A list of Lambda functions in this function definition version.
@param functions
A list of Lambda functions in this function definition version.
|
[
"A",
"list",
"of",
"Lambda",
"functions",
"in",
"this",
"function",
"definition",
"version",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/CreateFunctionDefinitionVersionRequest.java#L166-L173
|
19,896
|
aws/aws-sdk-java
|
aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/AWSJavaMailTransport.java
|
AWSJavaMailTransport.checkMessage
|
private void checkMessage(Message msg) throws MessagingException {
if (msg == null) {
throw new MessagingException("Message is null");
}
if (!(msg instanceof MimeMessage)) {
throw new MessagingException(
"AWS Mail Service can only send MimeMessages");
}
}
|
java
|
private void checkMessage(Message msg) throws MessagingException {
if (msg == null) {
throw new MessagingException("Message is null");
}
if (!(msg instanceof MimeMessage)) {
throw new MessagingException(
"AWS Mail Service can only send MimeMessages");
}
}
|
[
"private",
"void",
"checkMessage",
"(",
"Message",
"msg",
")",
"throws",
"MessagingException",
"{",
"if",
"(",
"msg",
"==",
"null",
")",
"{",
"throw",
"new",
"MessagingException",
"(",
"\"Message is null\"",
")",
";",
"}",
"if",
"(",
"!",
"(",
"msg",
"instanceof",
"MimeMessage",
")",
")",
"{",
"throw",
"new",
"MessagingException",
"(",
"\"AWS Mail Service can only send MimeMessages\"",
")",
";",
"}",
"}"
] |
Checks that the message can be sent using AWS Simple E-mail Service.
|
[
"Checks",
"that",
"the",
"message",
"can",
"be",
"sent",
"using",
"AWS",
"Simple",
"E",
"-",
"mail",
"Service",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/AWSJavaMailTransport.java#L115-L123
|
19,897
|
aws/aws-sdk-java
|
aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/AWSJavaMailTransport.java
|
AWSJavaMailTransport.collateRecipients
|
private void collateRecipients(Message m, Address[] addresses) throws MessagingException {
if ( !isNullOrEmpty(addresses) ) {
Hashtable<Address, Message.RecipientType> addressTable = new Hashtable<Address, Message.RecipientType>();
for ( Address a : addresses ) {
addressTable.put(a, Message.RecipientType.TO);
}
if ( !isNullOrEmpty(m.getRecipients(Message.RecipientType.TO)) ) {
for ( Address a : m.getRecipients(Message.RecipientType.TO) ) {
addressTable.put(a, Message.RecipientType.TO);
}
}
if ( !isNullOrEmpty(m.getRecipients(Message.RecipientType.CC)) ) {
for ( Address a : m.getRecipients(Message.RecipientType.CC) ) {
addressTable.put(a, Message.RecipientType.CC);
}
}
if ( !isNullOrEmpty(m.getRecipients(Message.RecipientType.BCC)) ) {
for ( Address a : m.getRecipients(Message.RecipientType.BCC) ) {
addressTable.put(a, Message.RecipientType.BCC);
}
}
// Clear the original recipients for collation
m.setRecipients(Message.RecipientType.TO, new Address[0]);
m.setRecipients(Message.RecipientType.CC, new Address[0]);
m.setRecipients(Message.RecipientType.BCC, new Address[0]);
Iterator<Address> aIter = addressTable.keySet().iterator();
while ( aIter.hasNext() ) {
Address a = aIter.next();
m.addRecipient(addressTable.get(a), a);
}
// Simple E-mail needs at least one TO address, so add one if there isn't one
if ( m.getRecipients(Message.RecipientType.TO) == null ||
m.getRecipients(Message.RecipientType.TO).length == 0 ) {
m.setRecipient(Message.RecipientType.TO, addressTable.keySet().iterator().next());
}
}
}
|
java
|
private void collateRecipients(Message m, Address[] addresses) throws MessagingException {
if ( !isNullOrEmpty(addresses) ) {
Hashtable<Address, Message.RecipientType> addressTable = new Hashtable<Address, Message.RecipientType>();
for ( Address a : addresses ) {
addressTable.put(a, Message.RecipientType.TO);
}
if ( !isNullOrEmpty(m.getRecipients(Message.RecipientType.TO)) ) {
for ( Address a : m.getRecipients(Message.RecipientType.TO) ) {
addressTable.put(a, Message.RecipientType.TO);
}
}
if ( !isNullOrEmpty(m.getRecipients(Message.RecipientType.CC)) ) {
for ( Address a : m.getRecipients(Message.RecipientType.CC) ) {
addressTable.put(a, Message.RecipientType.CC);
}
}
if ( !isNullOrEmpty(m.getRecipients(Message.RecipientType.BCC)) ) {
for ( Address a : m.getRecipients(Message.RecipientType.BCC) ) {
addressTable.put(a, Message.RecipientType.BCC);
}
}
// Clear the original recipients for collation
m.setRecipients(Message.RecipientType.TO, new Address[0]);
m.setRecipients(Message.RecipientType.CC, new Address[0]);
m.setRecipients(Message.RecipientType.BCC, new Address[0]);
Iterator<Address> aIter = addressTable.keySet().iterator();
while ( aIter.hasNext() ) {
Address a = aIter.next();
m.addRecipient(addressTable.get(a), a);
}
// Simple E-mail needs at least one TO address, so add one if there isn't one
if ( m.getRecipients(Message.RecipientType.TO) == null ||
m.getRecipients(Message.RecipientType.TO).length == 0 ) {
m.setRecipient(Message.RecipientType.TO, addressTable.keySet().iterator().next());
}
}
}
|
[
"private",
"void",
"collateRecipients",
"(",
"Message",
"m",
",",
"Address",
"[",
"]",
"addresses",
")",
"throws",
"MessagingException",
"{",
"if",
"(",
"!",
"isNullOrEmpty",
"(",
"addresses",
")",
")",
"{",
"Hashtable",
"<",
"Address",
",",
"Message",
".",
"RecipientType",
">",
"addressTable",
"=",
"new",
"Hashtable",
"<",
"Address",
",",
"Message",
".",
"RecipientType",
">",
"(",
")",
";",
"for",
"(",
"Address",
"a",
":",
"addresses",
")",
"{",
"addressTable",
".",
"put",
"(",
"a",
",",
"Message",
".",
"RecipientType",
".",
"TO",
")",
";",
"}",
"if",
"(",
"!",
"isNullOrEmpty",
"(",
"m",
".",
"getRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"TO",
")",
")",
")",
"{",
"for",
"(",
"Address",
"a",
":",
"m",
".",
"getRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"TO",
")",
")",
"{",
"addressTable",
".",
"put",
"(",
"a",
",",
"Message",
".",
"RecipientType",
".",
"TO",
")",
";",
"}",
"}",
"if",
"(",
"!",
"isNullOrEmpty",
"(",
"m",
".",
"getRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"CC",
")",
")",
")",
"{",
"for",
"(",
"Address",
"a",
":",
"m",
".",
"getRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"CC",
")",
")",
"{",
"addressTable",
".",
"put",
"(",
"a",
",",
"Message",
".",
"RecipientType",
".",
"CC",
")",
";",
"}",
"}",
"if",
"(",
"!",
"isNullOrEmpty",
"(",
"m",
".",
"getRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"BCC",
")",
")",
")",
"{",
"for",
"(",
"Address",
"a",
":",
"m",
".",
"getRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"BCC",
")",
")",
"{",
"addressTable",
".",
"put",
"(",
"a",
",",
"Message",
".",
"RecipientType",
".",
"BCC",
")",
";",
"}",
"}",
"// Clear the original recipients for collation",
"m",
".",
"setRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"TO",
",",
"new",
"Address",
"[",
"0",
"]",
")",
";",
"m",
".",
"setRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"CC",
",",
"new",
"Address",
"[",
"0",
"]",
")",
";",
"m",
".",
"setRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"BCC",
",",
"new",
"Address",
"[",
"0",
"]",
")",
";",
"Iterator",
"<",
"Address",
">",
"aIter",
"=",
"addressTable",
".",
"keySet",
"(",
")",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"aIter",
".",
"hasNext",
"(",
")",
")",
"{",
"Address",
"a",
"=",
"aIter",
".",
"next",
"(",
")",
";",
"m",
".",
"addRecipient",
"(",
"addressTable",
".",
"get",
"(",
"a",
")",
",",
"a",
")",
";",
"}",
"// Simple E-mail needs at least one TO address, so add one if there isn't one",
"if",
"(",
"m",
".",
"getRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"TO",
")",
"==",
"null",
"||",
"m",
".",
"getRecipients",
"(",
"Message",
".",
"RecipientType",
".",
"TO",
")",
".",
"length",
"==",
"0",
")",
"{",
"m",
".",
"setRecipient",
"(",
"Message",
".",
"RecipientType",
".",
"TO",
",",
"addressTable",
".",
"keySet",
"(",
")",
".",
"iterator",
"(",
")",
".",
"next",
"(",
")",
")",
";",
"}",
"}",
"}"
] |
Collates any addresses into the message object. All addresses in the Address array
become of type TO unless they already exist in the Message header. If
they are in the Message header they will stay of the same type. Any
duplicate addresses are removed. Type BCC and then CC takes precedence
over TO when duplicates exist. If any address is invalid an exception is
thrown.
|
[
"Collates",
"any",
"addresses",
"into",
"the",
"message",
"object",
".",
"All",
"addresses",
"in",
"the",
"Address",
"array",
"become",
"of",
"type",
"TO",
"unless",
"they",
"already",
"exist",
"in",
"the",
"Message",
"header",
".",
"If",
"they",
"are",
"in",
"the",
"Message",
"header",
"they",
"will",
"stay",
"of",
"the",
"same",
"type",
".",
"Any",
"duplicate",
"addresses",
"are",
"removed",
".",
"Type",
"BCC",
"and",
"then",
"CC",
"takes",
"precedence",
"over",
"TO",
"when",
"duplicates",
"exist",
".",
"If",
"any",
"address",
"is",
"invalid",
"an",
"exception",
"is",
"thrown",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/AWSJavaMailTransport.java#L173-L216
|
19,898
|
aws/aws-sdk-java
|
aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/AWSJavaMailTransport.java
|
AWSJavaMailTransport.sendEmail
|
private void sendEmail(Message m, SendRawEmailRequest req)
throws SendFailedException, MessagingException {
Address[] sent = null;
Address[] unsent = null;
Address[] invalid = null;
try {
appendUserAgent(req, USER_AGENT);
SendRawEmailResult resp = this.emailService.sendRawEmail(req);
lastMessageId = resp.getMessageId();
sent = m.getAllRecipients();
unsent = new Address[0];
invalid = new Address[0];
super.notifyTransportListeners(TransportEvent.MESSAGE_DELIVERED,
sent, unsent, invalid, m);
} catch (Exception e) {
sent = new Address[0];
unsent = m.getAllRecipients();
invalid = new Address[0];
super.notifyTransportListeners(
TransportEvent.MESSAGE_NOT_DELIVERED, sent, unsent,
invalid, m);
throw new SendFailedException("Unable to send email", e, sent,
unsent, invalid);
}
}
|
java
|
private void sendEmail(Message m, SendRawEmailRequest req)
throws SendFailedException, MessagingException {
Address[] sent = null;
Address[] unsent = null;
Address[] invalid = null;
try {
appendUserAgent(req, USER_AGENT);
SendRawEmailResult resp = this.emailService.sendRawEmail(req);
lastMessageId = resp.getMessageId();
sent = m.getAllRecipients();
unsent = new Address[0];
invalid = new Address[0];
super.notifyTransportListeners(TransportEvent.MESSAGE_DELIVERED,
sent, unsent, invalid, m);
} catch (Exception e) {
sent = new Address[0];
unsent = m.getAllRecipients();
invalid = new Address[0];
super.notifyTransportListeners(
TransportEvent.MESSAGE_NOT_DELIVERED, sent, unsent,
invalid, m);
throw new SendFailedException("Unable to send email", e, sent,
unsent, invalid);
}
}
|
[
"private",
"void",
"sendEmail",
"(",
"Message",
"m",
",",
"SendRawEmailRequest",
"req",
")",
"throws",
"SendFailedException",
",",
"MessagingException",
"{",
"Address",
"[",
"]",
"sent",
"=",
"null",
";",
"Address",
"[",
"]",
"unsent",
"=",
"null",
";",
"Address",
"[",
"]",
"invalid",
"=",
"null",
";",
"try",
"{",
"appendUserAgent",
"(",
"req",
",",
"USER_AGENT",
")",
";",
"SendRawEmailResult",
"resp",
"=",
"this",
".",
"emailService",
".",
"sendRawEmail",
"(",
"req",
")",
";",
"lastMessageId",
"=",
"resp",
".",
"getMessageId",
"(",
")",
";",
"sent",
"=",
"m",
".",
"getAllRecipients",
"(",
")",
";",
"unsent",
"=",
"new",
"Address",
"[",
"0",
"]",
";",
"invalid",
"=",
"new",
"Address",
"[",
"0",
"]",
";",
"super",
".",
"notifyTransportListeners",
"(",
"TransportEvent",
".",
"MESSAGE_DELIVERED",
",",
"sent",
",",
"unsent",
",",
"invalid",
",",
"m",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"sent",
"=",
"new",
"Address",
"[",
"0",
"]",
";",
"unsent",
"=",
"m",
".",
"getAllRecipients",
"(",
")",
";",
"invalid",
"=",
"new",
"Address",
"[",
"0",
"]",
";",
"super",
".",
"notifyTransportListeners",
"(",
"TransportEvent",
".",
"MESSAGE_NOT_DELIVERED",
",",
"sent",
",",
"unsent",
",",
"invalid",
",",
"m",
")",
";",
"throw",
"new",
"SendFailedException",
"(",
"\"Unable to send email\"",
",",
"e",
",",
"sent",
",",
"unsent",
",",
"invalid",
")",
";",
"}",
"}"
] |
Sends an email using AWS E-mail Service and notifies listeners
@param m
Message used to notify users
@param req
Raw email to be sent
|
[
"Sends",
"an",
"email",
"using",
"AWS",
"E",
"-",
"mail",
"Service",
"and",
"notifies",
"listeners"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/AWSJavaMailTransport.java#L260-L286
|
19,899
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/ListGroupCertificateAuthoritiesResult.java
|
ListGroupCertificateAuthoritiesResult.setGroupCertificateAuthorities
|
public void setGroupCertificateAuthorities(java.util.Collection<GroupCertificateAuthorityProperties> groupCertificateAuthorities) {
if (groupCertificateAuthorities == null) {
this.groupCertificateAuthorities = null;
return;
}
this.groupCertificateAuthorities = new java.util.ArrayList<GroupCertificateAuthorityProperties>(groupCertificateAuthorities);
}
|
java
|
public void setGroupCertificateAuthorities(java.util.Collection<GroupCertificateAuthorityProperties> groupCertificateAuthorities) {
if (groupCertificateAuthorities == null) {
this.groupCertificateAuthorities = null;
return;
}
this.groupCertificateAuthorities = new java.util.ArrayList<GroupCertificateAuthorityProperties>(groupCertificateAuthorities);
}
|
[
"public",
"void",
"setGroupCertificateAuthorities",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"GroupCertificateAuthorityProperties",
">",
"groupCertificateAuthorities",
")",
"{",
"if",
"(",
"groupCertificateAuthorities",
"==",
"null",
")",
"{",
"this",
".",
"groupCertificateAuthorities",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"groupCertificateAuthorities",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"GroupCertificateAuthorityProperties",
">",
"(",
"groupCertificateAuthorities",
")",
";",
"}"
] |
A list of certificate authorities associated with the group.
@param groupCertificateAuthorities
A list of certificate authorities associated with the group.
|
[
"A",
"list",
"of",
"certificate",
"authorities",
"associated",
"with",
"the",
"group",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/ListGroupCertificateAuthoritiesResult.java#L47-L54
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.