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,900
|
aws/aws-sdk-java
|
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/BrokerInstance.java
|
BrokerInstance.setEndpoints
|
public void setEndpoints(java.util.Collection<String> endpoints) {
if (endpoints == null) {
this.endpoints = null;
return;
}
this.endpoints = new java.util.ArrayList<String>(endpoints);
}
|
java
|
public void setEndpoints(java.util.Collection<String> endpoints) {
if (endpoints == null) {
this.endpoints = null;
return;
}
this.endpoints = new java.util.ArrayList<String>(endpoints);
}
|
[
"public",
"void",
"setEndpoints",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"String",
">",
"endpoints",
")",
"{",
"if",
"(",
"endpoints",
"==",
"null",
")",
"{",
"this",
".",
"endpoints",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"endpoints",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"String",
">",
"(",
"endpoints",
")",
";",
"}"
] |
The broker's wire-level protocol endpoints.
@param endpoints
The broker's wire-level protocol endpoints.
|
[
"The",
"broker",
"s",
"wire",
"-",
"level",
"protocol",
"endpoints",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/BrokerInstance.java#L87-L94
|
19,901
|
aws/aws-sdk-java
|
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/CodeGenerator.java
|
CodeGenerator.execute
|
public void execute() {
try {
final IntermediateModel intermediateModel =
new IntermediateModelBuilder(models, codeGenBinDirectory).build();
// Dump the intermediate model to a file
writeIntermediateModel(intermediateModel);
emitCode(intermediateModel);
} catch (Exception e) {
throw new RuntimeException(
"Failed to generate code. Exception message : "
+ e.getMessage(), e);
}
}
|
java
|
public void execute() {
try {
final IntermediateModel intermediateModel =
new IntermediateModelBuilder(models, codeGenBinDirectory).build();
// Dump the intermediate model to a file
writeIntermediateModel(intermediateModel);
emitCode(intermediateModel);
} catch (Exception e) {
throw new RuntimeException(
"Failed to generate code. Exception message : "
+ e.getMessage(), e);
}
}
|
[
"public",
"void",
"execute",
"(",
")",
"{",
"try",
"{",
"final",
"IntermediateModel",
"intermediateModel",
"=",
"new",
"IntermediateModelBuilder",
"(",
"models",
",",
"codeGenBinDirectory",
")",
".",
"build",
"(",
")",
";",
"// Dump the intermediate model to a file",
"writeIntermediateModel",
"(",
"intermediateModel",
")",
";",
"emitCode",
"(",
"intermediateModel",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Failed to generate code. Exception message : \"",
"+",
"e",
".",
"getMessage",
"(",
")",
",",
"e",
")",
";",
"}",
"}"
] |
load ServiceModel. load code gen configuration from individual client. load Waiters. generate intermediate model. generate
code.
|
[
"load",
"ServiceModel",
".",
"load",
"code",
"gen",
"configuration",
"from",
"individual",
"client",
".",
"load",
"Waiters",
".",
"generate",
"intermediate",
"model",
".",
"generate",
"code",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/CodeGenerator.java#L59-L75
|
19,902
|
aws/aws-sdk-java
|
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/model/service/HostPrefixProcessor.java
|
HostPrefixProcessor.replaceHostLabelsWithStringSpecifier
|
private void replaceHostLabelsWithStringSpecifier(String hostExpression) {
if (StringUtils.isNullOrEmpty(hostExpression)) {
throw new IllegalArgumentException("Given host prefix is either null or empty");
}
Matcher matcher = PATTERN.matcher(hostExpression);
while (matcher.find()) {
String matched = matcher.group(1);
c2jNames.add(matched);
hostWithStringSpecifier = hostWithStringSpecifier.replaceFirst("\\{" + matched + "}", "%s");
}
}
|
java
|
private void replaceHostLabelsWithStringSpecifier(String hostExpression) {
if (StringUtils.isNullOrEmpty(hostExpression)) {
throw new IllegalArgumentException("Given host prefix is either null or empty");
}
Matcher matcher = PATTERN.matcher(hostExpression);
while (matcher.find()) {
String matched = matcher.group(1);
c2jNames.add(matched);
hostWithStringSpecifier = hostWithStringSpecifier.replaceFirst("\\{" + matched + "}", "%s");
}
}
|
[
"private",
"void",
"replaceHostLabelsWithStringSpecifier",
"(",
"String",
"hostExpression",
")",
"{",
"if",
"(",
"StringUtils",
".",
"isNullOrEmpty",
"(",
"hostExpression",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Given host prefix is either null or empty\"",
")",
";",
"}",
"Matcher",
"matcher",
"=",
"PATTERN",
".",
"matcher",
"(",
"hostExpression",
")",
";",
"while",
"(",
"matcher",
".",
"find",
"(",
")",
")",
"{",
"String",
"matched",
"=",
"matcher",
".",
"group",
"(",
"1",
")",
";",
"c2jNames",
".",
"add",
"(",
"matched",
")",
";",
"hostWithStringSpecifier",
"=",
"hostWithStringSpecifier",
".",
"replaceFirst",
"(",
"\"\\\\{\"",
"+",
"matched",
"+",
"\"}\"",
",",
"\"%s\"",
")",
";",
"}",
"}"
] |
Replace all the labels in host with %s symbols and collect the input shape member names into a list
|
[
"Replace",
"all",
"the",
"labels",
"in",
"host",
"with",
"%s",
"symbols",
"and",
"collect",
"the",
"input",
"shape",
"member",
"names",
"into",
"a",
"list"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/model/service/HostPrefixProcessor.java#L61-L73
|
19,903
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/util/TimingInfo.java
|
TimingInfo.durationMilliOf
|
public static double durationMilliOf(long startTimeNano, long endTimeNano) {
double micros = (double)TimeUnit.NANOSECONDS.toMicros(endTimeNano - startTimeNano);
return micros / 1000.0; // convert microseconds to milliseconds in double rather than long, preserving the precision
}
|
java
|
public static double durationMilliOf(long startTimeNano, long endTimeNano) {
double micros = (double)TimeUnit.NANOSECONDS.toMicros(endTimeNano - startTimeNano);
return micros / 1000.0; // convert microseconds to milliseconds in double rather than long, preserving the precision
}
|
[
"public",
"static",
"double",
"durationMilliOf",
"(",
"long",
"startTimeNano",
",",
"long",
"endTimeNano",
")",
"{",
"double",
"micros",
"=",
"(",
"double",
")",
"TimeUnit",
".",
"NANOSECONDS",
".",
"toMicros",
"(",
"endTimeNano",
"-",
"startTimeNano",
")",
";",
"return",
"micros",
"/",
"1000.0",
";",
"// convert microseconds to milliseconds in double rather than long, preserving the precision",
"}"
] |
Returns the duration in milliseconds as double, preserving the decimal
precision as necessary, for the given start and end time in nanoseconds.
|
[
"Returns",
"the",
"duration",
"in",
"milliseconds",
"as",
"double",
"preserving",
"the",
"decimal",
"precision",
"as",
"necessary",
"for",
"the",
"given",
"start",
"and",
"end",
"time",
"in",
"nanoseconds",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/TimingInfo.java#L234-L237
|
19,904
|
aws/aws-sdk-java
|
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/UpdateExpressionGenerator.java
|
UpdateExpressionGenerator.generateSubstitutionTokenString
|
private String generateSubstitutionTokenString(String baseToken,
Long suffixCounter,
Set<String> expressionAttributeNamesKeys,
Set<String> expressionAttributeValuesKeys) {
String hexSuffix = Long.toHexString(suffixCounter);
String tokenBase = baseToken.substring(0, Math.min(baseToken.length(), 4)) + hexSuffix;
if (!expressionAttributeNamesKeys.contains(getExpressionAttributeNameSubstitutionToken(tokenBase)) &&
!expressionAttributeValuesKeys.contains(getExpressionAttributeValueSubstitutionToken(tokenBase))) {
return tokenBase;
}
// Fallback to fullToken in case of conflict
String fullToken = baseToken + hexSuffix;
if (!expressionAttributeNamesKeys.contains(getExpressionAttributeNameSubstitutionToken(fullToken)) &&
!expressionAttributeValuesKeys.contains(getExpressionAttributeValueSubstitutionToken(fullToken))) {
return fullToken;
} else {
throw new DynamoDBMappingException("Failed to process update operation inside transactionWrite request due to conflict with expressionAttributeName or expressionAttributeValue token name: "
+ fullToken + ". Please replace this token name with a different token name.");
}
}
|
java
|
private String generateSubstitutionTokenString(String baseToken,
Long suffixCounter,
Set<String> expressionAttributeNamesKeys,
Set<String> expressionAttributeValuesKeys) {
String hexSuffix = Long.toHexString(suffixCounter);
String tokenBase = baseToken.substring(0, Math.min(baseToken.length(), 4)) + hexSuffix;
if (!expressionAttributeNamesKeys.contains(getExpressionAttributeNameSubstitutionToken(tokenBase)) &&
!expressionAttributeValuesKeys.contains(getExpressionAttributeValueSubstitutionToken(tokenBase))) {
return tokenBase;
}
// Fallback to fullToken in case of conflict
String fullToken = baseToken + hexSuffix;
if (!expressionAttributeNamesKeys.contains(getExpressionAttributeNameSubstitutionToken(fullToken)) &&
!expressionAttributeValuesKeys.contains(getExpressionAttributeValueSubstitutionToken(fullToken))) {
return fullToken;
} else {
throw new DynamoDBMappingException("Failed to process update operation inside transactionWrite request due to conflict with expressionAttributeName or expressionAttributeValue token name: "
+ fullToken + ". Please replace this token name with a different token name.");
}
}
|
[
"private",
"String",
"generateSubstitutionTokenString",
"(",
"String",
"baseToken",
",",
"Long",
"suffixCounter",
",",
"Set",
"<",
"String",
">",
"expressionAttributeNamesKeys",
",",
"Set",
"<",
"String",
">",
"expressionAttributeValuesKeys",
")",
"{",
"String",
"hexSuffix",
"=",
"Long",
".",
"toHexString",
"(",
"suffixCounter",
")",
";",
"String",
"tokenBase",
"=",
"baseToken",
".",
"substring",
"(",
"0",
",",
"Math",
".",
"min",
"(",
"baseToken",
".",
"length",
"(",
")",
",",
"4",
")",
")",
"+",
"hexSuffix",
";",
"if",
"(",
"!",
"expressionAttributeNamesKeys",
".",
"contains",
"(",
"getExpressionAttributeNameSubstitutionToken",
"(",
"tokenBase",
")",
")",
"&&",
"!",
"expressionAttributeValuesKeys",
".",
"contains",
"(",
"getExpressionAttributeValueSubstitutionToken",
"(",
"tokenBase",
")",
")",
")",
"{",
"return",
"tokenBase",
";",
"}",
"// Fallback to fullToken in case of conflict",
"String",
"fullToken",
"=",
"baseToken",
"+",
"hexSuffix",
";",
"if",
"(",
"!",
"expressionAttributeNamesKeys",
".",
"contains",
"(",
"getExpressionAttributeNameSubstitutionToken",
"(",
"fullToken",
")",
")",
"&&",
"!",
"expressionAttributeValuesKeys",
".",
"contains",
"(",
"getExpressionAttributeValueSubstitutionToken",
"(",
"fullToken",
")",
")",
")",
"{",
"return",
"fullToken",
";",
"}",
"else",
"{",
"throw",
"new",
"DynamoDBMappingException",
"(",
"\"Failed to process update operation inside transactionWrite request due to conflict with expressionAttributeName or expressionAttributeValue token name: \"",
"+",
"fullToken",
"+",
"\". Please replace this token name with a different token name.\"",
")",
";",
"}",
"}"
] |
Generate a string that can be used as a substitution token for attributeNames and attributeValues in
update expression. De-dupes generated string on existingAttributesKeyList.
The string starts with a baseToken's substring that is passed in from the caller and then appended with a hex string
the hex string represents the locally incremented counter across attributes.
In case there is a conflict with above generated string, we'll instead substitute with the full baseToken
instead of the baseToken substring
For ex:
For a baseToken: 5d81, suffixCounter: 9
the *next* generated string will be 5d81a, 5d81 from baseToken and `a` from the incremented hex counter 9 -> a
|
[
"Generate",
"a",
"string",
"that",
"can",
"be",
"used",
"as",
"a",
"substitution",
"token",
"for",
"attributeNames",
"and",
"attributeValues",
"in",
"update",
"expression",
".",
"De",
"-",
"dupes",
"generated",
"string",
"on",
"existingAttributesKeyList",
".",
"The",
"string",
"starts",
"with",
"a",
"baseToken",
"s",
"substring",
"that",
"is",
"passed",
"in",
"from",
"the",
"caller",
"and",
"then",
"appended",
"with",
"a",
"hex",
"string",
"the",
"hex",
"string",
"represents",
"the",
"locally",
"incremented",
"counter",
"across",
"attributes",
".",
"In",
"case",
"there",
"is",
"a",
"conflict",
"with",
"above",
"generated",
"string",
"we",
"ll",
"instead",
"substitute",
"with",
"the",
"full",
"baseToken",
"instead",
"of",
"the",
"baseToken",
"substring"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/UpdateExpressionGenerator.java#L64-L83
|
19,905
|
aws/aws-sdk-java
|
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/UpdateExpressionGenerator.java
|
UpdateExpressionGenerator.generateUpdateExpressionAndUpdateAttributeMaps
|
public String generateUpdateExpressionAndUpdateAttributeMaps(Map<String, String> expressionAttributeNamesMap,
Map<String, AttributeValue> expressionsAttributeValuesMap,
Map<String, AttributeValue> nonKeyNonNullAttributeValueMap,
List<String> nullValuedNonKeyAttributeNames) {
StringBuilder updateExpressionSetBuilder = new StringBuilder();
StringBuilder updateExpressionDeleteBuilder = new StringBuilder();
// This has to be a sorted list to ensure deterministic retrieval order for nonKeyNonNullAttributes
// while auto generating update expression tokens
List<String> sortedNonKeyNonNullAttributeNames = new ArrayList<String>(nonKeyNonNullAttributeValueMap.keySet());
Collections.sort(sortedNonKeyNonNullAttributeNames);
// Sort the null valued non-key attributes to ensure deterministic retrieval order for nullValuedNonKeyAttributes
// while auto generating update expression tokens
List<String> sortedNullValuedNonKeyAttributeNames = new ArrayList<String>(nullValuedNonKeyAttributeNames);
Collections.sort(sortedNullValuedNonKeyAttributeNames);
// Initialize baseToken and suffixCounter for each update item
String baseToken = getBaseToken(sortedNonKeyNonNullAttributeNames, sortedNullValuedNonKeyAttributeNames);
Long suffixCounter = 0L;
if (sortedNonKeyNonNullAttributeNames.size() > 0) {
updateExpressionSetBuilder.append("SET ");
List<String> updateStringSetExpressions = new ArrayList<String>();
for (String nonKeyAttributeName : sortedNonKeyNonNullAttributeNames) {
String tokenBase = generateSubstitutionTokenString(baseToken,
suffixCounter,
expressionAttributeNamesMap.keySet(),
expressionsAttributeValuesMap.keySet());
suffixCounter++;
String tokenKeyName = getExpressionAttributeNameSubstitutionToken(tokenBase);
String tokenValueName = getExpressionAttributeValueSubstitutionToken(tokenBase);
expressionAttributeNamesMap.put(tokenKeyName, nonKeyAttributeName);
expressionsAttributeValuesMap.put(tokenValueName, nonKeyNonNullAttributeValueMap.get(nonKeyAttributeName));
updateStringSetExpressions.add(tokenKeyName + " = " + tokenValueName);
}
for (int i = 0; i < updateStringSetExpressions.size() - 1; i++) {
updateExpressionSetBuilder.append(updateStringSetExpressions.get(i) + ", ");
}
updateExpressionSetBuilder.append(updateStringSetExpressions.get(updateStringSetExpressions.size() - 1));
}
if (sortedNullValuedNonKeyAttributeNames.size() > 0) {
updateExpressionDeleteBuilder.append("REMOVE ");
List<String> updateStringDeleteExpressions = new ArrayList<String>();
for (String nullAttributeName : sortedNullValuedNonKeyAttributeNames) {
String tokenBaseString = generateSubstitutionTokenString(baseToken,
suffixCounter,
expressionAttributeNamesMap.keySet());
suffixCounter++;
String tokenKeyName = getExpressionAttributeNameSubstitutionToken(tokenBaseString);
expressionAttributeNamesMap.put(tokenKeyName, nullAttributeName);
updateStringDeleteExpressions.add(tokenKeyName);
}
for (int i = 0; i < updateStringDeleteExpressions.size() - 1; i++) {
updateExpressionDeleteBuilder.append(updateStringDeleteExpressions.get(i) + ", ");
}
updateExpressionDeleteBuilder.append(updateStringDeleteExpressions.get(updateStringDeleteExpressions.size() - 1));
}
StringBuilder updateExpression = new StringBuilder();
if (updateExpressionSetBuilder.length() > 0) {
updateExpression.append(updateExpressionSetBuilder.toString());
}
if (updateExpressionDeleteBuilder.length() > 0) {
updateExpression.append(" " + updateExpressionDeleteBuilder.toString());
}
return updateExpression.toString();
}
|
java
|
public String generateUpdateExpressionAndUpdateAttributeMaps(Map<String, String> expressionAttributeNamesMap,
Map<String, AttributeValue> expressionsAttributeValuesMap,
Map<String, AttributeValue> nonKeyNonNullAttributeValueMap,
List<String> nullValuedNonKeyAttributeNames) {
StringBuilder updateExpressionSetBuilder = new StringBuilder();
StringBuilder updateExpressionDeleteBuilder = new StringBuilder();
// This has to be a sorted list to ensure deterministic retrieval order for nonKeyNonNullAttributes
// while auto generating update expression tokens
List<String> sortedNonKeyNonNullAttributeNames = new ArrayList<String>(nonKeyNonNullAttributeValueMap.keySet());
Collections.sort(sortedNonKeyNonNullAttributeNames);
// Sort the null valued non-key attributes to ensure deterministic retrieval order for nullValuedNonKeyAttributes
// while auto generating update expression tokens
List<String> sortedNullValuedNonKeyAttributeNames = new ArrayList<String>(nullValuedNonKeyAttributeNames);
Collections.sort(sortedNullValuedNonKeyAttributeNames);
// Initialize baseToken and suffixCounter for each update item
String baseToken = getBaseToken(sortedNonKeyNonNullAttributeNames, sortedNullValuedNonKeyAttributeNames);
Long suffixCounter = 0L;
if (sortedNonKeyNonNullAttributeNames.size() > 0) {
updateExpressionSetBuilder.append("SET ");
List<String> updateStringSetExpressions = new ArrayList<String>();
for (String nonKeyAttributeName : sortedNonKeyNonNullAttributeNames) {
String tokenBase = generateSubstitutionTokenString(baseToken,
suffixCounter,
expressionAttributeNamesMap.keySet(),
expressionsAttributeValuesMap.keySet());
suffixCounter++;
String tokenKeyName = getExpressionAttributeNameSubstitutionToken(tokenBase);
String tokenValueName = getExpressionAttributeValueSubstitutionToken(tokenBase);
expressionAttributeNamesMap.put(tokenKeyName, nonKeyAttributeName);
expressionsAttributeValuesMap.put(tokenValueName, nonKeyNonNullAttributeValueMap.get(nonKeyAttributeName));
updateStringSetExpressions.add(tokenKeyName + " = " + tokenValueName);
}
for (int i = 0; i < updateStringSetExpressions.size() - 1; i++) {
updateExpressionSetBuilder.append(updateStringSetExpressions.get(i) + ", ");
}
updateExpressionSetBuilder.append(updateStringSetExpressions.get(updateStringSetExpressions.size() - 1));
}
if (sortedNullValuedNonKeyAttributeNames.size() > 0) {
updateExpressionDeleteBuilder.append("REMOVE ");
List<String> updateStringDeleteExpressions = new ArrayList<String>();
for (String nullAttributeName : sortedNullValuedNonKeyAttributeNames) {
String tokenBaseString = generateSubstitutionTokenString(baseToken,
suffixCounter,
expressionAttributeNamesMap.keySet());
suffixCounter++;
String tokenKeyName = getExpressionAttributeNameSubstitutionToken(tokenBaseString);
expressionAttributeNamesMap.put(tokenKeyName, nullAttributeName);
updateStringDeleteExpressions.add(tokenKeyName);
}
for (int i = 0; i < updateStringDeleteExpressions.size() - 1; i++) {
updateExpressionDeleteBuilder.append(updateStringDeleteExpressions.get(i) + ", ");
}
updateExpressionDeleteBuilder.append(updateStringDeleteExpressions.get(updateStringDeleteExpressions.size() - 1));
}
StringBuilder updateExpression = new StringBuilder();
if (updateExpressionSetBuilder.length() > 0) {
updateExpression.append(updateExpressionSetBuilder.toString());
}
if (updateExpressionDeleteBuilder.length() > 0) {
updateExpression.append(" " + updateExpressionDeleteBuilder.toString());
}
return updateExpression.toString();
}
|
[
"public",
"String",
"generateUpdateExpressionAndUpdateAttributeMaps",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"expressionAttributeNamesMap",
",",
"Map",
"<",
"String",
",",
"AttributeValue",
">",
"expressionsAttributeValuesMap",
",",
"Map",
"<",
"String",
",",
"AttributeValue",
">",
"nonKeyNonNullAttributeValueMap",
",",
"List",
"<",
"String",
">",
"nullValuedNonKeyAttributeNames",
")",
"{",
"StringBuilder",
"updateExpressionSetBuilder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"StringBuilder",
"updateExpressionDeleteBuilder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"// This has to be a sorted list to ensure deterministic retrieval order for nonKeyNonNullAttributes",
"// while auto generating update expression tokens",
"List",
"<",
"String",
">",
"sortedNonKeyNonNullAttributeNames",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
"nonKeyNonNullAttributeValueMap",
".",
"keySet",
"(",
")",
")",
";",
"Collections",
".",
"sort",
"(",
"sortedNonKeyNonNullAttributeNames",
")",
";",
"// Sort the null valued non-key attributes to ensure deterministic retrieval order for nullValuedNonKeyAttributes",
"// while auto generating update expression tokens",
"List",
"<",
"String",
">",
"sortedNullValuedNonKeyAttributeNames",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
"nullValuedNonKeyAttributeNames",
")",
";",
"Collections",
".",
"sort",
"(",
"sortedNullValuedNonKeyAttributeNames",
")",
";",
"// Initialize baseToken and suffixCounter for each update item",
"String",
"baseToken",
"=",
"getBaseToken",
"(",
"sortedNonKeyNonNullAttributeNames",
",",
"sortedNullValuedNonKeyAttributeNames",
")",
";",
"Long",
"suffixCounter",
"=",
"0L",
";",
"if",
"(",
"sortedNonKeyNonNullAttributeNames",
".",
"size",
"(",
")",
">",
"0",
")",
"{",
"updateExpressionSetBuilder",
".",
"append",
"(",
"\"SET \"",
")",
";",
"List",
"<",
"String",
">",
"updateStringSetExpressions",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"for",
"(",
"String",
"nonKeyAttributeName",
":",
"sortedNonKeyNonNullAttributeNames",
")",
"{",
"String",
"tokenBase",
"=",
"generateSubstitutionTokenString",
"(",
"baseToken",
",",
"suffixCounter",
",",
"expressionAttributeNamesMap",
".",
"keySet",
"(",
")",
",",
"expressionsAttributeValuesMap",
".",
"keySet",
"(",
")",
")",
";",
"suffixCounter",
"++",
";",
"String",
"tokenKeyName",
"=",
"getExpressionAttributeNameSubstitutionToken",
"(",
"tokenBase",
")",
";",
"String",
"tokenValueName",
"=",
"getExpressionAttributeValueSubstitutionToken",
"(",
"tokenBase",
")",
";",
"expressionAttributeNamesMap",
".",
"put",
"(",
"tokenKeyName",
",",
"nonKeyAttributeName",
")",
";",
"expressionsAttributeValuesMap",
".",
"put",
"(",
"tokenValueName",
",",
"nonKeyNonNullAttributeValueMap",
".",
"get",
"(",
"nonKeyAttributeName",
")",
")",
";",
"updateStringSetExpressions",
".",
"add",
"(",
"tokenKeyName",
"+",
"\" = \"",
"+",
"tokenValueName",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"updateStringSetExpressions",
".",
"size",
"(",
")",
"-",
"1",
";",
"i",
"++",
")",
"{",
"updateExpressionSetBuilder",
".",
"append",
"(",
"updateStringSetExpressions",
".",
"get",
"(",
"i",
")",
"+",
"\", \"",
")",
";",
"}",
"updateExpressionSetBuilder",
".",
"append",
"(",
"updateStringSetExpressions",
".",
"get",
"(",
"updateStringSetExpressions",
".",
"size",
"(",
")",
"-",
"1",
")",
")",
";",
"}",
"if",
"(",
"sortedNullValuedNonKeyAttributeNames",
".",
"size",
"(",
")",
">",
"0",
")",
"{",
"updateExpressionDeleteBuilder",
".",
"append",
"(",
"\"REMOVE \"",
")",
";",
"List",
"<",
"String",
">",
"updateStringDeleteExpressions",
"=",
"new",
"ArrayList",
"<",
"String",
">",
"(",
")",
";",
"for",
"(",
"String",
"nullAttributeName",
":",
"sortedNullValuedNonKeyAttributeNames",
")",
"{",
"String",
"tokenBaseString",
"=",
"generateSubstitutionTokenString",
"(",
"baseToken",
",",
"suffixCounter",
",",
"expressionAttributeNamesMap",
".",
"keySet",
"(",
")",
")",
";",
"suffixCounter",
"++",
";",
"String",
"tokenKeyName",
"=",
"getExpressionAttributeNameSubstitutionToken",
"(",
"tokenBaseString",
")",
";",
"expressionAttributeNamesMap",
".",
"put",
"(",
"tokenKeyName",
",",
"nullAttributeName",
")",
";",
"updateStringDeleteExpressions",
".",
"add",
"(",
"tokenKeyName",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"updateStringDeleteExpressions",
".",
"size",
"(",
")",
"-",
"1",
";",
"i",
"++",
")",
"{",
"updateExpressionDeleteBuilder",
".",
"append",
"(",
"updateStringDeleteExpressions",
".",
"get",
"(",
"i",
")",
"+",
"\", \"",
")",
";",
"}",
"updateExpressionDeleteBuilder",
".",
"append",
"(",
"updateStringDeleteExpressions",
".",
"get",
"(",
"updateStringDeleteExpressions",
".",
"size",
"(",
")",
"-",
"1",
")",
")",
";",
"}",
"StringBuilder",
"updateExpression",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"updateExpressionSetBuilder",
".",
"length",
"(",
")",
">",
"0",
")",
"{",
"updateExpression",
".",
"append",
"(",
"updateExpressionSetBuilder",
".",
"toString",
"(",
")",
")",
";",
"}",
"if",
"(",
"updateExpressionDeleteBuilder",
".",
"length",
"(",
")",
">",
"0",
")",
"{",
"updateExpression",
".",
"append",
"(",
"\" \"",
"+",
"updateExpressionDeleteBuilder",
".",
"toString",
"(",
")",
")",
";",
"}",
"return",
"updateExpression",
".",
"toString",
"(",
")",
";",
"}"
] |
Merge nonKeyAttributes along with any condition expression attributes and generate corresponding update expression
|
[
"Merge",
"nonKeyAttributes",
"along",
"with",
"any",
"condition",
"expression",
"attributes",
"and",
"generate",
"corresponding",
"update",
"expression"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/UpdateExpressionGenerator.java#L97-L165
|
19,906
|
aws/aws-sdk-java
|
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/BrokerInstanceOption.java
|
BrokerInstanceOption.setAvailabilityZones
|
public void setAvailabilityZones(java.util.Collection<AvailabilityZone> availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null;
return;
}
this.availabilityZones = new java.util.ArrayList<AvailabilityZone>(availabilityZones);
}
|
java
|
public void setAvailabilityZones(java.util.Collection<AvailabilityZone> availabilityZones) {
if (availabilityZones == null) {
this.availabilityZones = null;
return;
}
this.availabilityZones = new java.util.ArrayList<AvailabilityZone>(availabilityZones);
}
|
[
"public",
"void",
"setAvailabilityZones",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"AvailabilityZone",
">",
"availabilityZones",
")",
"{",
"if",
"(",
"availabilityZones",
"==",
"null",
")",
"{",
"this",
".",
"availabilityZones",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"availabilityZones",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"AvailabilityZone",
">",
"(",
"availabilityZones",
")",
";",
"}"
] |
The list of available az.
@param availabilityZones
The list of available az.
|
[
"The",
"list",
"of",
"available",
"az",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/BrokerInstanceOption.java#L55-L62
|
19,907
|
aws/aws-sdk-java
|
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/BrokerInstanceOption.java
|
BrokerInstanceOption.setSupportedEngineVersions
|
public void setSupportedEngineVersions(java.util.Collection<String> supportedEngineVersions) {
if (supportedEngineVersions == null) {
this.supportedEngineVersions = null;
return;
}
this.supportedEngineVersions = new java.util.ArrayList<String>(supportedEngineVersions);
}
|
java
|
public void setSupportedEngineVersions(java.util.Collection<String> supportedEngineVersions) {
if (supportedEngineVersions == null) {
this.supportedEngineVersions = null;
return;
}
this.supportedEngineVersions = new java.util.ArrayList<String>(supportedEngineVersions);
}
|
[
"public",
"void",
"setSupportedEngineVersions",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"String",
">",
"supportedEngineVersions",
")",
"{",
"if",
"(",
"supportedEngineVersions",
"==",
"null",
")",
"{",
"this",
".",
"supportedEngineVersions",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"supportedEngineVersions",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"String",
">",
"(",
"supportedEngineVersions",
")",
";",
"}"
] |
The list of supported engine versions.
@param supportedEngineVersions
The list of supported engine versions.
|
[
"The",
"list",
"of",
"supported",
"engine",
"versions",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/BrokerInstanceOption.java#L202-L209
|
19,908
|
aws/aws-sdk-java
|
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/S3ClientCache.java
|
S3ClientCache.cacheClient
|
private AmazonS3 cacheClient(String region) {
if (awscredentialsProvider == null) {
throw new IllegalArgumentException("No credentials provider found to connect to S3");
}
AmazonS3 client = new AmazonS3Client(awscredentialsProvider);
client.setRegion(RegionUtils.getRegion(region));
clientsByRegion.put(region, client);
return client;
}
|
java
|
private AmazonS3 cacheClient(String region) {
if (awscredentialsProvider == null) {
throw new IllegalArgumentException("No credentials provider found to connect to S3");
}
AmazonS3 client = new AmazonS3Client(awscredentialsProvider);
client.setRegion(RegionUtils.getRegion(region));
clientsByRegion.put(region, client);
return client;
}
|
[
"private",
"AmazonS3",
"cacheClient",
"(",
"String",
"region",
")",
"{",
"if",
"(",
"awscredentialsProvider",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"No credentials provider found to connect to S3\"",
")",
";",
"}",
"AmazonS3",
"client",
"=",
"new",
"AmazonS3Client",
"(",
"awscredentialsProvider",
")",
";",
"client",
".",
"setRegion",
"(",
"RegionUtils",
".",
"getRegion",
"(",
"region",
")",
")",
";",
"clientsByRegion",
".",
"put",
"(",
"region",
",",
"client",
")",
";",
"return",
"client",
";",
"}"
] |
Returns a new client with region configured to
region.
Also updates the clientsByRegion map by associating the
new client with region.
@param region
The region the returned {@link AmazonS3} will be
configured to use.
@return A new {@link AmazonS3} client with region set to region.
|
[
"Returns",
"a",
"new",
"client",
"with",
"region",
"configured",
"to",
"region",
".",
"Also",
"updates",
"the",
"clientsByRegion",
"map",
"by",
"associating",
"the",
"new",
"client",
"with",
"region",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/S3ClientCache.java#L147-L155
|
19,909
|
aws/aws-sdk-java
|
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/customization/processors/EmitLegacyEnumSetterProcessor.java
|
EmitLegacyEnumSetterProcessor.assertShapeAndMembersAreInModel
|
private static void assertShapeAndMembersAreInModel(IntermediateModel model, Map<String, List<String>> shapeAndMembers) {
shapeAndMembers.forEach((shapeName, members) -> {
if (Utils.findShapeModelByC2jNameIfExists(model, shapeName) == null) {
throw new IllegalStateException(
String.format("Cannot find shape [%s] in the model when processing "
+ "customization config emitLegacyEnumSetterFor. %s", shapeName, shapeName));
}
members.forEach(memberName -> {
if (model.getShapeByC2jName(shapeName).getMemberByC2jName(memberName) == null) {
throw new IllegalStateException(
String.format("Cannot find member [%s] in the model when processing "
+ "customization config emitLegacyEnumSetterFor. %s", memberName, shapeName));
}
});
});
}
|
java
|
private static void assertShapeAndMembersAreInModel(IntermediateModel model, Map<String, List<String>> shapeAndMembers) {
shapeAndMembers.forEach((shapeName, members) -> {
if (Utils.findShapeModelByC2jNameIfExists(model, shapeName) == null) {
throw new IllegalStateException(
String.format("Cannot find shape [%s] in the model when processing "
+ "customization config emitLegacyEnumSetterFor. %s", shapeName, shapeName));
}
members.forEach(memberName -> {
if (model.getShapeByC2jName(shapeName).getMemberByC2jName(memberName) == null) {
throw new IllegalStateException(
String.format("Cannot find member [%s] in the model when processing "
+ "customization config emitLegacyEnumSetterFor. %s", memberName, shapeName));
}
});
});
}
|
[
"private",
"static",
"void",
"assertShapeAndMembersAreInModel",
"(",
"IntermediateModel",
"model",
",",
"Map",
"<",
"String",
",",
"List",
"<",
"String",
">",
">",
"shapeAndMembers",
")",
"{",
"shapeAndMembers",
".",
"forEach",
"(",
"(",
"shapeName",
",",
"members",
")",
"->",
"{",
"if",
"(",
"Utils",
".",
"findShapeModelByC2jNameIfExists",
"(",
"model",
",",
"shapeName",
")",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"String",
".",
"format",
"(",
"\"Cannot find shape [%s] in the model when processing \"",
"+",
"\"customization config emitLegacyEnumSetterFor. %s\"",
",",
"shapeName",
",",
"shapeName",
")",
")",
";",
"}",
"members",
".",
"forEach",
"(",
"memberName",
"->",
"{",
"if",
"(",
"model",
".",
"getShapeByC2jName",
"(",
"shapeName",
")",
".",
"getMemberByC2jName",
"(",
"memberName",
")",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalStateException",
"(",
"String",
".",
"format",
"(",
"\"Cannot find member [%s] in the model when processing \"",
"+",
"\"customization config emitLegacyEnumSetterFor. %s\"",
",",
"memberName",
",",
"shapeName",
")",
")",
";",
"}",
"}",
")",
";",
"}",
")",
";",
"}"
] |
Checks that all shapes and members in a given customization are actually in the model. Good to fail fast for things like
typos instead of silently not applying that customization.
@param model {@link IntermediateModel}
@param shapeAndMembers Shape and members referenced by customization. Map of String (shape name) to list of strings
(member names).
|
[
"Checks",
"that",
"all",
"shapes",
"and",
"members",
"in",
"a",
"given",
"customization",
"are",
"actually",
"in",
"the",
"model",
".",
"Good",
"to",
"fail",
"fast",
"for",
"things",
"like",
"typos",
"instead",
"of",
"silently",
"not",
"applying",
"that",
"customization",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/customization/processors/EmitLegacyEnumSetterProcessor.java#L75-L90
|
19,910
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.cancelImportTaskAsync
|
@Override
public java.util.concurrent.Future<CancelImportTaskResult> cancelImportTaskAsync(
com.amazonaws.handlers.AsyncHandler<CancelImportTaskRequest, CancelImportTaskResult> asyncHandler) {
return cancelImportTaskAsync(new CancelImportTaskRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<CancelImportTaskResult> cancelImportTaskAsync(
com.amazonaws.handlers.AsyncHandler<CancelImportTaskRequest, CancelImportTaskResult> asyncHandler) {
return cancelImportTaskAsync(new CancelImportTaskRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"CancelImportTaskResult",
">",
"cancelImportTaskAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"CancelImportTaskRequest",
",",
"CancelImportTaskResult",
">",
"asyncHandler",
")",
"{",
"return",
"cancelImportTaskAsync",
"(",
"new",
"CancelImportTaskRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the CancelImportTask operation with an AsyncHandler.
@see #cancelImportTaskAsync(CancelImportTaskRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"CancelImportTask",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L1407-L1412
|
19,911
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.createInternetGatewayAsync
|
@Override
public java.util.concurrent.Future<CreateInternetGatewayResult> createInternetGatewayAsync(
com.amazonaws.handlers.AsyncHandler<CreateInternetGatewayRequest, CreateInternetGatewayResult> asyncHandler) {
return createInternetGatewayAsync(new CreateInternetGatewayRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<CreateInternetGatewayResult> createInternetGatewayAsync(
com.amazonaws.handlers.AsyncHandler<CreateInternetGatewayRequest, CreateInternetGatewayResult> asyncHandler) {
return createInternetGatewayAsync(new CreateInternetGatewayRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"CreateInternetGatewayResult",
">",
"createInternetGatewayAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"CreateInternetGatewayRequest",
",",
"CreateInternetGatewayResult",
">",
"asyncHandler",
")",
"{",
"return",
"createInternetGatewayAsync",
"(",
"new",
"CreateInternetGatewayRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the CreateInternetGateway operation with an AsyncHandler.
@see #createInternetGatewayAsync(CreateInternetGatewayRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"CreateInternetGateway",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L2126-L2131
|
19,912
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeAddressesAsync
|
@Override
public java.util.concurrent.Future<DescribeAddressesResult> describeAddressesAsync(
com.amazonaws.handlers.AsyncHandler<DescribeAddressesRequest, DescribeAddressesResult> asyncHandler) {
return describeAddressesAsync(new DescribeAddressesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeAddressesResult> describeAddressesAsync(
com.amazonaws.handlers.AsyncHandler<DescribeAddressesRequest, DescribeAddressesResult> asyncHandler) {
return describeAddressesAsync(new DescribeAddressesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeAddressesResult",
">",
"describeAddressesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeAddressesRequest",
",",
"DescribeAddressesResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeAddressesAsync",
"(",
"new",
"DescribeAddressesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeAddresses operation with an AsyncHandler.
@see #describeAddressesAsync(DescribeAddressesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeAddresses",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L4618-L4623
|
19,913
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeBundleTasksAsync
|
@Override
public java.util.concurrent.Future<DescribeBundleTasksResult> describeBundleTasksAsync(
com.amazonaws.handlers.AsyncHandler<DescribeBundleTasksRequest, DescribeBundleTasksResult> asyncHandler) {
return describeBundleTasksAsync(new DescribeBundleTasksRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeBundleTasksResult> describeBundleTasksAsync(
com.amazonaws.handlers.AsyncHandler<DescribeBundleTasksRequest, DescribeBundleTasksResult> asyncHandler) {
return describeBundleTasksAsync(new DescribeBundleTasksRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeBundleTasksResult",
">",
"describeBundleTasksAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeBundleTasksRequest",
",",
"DescribeBundleTasksResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeBundleTasksAsync",
"(",
"new",
"DescribeBundleTasksRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeBundleTasks operation with an AsyncHandler.
@see #describeBundleTasksAsync(DescribeBundleTasksRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeBundleTasks",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L4763-L4768
|
19,914
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeConversionTasksAsync
|
@Override
public java.util.concurrent.Future<DescribeConversionTasksResult> describeConversionTasksAsync(
com.amazonaws.handlers.AsyncHandler<DescribeConversionTasksRequest, DescribeConversionTasksResult> asyncHandler) {
return describeConversionTasksAsync(new DescribeConversionTasksRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeConversionTasksResult> describeConversionTasksAsync(
com.amazonaws.handlers.AsyncHandler<DescribeConversionTasksRequest, DescribeConversionTasksResult> asyncHandler) {
return describeConversionTasksAsync(new DescribeConversionTasksRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeConversionTasksResult",
">",
"describeConversionTasksAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeConversionTasksRequest",
",",
"DescribeConversionTasksResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeConversionTasksAsync",
"(",
"new",
"DescribeConversionTasksRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeConversionTasks operation with an AsyncHandler.
@see #describeConversionTasksAsync(DescribeConversionTasksRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeConversionTasks",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L5110-L5115
|
19,915
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeCustomerGatewaysAsync
|
@Override
public java.util.concurrent.Future<DescribeCustomerGatewaysResult> describeCustomerGatewaysAsync(
com.amazonaws.handlers.AsyncHandler<DescribeCustomerGatewaysRequest, DescribeCustomerGatewaysResult> asyncHandler) {
return describeCustomerGatewaysAsync(new DescribeCustomerGatewaysRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeCustomerGatewaysResult> describeCustomerGatewaysAsync(
com.amazonaws.handlers.AsyncHandler<DescribeCustomerGatewaysRequest, DescribeCustomerGatewaysResult> asyncHandler) {
return describeCustomerGatewaysAsync(new DescribeCustomerGatewaysRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeCustomerGatewaysResult",
">",
"describeCustomerGatewaysAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeCustomerGatewaysRequest",
",",
"DescribeCustomerGatewaysResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeCustomerGatewaysAsync",
"(",
"new",
"DescribeCustomerGatewaysRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeCustomerGateways operation with an AsyncHandler.
@see #describeCustomerGatewaysAsync(DescribeCustomerGatewaysRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeCustomerGateways",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L5166-L5171
|
19,916
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeDhcpOptionsAsync
|
@Override
public java.util.concurrent.Future<DescribeDhcpOptionsResult> describeDhcpOptionsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeDhcpOptionsRequest, DescribeDhcpOptionsResult> asyncHandler) {
return describeDhcpOptionsAsync(new DescribeDhcpOptionsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeDhcpOptionsResult> describeDhcpOptionsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeDhcpOptionsRequest, DescribeDhcpOptionsResult> asyncHandler) {
return describeDhcpOptionsAsync(new DescribeDhcpOptionsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeDhcpOptionsResult",
">",
"describeDhcpOptionsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeDhcpOptionsRequest",
",",
"DescribeDhcpOptionsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeDhcpOptionsAsync",
"(",
"new",
"DescribeDhcpOptionsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeDhcpOptions operation with an AsyncHandler.
@see #describeDhcpOptionsAsync(DescribeDhcpOptionsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeDhcpOptions",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L5222-L5227
|
19,917
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeFlowLogsAsync
|
@Override
public java.util.concurrent.Future<DescribeFlowLogsResult> describeFlowLogsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeFlowLogsRequest, DescribeFlowLogsResult> asyncHandler) {
return describeFlowLogsAsync(new DescribeFlowLogsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeFlowLogsResult> describeFlowLogsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeFlowLogsRequest, DescribeFlowLogsResult> asyncHandler) {
return describeFlowLogsAsync(new DescribeFlowLogsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeFlowLogsResult",
">",
"describeFlowLogsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeFlowLogsRequest",
",",
"DescribeFlowLogsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeFlowLogsAsync",
"(",
"new",
"DescribeFlowLogsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeFlowLogs operation with an AsyncHandler.
@see #describeFlowLogsAsync(DescribeFlowLogsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeFlowLogs",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L5501-L5506
|
19,918
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeIdFormatAsync
|
@Override
public java.util.concurrent.Future<DescribeIdFormatResult> describeIdFormatAsync(
com.amazonaws.handlers.AsyncHandler<DescribeIdFormatRequest, DescribeIdFormatResult> asyncHandler) {
return describeIdFormatAsync(new DescribeIdFormatRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeIdFormatResult> describeIdFormatAsync(
com.amazonaws.handlers.AsyncHandler<DescribeIdFormatRequest, DescribeIdFormatResult> asyncHandler) {
return describeIdFormatAsync(new DescribeIdFormatRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeIdFormatResult",
">",
"describeIdFormatAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeIdFormatRequest",
",",
"DescribeIdFormatResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeIdFormatAsync",
"(",
"new",
"DescribeIdFormatRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeIdFormat operation with an AsyncHandler.
@see #describeIdFormatAsync(DescribeIdFormatRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeIdFormat",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L5782-L5787
|
19,919
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeInstanceStatusAsync
|
@Override
public java.util.concurrent.Future<DescribeInstanceStatusResult> describeInstanceStatusAsync(
com.amazonaws.handlers.AsyncHandler<DescribeInstanceStatusRequest, DescribeInstanceStatusResult> asyncHandler) {
return describeInstanceStatusAsync(new DescribeInstanceStatusRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeInstanceStatusResult> describeInstanceStatusAsync(
com.amazonaws.handlers.AsyncHandler<DescribeInstanceStatusRequest, DescribeInstanceStatusResult> asyncHandler) {
return describeInstanceStatusAsync(new DescribeInstanceStatusRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeInstanceStatusResult",
">",
"describeInstanceStatusAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeInstanceStatusRequest",
",",
"DescribeInstanceStatusResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeInstanceStatusAsync",
"(",
"new",
"DescribeInstanceStatusRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeInstanceStatus operation with an AsyncHandler.
@see #describeInstanceStatusAsync(DescribeInstanceStatusRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeInstanceStatus",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L6140-L6145
|
19,920
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeInternetGatewaysAsync
|
@Override
public java.util.concurrent.Future<DescribeInternetGatewaysResult> describeInternetGatewaysAsync(
com.amazonaws.handlers.AsyncHandler<DescribeInternetGatewaysRequest, DescribeInternetGatewaysResult> asyncHandler) {
return describeInternetGatewaysAsync(new DescribeInternetGatewaysRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeInternetGatewaysResult> describeInternetGatewaysAsync(
com.amazonaws.handlers.AsyncHandler<DescribeInternetGatewaysRequest, DescribeInternetGatewaysResult> asyncHandler) {
return describeInternetGatewaysAsync(new DescribeInternetGatewaysRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeInternetGatewaysResult",
">",
"describeInternetGatewaysAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeInternetGatewaysRequest",
",",
"DescribeInternetGatewaysResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeInternetGatewaysAsync",
"(",
"new",
"DescribeInternetGatewaysRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeInternetGateways operation with an AsyncHandler.
@see #describeInternetGatewaysAsync(DescribeInternetGatewaysRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeInternetGateways",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L6252-L6257
|
19,921
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeKeyPairsAsync
|
@Override
public java.util.concurrent.Future<DescribeKeyPairsResult> describeKeyPairsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeKeyPairsRequest, DescribeKeyPairsResult> asyncHandler) {
return describeKeyPairsAsync(new DescribeKeyPairsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeKeyPairsResult> describeKeyPairsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeKeyPairsRequest, DescribeKeyPairsResult> asyncHandler) {
return describeKeyPairsAsync(new DescribeKeyPairsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeKeyPairsResult",
">",
"describeKeyPairsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeKeyPairsRequest",
",",
"DescribeKeyPairsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeKeyPairsAsync",
"(",
"new",
"DescribeKeyPairsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeKeyPairs operation with an AsyncHandler.
@see #describeKeyPairsAsync(DescribeKeyPairsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeKeyPairs",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L6308-L6313
|
19,922
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeNetworkInterfacesAsync
|
@Override
public java.util.concurrent.Future<DescribeNetworkInterfacesResult> describeNetworkInterfacesAsync(
com.amazonaws.handlers.AsyncHandler<DescribeNetworkInterfacesRequest, DescribeNetworkInterfacesResult> asyncHandler) {
return describeNetworkInterfacesAsync(new DescribeNetworkInterfacesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeNetworkInterfacesResult> describeNetworkInterfacesAsync(
com.amazonaws.handlers.AsyncHandler<DescribeNetworkInterfacesRequest, DescribeNetworkInterfacesResult> asyncHandler) {
return describeNetworkInterfacesAsync(new DescribeNetworkInterfacesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeNetworkInterfacesResult",
">",
"describeNetworkInterfacesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeNetworkInterfacesRequest",
",",
"DescribeNetworkInterfacesResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeNetworkInterfacesAsync",
"(",
"new",
"DescribeNetworkInterfacesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeNetworkInterfaces operation with an AsyncHandler.
@see #describeNetworkInterfacesAsync(DescribeNetworkInterfacesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeNetworkInterfaces",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L6646-L6651
|
19,923
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeRegionsAsync
|
@Override
public java.util.concurrent.Future<DescribeRegionsResult> describeRegionsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeRegionsRequest, DescribeRegionsResult> asyncHandler) {
return describeRegionsAsync(new DescribeRegionsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeRegionsResult> describeRegionsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeRegionsRequest, DescribeRegionsResult> asyncHandler) {
return describeRegionsAsync(new DescribeRegionsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeRegionsResult",
">",
"describeRegionsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeRegionsRequest",
",",
"DescribeRegionsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeRegionsAsync",
"(",
"new",
"DescribeRegionsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeRegions operation with an AsyncHandler.
@see #describeRegionsAsync(DescribeRegionsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeRegions",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L6880-L6885
|
19,924
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeReservedInstancesListingsAsync
|
@Override
public java.util.concurrent.Future<DescribeReservedInstancesListingsResult> describeReservedInstancesListingsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeReservedInstancesListingsRequest, DescribeReservedInstancesListingsResult> asyncHandler) {
return describeReservedInstancesListingsAsync(new DescribeReservedInstancesListingsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeReservedInstancesListingsResult> describeReservedInstancesListingsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeReservedInstancesListingsRequest, DescribeReservedInstancesListingsResult> asyncHandler) {
return describeReservedInstancesListingsAsync(new DescribeReservedInstancesListingsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeReservedInstancesListingsResult",
">",
"describeReservedInstancesListingsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeReservedInstancesListingsRequest",
",",
"DescribeReservedInstancesListingsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeReservedInstancesListingsAsync",
"(",
"new",
"DescribeReservedInstancesListingsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeReservedInstancesListings operation with an AsyncHandler.
@see #describeReservedInstancesListingsAsync(DescribeReservedInstancesListingsRequest,
com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeReservedInstancesListings",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L6995-L7000
|
19,925
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeReservedInstancesOfferingsAsync
|
@Override
public java.util.concurrent.Future<DescribeReservedInstancesOfferingsResult> describeReservedInstancesOfferingsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeReservedInstancesOfferingsRequest, DescribeReservedInstancesOfferingsResult> asyncHandler) {
return describeReservedInstancesOfferingsAsync(new DescribeReservedInstancesOfferingsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeReservedInstancesOfferingsResult> describeReservedInstancesOfferingsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeReservedInstancesOfferingsRequest, DescribeReservedInstancesOfferingsResult> asyncHandler) {
return describeReservedInstancesOfferingsAsync(new DescribeReservedInstancesOfferingsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeReservedInstancesOfferingsResult",
">",
"describeReservedInstancesOfferingsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeReservedInstancesOfferingsRequest",
",",
"DescribeReservedInstancesOfferingsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeReservedInstancesOfferingsAsync",
"(",
"new",
"DescribeReservedInstancesOfferingsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeReservedInstancesOfferings operation with an AsyncHandler.
@see #describeReservedInstancesOfferingsAsync(DescribeReservedInstancesOfferingsRequest,
com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeReservedInstancesOfferings",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L7113-L7118
|
19,926
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeSecurityGroupsAsync
|
@Override
public java.util.concurrent.Future<DescribeSecurityGroupsResult> describeSecurityGroupsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeSecurityGroupsRequest, DescribeSecurityGroupsResult> asyncHandler) {
return describeSecurityGroupsAsync(new DescribeSecurityGroupsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeSecurityGroupsResult> describeSecurityGroupsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeSecurityGroupsRequest, DescribeSecurityGroupsResult> asyncHandler) {
return describeSecurityGroupsAsync(new DescribeSecurityGroupsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeSecurityGroupsResult",
">",
"describeSecurityGroupsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeSecurityGroupsRequest",
",",
"DescribeSecurityGroupsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeSecurityGroupsAsync",
"(",
"new",
"DescribeSecurityGroupsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeSecurityGroups operation with an AsyncHandler.
@see #describeSecurityGroupsAsync(DescribeSecurityGroupsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeSecurityGroups",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L7328-L7333
|
19,927
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeSubnetsAsync
|
@Override
public java.util.concurrent.Future<DescribeSubnetsResult> describeSubnetsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeSubnetsRequest, DescribeSubnetsResult> asyncHandler) {
return describeSubnetsAsync(new DescribeSubnetsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeSubnetsResult> describeSubnetsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeSubnetsRequest, DescribeSubnetsResult> asyncHandler) {
return describeSubnetsAsync(new DescribeSubnetsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeSubnetsResult",
">",
"describeSubnetsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeSubnetsRequest",
",",
"DescribeSubnetsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeSubnetsAsync",
"(",
"new",
"DescribeSubnetsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeSubnets operation with an AsyncHandler.
@see #describeSubnetsAsync(DescribeSubnetsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeSubnets",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L7801-L7806
|
19,928
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeVpcEndpointsAsync
|
@Override
public java.util.concurrent.Future<DescribeVpcEndpointsResult> describeVpcEndpointsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeVpcEndpointsRequest, DescribeVpcEndpointsResult> asyncHandler) {
return describeVpcEndpointsAsync(new DescribeVpcEndpointsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeVpcEndpointsResult> describeVpcEndpointsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeVpcEndpointsRequest, DescribeVpcEndpointsResult> asyncHandler) {
return describeVpcEndpointsAsync(new DescribeVpcEndpointsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeVpcEndpointsResult",
">",
"describeVpcEndpointsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeVpcEndpointsRequest",
",",
"DescribeVpcEndpointsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeVpcEndpointsAsync",
"(",
"new",
"DescribeVpcEndpointsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeVpcEndpoints operation with an AsyncHandler.
@see #describeVpcEndpointsAsync(DescribeVpcEndpointsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeVpcEndpoints",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L8548-L8553
|
19,929
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.describeVpnConnectionsAsync
|
@Override
public java.util.concurrent.Future<DescribeVpnConnectionsResult> describeVpnConnectionsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeVpnConnectionsRequest, DescribeVpnConnectionsResult> asyncHandler) {
return describeVpnConnectionsAsync(new DescribeVpnConnectionsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DescribeVpnConnectionsResult> describeVpnConnectionsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeVpnConnectionsRequest, DescribeVpnConnectionsResult> asyncHandler) {
return describeVpnConnectionsAsync(new DescribeVpnConnectionsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeVpnConnectionsResult",
">",
"describeVpnConnectionsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeVpnConnectionsRequest",
",",
"DescribeVpnConnectionsResult",
">",
"asyncHandler",
")",
"{",
"return",
"describeVpnConnectionsAsync",
"(",
"new",
"DescribeVpnConnectionsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DescribeVpnConnections operation with an AsyncHandler.
@see #describeVpnConnectionsAsync(DescribeVpnConnectionsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeVpnConnections",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L8718-L8723
|
19,930
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.revokeSecurityGroupIngressAsync
|
@Override
@Deprecated
public java.util.concurrent.Future<RevokeSecurityGroupIngressResult> revokeSecurityGroupIngressAsync() {
return revokeSecurityGroupIngressAsync(new RevokeSecurityGroupIngressRequest());
}
|
java
|
@Override
@Deprecated
public java.util.concurrent.Future<RevokeSecurityGroupIngressResult> revokeSecurityGroupIngressAsync() {
return revokeSecurityGroupIngressAsync(new RevokeSecurityGroupIngressRequest());
}
|
[
"@",
"Override",
"@",
"Deprecated",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"RevokeSecurityGroupIngressResult",
">",
"revokeSecurityGroupIngressAsync",
"(",
")",
"{",
"return",
"revokeSecurityGroupIngressAsync",
"(",
"new",
"RevokeSecurityGroupIngressRequest",
"(",
")",
")",
";",
"}"
] |
Simplified method form for invoking the RevokeSecurityGroupIngress operation.
@see #revokeSecurityGroupIngressAsync(RevokeSecurityGroupIngressRequest)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"RevokeSecurityGroupIngress",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L12150-L12155
|
19,931
|
aws/aws-sdk-java
|
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java
|
AmazonEC2AsyncClient.revokeSecurityGroupIngressAsync
|
@Override
@Deprecated
public java.util.concurrent.Future<RevokeSecurityGroupIngressResult> revokeSecurityGroupIngressAsync(
com.amazonaws.handlers.AsyncHandler<RevokeSecurityGroupIngressRequest, RevokeSecurityGroupIngressResult> asyncHandler) {
return revokeSecurityGroupIngressAsync(new RevokeSecurityGroupIngressRequest(), asyncHandler);
}
|
java
|
@Override
@Deprecated
public java.util.concurrent.Future<RevokeSecurityGroupIngressResult> revokeSecurityGroupIngressAsync(
com.amazonaws.handlers.AsyncHandler<RevokeSecurityGroupIngressRequest, RevokeSecurityGroupIngressResult> asyncHandler) {
return revokeSecurityGroupIngressAsync(new RevokeSecurityGroupIngressRequest(), asyncHandler);
}
|
[
"@",
"Override",
"@",
"Deprecated",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"RevokeSecurityGroupIngressResult",
">",
"revokeSecurityGroupIngressAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"RevokeSecurityGroupIngressRequest",
",",
"RevokeSecurityGroupIngressResult",
">",
"asyncHandler",
")",
"{",
"return",
"revokeSecurityGroupIngressAsync",
"(",
"new",
"RevokeSecurityGroupIngressRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the RevokeSecurityGroupIngress operation with an AsyncHandler.
@see #revokeSecurityGroupIngressAsync(RevokeSecurityGroupIngressRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"RevokeSecurityGroupIngress",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2AsyncClient.java#L12162-L12168
|
19,932
|
aws/aws-sdk-java
|
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/CodeWriter.java
|
CodeWriter.flush
|
@Override
public void flush() {
PrintWriter out = null;
try {
try {
out = new PrintWriter(Utils.createFile(dir, file), "UTF-8");
} catch (Exception e) {
throw new RuntimeException(e);
}
String contents = getBuffer().toString();
out.write(processor.apply(contents));
} finally {
closeQuietly(out);
}
}
|
java
|
@Override
public void flush() {
PrintWriter out = null;
try {
try {
out = new PrintWriter(Utils.createFile(dir, file), "UTF-8");
} catch (Exception e) {
throw new RuntimeException(e);
}
String contents = getBuffer().toString();
out.write(processor.apply(contents));
} finally {
closeQuietly(out);
}
}
|
[
"@",
"Override",
"public",
"void",
"flush",
"(",
")",
"{",
"PrintWriter",
"out",
"=",
"null",
";",
"try",
"{",
"try",
"{",
"out",
"=",
"new",
"PrintWriter",
"(",
"Utils",
".",
"createFile",
"(",
"dir",
",",
"file",
")",
",",
"\"UTF-8\"",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"e",
")",
";",
"}",
"String",
"contents",
"=",
"getBuffer",
"(",
")",
".",
"toString",
"(",
")",
";",
"out",
".",
"write",
"(",
"processor",
".",
"apply",
"(",
"contents",
")",
")",
";",
"}",
"finally",
"{",
"closeQuietly",
"(",
"out",
")",
";",
"}",
"}"
] |
This method is expected to be called only once during the code generation process after the
template processing is done.
|
[
"This",
"method",
"is",
"expected",
"to",
"be",
"called",
"only",
"once",
"during",
"the",
"code",
"generation",
"process",
"after",
"the",
"template",
"processing",
"is",
"done",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/CodeWriter.java#L87-L102
|
19,933
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/DeviceDefinitionVersion.java
|
DeviceDefinitionVersion.setDevices
|
public void setDevices(java.util.Collection<Device> devices) {
if (devices == null) {
this.devices = null;
return;
}
this.devices = new java.util.ArrayList<Device>(devices);
}
|
java
|
public void setDevices(java.util.Collection<Device> devices) {
if (devices == null) {
this.devices = null;
return;
}
this.devices = new java.util.ArrayList<Device>(devices);
}
|
[
"public",
"void",
"setDevices",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"Device",
">",
"devices",
")",
"{",
"if",
"(",
"devices",
"==",
"null",
")",
"{",
"this",
".",
"devices",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"devices",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"Device",
">",
"(",
"devices",
")",
";",
"}"
] |
A list of devices in the definition version.
@param devices
A list of devices in the definition version.
|
[
"A",
"list",
"of",
"devices",
"in",
"the",
"definition",
"version",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/DeviceDefinitionVersion.java#L49-L56
|
19,934
|
aws/aws-sdk-java
|
aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/internal/validation/ProblemReporter.java
|
ProblemReporter.getException
|
public ValidationException getException() {
StringBuilder exceptionMessage = new StringBuilder();
for (Problem problem : problems) {
exceptionMessage.append(String.format("\n%s: %s", problem.getContext().getPath(), problem.getMessage()));
}
return new ValidationException(exceptionMessage.toString());
}
|
java
|
public ValidationException getException() {
StringBuilder exceptionMessage = new StringBuilder();
for (Problem problem : problems) {
exceptionMessage.append(String.format("\n%s: %s", problem.getContext().getPath(), problem.getMessage()));
}
return new ValidationException(exceptionMessage.toString());
}
|
[
"public",
"ValidationException",
"getException",
"(",
")",
"{",
"StringBuilder",
"exceptionMessage",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"for",
"(",
"Problem",
"problem",
":",
"problems",
")",
"{",
"exceptionMessage",
".",
"append",
"(",
"String",
".",
"format",
"(",
"\"\\n%s: %s\"",
",",
"problem",
".",
"getContext",
"(",
")",
".",
"getPath",
"(",
")",
",",
"problem",
".",
"getMessage",
"(",
")",
")",
")",
";",
"}",
"return",
"new",
"ValidationException",
"(",
"exceptionMessage",
".",
"toString",
"(",
")",
")",
";",
"}"
] |
Factory method to create an exception with all problems identified in the message.
@return ValidationException.
|
[
"Factory",
"method",
"to",
"create",
"an",
"exception",
"with",
"all",
"problems",
"identified",
"in",
"the",
"message",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/internal/validation/ProblemReporter.java#L46-L52
|
19,935
|
aws/aws-sdk-java
|
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployAsyncClient.java
|
AmazonCodeDeployAsyncClient.listApplicationsAsync
|
@Override
public java.util.concurrent.Future<ListApplicationsResult> listApplicationsAsync(
com.amazonaws.handlers.AsyncHandler<ListApplicationsRequest, ListApplicationsResult> asyncHandler) {
return listApplicationsAsync(new ListApplicationsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListApplicationsResult> listApplicationsAsync(
com.amazonaws.handlers.AsyncHandler<ListApplicationsRequest, ListApplicationsResult> asyncHandler) {
return listApplicationsAsync(new ListApplicationsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListApplicationsResult",
">",
"listApplicationsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListApplicationsRequest",
",",
"ListApplicationsResult",
">",
"asyncHandler",
")",
"{",
"return",
"listApplicationsAsync",
"(",
"new",
"ListApplicationsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListApplications operation with an AsyncHandler.
@see #listApplicationsAsync(ListApplicationsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListApplications",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployAsyncClient.java#L1350-L1355
|
19,936
|
aws/aws-sdk-java
|
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployAsyncClient.java
|
AmazonCodeDeployAsyncClient.listDeploymentsAsync
|
@Override
public java.util.concurrent.Future<ListDeploymentsResult> listDeploymentsAsync(
com.amazonaws.handlers.AsyncHandler<ListDeploymentsRequest, ListDeploymentsResult> asyncHandler) {
return listDeploymentsAsync(new ListDeploymentsRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListDeploymentsResult> listDeploymentsAsync(
com.amazonaws.handlers.AsyncHandler<ListDeploymentsRequest, ListDeploymentsResult> asyncHandler) {
return listDeploymentsAsync(new ListDeploymentsRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListDeploymentsResult",
">",
"listDeploymentsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListDeploymentsRequest",
",",
"ListDeploymentsResult",
">",
"asyncHandler",
")",
"{",
"return",
"listDeploymentsAsync",
"(",
"new",
"ListDeploymentsRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListDeployments operation with an AsyncHandler.
@see #listDeploymentsAsync(ListDeploymentsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListDeployments",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployAsyncClient.java#L1563-L1568
|
19,937
|
aws/aws-sdk-java
|
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployAsyncClient.java
|
AmazonCodeDeployAsyncClient.listOnPremisesInstancesAsync
|
@Override
public java.util.concurrent.Future<ListOnPremisesInstancesResult> listOnPremisesInstancesAsync(
com.amazonaws.handlers.AsyncHandler<ListOnPremisesInstancesRequest, ListOnPremisesInstancesResult> asyncHandler) {
return listOnPremisesInstancesAsync(new ListOnPremisesInstancesRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListOnPremisesInstancesResult> listOnPremisesInstancesAsync(
com.amazonaws.handlers.AsyncHandler<ListOnPremisesInstancesRequest, ListOnPremisesInstancesResult> asyncHandler) {
return listOnPremisesInstancesAsync(new ListOnPremisesInstancesRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListOnPremisesInstancesResult",
">",
"listOnPremisesInstancesAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListOnPremisesInstancesRequest",
",",
"ListOnPremisesInstancesResult",
">",
"asyncHandler",
")",
"{",
"return",
"listOnPremisesInstancesAsync",
"(",
"new",
"ListOnPremisesInstancesRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListOnPremisesInstances operation with an AsyncHandler.
@see #listOnPremisesInstancesAsync(ListOnPremisesInstancesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListOnPremisesInstances",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployAsyncClient.java#L1652-L1657
|
19,938
|
aws/aws-sdk-java
|
aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployAsyncClient.java
|
AmazonCodeDeployAsyncClient.updateApplicationAsync
|
@Override
public java.util.concurrent.Future<UpdateApplicationResult> updateApplicationAsync(
com.amazonaws.handlers.AsyncHandler<UpdateApplicationRequest, UpdateApplicationResult> asyncHandler) {
return updateApplicationAsync(new UpdateApplicationRequest(), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<UpdateApplicationResult> updateApplicationAsync(
com.amazonaws.handlers.AsyncHandler<UpdateApplicationRequest, UpdateApplicationResult> asyncHandler) {
return updateApplicationAsync(new UpdateApplicationRequest(), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"UpdateApplicationResult",
">",
"updateApplicationAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"UpdateApplicationRequest",
",",
"UpdateApplicationResult",
">",
"asyncHandler",
")",
"{",
"return",
"updateApplicationAsync",
"(",
"new",
"UpdateApplicationRequest",
"(",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the UpdateApplication operation with an AsyncHandler.
@see #updateApplicationAsync(UpdateApplicationRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"UpdateApplication",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployAsyncClient.java#L1914-L1919
|
19,939
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/HttpException.java
|
HttpException.trySlurpContent
|
private static String trySlurpContent(HttpResponse response) {
try {
return IOUtils.toString(response.getEntity().getContent());
} catch (IOException e) {
return "";
}
}
|
java
|
private static String trySlurpContent(HttpResponse response) {
try {
return IOUtils.toString(response.getEntity().getContent());
} catch (IOException e) {
return "";
}
}
|
[
"private",
"static",
"String",
"trySlurpContent",
"(",
"HttpResponse",
"response",
")",
"{",
"try",
"{",
"return",
"IOUtils",
".",
"toString",
"(",
"response",
".",
"getEntity",
"(",
")",
".",
"getContent",
"(",
")",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"return",
"\"\"",
";",
"}",
"}"
] |
Tries to read all the content from the HTTP response into a string. If an IO failure occurs while reading content,
empty string is returned instead.
@param response Response to slurp content for.
@return String containing response content, empty string if failure occurs.
|
[
"Tries",
"to",
"read",
"all",
"the",
"content",
"from",
"the",
"HTTP",
"response",
"into",
"a",
"string",
".",
"If",
"an",
"IO",
"failure",
"occurs",
"while",
"reading",
"content",
"empty",
"string",
"is",
"returned",
"instead",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/HttpException.java#L50-L56
|
19,940
|
aws/aws-sdk-java
|
aws-java-sdk-rdsdata/src/main/java/com/amazonaws/services/rdsdata/model/StructValue.java
|
StructValue.setAttributes
|
public void setAttributes(java.util.Collection<Value> attributes) {
if (attributes == null) {
this.attributes = null;
return;
}
this.attributes = new java.util.ArrayList<Value>(attributes);
}
|
java
|
public void setAttributes(java.util.Collection<Value> attributes) {
if (attributes == null) {
this.attributes = null;
return;
}
this.attributes = new java.util.ArrayList<Value>(attributes);
}
|
[
"public",
"void",
"setAttributes",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"Value",
">",
"attributes",
")",
"{",
"if",
"(",
"attributes",
"==",
"null",
")",
"{",
"this",
".",
"attributes",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"attributes",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"Value",
">",
"(",
"attributes",
")",
";",
"}"
] |
Struct or UDT
@param attributes
Struct or UDT
|
[
"Struct",
"or",
"UDT"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-rdsdata/src/main/java/com/amazonaws/services/rdsdata/model/StructValue.java#L49-L56
|
19,941
|
aws/aws-sdk-java
|
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/utils/ModelLoaderUtils.java
|
ModelLoaderUtils.loadConfigurationModel
|
public static <T> T loadConfigurationModel(Class<T> clzz, String configurationFileLocation) {
System.out.println("Loading config file " + configurationFileLocation);
InputStream fileContents = null;
try {
fileContents = getRequiredResourceAsStream(configurationFileLocation);
return Jackson.load(clzz, fileContents);
} catch (IOException e) {
System.err.println("Failed to read the configuration file " + configurationFileLocation);
throw new RuntimeException(e);
} finally {
if (fileContents != null) {
Utils.closeQuietly(fileContents);
}
}
}
|
java
|
public static <T> T loadConfigurationModel(Class<T> clzz, String configurationFileLocation) {
System.out.println("Loading config file " + configurationFileLocation);
InputStream fileContents = null;
try {
fileContents = getRequiredResourceAsStream(configurationFileLocation);
return Jackson.load(clzz, fileContents);
} catch (IOException e) {
System.err.println("Failed to read the configuration file " + configurationFileLocation);
throw new RuntimeException(e);
} finally {
if (fileContents != null) {
Utils.closeQuietly(fileContents);
}
}
}
|
[
"public",
"static",
"<",
"T",
">",
"T",
"loadConfigurationModel",
"(",
"Class",
"<",
"T",
">",
"clzz",
",",
"String",
"configurationFileLocation",
")",
"{",
"System",
".",
"out",
".",
"println",
"(",
"\"Loading config file \"",
"+",
"configurationFileLocation",
")",
";",
"InputStream",
"fileContents",
"=",
"null",
";",
"try",
"{",
"fileContents",
"=",
"getRequiredResourceAsStream",
"(",
"configurationFileLocation",
")",
";",
"return",
"Jackson",
".",
"load",
"(",
"clzz",
",",
"fileContents",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"System",
".",
"err",
".",
"println",
"(",
"\"Failed to read the configuration file \"",
"+",
"configurationFileLocation",
")",
";",
"throw",
"new",
"RuntimeException",
"(",
"e",
")",
";",
"}",
"finally",
"{",
"if",
"(",
"fileContents",
"!=",
"null",
")",
"{",
"Utils",
".",
"closeQuietly",
"(",
"fileContents",
")",
";",
"}",
"}",
"}"
] |
Deserialize the contents of a given configuration file.
@param clzz Class to deserialize into
@param configurationFileLocation Location of config file to load
@return Marshalled configuration class
|
[
"Deserialize",
"the",
"contents",
"of",
"a",
"given",
"configuration",
"file",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/utils/ModelLoaderUtils.java#L39-L53
|
19,942
|
aws/aws-sdk-java
|
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/AddFlowOutputsRequest.java
|
AddFlowOutputsRequest.setOutputs
|
public void setOutputs(java.util.Collection<AddOutputRequest> outputs) {
if (outputs == null) {
this.outputs = null;
return;
}
this.outputs = new java.util.ArrayList<AddOutputRequest>(outputs);
}
|
java
|
public void setOutputs(java.util.Collection<AddOutputRequest> outputs) {
if (outputs == null) {
this.outputs = null;
return;
}
this.outputs = new java.util.ArrayList<AddOutputRequest>(outputs);
}
|
[
"public",
"void",
"setOutputs",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"AddOutputRequest",
">",
"outputs",
")",
"{",
"if",
"(",
"outputs",
"==",
"null",
")",
"{",
"this",
".",
"outputs",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"outputs",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"AddOutputRequest",
">",
"(",
"outputs",
")",
";",
"}"
] |
A list of outputs that you want to add.
@param outputs
A list of outputs that you want to add.
|
[
"A",
"list",
"of",
"outputs",
"that",
"you",
"want",
"to",
"add",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/AddFlowOutputsRequest.java#L85-L92
|
19,943
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/UploadPartRequest.java
|
UploadPartRequest.setProgressListener
|
@Deprecated
public void setProgressListener(com.amazonaws.services.s3.model.ProgressListener progressListener) {
setGeneralProgressListener(new LegacyS3ProgressListener(progressListener));
}
|
java
|
@Deprecated
public void setProgressListener(com.amazonaws.services.s3.model.ProgressListener progressListener) {
setGeneralProgressListener(new LegacyS3ProgressListener(progressListener));
}
|
[
"@",
"Deprecated",
"public",
"void",
"setProgressListener",
"(",
"com",
".",
"amazonaws",
".",
"services",
".",
"s3",
".",
"model",
".",
"ProgressListener",
"progressListener",
")",
"{",
"setGeneralProgressListener",
"(",
"new",
"LegacyS3ProgressListener",
"(",
"progressListener",
")",
")",
";",
"}"
] |
Sets the optional progress listener for receiving updates about object
upload status.
@param progressListener
The legacy progress listener that is used exclusively for Amazon S3 client.
@deprecated use {@link #setGeneralProgressListener(ProgressListener)} instead.
|
[
"Sets",
"the",
"optional",
"progress",
"listener",
"for",
"receiving",
"updates",
"about",
"object",
"upload",
"status",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/UploadPartRequest.java#L491-L494
|
19,944
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/UploadPartRequest.java
|
UploadPartRequest.getProgressListener
|
@Deprecated
public com.amazonaws.services.s3.model.ProgressListener getProgressListener() {
ProgressListener generalProgressListener = getGeneralProgressListener();
if (generalProgressListener instanceof LegacyS3ProgressListener) {
return ((LegacyS3ProgressListener)generalProgressListener).unwrap();
} else {
return null;
}
}
|
java
|
@Deprecated
public com.amazonaws.services.s3.model.ProgressListener getProgressListener() {
ProgressListener generalProgressListener = getGeneralProgressListener();
if (generalProgressListener instanceof LegacyS3ProgressListener) {
return ((LegacyS3ProgressListener)generalProgressListener).unwrap();
} else {
return null;
}
}
|
[
"@",
"Deprecated",
"public",
"com",
".",
"amazonaws",
".",
"services",
".",
"s3",
".",
"model",
".",
"ProgressListener",
"getProgressListener",
"(",
")",
"{",
"ProgressListener",
"generalProgressListener",
"=",
"getGeneralProgressListener",
"(",
")",
";",
"if",
"(",
"generalProgressListener",
"instanceof",
"LegacyS3ProgressListener",
")",
"{",
"return",
"(",
"(",
"LegacyS3ProgressListener",
")",
"generalProgressListener",
")",
".",
"unwrap",
"(",
")",
";",
"}",
"else",
"{",
"return",
"null",
";",
"}",
"}"
] |
Returns the optional progress listener for receiving updates about object
upload status.
@return the optional progress listener for receiving updates about object
upload status.
@deprecated use {@link #getGeneralProgressListener()} instead.
|
[
"Returns",
"the",
"optional",
"progress",
"listener",
"for",
"receiving",
"updates",
"about",
"object",
"upload",
"status",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/UploadPartRequest.java#L505-L513
|
19,945
|
aws/aws-sdk-java
|
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ChannelsResponse.java
|
ChannelsResponse.withChannels
|
public ChannelsResponse withChannels(java.util.Map<String, ChannelResponse> channels) {
setChannels(channels);
return this;
}
|
java
|
public ChannelsResponse withChannels(java.util.Map<String, ChannelResponse> channels) {
setChannels(channels);
return this;
}
|
[
"public",
"ChannelsResponse",
"withChannels",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"ChannelResponse",
">",
"channels",
")",
"{",
"setChannels",
"(",
"channels",
")",
";",
"return",
"this",
";",
"}"
] |
A map of channels, with the ChannelType as the key and the Channel as the value.
@param channels
A map of channels, with the ChannelType as the key and the Channel as the value.
@return Returns a reference to this object so that method calls can be chained together.
|
[
"A",
"map",
"of",
"channels",
"with",
"the",
"ChannelType",
"as",
"the",
"key",
"and",
"the",
"Channel",
"as",
"the",
"value",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ChannelsResponse.java#L61-L64
|
19,946
|
aws/aws-sdk-java
|
aws-java-sdk-acmpca/src/main/java/com/amazonaws/services/acmpca/waiters/AWSACMPCAWaiters.java
|
AWSACMPCAWaiters.certificateIssued
|
public Waiter<GetCertificateRequest> certificateIssued() {
return new WaiterBuilder<GetCertificateRequest, GetCertificateResult>().withSdkFunction(new GetCertificateFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new CertificateIssued.IsRequestInProgressExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<GetCertificateRequest> certificateIssued() {
return new WaiterBuilder<GetCertificateRequest, GetCertificateResult>().withSdkFunction(new GetCertificateFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new CertificateIssued.IsRequestInProgressExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"GetCertificateRequest",
">",
"certificateIssued",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"GetCertificateRequest",
",",
"GetCertificateResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"GetCertificateFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"HttpSuccessStatusAcceptor",
"(",
"WaiterState",
".",
"SUCCESS",
")",
",",
"new",
"CertificateIssued",
".",
"IsRequestInProgressExceptionMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"60",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"3",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a CertificateIssued 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",
"CertificateIssued",
"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-acmpca/src/main/java/com/amazonaws/services/acmpca/waiters/AWSACMPCAWaiters.java#L51-L57
|
19,947
|
aws/aws-sdk-java
|
aws-java-sdk-acmpca/src/main/java/com/amazonaws/services/acmpca/waiters/AWSACMPCAWaiters.java
|
AWSACMPCAWaiters.auditReportCreated
|
public Waiter<DescribeCertificateAuthorityAuditReportRequest> auditReportCreated() {
return new WaiterBuilder<DescribeCertificateAuthorityAuditReportRequest, DescribeCertificateAuthorityAuditReportResult>()
.withSdkFunction(new DescribeCertificateAuthorityAuditReportFunction(client))
.withAcceptors(new AuditReportCreated.IsSUCCESSMatcher(), new AuditReportCreated.IsFAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<DescribeCertificateAuthorityAuditReportRequest> auditReportCreated() {
return new WaiterBuilder<DescribeCertificateAuthorityAuditReportRequest, DescribeCertificateAuthorityAuditReportResult>()
.withSdkFunction(new DescribeCertificateAuthorityAuditReportFunction(client))
.withAcceptors(new AuditReportCreated.IsSUCCESSMatcher(), new AuditReportCreated.IsFAILEDMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"DescribeCertificateAuthorityAuditReportRequest",
">",
"auditReportCreated",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeCertificateAuthorityAuditReportRequest",
",",
"DescribeCertificateAuthorityAuditReportResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeCertificateAuthorityAuditReportFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"AuditReportCreated",
".",
"IsSUCCESSMatcher",
"(",
")",
",",
"new",
"AuditReportCreated",
".",
"IsFAILEDMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"60",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"3",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a AuditReportCreated 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",
"AuditReportCreated",
"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-acmpca/src/main/java/com/amazonaws/services/acmpca/waiters/AWSACMPCAWaiters.java#L64-L71
|
19,948
|
aws/aws-sdk-java
|
aws-java-sdk-acmpca/src/main/java/com/amazonaws/services/acmpca/waiters/AWSACMPCAWaiters.java
|
AWSACMPCAWaiters.certificateAuthorityCSRCreated
|
public Waiter<GetCertificateAuthorityCsrRequest> certificateAuthorityCSRCreated() {
return new WaiterBuilder<GetCertificateAuthorityCsrRequest, GetCertificateAuthorityCsrResult>()
.withSdkFunction(new GetCertificateAuthorityCsrFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new CertificateAuthorityCSRCreated.IsRequestInProgressExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<GetCertificateAuthorityCsrRequest> certificateAuthorityCSRCreated() {
return new WaiterBuilder<GetCertificateAuthorityCsrRequest, GetCertificateAuthorityCsrResult>()
.withSdkFunction(new GetCertificateAuthorityCsrFunction(client))
.withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new CertificateAuthorityCSRCreated.IsRequestInProgressExceptionMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"GetCertificateAuthorityCsrRequest",
">",
"certificateAuthorityCSRCreated",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"GetCertificateAuthorityCsrRequest",
",",
"GetCertificateAuthorityCsrResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"GetCertificateAuthorityCsrFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"HttpSuccessStatusAcceptor",
"(",
"WaiterState",
".",
"SUCCESS",
")",
",",
"new",
"CertificateAuthorityCSRCreated",
".",
"IsRequestInProgressExceptionMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"60",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"3",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a CertificateAuthorityCSRCreated 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",
"CertificateAuthorityCSRCreated",
"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-acmpca/src/main/java/com/amazonaws/services/acmpca/waiters/AWSACMPCAWaiters.java#L78-L85
|
19,949
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/util/SignatureChecker.java
|
SignatureChecker.verifyMessageSignature
|
public boolean verifyMessageSignature(String message, PublicKey publicKey) {
// extract the type and signature parameters
Map<String, String> parsed = parseJSON(message);
return verifySignature(parsed, publicKey);
}
|
java
|
public boolean verifyMessageSignature(String message, PublicKey publicKey) {
// extract the type and signature parameters
Map<String, String> parsed = parseJSON(message);
return verifySignature(parsed, publicKey);
}
|
[
"public",
"boolean",
"verifyMessageSignature",
"(",
"String",
"message",
",",
"PublicKey",
"publicKey",
")",
"{",
"// extract the type and signature parameters",
"Map",
"<",
"String",
",",
"String",
">",
"parsed",
"=",
"parseJSON",
"(",
"message",
")",
";",
"return",
"verifySignature",
"(",
"parsed",
",",
"publicKey",
")",
";",
"}"
] |
Validates the signature on a Simple Notification Service message. No
Amazon-specific dependencies, just plain Java crypto and Jackson for
parsing
@param message
A JSON-encoded Simple Notification Service message. Note: the
JSON may be only one level deep.
@param publicKey
The Simple Notification Service public key, exactly as you'd
see it when retrieved from the cert.
@return True if the message was correctly validated, otherwise false.
|
[
"Validates",
"the",
"signature",
"on",
"a",
"Simple",
"Notification",
"Service",
"message",
".",
"No",
"Amazon",
"-",
"specific",
"dependencies",
"just",
"plain",
"Java",
"crypto",
"and",
"Jackson",
"for",
"parsing"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/util/SignatureChecker.java#L91-L97
|
19,950
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/util/SignatureChecker.java
|
SignatureChecker.verifySignature
|
public boolean verifySignature(Map<String, String> parsedMessage, PublicKey publicKey) {
boolean valid = false;
String version = parsedMessage.get(SIGNATURE_VERSION);
if (version.equals("1")) {
// construct the canonical signed string
String type = parsedMessage.get(TYPE);
String signature = parsedMessage.get(SIGNATURE);
String signed;
if (type.equals(NOTIFICATION_TYPE)) {
signed = stringToSign(publishMessageValues(parsedMessage));
} else if (type.equals(SUBSCRIBE_TYPE)) {
signed = stringToSign(subscribeMessageValues(parsedMessage));
} else if (type.equals(UNSUBSCRIBE_TYPE)) {
signed = stringToSign(subscribeMessageValues(parsedMessage)); // no difference, for now
} else {
throw new RuntimeException("Cannot process message of type " + type);
}
valid = verifySignature(signed, signature, publicKey);
}
return valid;
}
|
java
|
public boolean verifySignature(Map<String, String> parsedMessage, PublicKey publicKey) {
boolean valid = false;
String version = parsedMessage.get(SIGNATURE_VERSION);
if (version.equals("1")) {
// construct the canonical signed string
String type = parsedMessage.get(TYPE);
String signature = parsedMessage.get(SIGNATURE);
String signed;
if (type.equals(NOTIFICATION_TYPE)) {
signed = stringToSign(publishMessageValues(parsedMessage));
} else if (type.equals(SUBSCRIBE_TYPE)) {
signed = stringToSign(subscribeMessageValues(parsedMessage));
} else if (type.equals(UNSUBSCRIBE_TYPE)) {
signed = stringToSign(subscribeMessageValues(parsedMessage)); // no difference, for now
} else {
throw new RuntimeException("Cannot process message of type " + type);
}
valid = verifySignature(signed, signature, publicKey);
}
return valid;
}
|
[
"public",
"boolean",
"verifySignature",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"parsedMessage",
",",
"PublicKey",
"publicKey",
")",
"{",
"boolean",
"valid",
"=",
"false",
";",
"String",
"version",
"=",
"parsedMessage",
".",
"get",
"(",
"SIGNATURE_VERSION",
")",
";",
"if",
"(",
"version",
".",
"equals",
"(",
"\"1\"",
")",
")",
"{",
"// construct the canonical signed string",
"String",
"type",
"=",
"parsedMessage",
".",
"get",
"(",
"TYPE",
")",
";",
"String",
"signature",
"=",
"parsedMessage",
".",
"get",
"(",
"SIGNATURE",
")",
";",
"String",
"signed",
";",
"if",
"(",
"type",
".",
"equals",
"(",
"NOTIFICATION_TYPE",
")",
")",
"{",
"signed",
"=",
"stringToSign",
"(",
"publishMessageValues",
"(",
"parsedMessage",
")",
")",
";",
"}",
"else",
"if",
"(",
"type",
".",
"equals",
"(",
"SUBSCRIBE_TYPE",
")",
")",
"{",
"signed",
"=",
"stringToSign",
"(",
"subscribeMessageValues",
"(",
"parsedMessage",
")",
")",
";",
"}",
"else",
"if",
"(",
"type",
".",
"equals",
"(",
"UNSUBSCRIBE_TYPE",
")",
")",
"{",
"signed",
"=",
"stringToSign",
"(",
"subscribeMessageValues",
"(",
"parsedMessage",
")",
")",
";",
"// no difference, for now",
"}",
"else",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Cannot process message of type \"",
"+",
"type",
")",
";",
"}",
"valid",
"=",
"verifySignature",
"(",
"signed",
",",
"signature",
",",
"publicKey",
")",
";",
"}",
"return",
"valid",
";",
"}"
] |
Validates the signature on a Simple Notification Service message. No
Amazon-specific dependencies, just plain Java crypto
@param parsedMessage
A map of Simple Notification Service message.
@param publicKey
The Simple Notification Service public key, exactly as you'd
see it when retrieved from the cert.
@return True if the message was correctly validated, otherwise false.
|
[
"Validates",
"the",
"signature",
"on",
"a",
"Simple",
"Notification",
"Service",
"message",
".",
"No",
"Amazon",
"-",
"specific",
"dependencies",
"just",
"plain",
"Java",
"crypto"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/util/SignatureChecker.java#L111-L131
|
19,951
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/util/SignatureChecker.java
|
SignatureChecker.verifySignature
|
public boolean verifySignature(String message, String signature, PublicKey publicKey){
boolean result = false;
try {
byte[] sigbytes = Base64.decode(signature.getBytes());
Signature sigChecker = SIG_CHECKER.get();
sigChecker.initVerify(publicKey);
sigChecker.update(message.getBytes());
result = sigChecker.verify(sigbytes);
} catch (InvalidKeyException e) {
// Rare exception: The private key was incorrectly formatted
} catch (SignatureException e) {
// Rare exception: Catch-all exception for the signature checker
}
return result;
}
|
java
|
public boolean verifySignature(String message, String signature, PublicKey publicKey){
boolean result = false;
try {
byte[] sigbytes = Base64.decode(signature.getBytes());
Signature sigChecker = SIG_CHECKER.get();
sigChecker.initVerify(publicKey);
sigChecker.update(message.getBytes());
result = sigChecker.verify(sigbytes);
} catch (InvalidKeyException e) {
// Rare exception: The private key was incorrectly formatted
} catch (SignatureException e) {
// Rare exception: Catch-all exception for the signature checker
}
return result;
}
|
[
"public",
"boolean",
"verifySignature",
"(",
"String",
"message",
",",
"String",
"signature",
",",
"PublicKey",
"publicKey",
")",
"{",
"boolean",
"result",
"=",
"false",
";",
"try",
"{",
"byte",
"[",
"]",
"sigbytes",
"=",
"Base64",
".",
"decode",
"(",
"signature",
".",
"getBytes",
"(",
")",
")",
";",
"Signature",
"sigChecker",
"=",
"SIG_CHECKER",
".",
"get",
"(",
")",
";",
"sigChecker",
".",
"initVerify",
"(",
"publicKey",
")",
";",
"sigChecker",
".",
"update",
"(",
"message",
".",
"getBytes",
"(",
")",
")",
";",
"result",
"=",
"sigChecker",
".",
"verify",
"(",
"sigbytes",
")",
";",
"}",
"catch",
"(",
"InvalidKeyException",
"e",
")",
"{",
"// Rare exception: The private key was incorrectly formatted",
"}",
"catch",
"(",
"SignatureException",
"e",
")",
"{",
"// Rare exception: Catch-all exception for the signature checker",
"}",
"return",
"result",
";",
"}"
] |
Does the actual Java cryptographic verification of the signature. This
method does no handling of the many rare exceptions it is required to
catch.
This can also be used to verify the signature from the x-amz-sns-signature http header
@param message
Exact string that was signed. In the case of the x-amz-sns-signature header the
signing string is the entire post body
@param signature
Base64-encoded signature of the message
@return
|
[
"Does",
"the",
"actual",
"Java",
"cryptographic",
"verification",
"of",
"the",
"signature",
".",
"This",
"method",
"does",
"no",
"handling",
"of",
"the",
"many",
"rare",
"exceptions",
"it",
"is",
"required",
"to",
"catch",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/util/SignatureChecker.java#L147-L161
|
19,952
|
aws/aws-sdk-java
|
aws-java-sdk-ses/src/main/java/com/amazonaws/services/simpleemail/waiters/AmazonSimpleEmailServiceWaiters.java
|
AmazonSimpleEmailServiceWaiters.identityExists
|
public Waiter<GetIdentityVerificationAttributesRequest> identityExists() {
return new WaiterBuilder<GetIdentityVerificationAttributesRequest, GetIdentityVerificationAttributesResult>()
.withSdkFunction(new GetIdentityVerificationAttributesFunction(client)).withAcceptors(new IdentityExists.IsSuccessMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(20), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
java
|
public Waiter<GetIdentityVerificationAttributesRequest> identityExists() {
return new WaiterBuilder<GetIdentityVerificationAttributesRequest, GetIdentityVerificationAttributesResult>()
.withSdkFunction(new GetIdentityVerificationAttributesFunction(client)).withAcceptors(new IdentityExists.IsSuccessMatcher())
.withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(20), new FixedDelayStrategy(3)))
.withExecutorService(executorService).build();
}
|
[
"public",
"Waiter",
"<",
"GetIdentityVerificationAttributesRequest",
">",
"identityExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"GetIdentityVerificationAttributesRequest",
",",
"GetIdentityVerificationAttributesResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"GetIdentityVerificationAttributesFunction",
"(",
"client",
")",
")",
".",
"withAcceptors",
"(",
"new",
"IdentityExists",
".",
"IsSuccessMatcher",
"(",
")",
")",
".",
"withDefaultPollingStrategy",
"(",
"new",
"PollingStrategy",
"(",
"new",
"MaxAttemptsRetryStrategy",
"(",
"20",
")",
",",
"new",
"FixedDelayStrategy",
"(",
"3",
")",
")",
")",
".",
"withExecutorService",
"(",
"executorService",
")",
".",
"build",
"(",
")",
";",
"}"
] |
Builds a IdentityExists 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",
"IdentityExists",
"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-ses/src/main/java/com/amazonaws/services/simpleemail/waiters/AmazonSimpleEmailServiceWaiters.java#L51-L57
|
19,953
|
aws/aws-sdk-java
|
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/PublicEndpoint.java
|
PublicEndpoint.withMetrics
|
public PublicEndpoint withMetrics(java.util.Map<String, Double> metrics) {
setMetrics(metrics);
return this;
}
|
java
|
public PublicEndpoint withMetrics(java.util.Map<String, Double> metrics) {
setMetrics(metrics);
return this;
}
|
[
"public",
"PublicEndpoint",
"withMetrics",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"Double",
">",
"metrics",
")",
"{",
"setMetrics",
"(",
"metrics",
")",
";",
"return",
"this",
";",
"}"
] |
Custom metrics that your app reports to Amazon Pinpoint.
@param metrics
Custom metrics that your app reports to Amazon Pinpoint.
@return Returns a reference to this object so that method calls can be chained together.
|
[
"Custom",
"metrics",
"that",
"your",
"app",
"reports",
"to",
"Amazon",
"Pinpoint",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/PublicEndpoint.java#L410-L413
|
19,954
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/transform/StaxUnmarshallerContext.java
|
StaxUnmarshallerContext.readText
|
public String readText() throws XMLStreamException {
if (isInsideResponseHeader()) {
return getHeader(currentHeader);
}
if (currentEvent.isAttribute()) {
Attribute attribute = (Attribute)currentEvent;
return attribute.getValue();
}
StringBuilder sb = new StringBuilder();
while (true) {
XMLEvent event = eventReader.peek();
if (event.getEventType() == XMLStreamConstants.CHARACTERS) {
eventReader.nextEvent();
sb.append(event.asCharacters().getData());
} else if (event.getEventType() == XMLStreamConstants.END_ELEMENT) {
return sb.toString();
} else {
throw new RuntimeException("Encountered unexpected event: " + event.toString());
}
}
}
|
java
|
public String readText() throws XMLStreamException {
if (isInsideResponseHeader()) {
return getHeader(currentHeader);
}
if (currentEvent.isAttribute()) {
Attribute attribute = (Attribute)currentEvent;
return attribute.getValue();
}
StringBuilder sb = new StringBuilder();
while (true) {
XMLEvent event = eventReader.peek();
if (event.getEventType() == XMLStreamConstants.CHARACTERS) {
eventReader.nextEvent();
sb.append(event.asCharacters().getData());
} else if (event.getEventType() == XMLStreamConstants.END_ELEMENT) {
return sb.toString();
} else {
throw new RuntimeException("Encountered unexpected event: " + event.toString());
}
}
}
|
[
"public",
"String",
"readText",
"(",
")",
"throws",
"XMLStreamException",
"{",
"if",
"(",
"isInsideResponseHeader",
"(",
")",
")",
"{",
"return",
"getHeader",
"(",
"currentHeader",
")",
";",
"}",
"if",
"(",
"currentEvent",
".",
"isAttribute",
"(",
")",
")",
"{",
"Attribute",
"attribute",
"=",
"(",
"Attribute",
")",
"currentEvent",
";",
"return",
"attribute",
".",
"getValue",
"(",
")",
";",
"}",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"while",
"(",
"true",
")",
"{",
"XMLEvent",
"event",
"=",
"eventReader",
".",
"peek",
"(",
")",
";",
"if",
"(",
"event",
".",
"getEventType",
"(",
")",
"==",
"XMLStreamConstants",
".",
"CHARACTERS",
")",
"{",
"eventReader",
".",
"nextEvent",
"(",
")",
";",
"sb",
".",
"append",
"(",
"event",
".",
"asCharacters",
"(",
")",
".",
"getData",
"(",
")",
")",
";",
"}",
"else",
"if",
"(",
"event",
".",
"getEventType",
"(",
")",
"==",
"XMLStreamConstants",
".",
"END_ELEMENT",
")",
"{",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}",
"else",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Encountered unexpected event: \"",
"+",
"event",
".",
"toString",
"(",
")",
")",
";",
"}",
"}",
"}"
] |
Returns the text contents of the current element being parsed.
@return The text contents of the current element being parsed.
@throws XMLStreamException
|
[
"Returns",
"the",
"text",
"contents",
"of",
"the",
"current",
"element",
"being",
"parsed",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/transform/StaxUnmarshallerContext.java#L109-L130
|
19,955
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/transform/StaxUnmarshallerContext.java
|
StaxUnmarshallerContext.nextEvent
|
public XMLEvent nextEvent() throws XMLStreamException {
if (attributeIterator != null && attributeIterator.hasNext()) {
currentEvent = (XMLEvent)attributeIterator.next();
} else {
currentEvent = eventReader.nextEvent();
}
if (currentEvent.isStartElement()) {
attributeIterator = currentEvent.asStartElement().getAttributes();
}
updateContext(currentEvent);
if (eventReader.hasNext()) {
XMLEvent nextEvent = eventReader.peek();
if (nextEvent != null && nextEvent.isCharacters()) {
for (MetadataExpression metadataExpression : metadataExpressions) {
if (testExpression(metadataExpression.expression, metadataExpression.targetDepth)) {
metadata.put(metadataExpression.key, nextEvent.asCharacters().getData());
}
}
}
}
return currentEvent;
}
|
java
|
public XMLEvent nextEvent() throws XMLStreamException {
if (attributeIterator != null && attributeIterator.hasNext()) {
currentEvent = (XMLEvent)attributeIterator.next();
} else {
currentEvent = eventReader.nextEvent();
}
if (currentEvent.isStartElement()) {
attributeIterator = currentEvent.asStartElement().getAttributes();
}
updateContext(currentEvent);
if (eventReader.hasNext()) {
XMLEvent nextEvent = eventReader.peek();
if (nextEvent != null && nextEvent.isCharacters()) {
for (MetadataExpression metadataExpression : metadataExpressions) {
if (testExpression(metadataExpression.expression, metadataExpression.targetDepth)) {
metadata.put(metadataExpression.key, nextEvent.asCharacters().getData());
}
}
}
}
return currentEvent;
}
|
[
"public",
"XMLEvent",
"nextEvent",
"(",
")",
"throws",
"XMLStreamException",
"{",
"if",
"(",
"attributeIterator",
"!=",
"null",
"&&",
"attributeIterator",
".",
"hasNext",
"(",
")",
")",
"{",
"currentEvent",
"=",
"(",
"XMLEvent",
")",
"attributeIterator",
".",
"next",
"(",
")",
";",
"}",
"else",
"{",
"currentEvent",
"=",
"eventReader",
".",
"nextEvent",
"(",
")",
";",
"}",
"if",
"(",
"currentEvent",
".",
"isStartElement",
"(",
")",
")",
"{",
"attributeIterator",
"=",
"currentEvent",
".",
"asStartElement",
"(",
")",
".",
"getAttributes",
"(",
")",
";",
"}",
"updateContext",
"(",
"currentEvent",
")",
";",
"if",
"(",
"eventReader",
".",
"hasNext",
"(",
")",
")",
"{",
"XMLEvent",
"nextEvent",
"=",
"eventReader",
".",
"peek",
"(",
")",
";",
"if",
"(",
"nextEvent",
"!=",
"null",
"&&",
"nextEvent",
".",
"isCharacters",
"(",
")",
")",
"{",
"for",
"(",
"MetadataExpression",
"metadataExpression",
":",
"metadataExpressions",
")",
"{",
"if",
"(",
"testExpression",
"(",
"metadataExpression",
".",
"expression",
",",
"metadataExpression",
".",
"targetDepth",
")",
")",
"{",
"metadata",
".",
"put",
"(",
"metadataExpression",
".",
"key",
",",
"nextEvent",
".",
"asCharacters",
"(",
")",
".",
"getData",
"(",
")",
")",
";",
"}",
"}",
"}",
"}",
"return",
"currentEvent",
";",
"}"
] |
Returns the next XML event for the document being parsed.
@return The next XML event for the document being parsed.
@throws XMLStreamException
|
[
"Returns",
"the",
"next",
"XML",
"event",
"for",
"the",
"document",
"being",
"parsed",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/transform/StaxUnmarshallerContext.java#L206-L231
|
19,956
|
aws/aws-sdk-java
|
aws-java-sdk-core/src/main/java/com/amazonaws/transform/StaxUnmarshallerContext.java
|
StaxUnmarshallerContext.registerMetadataExpression
|
public void registerMetadataExpression(String expression, int targetDepth, String storageKey) {
metadataExpressions.add(new MetadataExpression(expression, targetDepth, storageKey));
}
|
java
|
public void registerMetadataExpression(String expression, int targetDepth, String storageKey) {
metadataExpressions.add(new MetadataExpression(expression, targetDepth, storageKey));
}
|
[
"public",
"void",
"registerMetadataExpression",
"(",
"String",
"expression",
",",
"int",
"targetDepth",
",",
"String",
"storageKey",
")",
"{",
"metadataExpressions",
".",
"add",
"(",
"new",
"MetadataExpression",
"(",
"expression",
",",
"targetDepth",
",",
"storageKey",
")",
")",
";",
"}"
] |
Registers an expression, which if matched, will cause the data for the
matching element to be stored in the metadata map under the specified
key.
@param expression
The expression an element must match in order for it's data to
be pulled out and stored in the metadata map.
@param targetDepth
The depth in the XML document where the expression match must
start.
@param storageKey
The key under which to store the matching element's data.
|
[
"Registers",
"an",
"expression",
"which",
"if",
"matched",
"will",
"cause",
"the",
"data",
"for",
"the",
"matching",
"element",
"to",
"be",
"stored",
"in",
"the",
"metadata",
"map",
"under",
"the",
"specified",
"key",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/transform/StaxUnmarshallerContext.java#L258-L260
|
19,957
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/CopyCallable.java
|
CopyCallable.copyInOneChunk
|
private CopyResult copyInOneChunk() {
CopyObjectResult copyObjectResult = s3.copyObject(copyObjectRequest);
CopyResult copyResult = new CopyResult();
copyResult.setSourceBucketName(copyObjectRequest.getSourceBucketName());
copyResult.setSourceKey(copyObjectRequest.getSourceKey());
copyResult.setDestinationBucketName(copyObjectRequest
.getDestinationBucketName());
copyResult.setDestinationKey(copyObjectRequest.getDestinationKey());
copyResult.setETag(copyObjectResult.getETag());
copyResult.setVersionId(copyObjectResult.getVersionId());
return copyResult;
}
|
java
|
private CopyResult copyInOneChunk() {
CopyObjectResult copyObjectResult = s3.copyObject(copyObjectRequest);
CopyResult copyResult = new CopyResult();
copyResult.setSourceBucketName(copyObjectRequest.getSourceBucketName());
copyResult.setSourceKey(copyObjectRequest.getSourceKey());
copyResult.setDestinationBucketName(copyObjectRequest
.getDestinationBucketName());
copyResult.setDestinationKey(copyObjectRequest.getDestinationKey());
copyResult.setETag(copyObjectResult.getETag());
copyResult.setVersionId(copyObjectResult.getVersionId());
return copyResult;
}
|
[
"private",
"CopyResult",
"copyInOneChunk",
"(",
")",
"{",
"CopyObjectResult",
"copyObjectResult",
"=",
"s3",
".",
"copyObject",
"(",
"copyObjectRequest",
")",
";",
"CopyResult",
"copyResult",
"=",
"new",
"CopyResult",
"(",
")",
";",
"copyResult",
".",
"setSourceBucketName",
"(",
"copyObjectRequest",
".",
"getSourceBucketName",
"(",
")",
")",
";",
"copyResult",
".",
"setSourceKey",
"(",
"copyObjectRequest",
".",
"getSourceKey",
"(",
")",
")",
";",
"copyResult",
".",
"setDestinationBucketName",
"(",
"copyObjectRequest",
".",
"getDestinationBucketName",
"(",
")",
")",
";",
"copyResult",
".",
"setDestinationKey",
"(",
"copyObjectRequest",
".",
"getDestinationKey",
"(",
")",
")",
";",
"copyResult",
".",
"setETag",
"(",
"copyObjectResult",
".",
"getETag",
"(",
")",
")",
";",
"copyResult",
".",
"setVersionId",
"(",
"copyObjectResult",
".",
"getVersionId",
"(",
")",
")",
";",
"return",
"copyResult",
";",
"}"
] |
Performs the copy of the Amazon S3 object from source bucket to
destination bucket. The Amazon S3 object is copied to destination in one
single request.
@returns CopyResult response information from the server.
|
[
"Performs",
"the",
"copy",
"of",
"the",
"Amazon",
"S3",
"object",
"from",
"source",
"bucket",
"to",
"destination",
"bucket",
".",
"The",
"Amazon",
"S3",
"object",
"is",
"copied",
"to",
"destination",
"in",
"one",
"single",
"request",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/CopyCallable.java#L144-L156
|
19,958
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/CopyCallable.java
|
CopyCallable.getOptimalPartSize
|
private long getOptimalPartSize(long contentLengthOfSource) {
long optimalPartSize = TransferManagerUtils
.calculateOptimalPartSizeForCopy(copyObjectRequest,
configuration, contentLengthOfSource);
log.debug("Calculated optimal part size: " + optimalPartSize);
return optimalPartSize;
}
|
java
|
private long getOptimalPartSize(long contentLengthOfSource) {
long optimalPartSize = TransferManagerUtils
.calculateOptimalPartSizeForCopy(copyObjectRequest,
configuration, contentLengthOfSource);
log.debug("Calculated optimal part size: " + optimalPartSize);
return optimalPartSize;
}
|
[
"private",
"long",
"getOptimalPartSize",
"(",
"long",
"contentLengthOfSource",
")",
"{",
"long",
"optimalPartSize",
"=",
"TransferManagerUtils",
".",
"calculateOptimalPartSizeForCopy",
"(",
"copyObjectRequest",
",",
"configuration",
",",
"contentLengthOfSource",
")",
";",
"log",
".",
"debug",
"(",
"\"Calculated optimal part size: \"",
"+",
"optimalPartSize",
")",
";",
"return",
"optimalPartSize",
";",
"}"
] |
Computes and returns the optimal part size for the copy operation.
|
[
"Computes",
"and",
"returns",
"the",
"optimal",
"part",
"size",
"for",
"the",
"copy",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/CopyCallable.java#L187-L194
|
19,959
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/CopyCallable.java
|
CopyCallable.copyPartsInParallel
|
private void copyPartsInParallel(CopyPartRequestFactory requestFactory) {
while (requestFactory.hasMoreRequests()) {
if (threadPool.isShutdown())
throw new CancellationException(
"TransferManager has been shutdown");
CopyPartRequest request = requestFactory.getNextCopyPartRequest();
futures.add(threadPool.submit(new CopyPartCallable(s3, request)));
}
}
|
java
|
private void copyPartsInParallel(CopyPartRequestFactory requestFactory) {
while (requestFactory.hasMoreRequests()) {
if (threadPool.isShutdown())
throw new CancellationException(
"TransferManager has been shutdown");
CopyPartRequest request = requestFactory.getNextCopyPartRequest();
futures.add(threadPool.submit(new CopyPartCallable(s3, request)));
}
}
|
[
"private",
"void",
"copyPartsInParallel",
"(",
"CopyPartRequestFactory",
"requestFactory",
")",
"{",
"while",
"(",
"requestFactory",
".",
"hasMoreRequests",
"(",
")",
")",
"{",
"if",
"(",
"threadPool",
".",
"isShutdown",
"(",
")",
")",
"throw",
"new",
"CancellationException",
"(",
"\"TransferManager has been shutdown\"",
")",
";",
"CopyPartRequest",
"request",
"=",
"requestFactory",
".",
"getNextCopyPartRequest",
"(",
")",
";",
"futures",
".",
"add",
"(",
"threadPool",
".",
"submit",
"(",
"new",
"CopyPartCallable",
"(",
"s3",
",",
"request",
")",
")",
")",
";",
"}",
"}"
] |
Submits a callable for each part to be copied to our thread pool and
records its corresponding Future.
|
[
"Submits",
"a",
"callable",
"for",
"each",
"part",
"to",
"be",
"copied",
"to",
"our",
"thread",
"pool",
"and",
"records",
"its",
"corresponding",
"Future",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/CopyCallable.java#L200-L208
|
19,960
|
aws/aws-sdk-java
|
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/RemixSettings.java
|
RemixSettings.setChannelMappings
|
public void setChannelMappings(java.util.Collection<AudioChannelMapping> channelMappings) {
if (channelMappings == null) {
this.channelMappings = null;
return;
}
this.channelMappings = new java.util.ArrayList<AudioChannelMapping>(channelMappings);
}
|
java
|
public void setChannelMappings(java.util.Collection<AudioChannelMapping> channelMappings) {
if (channelMappings == null) {
this.channelMappings = null;
return;
}
this.channelMappings = new java.util.ArrayList<AudioChannelMapping>(channelMappings);
}
|
[
"public",
"void",
"setChannelMappings",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"AudioChannelMapping",
">",
"channelMappings",
")",
"{",
"if",
"(",
"channelMappings",
"==",
"null",
")",
"{",
"this",
".",
"channelMappings",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"channelMappings",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"AudioChannelMapping",
">",
"(",
"channelMappings",
")",
";",
"}"
] |
Mapping of input channels to output channels, with appropriate gain adjustments.
@param channelMappings
Mapping of input channels to output channels, with appropriate gain adjustments.
|
[
"Mapping",
"of",
"input",
"channels",
"to",
"output",
"channels",
"with",
"appropriate",
"gain",
"adjustments",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/RemixSettings.java#L55-L62
|
19,961
|
aws/aws-sdk-java
|
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/StandardModelFactories.java
|
StandardModelFactories.rulesOf
|
private static final <T> RuleFactory<T> rulesOf(DynamoDBMapperConfig config, S3Link.Factory s3Links, DynamoDBMapperModelFactory models) {
final boolean ver1 = (config.getConversionSchema() == ConversionSchemas.V1);
final boolean ver2 = (config.getConversionSchema() == ConversionSchemas.V2);
final boolean v2Compatible = (config.getConversionSchema() == ConversionSchemas.V2_COMPATIBLE);
final DynamoDBTypeConverterFactory.Builder scalars = config.getTypeConverterFactory().override();
scalars.with(String.class, S3Link.class, s3Links);
final Rules<T> factory = new Rules<T>(scalars.build());
factory.add(factory.new NativeType(!ver1));
factory.add(factory.new V2CompatibleBool(v2Compatible));
factory.add(factory.new NativeBool(ver2));
factory.add(factory.new StringScalar(true));
factory.add(factory.new DateToEpochRule(true));
factory.add(factory.new NumberScalar(true));
factory.add(factory.new BinaryScalar(true));
factory.add(factory.new NativeBoolSet(ver2));
factory.add(factory.new StringScalarSet(true));
factory.add(factory.new NumberScalarSet(true));
factory.add(factory.new BinaryScalarSet(true));
factory.add(factory.new ObjectSet(ver2));
factory.add(factory.new ObjectStringSet(!ver2));
factory.add(factory.new ObjectList(!ver1));
factory.add(factory.new ObjectMap(!ver1));
factory.add(factory.new ObjectDocumentMap(!ver1, models, config));
return factory;
}
|
java
|
private static final <T> RuleFactory<T> rulesOf(DynamoDBMapperConfig config, S3Link.Factory s3Links, DynamoDBMapperModelFactory models) {
final boolean ver1 = (config.getConversionSchema() == ConversionSchemas.V1);
final boolean ver2 = (config.getConversionSchema() == ConversionSchemas.V2);
final boolean v2Compatible = (config.getConversionSchema() == ConversionSchemas.V2_COMPATIBLE);
final DynamoDBTypeConverterFactory.Builder scalars = config.getTypeConverterFactory().override();
scalars.with(String.class, S3Link.class, s3Links);
final Rules<T> factory = new Rules<T>(scalars.build());
factory.add(factory.new NativeType(!ver1));
factory.add(factory.new V2CompatibleBool(v2Compatible));
factory.add(factory.new NativeBool(ver2));
factory.add(factory.new StringScalar(true));
factory.add(factory.new DateToEpochRule(true));
factory.add(factory.new NumberScalar(true));
factory.add(factory.new BinaryScalar(true));
factory.add(factory.new NativeBoolSet(ver2));
factory.add(factory.new StringScalarSet(true));
factory.add(factory.new NumberScalarSet(true));
factory.add(factory.new BinaryScalarSet(true));
factory.add(factory.new ObjectSet(ver2));
factory.add(factory.new ObjectStringSet(!ver2));
factory.add(factory.new ObjectList(!ver1));
factory.add(factory.new ObjectMap(!ver1));
factory.add(factory.new ObjectDocumentMap(!ver1, models, config));
return factory;
}
|
[
"private",
"static",
"final",
"<",
"T",
">",
"RuleFactory",
"<",
"T",
">",
"rulesOf",
"(",
"DynamoDBMapperConfig",
"config",
",",
"S3Link",
".",
"Factory",
"s3Links",
",",
"DynamoDBMapperModelFactory",
"models",
")",
"{",
"final",
"boolean",
"ver1",
"=",
"(",
"config",
".",
"getConversionSchema",
"(",
")",
"==",
"ConversionSchemas",
".",
"V1",
")",
";",
"final",
"boolean",
"ver2",
"=",
"(",
"config",
".",
"getConversionSchema",
"(",
")",
"==",
"ConversionSchemas",
".",
"V2",
")",
";",
"final",
"boolean",
"v2Compatible",
"=",
"(",
"config",
".",
"getConversionSchema",
"(",
")",
"==",
"ConversionSchemas",
".",
"V2_COMPATIBLE",
")",
";",
"final",
"DynamoDBTypeConverterFactory",
".",
"Builder",
"scalars",
"=",
"config",
".",
"getTypeConverterFactory",
"(",
")",
".",
"override",
"(",
")",
";",
"scalars",
".",
"with",
"(",
"String",
".",
"class",
",",
"S3Link",
".",
"class",
",",
"s3Links",
")",
";",
"final",
"Rules",
"<",
"T",
">",
"factory",
"=",
"new",
"Rules",
"<",
"T",
">",
"(",
"scalars",
".",
"build",
"(",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"NativeType",
"(",
"!",
"ver1",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"V2CompatibleBool",
"(",
"v2Compatible",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"NativeBool",
"(",
"ver2",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"StringScalar",
"(",
"true",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"DateToEpochRule",
"(",
"true",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"NumberScalar",
"(",
"true",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"BinaryScalar",
"(",
"true",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"NativeBoolSet",
"(",
"ver2",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"StringScalarSet",
"(",
"true",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"NumberScalarSet",
"(",
"true",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"BinaryScalarSet",
"(",
"true",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"ObjectSet",
"(",
"ver2",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"ObjectStringSet",
"(",
"!",
"ver2",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"ObjectList",
"(",
"!",
"ver1",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"ObjectMap",
"(",
"!",
"ver1",
")",
")",
";",
"factory",
".",
"add",
"(",
"factory",
".",
"new",
"ObjectDocumentMap",
"(",
"!",
"ver1",
",",
"models",
",",
"config",
")",
")",
";",
"return",
"factory",
";",
"}"
] |
Creates a new set of conversion rules based on the configuration.
|
[
"Creates",
"a",
"new",
"set",
"of",
"conversion",
"rules",
"based",
"on",
"the",
"configuration",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/StandardModelFactories.java#L155-L181
|
19,962
|
aws/aws-sdk-java
|
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/BatchScheduleActionCreateRequest.java
|
BatchScheduleActionCreateRequest.setScheduleActions
|
public void setScheduleActions(java.util.Collection<ScheduleAction> scheduleActions) {
if (scheduleActions == null) {
this.scheduleActions = null;
return;
}
this.scheduleActions = new java.util.ArrayList<ScheduleAction>(scheduleActions);
}
|
java
|
public void setScheduleActions(java.util.Collection<ScheduleAction> scheduleActions) {
if (scheduleActions == null) {
this.scheduleActions = null;
return;
}
this.scheduleActions = new java.util.ArrayList<ScheduleAction>(scheduleActions);
}
|
[
"public",
"void",
"setScheduleActions",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"ScheduleAction",
">",
"scheduleActions",
")",
"{",
"if",
"(",
"scheduleActions",
"==",
"null",
")",
"{",
"this",
".",
"scheduleActions",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"scheduleActions",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"ScheduleAction",
">",
"(",
"scheduleActions",
")",
";",
"}"
] |
A list of schedule actions to create.
@param scheduleActions
A list of schedule actions to create.
|
[
"A",
"list",
"of",
"schedule",
"actions",
"to",
"create",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/BatchScheduleActionCreateRequest.java#L49-L56
|
19,963
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/CipherLite.java
|
CipherLite.recreate
|
CipherLite recreate() {
return scheme.createCipherLite(secreteKey, cipher.getIV(),
this.cipherMode, cipher.getProvider(), true);
}
|
java
|
CipherLite recreate() {
return scheme.createCipherLite(secreteKey, cipher.getIV(),
this.cipherMode, cipher.getProvider(), true);
}
|
[
"CipherLite",
"recreate",
"(",
")",
"{",
"return",
"scheme",
".",
"createCipherLite",
"(",
"secreteKey",
",",
"cipher",
".",
"getIV",
"(",
")",
",",
"this",
".",
"cipherMode",
",",
"cipher",
".",
"getProvider",
"(",
")",
",",
"true",
")",
";",
"}"
] |
Recreates a new instance of CipherLite from the current one.
|
[
"Recreates",
"a",
"new",
"instance",
"of",
"CipherLite",
"from",
"the",
"current",
"one",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/CipherLite.java#L87-L90
|
19,964
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/CipherLite.java
|
CipherLite.createUsingIV
|
CipherLite createUsingIV(byte[] iv) {
return scheme.createCipherLite(secreteKey, iv, this.cipherMode,
cipher.getProvider(), true);
}
|
java
|
CipherLite createUsingIV(byte[] iv) {
return scheme.createCipherLite(secreteKey, iv, this.cipherMode,
cipher.getProvider(), true);
}
|
[
"CipherLite",
"createUsingIV",
"(",
"byte",
"[",
"]",
"iv",
")",
"{",
"return",
"scheme",
".",
"createCipherLite",
"(",
"secreteKey",
",",
"iv",
",",
"this",
".",
"cipherMode",
",",
"cipher",
".",
"getProvider",
"(",
")",
",",
"true",
")",
";",
"}"
] |
Creates a new instance of CipherLite from the current one, but using
the given IV.
|
[
"Creates",
"a",
"new",
"instance",
"of",
"CipherLite",
"from",
"the",
"current",
"one",
"but",
"using",
"the",
"given",
"IV",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/CipherLite.java#L96-L99
|
19,965
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/CipherLite.java
|
CipherLite.doFinal
|
byte[] doFinal(byte[] input, int inputOffset, int inputLen)
throws IllegalBlockSizeException, BadPaddingException {
return cipher.doFinal(input, inputOffset, inputLen);
}
|
java
|
byte[] doFinal(byte[] input, int inputOffset, int inputLen)
throws IllegalBlockSizeException, BadPaddingException {
return cipher.doFinal(input, inputOffset, inputLen);
}
|
[
"byte",
"[",
"]",
"doFinal",
"(",
"byte",
"[",
"]",
"input",
",",
"int",
"inputOffset",
",",
"int",
"inputLen",
")",
"throws",
"IllegalBlockSizeException",
",",
"BadPaddingException",
"{",
"return",
"cipher",
".",
"doFinal",
"(",
"input",
",",
"inputOffset",
",",
"inputLen",
")",
";",
"}"
] |
Encrypts or decrypts data in a single-part operation, or finishes a
multiple-part operation. The data is encrypted or decrypted, depending on
how the underlying cipher was initialized.
<p>
The first <code>inputLen</code> bytes in the <code>input</code> buffer,
starting at <code>inputOffset</code> inclusive, and any input bytes that
may have been buffered during a previous <code>update</code> operation,
are processed, with padding (if requested) being applied. If an AEAD mode
such as GCM/CCM is being used, the authentication tag is appended in the
case of encryption, or verified in the case of decryption. The result is
stored in a new buffer.
<p>
Note: if any exception is thrown, a new instance of this cipher lite
object may need to be constructed before it can be used again.
@param input
the input buffer
@param inputOffset
the offset in <code>input</code> where the input starts
@param inputLen
the input length
@return the new buffer with the result
@exception IllegalStateException
if this cipher is in a wrong state (e.g., has not been
initialized)
@exception IllegalBlockSizeException
if this cipher is a block cipher, no padding has been
requested (only in encryption mode), and the total input
length of the data processed by this cipher is not a
multiple of block size; or if this encryption algorithm is
unable to process the input data provided.
@exception BadPaddingException
if this cipher is in decryption mode, and (un)padding has
been requested, but the decrypted data is not bounded by
the appropriate padding bytes; or if this cipher is
decrypting in an AEAD mode (such as GCM/CCM), and the
received authentication tag does not match the calculated
value
|
[
"Encrypts",
"or",
"decrypts",
"data",
"in",
"a",
"single",
"-",
"part",
"operation",
"or",
"finishes",
"a",
"multiple",
"-",
"part",
"operation",
".",
"The",
"data",
"is",
"encrypted",
"or",
"decrypted",
"depending",
"on",
"how",
"the",
"underlying",
"cipher",
"was",
"initialized",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/CipherLite.java#L263-L266
|
19,966
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java
|
TransferManagerUtils.createDefaultExecutorService
|
public static ThreadPoolExecutor createDefaultExecutorService() {
ThreadFactory threadFactory = new ThreadFactory() {
private int threadCount = 1;
public Thread newThread(Runnable r) {
Thread thread = new Thread(r);
thread.setName("s3-transfer-manager-worker-" + threadCount++);
return thread;
}
};
return (ThreadPoolExecutor)Executors.newFixedThreadPool(10, threadFactory);
}
|
java
|
public static ThreadPoolExecutor createDefaultExecutorService() {
ThreadFactory threadFactory = new ThreadFactory() {
private int threadCount = 1;
public Thread newThread(Runnable r) {
Thread thread = new Thread(r);
thread.setName("s3-transfer-manager-worker-" + threadCount++);
return thread;
}
};
return (ThreadPoolExecutor)Executors.newFixedThreadPool(10, threadFactory);
}
|
[
"public",
"static",
"ThreadPoolExecutor",
"createDefaultExecutorService",
"(",
")",
"{",
"ThreadFactory",
"threadFactory",
"=",
"new",
"ThreadFactory",
"(",
")",
"{",
"private",
"int",
"threadCount",
"=",
"1",
";",
"public",
"Thread",
"newThread",
"(",
"Runnable",
"r",
")",
"{",
"Thread",
"thread",
"=",
"new",
"Thread",
"(",
"r",
")",
";",
"thread",
".",
"setName",
"(",
"\"s3-transfer-manager-worker-\"",
"+",
"threadCount",
"++",
")",
";",
"return",
"thread",
";",
"}",
"}",
";",
"return",
"(",
"ThreadPoolExecutor",
")",
"Executors",
".",
"newFixedThreadPool",
"(",
"10",
",",
"threadFactory",
")",
";",
"}"
] |
Returns a new thread pool configured with the default settings.
@return A new thread pool configured with the default settings.
|
[
"Returns",
"a",
"new",
"thread",
"pool",
"configured",
"with",
"the",
"default",
"settings",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java#L49-L60
|
19,967
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java
|
TransferManagerUtils.getContentLength
|
public static long getContentLength(PutObjectRequest putObjectRequest) {
File file = getRequestFile(putObjectRequest);
if (file != null) return file.length();
if (putObjectRequest.getInputStream() != null) {
if (putObjectRequest.getMetadata().getContentLength() > 0) {
return putObjectRequest.getMetadata().getContentLength();
}
}
return -1;
}
|
java
|
public static long getContentLength(PutObjectRequest putObjectRequest) {
File file = getRequestFile(putObjectRequest);
if (file != null) return file.length();
if (putObjectRequest.getInputStream() != null) {
if (putObjectRequest.getMetadata().getContentLength() > 0) {
return putObjectRequest.getMetadata().getContentLength();
}
}
return -1;
}
|
[
"public",
"static",
"long",
"getContentLength",
"(",
"PutObjectRequest",
"putObjectRequest",
")",
"{",
"File",
"file",
"=",
"getRequestFile",
"(",
"putObjectRequest",
")",
";",
"if",
"(",
"file",
"!=",
"null",
")",
"return",
"file",
".",
"length",
"(",
")",
";",
"if",
"(",
"putObjectRequest",
".",
"getInputStream",
"(",
")",
"!=",
"null",
")",
"{",
"if",
"(",
"putObjectRequest",
".",
"getMetadata",
"(",
")",
".",
"getContentLength",
"(",
")",
">",
"0",
")",
"{",
"return",
"putObjectRequest",
".",
"getMetadata",
"(",
")",
".",
"getContentLength",
"(",
")",
";",
"}",
"}",
"return",
"-",
"1",
";",
"}"
] |
Returns the size of the data in this request, otherwise -1 if the content
length is unknown.
@param putObjectRequest
The request to check.
@return The size of the data in this request, otherwise -1 if the size of
the data is unknown.
|
[
"Returns",
"the",
"size",
"of",
"the",
"data",
"in",
"this",
"request",
"otherwise",
"-",
"1",
"if",
"the",
"content",
"length",
"is",
"unknown",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java#L93-L104
|
19,968
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java
|
TransferManagerUtils.calculateOptimalPartSize
|
public static long calculateOptimalPartSize(PutObjectRequest putObjectRequest, TransferManagerConfiguration configuration) {
double contentLength = TransferManagerUtils.getContentLength(putObjectRequest);
double optimalPartSize = (double)contentLength / (double)MAXIMUM_UPLOAD_PARTS;
// round up so we don't push the upload over the maximum number of parts
optimalPartSize = Math.ceil(optimalPartSize);
return (long)Math.max(optimalPartSize, configuration.getMinimumUploadPartSize());
}
|
java
|
public static long calculateOptimalPartSize(PutObjectRequest putObjectRequest, TransferManagerConfiguration configuration) {
double contentLength = TransferManagerUtils.getContentLength(putObjectRequest);
double optimalPartSize = (double)contentLength / (double)MAXIMUM_UPLOAD_PARTS;
// round up so we don't push the upload over the maximum number of parts
optimalPartSize = Math.ceil(optimalPartSize);
return (long)Math.max(optimalPartSize, configuration.getMinimumUploadPartSize());
}
|
[
"public",
"static",
"long",
"calculateOptimalPartSize",
"(",
"PutObjectRequest",
"putObjectRequest",
",",
"TransferManagerConfiguration",
"configuration",
")",
"{",
"double",
"contentLength",
"=",
"TransferManagerUtils",
".",
"getContentLength",
"(",
"putObjectRequest",
")",
";",
"double",
"optimalPartSize",
"=",
"(",
"double",
")",
"contentLength",
"/",
"(",
"double",
")",
"MAXIMUM_UPLOAD_PARTS",
";",
"// round up so we don't push the upload over the maximum number of parts",
"optimalPartSize",
"=",
"Math",
".",
"ceil",
"(",
"optimalPartSize",
")",
";",
"return",
"(",
"long",
")",
"Math",
".",
"max",
"(",
"optimalPartSize",
",",
"configuration",
".",
"getMinimumUploadPartSize",
"(",
")",
")",
";",
"}"
] |
Returns the optimal part size, in bytes, for each individual part upload
in a multipart upload.
@param putObjectRequest
The request containing all the details of the upload.
@param configuration
Configuration values to use when calculating size.
@return The optimal part size, in bytes, for each individual part upload
in a multipart upload.
|
[
"Returns",
"the",
"optimal",
"part",
"size",
"in",
"bytes",
"for",
"each",
"individual",
"part",
"upload",
"in",
"a",
"multipart",
"upload",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java#L118-L124
|
19,969
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java
|
TransferManagerUtils.getRequestFile
|
public static File getRequestFile(final PutObjectRequest putObjectRequest) {
if (putObjectRequest.getFile() != null) return putObjectRequest.getFile();
return null;
}
|
java
|
public static File getRequestFile(final PutObjectRequest putObjectRequest) {
if (putObjectRequest.getFile() != null) return putObjectRequest.getFile();
return null;
}
|
[
"public",
"static",
"File",
"getRequestFile",
"(",
"final",
"PutObjectRequest",
"putObjectRequest",
")",
"{",
"if",
"(",
"putObjectRequest",
".",
"getFile",
"(",
")",
"!=",
"null",
")",
"return",
"putObjectRequest",
".",
"getFile",
"(",
")",
";",
"return",
"null",
";",
"}"
] |
Convenience method for getting the file specified in a request.
|
[
"Convenience",
"method",
"for",
"getting",
"the",
"file",
"specified",
"in",
"a",
"request",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java#L148-L151
|
19,970
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java
|
TransferManagerUtils.calculateOptimalPartSizeForCopy
|
public static long calculateOptimalPartSizeForCopy(
CopyObjectRequest copyObjectRequest,
TransferManagerConfiguration configuration,
long contentLengthOfSource) {
double optimalPartSize = (double) contentLengthOfSource
/ (double) MAXIMUM_UPLOAD_PARTS;
// round up so we don't push the copy over the maximum number of parts
optimalPartSize = Math.ceil(optimalPartSize);
return (long) Math.max(optimalPartSize,
configuration.getMultipartCopyPartSize());
}
|
java
|
public static long calculateOptimalPartSizeForCopy(
CopyObjectRequest copyObjectRequest,
TransferManagerConfiguration configuration,
long contentLengthOfSource) {
double optimalPartSize = (double) contentLengthOfSource
/ (double) MAXIMUM_UPLOAD_PARTS;
// round up so we don't push the copy over the maximum number of parts
optimalPartSize = Math.ceil(optimalPartSize);
return (long) Math.max(optimalPartSize,
configuration.getMultipartCopyPartSize());
}
|
[
"public",
"static",
"long",
"calculateOptimalPartSizeForCopy",
"(",
"CopyObjectRequest",
"copyObjectRequest",
",",
"TransferManagerConfiguration",
"configuration",
",",
"long",
"contentLengthOfSource",
")",
"{",
"double",
"optimalPartSize",
"=",
"(",
"double",
")",
"contentLengthOfSource",
"/",
"(",
"double",
")",
"MAXIMUM_UPLOAD_PARTS",
";",
"// round up so we don't push the copy over the maximum number of parts",
"optimalPartSize",
"=",
"Math",
".",
"ceil",
"(",
"optimalPartSize",
")",
";",
"return",
"(",
"long",
")",
"Math",
".",
"max",
"(",
"optimalPartSize",
",",
"configuration",
".",
"getMultipartCopyPartSize",
"(",
")",
")",
";",
"}"
] |
Calculates the optimal part size of each part request if the copy
operation is carried out as multi-part copy.
@param copyObjectRequest
the original request.
@param configuration
configuration containing the default part size.
@param contentLengthOfSource
content length of the Amazon S3 object.
@return the optimal part size for a copy part request.
|
[
"Calculates",
"the",
"optimal",
"part",
"size",
"of",
"each",
"part",
"request",
"if",
"the",
"copy",
"operation",
"is",
"carried",
"out",
"as",
"multi",
"-",
"part",
"copy",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java#L165-L175
|
19,971
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java
|
TransferManagerUtils.determinePauseStatus
|
public static PauseStatus determinePauseStatus(TransferState transferState,
boolean forceCancel) {
if (forceCancel) {
if (transferState == TransferState.Waiting) {
return PauseStatus.CANCELLED_BEFORE_START;
} else if (transferState == TransferState.InProgress) {
return PauseStatus.CANCELLED;
}
}
if (transferState == TransferState.Waiting) {
return PauseStatus.NOT_STARTED;
}
return PauseStatus.NO_EFFECT;
}
|
java
|
public static PauseStatus determinePauseStatus(TransferState transferState,
boolean forceCancel) {
if (forceCancel) {
if (transferState == TransferState.Waiting) {
return PauseStatus.CANCELLED_BEFORE_START;
} else if (transferState == TransferState.InProgress) {
return PauseStatus.CANCELLED;
}
}
if (transferState == TransferState.Waiting) {
return PauseStatus.NOT_STARTED;
}
return PauseStatus.NO_EFFECT;
}
|
[
"public",
"static",
"PauseStatus",
"determinePauseStatus",
"(",
"TransferState",
"transferState",
",",
"boolean",
"forceCancel",
")",
"{",
"if",
"(",
"forceCancel",
")",
"{",
"if",
"(",
"transferState",
"==",
"TransferState",
".",
"Waiting",
")",
"{",
"return",
"PauseStatus",
".",
"CANCELLED_BEFORE_START",
";",
"}",
"else",
"if",
"(",
"transferState",
"==",
"TransferState",
".",
"InProgress",
")",
"{",
"return",
"PauseStatus",
".",
"CANCELLED",
";",
"}",
"}",
"if",
"(",
"transferState",
"==",
"TransferState",
".",
"Waiting",
")",
"{",
"return",
"PauseStatus",
".",
"NOT_STARTED",
";",
"}",
"return",
"PauseStatus",
".",
"NO_EFFECT",
";",
"}"
] |
Determines the pause status based on the current state of transfer.
|
[
"Determines",
"the",
"pause",
"status",
"based",
"on",
"the",
"current",
"state",
"of",
"transfer",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java#L180-L194
|
19,972
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java
|
TransferManagerUtils.isDownloadParallelizable
|
public static boolean isDownloadParallelizable(final AmazonS3 s3, final GetObjectRequest getObjectRequest,
Integer partCount) {
ValidationUtils.assertNotNull(s3, "S3 client");
ValidationUtils.assertNotNull(getObjectRequest, "GetObjectRequest");
if (s3 instanceof AmazonS3Encryption || getObjectRequest.getRange() != null
|| getObjectRequest.getPartNumber() != null || partCount == null) {
return false;
}
return true;
}
|
java
|
public static boolean isDownloadParallelizable(final AmazonS3 s3, final GetObjectRequest getObjectRequest,
Integer partCount) {
ValidationUtils.assertNotNull(s3, "S3 client");
ValidationUtils.assertNotNull(getObjectRequest, "GetObjectRequest");
if (s3 instanceof AmazonS3Encryption || getObjectRequest.getRange() != null
|| getObjectRequest.getPartNumber() != null || partCount == null) {
return false;
}
return true;
}
|
[
"public",
"static",
"boolean",
"isDownloadParallelizable",
"(",
"final",
"AmazonS3",
"s3",
",",
"final",
"GetObjectRequest",
"getObjectRequest",
",",
"Integer",
"partCount",
")",
"{",
"ValidationUtils",
".",
"assertNotNull",
"(",
"s3",
",",
"\"S3 client\"",
")",
";",
"ValidationUtils",
".",
"assertNotNull",
"(",
"getObjectRequest",
",",
"\"GetObjectRequest\"",
")",
";",
"if",
"(",
"s3",
"instanceof",
"AmazonS3Encryption",
"||",
"getObjectRequest",
".",
"getRange",
"(",
")",
"!=",
"null",
"||",
"getObjectRequest",
".",
"getPartNumber",
"(",
")",
"!=",
"null",
"||",
"partCount",
"==",
"null",
")",
"{",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}"
] |
Returns true if the specified download request can use parallel part
downloads for increased performance.
@param getObjectRequest
The request to check.
@param s3
The Amazon s3 client.
@return True if this request can use parallel part downloads.
|
[
"Returns",
"true",
"if",
"the",
"specified",
"download",
"request",
"can",
"use",
"parallel",
"part",
"downloads",
"for",
"increased",
"performance",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java#L208-L218
|
19,973
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java
|
TransferManagerUtils.getContentLengthFromContentRange
|
public static Long getContentLengthFromContentRange(ObjectMetadata metadata) {
ValidationUtils.assertNotNull(metadata, "Object metadata");
String contentRange = (String) metadata.getRawMetadataValue(Headers.CONTENT_RANGE);
if (contentRange != null) {
try {
String[] tokens = contentRange.split("[ -/]+");
return Long.parseLong(tokens[3]);
} catch (Exception e) {
log.info(String.format("Error parsing 'Content-Range' header value: %s. So returning "
+ "null value for content length", contentRange), e);
}
}
return null;
}
|
java
|
public static Long getContentLengthFromContentRange(ObjectMetadata metadata) {
ValidationUtils.assertNotNull(metadata, "Object metadata");
String contentRange = (String) metadata.getRawMetadataValue(Headers.CONTENT_RANGE);
if (contentRange != null) {
try {
String[] tokens = contentRange.split("[ -/]+");
return Long.parseLong(tokens[3]);
} catch (Exception e) {
log.info(String.format("Error parsing 'Content-Range' header value: %s. So returning "
+ "null value for content length", contentRange), e);
}
}
return null;
}
|
[
"public",
"static",
"Long",
"getContentLengthFromContentRange",
"(",
"ObjectMetadata",
"metadata",
")",
"{",
"ValidationUtils",
".",
"assertNotNull",
"(",
"metadata",
",",
"\"Object metadata\"",
")",
";",
"String",
"contentRange",
"=",
"(",
"String",
")",
"metadata",
".",
"getRawMetadataValue",
"(",
"Headers",
".",
"CONTENT_RANGE",
")",
";",
"if",
"(",
"contentRange",
"!=",
"null",
")",
"{",
"try",
"{",
"String",
"[",
"]",
"tokens",
"=",
"contentRange",
".",
"split",
"(",
"\"[ -/]+\"",
")",
";",
"return",
"Long",
".",
"parseLong",
"(",
"tokens",
"[",
"3",
"]",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"log",
".",
"info",
"(",
"String",
".",
"format",
"(",
"\"Error parsing 'Content-Range' header value: %s. So returning \"",
"+",
"\"null value for content length\"",
",",
"contentRange",
")",
",",
"e",
")",
";",
"}",
"}",
"return",
"null",
";",
"}"
] |
Returns the content length of the object if response contains the Content-Range header
and is well formed.
If the Content-Range header is missing or header is malformed or content length is missing in the header value,
then a null value is returned.
<b>Note: If there is exception parsing the value, the exception is logged and a null value is returned.</b>
For example,
Retuns 1234, if Content-Range value is bytes 42-1233/1234
Retuns null, if Content-Range value is missing
Retuns null, if Content-Range value is not well formed bytes 42-1233/*
|
[
"Returns",
"the",
"content",
"length",
"of",
"the",
"object",
"if",
"response",
"contains",
"the",
"Content",
"-",
"Range",
"header",
"and",
"is",
"well",
"formed",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/TransferManagerUtils.java#L233-L249
|
19,974
|
aws/aws-sdk-java
|
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java
|
JmesPathEvaluationVisitor.visit
|
@Override
public JsonNode visit(JmesPathSubExpression subExpression, JsonNode input) throws InvalidTypeException {
JsonNode prelimnaryResult = subExpression.getExpressions().get(0).accept(this, input);
for (int i = 1; i < subExpression.getExpressions().size(); i++) {
prelimnaryResult = subExpression.getExpressions().get(i).accept(this, prelimnaryResult);
}
return prelimnaryResult;
}
|
java
|
@Override
public JsonNode visit(JmesPathSubExpression subExpression, JsonNode input) throws InvalidTypeException {
JsonNode prelimnaryResult = subExpression.getExpressions().get(0).accept(this, input);
for (int i = 1; i < subExpression.getExpressions().size(); i++) {
prelimnaryResult = subExpression.getExpressions().get(i).accept(this, prelimnaryResult);
}
return prelimnaryResult;
}
|
[
"@",
"Override",
"public",
"JsonNode",
"visit",
"(",
"JmesPathSubExpression",
"subExpression",
",",
"JsonNode",
"input",
")",
"throws",
"InvalidTypeException",
"{",
"JsonNode",
"prelimnaryResult",
"=",
"subExpression",
".",
"getExpressions",
"(",
")",
".",
"get",
"(",
"0",
")",
".",
"accept",
"(",
"this",
",",
"input",
")",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"subExpression",
".",
"getExpressions",
"(",
")",
".",
"size",
"(",
")",
";",
"i",
"++",
")",
"{",
"prelimnaryResult",
"=",
"subExpression",
".",
"getExpressions",
"(",
")",
".",
"get",
"(",
"i",
")",
".",
"accept",
"(",
"this",
",",
"prelimnaryResult",
")",
";",
"}",
"return",
"prelimnaryResult",
";",
"}"
] |
Evaluates a subexpression by evaluating the expression on
the left with the original JSON document and then evaluating
the expression on the right with the result of the left
expression evaluation.
@param subExpression JmesPath subexpression type
@param input Input json node against which evaluation is done
@return Result of the subexpression evaluation
@throws InvalidTypeException
|
[
"Evaluates",
"a",
"subexpression",
"by",
"evaluating",
"the",
"expression",
"on",
"the",
"left",
"with",
"the",
"original",
"JSON",
"document",
"and",
"then",
"evaluating",
"the",
"expression",
"on",
"the",
"right",
"with",
"the",
"result",
"of",
"the",
"left",
"expression",
"evaluation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java#L39-L46
|
19,975
|
aws/aws-sdk-java
|
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java
|
JmesPathEvaluationVisitor.visit
|
@Override
public JsonNode visit(JmesPathField fieldNode, JsonNode input) {
if (input.isObject()) {
//TODO : CamelCase will need to change at some point
return input.get(CamelCaseUtils.toCamelCase(fieldNode.getValue()));
}
return NullNode.getInstance();
}
|
java
|
@Override
public JsonNode visit(JmesPathField fieldNode, JsonNode input) {
if (input.isObject()) {
//TODO : CamelCase will need to change at some point
return input.get(CamelCaseUtils.toCamelCase(fieldNode.getValue()));
}
return NullNode.getInstance();
}
|
[
"@",
"Override",
"public",
"JsonNode",
"visit",
"(",
"JmesPathField",
"fieldNode",
",",
"JsonNode",
"input",
")",
"{",
"if",
"(",
"input",
".",
"isObject",
"(",
")",
")",
"{",
"//TODO : CamelCase will need to change at some point",
"return",
"input",
".",
"get",
"(",
"CamelCaseUtils",
".",
"toCamelCase",
"(",
"fieldNode",
".",
"getValue",
"(",
")",
")",
")",
";",
"}",
"return",
"NullNode",
".",
"getInstance",
"(",
")",
";",
"}"
] |
Retrieves the value of the field node
@param fieldNode JmesPath field type
@param input Input json node whose value is
retrieved
@return Value of the input json node
|
[
"Retrieves",
"the",
"value",
"of",
"the",
"field",
"node"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java#L56-L63
|
19,976
|
aws/aws-sdk-java
|
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java
|
JmesPathEvaluationVisitor.visit
|
@Override
public JsonNode visit(JmesPathFlatten flatten, JsonNode input) throws InvalidTypeException {
JsonNode flattenResult = flatten.getFlattenExpr().accept(this, input);
if (flattenResult.isArray()) {
Iterator<JsonNode> elements = flattenResult.elements();
ArrayNode flattenedArray = ObjectMapperSingleton.getObjectMapper().createArrayNode();
while (elements.hasNext()) {
JsonNode element = elements.next();
if (element != null) {
if (element.isArray()) {
Iterator<JsonNode> inner = element.iterator();
while (inner.hasNext()) {
JsonNode innerElement = inner.next();
if (innerElement != null) {
flattenedArray.add(innerElement);
}
}
} else {
flattenedArray.add(element);
}
}
}
return flattenedArray;
}
return NullNode.getInstance();
}
|
java
|
@Override
public JsonNode visit(JmesPathFlatten flatten, JsonNode input) throws InvalidTypeException {
JsonNode flattenResult = flatten.getFlattenExpr().accept(this, input);
if (flattenResult.isArray()) {
Iterator<JsonNode> elements = flattenResult.elements();
ArrayNode flattenedArray = ObjectMapperSingleton.getObjectMapper().createArrayNode();
while (elements.hasNext()) {
JsonNode element = elements.next();
if (element != null) {
if (element.isArray()) {
Iterator<JsonNode> inner = element.iterator();
while (inner.hasNext()) {
JsonNode innerElement = inner.next();
if (innerElement != null) {
flattenedArray.add(innerElement);
}
}
} else {
flattenedArray.add(element);
}
}
}
return flattenedArray;
}
return NullNode.getInstance();
}
|
[
"@",
"Override",
"public",
"JsonNode",
"visit",
"(",
"JmesPathFlatten",
"flatten",
",",
"JsonNode",
"input",
")",
"throws",
"InvalidTypeException",
"{",
"JsonNode",
"flattenResult",
"=",
"flatten",
".",
"getFlattenExpr",
"(",
")",
".",
"accept",
"(",
"this",
",",
"input",
")",
";",
"if",
"(",
"flattenResult",
".",
"isArray",
"(",
")",
")",
"{",
"Iterator",
"<",
"JsonNode",
">",
"elements",
"=",
"flattenResult",
".",
"elements",
"(",
")",
";",
"ArrayNode",
"flattenedArray",
"=",
"ObjectMapperSingleton",
".",
"getObjectMapper",
"(",
")",
".",
"createArrayNode",
"(",
")",
";",
"while",
"(",
"elements",
".",
"hasNext",
"(",
")",
")",
"{",
"JsonNode",
"element",
"=",
"elements",
".",
"next",
"(",
")",
";",
"if",
"(",
"element",
"!=",
"null",
")",
"{",
"if",
"(",
"element",
".",
"isArray",
"(",
")",
")",
"{",
"Iterator",
"<",
"JsonNode",
">",
"inner",
"=",
"element",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"inner",
".",
"hasNext",
"(",
")",
")",
"{",
"JsonNode",
"innerElement",
"=",
"inner",
".",
"next",
"(",
")",
";",
"if",
"(",
"innerElement",
"!=",
"null",
")",
"{",
"flattenedArray",
".",
"add",
"(",
"innerElement",
")",
";",
"}",
"}",
"}",
"else",
"{",
"flattenedArray",
".",
"add",
"(",
"element",
")",
";",
"}",
"}",
"}",
"return",
"flattenedArray",
";",
"}",
"return",
"NullNode",
".",
"getInstance",
"(",
")",
";",
"}"
] |
Flattens out the elements of the given expression into a
single list. It's evaluated as follows.
Create an empty result list.
Iterate over the elements of the current result.
If the current element is not a list, add to the end of
the result list.
If the current element is a list, add each element of the
current element to the end of the result list.
The result list is now the new current result.
@param flatten JmesPath flatten type
@param input Input json node against which evaluation is done
@return Result of the flatten evaluation
@throws InvalidTypeException
|
[
"Flattens",
"out",
"the",
"elements",
"of",
"the",
"given",
"expression",
"into",
"a",
"single",
"list",
".",
"It",
"s",
"evaluated",
"as",
"follows",
".",
"Create",
"an",
"empty",
"result",
"list",
".",
"Iterate",
"over",
"the",
"elements",
"of",
"the",
"current",
"result",
".",
"If",
"the",
"current",
"element",
"is",
"not",
"a",
"list",
"add",
"to",
"the",
"end",
"of",
"the",
"result",
"list",
".",
"If",
"the",
"current",
"element",
"is",
"a",
"list",
"add",
"each",
"element",
"of",
"the",
"current",
"element",
"to",
"the",
"end",
"of",
"the",
"result",
"list",
".",
"The",
"result",
"list",
"is",
"now",
"the",
"new",
"current",
"result",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java#L111-L137
|
19,977
|
aws/aws-sdk-java
|
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java
|
JmesPathEvaluationVisitor.visit
|
@Override
public JsonNode visit(JmesPathFunction function, JsonNode input) throws InvalidTypeException {
List<JsonNode> evaluatedArguments = new ArrayList<JsonNode>();
List<JmesPathExpression> arguments = function.getExpressions();
for (JmesPathExpression arg : arguments) {
evaluatedArguments.add(arg.accept(this, input));
}
return function.evaluate(evaluatedArguments);
}
|
java
|
@Override
public JsonNode visit(JmesPathFunction function, JsonNode input) throws InvalidTypeException {
List<JsonNode> evaluatedArguments = new ArrayList<JsonNode>();
List<JmesPathExpression> arguments = function.getExpressions();
for (JmesPathExpression arg : arguments) {
evaluatedArguments.add(arg.accept(this, input));
}
return function.evaluate(evaluatedArguments);
}
|
[
"@",
"Override",
"public",
"JsonNode",
"visit",
"(",
"JmesPathFunction",
"function",
",",
"JsonNode",
"input",
")",
"throws",
"InvalidTypeException",
"{",
"List",
"<",
"JsonNode",
">",
"evaluatedArguments",
"=",
"new",
"ArrayList",
"<",
"JsonNode",
">",
"(",
")",
";",
"List",
"<",
"JmesPathExpression",
">",
"arguments",
"=",
"function",
".",
"getExpressions",
"(",
")",
";",
"for",
"(",
"JmesPathExpression",
"arg",
":",
"arguments",
")",
"{",
"evaluatedArguments",
".",
"add",
"(",
"arg",
".",
"accept",
"(",
"this",
",",
"input",
")",
")",
";",
"}",
"return",
"function",
".",
"evaluate",
"(",
"evaluatedArguments",
")",
";",
"}"
] |
Evaluates function expression in applicative order. Each
argument is an expression, each argument expression is
evaluated before evaluating the function. The function is
then called with the evaluated function arguments. The
result of the function-expression is the result returned
by the function call.
@param function JmesPath function type
@param input Input json node against which evaluation is done
@return Result of the function evaluation
@throws InvalidTypeException
|
[
"Evaluates",
"function",
"expression",
"in",
"applicative",
"order",
".",
"Each",
"argument",
"is",
"an",
"expression",
"each",
"argument",
"expression",
"is",
"evaluated",
"before",
"evaluating",
"the",
"function",
".",
"The",
"function",
"is",
"then",
"called",
"with",
"the",
"evaluated",
"function",
"arguments",
".",
"The",
"result",
"of",
"the",
"function",
"-",
"expression",
"is",
"the",
"result",
"returned",
"by",
"the",
"function",
"call",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java#L193-L201
|
19,978
|
aws/aws-sdk-java
|
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java
|
JmesPathEvaluationVisitor.visit
|
@Override
public JsonNode visit(Comparator op, JsonNode input) {
JsonNode lhsNode = op.getLhsExpr().accept(this, input);
JsonNode rhsNode = op.getRhsExpr().accept(this, input);
if (op.matches(lhsNode, rhsNode)) {
return BooleanNode.TRUE;
}
return BooleanNode.FALSE;
}
|
java
|
@Override
public JsonNode visit(Comparator op, JsonNode input) {
JsonNode lhsNode = op.getLhsExpr().accept(this, input);
JsonNode rhsNode = op.getRhsExpr().accept(this, input);
if (op.matches(lhsNode, rhsNode)) {
return BooleanNode.TRUE;
}
return BooleanNode.FALSE;
}
|
[
"@",
"Override",
"public",
"JsonNode",
"visit",
"(",
"Comparator",
"op",
",",
"JsonNode",
"input",
")",
"{",
"JsonNode",
"lhsNode",
"=",
"op",
".",
"getLhsExpr",
"(",
")",
".",
"accept",
"(",
"this",
",",
"input",
")",
";",
"JsonNode",
"rhsNode",
"=",
"op",
".",
"getRhsExpr",
"(",
")",
".",
"accept",
"(",
"this",
",",
"input",
")",
";",
"if",
"(",
"op",
".",
"matches",
"(",
"lhsNode",
",",
"rhsNode",
")",
")",
"{",
"return",
"BooleanNode",
".",
"TRUE",
";",
"}",
"return",
"BooleanNode",
".",
"FALSE",
";",
"}"
] |
Evaluate the expressions as per the given comparison
operator.
@param op JmesPath comparison operator type
@param input Input json node against which evaluation is done
@return Result of the comparison
|
[
"Evaluate",
"the",
"expressions",
"as",
"per",
"the",
"given",
"comparison",
"operator",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java#L257-L266
|
19,979
|
aws/aws-sdk-java
|
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java
|
JmesPathEvaluationVisitor.visit
|
@Override
public JsonNode visit(JmesPathNotExpression notExpression, JsonNode input) throws InvalidTypeException {
JsonNode resultExpr = notExpression.getExpr().accept(this, input);
if (resultExpr != BooleanNode.TRUE) {
return BooleanNode.TRUE;
}
return BooleanNode.FALSE;
}
|
java
|
@Override
public JsonNode visit(JmesPathNotExpression notExpression, JsonNode input) throws InvalidTypeException {
JsonNode resultExpr = notExpression.getExpr().accept(this, input);
if (resultExpr != BooleanNode.TRUE) {
return BooleanNode.TRUE;
}
return BooleanNode.FALSE;
}
|
[
"@",
"Override",
"public",
"JsonNode",
"visit",
"(",
"JmesPathNotExpression",
"notExpression",
",",
"JsonNode",
"input",
")",
"throws",
"InvalidTypeException",
"{",
"JsonNode",
"resultExpr",
"=",
"notExpression",
".",
"getExpr",
"(",
")",
".",
"accept",
"(",
"this",
",",
"input",
")",
";",
"if",
"(",
"resultExpr",
"!=",
"BooleanNode",
".",
"TRUE",
")",
"{",
"return",
"BooleanNode",
".",
"TRUE",
";",
"}",
"return",
"BooleanNode",
".",
"FALSE",
";",
"}"
] |
Not-expression negates the result of an expression. If the
expression results in a truth-like value, a not-expression will
change this value to false. If the expression results in a
false-like value, a not-expression will change this value to true.
@param notExpression JmesPath not-expression type
@param input Input json node against which evaluation is done
@return Negation of the evaluated expression
@throws InvalidTypeException
|
[
"Not",
"-",
"expression",
"negates",
"the",
"result",
"of",
"an",
"expression",
".",
"If",
"the",
"expression",
"results",
"in",
"a",
"truth",
"-",
"like",
"value",
"a",
"not",
"-",
"expression",
"will",
"change",
"this",
"value",
"to",
"false",
".",
"If",
"the",
"expression",
"results",
"in",
"a",
"false",
"-",
"like",
"value",
"a",
"not",
"-",
"expression",
"will",
"change",
"this",
"value",
"to",
"true",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java#L279-L286
|
19,980
|
aws/aws-sdk-java
|
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java
|
JmesPathEvaluationVisitor.visit
|
@Override
public JsonNode visit(JmesPathAndExpression andExpression, JsonNode input) throws InvalidTypeException {
JsonNode lhsNode = andExpression.getLhsExpr().accept(this, input);
JsonNode rhsNode = andExpression.getRhsExpr().accept(this, input);
if (lhsNode == BooleanNode.TRUE) {
return rhsNode;
} else {
return lhsNode;
}
}
|
java
|
@Override
public JsonNode visit(JmesPathAndExpression andExpression, JsonNode input) throws InvalidTypeException {
JsonNode lhsNode = andExpression.getLhsExpr().accept(this, input);
JsonNode rhsNode = andExpression.getRhsExpr().accept(this, input);
if (lhsNode == BooleanNode.TRUE) {
return rhsNode;
} else {
return lhsNode;
}
}
|
[
"@",
"Override",
"public",
"JsonNode",
"visit",
"(",
"JmesPathAndExpression",
"andExpression",
",",
"JsonNode",
"input",
")",
"throws",
"InvalidTypeException",
"{",
"JsonNode",
"lhsNode",
"=",
"andExpression",
".",
"getLhsExpr",
"(",
")",
".",
"accept",
"(",
"this",
",",
"input",
")",
";",
"JsonNode",
"rhsNode",
"=",
"andExpression",
".",
"getRhsExpr",
"(",
")",
".",
"accept",
"(",
"this",
",",
"input",
")",
";",
"if",
"(",
"lhsNode",
"==",
"BooleanNode",
".",
"TRUE",
")",
"{",
"return",
"rhsNode",
";",
"}",
"else",
"{",
"return",
"lhsNode",
";",
"}",
"}"
] |
And expression will evaluate to either the left expression or
the right expression. If the expression on the left hand side
is a truth-like value, then the value on the right hand side
is returned. Otherwise the result of the expression on the
left hand side is returned.
@param andExpression JmesPath and-expression type
@param input Input json node against which evaluation is done
@return Result of the and-expression evaluation
@throws InvalidTypeException
|
[
"And",
"expression",
"will",
"evaluate",
"to",
"either",
"the",
"left",
"expression",
"or",
"the",
"right",
"expression",
".",
"If",
"the",
"expression",
"on",
"the",
"left",
"hand",
"side",
"is",
"a",
"truth",
"-",
"like",
"value",
"then",
"the",
"value",
"on",
"the",
"right",
"hand",
"side",
"is",
"returned",
".",
"Otherwise",
"the",
"result",
"of",
"the",
"expression",
"on",
"the",
"left",
"hand",
"side",
"is",
"returned",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathEvaluationVisitor.java#L300-L309
|
19,981
|
aws/aws-sdk-java
|
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/LoggerDefinitionVersion.java
|
LoggerDefinitionVersion.setLoggers
|
public void setLoggers(java.util.Collection<Logger> loggers) {
if (loggers == null) {
this.loggers = null;
return;
}
this.loggers = new java.util.ArrayList<Logger>(loggers);
}
|
java
|
public void setLoggers(java.util.Collection<Logger> loggers) {
if (loggers == null) {
this.loggers = null;
return;
}
this.loggers = new java.util.ArrayList<Logger>(loggers);
}
|
[
"public",
"void",
"setLoggers",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"Logger",
">",
"loggers",
")",
"{",
"if",
"(",
"loggers",
"==",
"null",
")",
"{",
"this",
".",
"loggers",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"loggers",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"Logger",
">",
"(",
"loggers",
")",
";",
"}"
] |
A list of loggers.
@param loggers
A list of loggers.
|
[
"A",
"list",
"of",
"loggers",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/LoggerDefinitionVersion.java#L49-L56
|
19,982
|
aws/aws-sdk-java
|
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/CopyImpl.java
|
CopyImpl.waitForCopyResult
|
public CopyResult waitForCopyResult() throws AmazonClientException,
AmazonServiceException, InterruptedException {
try {
CopyResult result = null;
while (!monitor.isDone() || result == null) {
Future<?> f = monitor.getFuture();
result = (CopyResult) f.get();
}
return result;
} catch (ExecutionException e) {
rethrowExecutionException(e);
return null;
}
}
|
java
|
public CopyResult waitForCopyResult() throws AmazonClientException,
AmazonServiceException, InterruptedException {
try {
CopyResult result = null;
while (!monitor.isDone() || result == null) {
Future<?> f = monitor.getFuture();
result = (CopyResult) f.get();
}
return result;
} catch (ExecutionException e) {
rethrowExecutionException(e);
return null;
}
}
|
[
"public",
"CopyResult",
"waitForCopyResult",
"(",
")",
"throws",
"AmazonClientException",
",",
"AmazonServiceException",
",",
"InterruptedException",
"{",
"try",
"{",
"CopyResult",
"result",
"=",
"null",
";",
"while",
"(",
"!",
"monitor",
".",
"isDone",
"(",
")",
"||",
"result",
"==",
"null",
")",
"{",
"Future",
"<",
"?",
">",
"f",
"=",
"monitor",
".",
"getFuture",
"(",
")",
";",
"result",
"=",
"(",
"CopyResult",
")",
"f",
".",
"get",
"(",
")",
";",
"}",
"return",
"result",
";",
"}",
"catch",
"(",
"ExecutionException",
"e",
")",
"{",
"rethrowExecutionException",
"(",
"e",
")",
";",
"return",
"null",
";",
"}",
"}"
] |
Waits for this copy operation to complete and returns the result of the
operation. Be prepared to handle errors when calling this method. Any
errors that occurred during the asynchronous transfer will be re-thrown
through this method.
@return The result of this transfer.
@throws AmazonClientException
If any errors were encountered in the client while making the
request or handling the response.
@throws AmazonServiceException
If any errors occurred in Amazon S3 while processing the
request.
@throws InterruptedException
If this thread is interrupted while waiting for the upload to
complete.
|
[
"Waits",
"for",
"this",
"copy",
"operation",
"to",
"complete",
"and",
"returns",
"the",
"result",
"of",
"the",
"operation",
".",
"Be",
"prepared",
"to",
"handle",
"errors",
"when",
"calling",
"this",
"method",
".",
"Any",
"errors",
"that",
"occurred",
"during",
"the",
"asynchronous",
"transfer",
"will",
"be",
"re",
"-",
"thrown",
"through",
"this",
"method",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/CopyImpl.java#L57-L70
|
19,983
|
aws/aws-sdk-java
|
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ListPresetsResult.java
|
ListPresetsResult.setPresets
|
public void setPresets(java.util.Collection<Preset> presets) {
if (presets == null) {
this.presets = null;
return;
}
this.presets = new java.util.ArrayList<Preset>(presets);
}
|
java
|
public void setPresets(java.util.Collection<Preset> presets) {
if (presets == null) {
this.presets = null;
return;
}
this.presets = new java.util.ArrayList<Preset>(presets);
}
|
[
"public",
"void",
"setPresets",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"Preset",
">",
"presets",
")",
"{",
"if",
"(",
"presets",
"==",
"null",
")",
"{",
"this",
".",
"presets",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
"presets",
"=",
"new",
"java",
".",
"util",
".",
"ArrayList",
"<",
"Preset",
">",
"(",
"presets",
")",
";",
"}"
] |
List of presets
@param presets
List of presets
|
[
"List",
"of",
"presets"
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ListPresetsResult.java#L82-L89
|
19,984
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.confirmSubscriptionAsync
|
@Override
public java.util.concurrent.Future<ConfirmSubscriptionResult> confirmSubscriptionAsync(String topicArn, String token, String authenticateOnUnsubscribe) {
return confirmSubscriptionAsync(new ConfirmSubscriptionRequest().withTopicArn(topicArn).withToken(token)
.withAuthenticateOnUnsubscribe(authenticateOnUnsubscribe));
}
|
java
|
@Override
public java.util.concurrent.Future<ConfirmSubscriptionResult> confirmSubscriptionAsync(String topicArn, String token, String authenticateOnUnsubscribe) {
return confirmSubscriptionAsync(new ConfirmSubscriptionRequest().withTopicArn(topicArn).withToken(token)
.withAuthenticateOnUnsubscribe(authenticateOnUnsubscribe));
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ConfirmSubscriptionResult",
">",
"confirmSubscriptionAsync",
"(",
"String",
"topicArn",
",",
"String",
"token",
",",
"String",
"authenticateOnUnsubscribe",
")",
"{",
"return",
"confirmSubscriptionAsync",
"(",
"new",
"ConfirmSubscriptionRequest",
"(",
")",
".",
"withTopicArn",
"(",
"topicArn",
")",
".",
"withToken",
"(",
"token",
")",
".",
"withAuthenticateOnUnsubscribe",
"(",
"authenticateOnUnsubscribe",
")",
")",
";",
"}"
] |
Simplified method form for invoking the ConfirmSubscription operation.
@see #confirmSubscriptionAsync(ConfirmSubscriptionRequest)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ConfirmSubscription",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L99-L104
|
19,985
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.confirmSubscriptionAsync
|
@Override
public java.util.concurrent.Future<ConfirmSubscriptionResult> confirmSubscriptionAsync(String topicArn, String token, String authenticateOnUnsubscribe,
com.amazonaws.handlers.AsyncHandler<ConfirmSubscriptionRequest, ConfirmSubscriptionResult> asyncHandler) {
return confirmSubscriptionAsync(
new ConfirmSubscriptionRequest().withTopicArn(topicArn).withToken(token).withAuthenticateOnUnsubscribe(authenticateOnUnsubscribe), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ConfirmSubscriptionResult> confirmSubscriptionAsync(String topicArn, String token, String authenticateOnUnsubscribe,
com.amazonaws.handlers.AsyncHandler<ConfirmSubscriptionRequest, ConfirmSubscriptionResult> asyncHandler) {
return confirmSubscriptionAsync(
new ConfirmSubscriptionRequest().withTopicArn(topicArn).withToken(token).withAuthenticateOnUnsubscribe(authenticateOnUnsubscribe), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ConfirmSubscriptionResult",
">",
"confirmSubscriptionAsync",
"(",
"String",
"topicArn",
",",
"String",
"token",
",",
"String",
"authenticateOnUnsubscribe",
",",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ConfirmSubscriptionRequest",
",",
"ConfirmSubscriptionResult",
">",
"asyncHandler",
")",
"{",
"return",
"confirmSubscriptionAsync",
"(",
"new",
"ConfirmSubscriptionRequest",
"(",
")",
".",
"withTopicArn",
"(",
"topicArn",
")",
".",
"withToken",
"(",
"token",
")",
".",
"withAuthenticateOnUnsubscribe",
"(",
"authenticateOnUnsubscribe",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ConfirmSubscription operation with an AsyncHandler.
@see #confirmSubscriptionAsync(ConfirmSubscriptionRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ConfirmSubscription",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L111-L117
|
19,986
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.createTopicAsync
|
@Override
public java.util.concurrent.Future<CreateTopicResult> createTopicAsync(String name) {
return createTopicAsync(new CreateTopicRequest().withName(name));
}
|
java
|
@Override
public java.util.concurrent.Future<CreateTopicResult> createTopicAsync(String name) {
return createTopicAsync(new CreateTopicRequest().withName(name));
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"CreateTopicResult",
">",
"createTopicAsync",
"(",
"String",
"name",
")",
"{",
"return",
"createTopicAsync",
"(",
"new",
"CreateTopicRequest",
"(",
")",
".",
"withName",
"(",
"name",
")",
")",
";",
"}"
] |
Simplified method form for invoking the CreateTopic operation.
@see #createTopicAsync(CreateTopicRequest)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"CreateTopic",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L186-L190
|
19,987
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.createTopicAsync
|
@Override
public java.util.concurrent.Future<CreateTopicResult> createTopicAsync(String name,
com.amazonaws.handlers.AsyncHandler<CreateTopicRequest, CreateTopicResult> asyncHandler) {
return createTopicAsync(new CreateTopicRequest().withName(name), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<CreateTopicResult> createTopicAsync(String name,
com.amazonaws.handlers.AsyncHandler<CreateTopicRequest, CreateTopicResult> asyncHandler) {
return createTopicAsync(new CreateTopicRequest().withName(name), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"CreateTopicResult",
">",
"createTopicAsync",
"(",
"String",
"name",
",",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"CreateTopicRequest",
",",
"CreateTopicResult",
">",
"asyncHandler",
")",
"{",
"return",
"createTopicAsync",
"(",
"new",
"CreateTopicRequest",
"(",
")",
".",
"withName",
"(",
"name",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the CreateTopic operation with an AsyncHandler.
@see #createTopicAsync(CreateTopicRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"CreateTopic",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L197-L202
|
19,988
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.deleteTopicAsync
|
@Override
public java.util.concurrent.Future<DeleteTopicResult> deleteTopicAsync(String topicArn) {
return deleteTopicAsync(new DeleteTopicRequest().withTopicArn(topicArn));
}
|
java
|
@Override
public java.util.concurrent.Future<DeleteTopicResult> deleteTopicAsync(String topicArn) {
return deleteTopicAsync(new DeleteTopicRequest().withTopicArn(topicArn));
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DeleteTopicResult",
">",
"deleteTopicAsync",
"(",
"String",
"topicArn",
")",
"{",
"return",
"deleteTopicAsync",
"(",
"new",
"DeleteTopicRequest",
"(",
")",
".",
"withTopicArn",
"(",
"topicArn",
")",
")",
";",
"}"
] |
Simplified method form for invoking the DeleteTopic operation.
@see #deleteTopicAsync(DeleteTopicRequest)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DeleteTopic",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L248-L252
|
19,989
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.deleteTopicAsync
|
@Override
public java.util.concurrent.Future<DeleteTopicResult> deleteTopicAsync(String topicArn,
com.amazonaws.handlers.AsyncHandler<DeleteTopicRequest, DeleteTopicResult> asyncHandler) {
return deleteTopicAsync(new DeleteTopicRequest().withTopicArn(topicArn), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<DeleteTopicResult> deleteTopicAsync(String topicArn,
com.amazonaws.handlers.AsyncHandler<DeleteTopicRequest, DeleteTopicResult> asyncHandler) {
return deleteTopicAsync(new DeleteTopicRequest().withTopicArn(topicArn), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DeleteTopicResult",
">",
"deleteTopicAsync",
"(",
"String",
"topicArn",
",",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DeleteTopicRequest",
",",
"DeleteTopicResult",
">",
"asyncHandler",
")",
"{",
"return",
"deleteTopicAsync",
"(",
"new",
"DeleteTopicRequest",
"(",
")",
".",
"withTopicArn",
"(",
"topicArn",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the DeleteTopic operation with an AsyncHandler.
@see #deleteTopicAsync(DeleteTopicRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DeleteTopic",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L259-L264
|
19,990
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.getSubscriptionAttributesAsync
|
@Override
public java.util.concurrent.Future<GetSubscriptionAttributesResult> getSubscriptionAttributesAsync(String subscriptionArn) {
return getSubscriptionAttributesAsync(new GetSubscriptionAttributesRequest().withSubscriptionArn(subscriptionArn));
}
|
java
|
@Override
public java.util.concurrent.Future<GetSubscriptionAttributesResult> getSubscriptionAttributesAsync(String subscriptionArn) {
return getSubscriptionAttributesAsync(new GetSubscriptionAttributesRequest().withSubscriptionArn(subscriptionArn));
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"GetSubscriptionAttributesResult",
">",
"getSubscriptionAttributesAsync",
"(",
"String",
"subscriptionArn",
")",
"{",
"return",
"getSubscriptionAttributesAsync",
"(",
"new",
"GetSubscriptionAttributesRequest",
"(",
")",
".",
"withSubscriptionArn",
"(",
"subscriptionArn",
")",
")",
";",
"}"
] |
Simplified method form for invoking the GetSubscriptionAttributes operation.
@see #getSubscriptionAttributesAsync(GetSubscriptionAttributesRequest)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"GetSubscriptionAttributes",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L325-L329
|
19,991
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.getSubscriptionAttributesAsync
|
@Override
public java.util.concurrent.Future<GetSubscriptionAttributesResult> getSubscriptionAttributesAsync(String subscriptionArn,
com.amazonaws.handlers.AsyncHandler<GetSubscriptionAttributesRequest, GetSubscriptionAttributesResult> asyncHandler) {
return getSubscriptionAttributesAsync(new GetSubscriptionAttributesRequest().withSubscriptionArn(subscriptionArn), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<GetSubscriptionAttributesResult> getSubscriptionAttributesAsync(String subscriptionArn,
com.amazonaws.handlers.AsyncHandler<GetSubscriptionAttributesRequest, GetSubscriptionAttributesResult> asyncHandler) {
return getSubscriptionAttributesAsync(new GetSubscriptionAttributesRequest().withSubscriptionArn(subscriptionArn), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"GetSubscriptionAttributesResult",
">",
"getSubscriptionAttributesAsync",
"(",
"String",
"subscriptionArn",
",",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"GetSubscriptionAttributesRequest",
",",
"GetSubscriptionAttributesResult",
">",
"asyncHandler",
")",
"{",
"return",
"getSubscriptionAttributesAsync",
"(",
"new",
"GetSubscriptionAttributesRequest",
"(",
")",
".",
"withSubscriptionArn",
"(",
"subscriptionArn",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the GetSubscriptionAttributes operation with an AsyncHandler.
@see #getSubscriptionAttributesAsync(GetSubscriptionAttributesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"GetSubscriptionAttributes",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L336-L341
|
19,992
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.getTopicAttributesAsync
|
@Override
public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn) {
return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn));
}
|
java
|
@Override
public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn) {
return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn));
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"GetTopicAttributesResult",
">",
"getTopicAttributesAsync",
"(",
"String",
"topicArn",
")",
"{",
"return",
"getTopicAttributesAsync",
"(",
"new",
"GetTopicAttributesRequest",
"(",
")",
".",
"withTopicArn",
"(",
"topicArn",
")",
")",
";",
"}"
] |
Simplified method form for invoking the GetTopicAttributes operation.
@see #getTopicAttributesAsync(GetTopicAttributesRequest)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"GetTopicAttributes",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L361-L365
|
19,993
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.getTopicAttributesAsync
|
@Override
public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn,
com.amazonaws.handlers.AsyncHandler<GetTopicAttributesRequest, GetTopicAttributesResult> asyncHandler) {
return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn,
com.amazonaws.handlers.AsyncHandler<GetTopicAttributesRequest, GetTopicAttributesResult> asyncHandler) {
return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"GetTopicAttributesResult",
">",
"getTopicAttributesAsync",
"(",
"String",
"topicArn",
",",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"GetTopicAttributesRequest",
",",
"GetTopicAttributesResult",
">",
"asyncHandler",
")",
"{",
"return",
"getTopicAttributesAsync",
"(",
"new",
"GetTopicAttributesRequest",
"(",
")",
".",
"withTopicArn",
"(",
"topicArn",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the GetTopicAttributes operation with an AsyncHandler.
@see #getTopicAttributesAsync(GetTopicAttributesRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"GetTopicAttributes",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L372-L377
|
19,994
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.listSubscriptionsAsync
|
@Override
public java.util.concurrent.Future<ListSubscriptionsResult> listSubscriptionsAsync(String nextToken) {
return listSubscriptionsAsync(new ListSubscriptionsRequest().withNextToken(nextToken));
}
|
java
|
@Override
public java.util.concurrent.Future<ListSubscriptionsResult> listSubscriptionsAsync(String nextToken) {
return listSubscriptionsAsync(new ListSubscriptionsRequest().withNextToken(nextToken));
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListSubscriptionsResult",
">",
"listSubscriptionsAsync",
"(",
"String",
"nextToken",
")",
"{",
"return",
"listSubscriptionsAsync",
"(",
"new",
"ListSubscriptionsRequest",
"(",
")",
".",
"withNextToken",
"(",
"nextToken",
")",
")",
";",
"}"
] |
Simplified method form for invoking the ListSubscriptions operation.
@see #listSubscriptionsAsync(ListSubscriptionsRequest)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListSubscriptions",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L484-L488
|
19,995
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.listSubscriptionsAsync
|
@Override
public java.util.concurrent.Future<ListSubscriptionsResult> listSubscriptionsAsync(String nextToken,
com.amazonaws.handlers.AsyncHandler<ListSubscriptionsRequest, ListSubscriptionsResult> asyncHandler) {
return listSubscriptionsAsync(new ListSubscriptionsRequest().withNextToken(nextToken), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListSubscriptionsResult> listSubscriptionsAsync(String nextToken,
com.amazonaws.handlers.AsyncHandler<ListSubscriptionsRequest, ListSubscriptionsResult> asyncHandler) {
return listSubscriptionsAsync(new ListSubscriptionsRequest().withNextToken(nextToken), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListSubscriptionsResult",
">",
"listSubscriptionsAsync",
"(",
"String",
"nextToken",
",",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListSubscriptionsRequest",
",",
"ListSubscriptionsResult",
">",
"asyncHandler",
")",
"{",
"return",
"listSubscriptionsAsync",
"(",
"new",
"ListSubscriptionsRequest",
"(",
")",
".",
"withNextToken",
"(",
"nextToken",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListSubscriptions operation with an AsyncHandler.
@see #listSubscriptionsAsync(ListSubscriptionsRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListSubscriptions",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L495-L500
|
19,996
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.listSubscriptionsByTopicAsync
|
@Override
public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn) {
return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn));
}
|
java
|
@Override
public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn) {
return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn));
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListSubscriptionsByTopicResult",
">",
"listSubscriptionsByTopicAsync",
"(",
"String",
"topicArn",
")",
"{",
"return",
"listSubscriptionsByTopicAsync",
"(",
"new",
"ListSubscriptionsByTopicRequest",
"(",
")",
".",
"withTopicArn",
"(",
"topicArn",
")",
")",
";",
"}"
] |
Simplified method form for invoking the ListSubscriptionsByTopic operation.
@see #listSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListSubscriptionsByTopic",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L520-L524
|
19,997
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.listSubscriptionsByTopicAsync
|
@Override
public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn,
com.amazonaws.handlers.AsyncHandler<ListSubscriptionsByTopicRequest, ListSubscriptionsByTopicResult> asyncHandler) {
return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<ListSubscriptionsByTopicResult> listSubscriptionsByTopicAsync(String topicArn,
com.amazonaws.handlers.AsyncHandler<ListSubscriptionsByTopicRequest, ListSubscriptionsByTopicResult> asyncHandler) {
return listSubscriptionsByTopicAsync(new ListSubscriptionsByTopicRequest().withTopicArn(topicArn), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListSubscriptionsByTopicResult",
">",
"listSubscriptionsByTopicAsync",
"(",
"String",
"topicArn",
",",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"ListSubscriptionsByTopicRequest",
",",
"ListSubscriptionsByTopicResult",
">",
"asyncHandler",
")",
"{",
"return",
"listSubscriptionsByTopicAsync",
"(",
"new",
"ListSubscriptionsByTopicRequest",
"(",
")",
".",
"withTopicArn",
"(",
"topicArn",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the ListSubscriptionsByTopic operation with an AsyncHandler.
@see #listSubscriptionsByTopicAsync(ListSubscriptionsByTopicRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListSubscriptionsByTopic",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L531-L536
|
19,998
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.listTopicsAsync
|
@Override
public java.util.concurrent.Future<ListTopicsResult> listTopicsAsync(String nextToken) {
return listTopicsAsync(new ListTopicsRequest().withNextToken(nextToken));
}
|
java
|
@Override
public java.util.concurrent.Future<ListTopicsResult> listTopicsAsync(String nextToken) {
return listTopicsAsync(new ListTopicsRequest().withNextToken(nextToken));
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"ListTopicsResult",
">",
"listTopicsAsync",
"(",
"String",
"nextToken",
")",
"{",
"return",
"listTopicsAsync",
"(",
"new",
"ListTopicsRequest",
"(",
")",
".",
"withNextToken",
"(",
"nextToken",
")",
")",
";",
"}"
] |
Simplified method form for invoking the ListTopics operation.
@see #listTopicsAsync(ListTopicsRequest)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"ListTopics",
"operation",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L614-L618
|
19,999
|
aws/aws-sdk-java
|
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java
|
AbstractAmazonSNSAsync.publishAsync
|
@Override
public java.util.concurrent.Future<PublishResult> publishAsync(String topicArn, String message,
com.amazonaws.handlers.AsyncHandler<PublishRequest, PublishResult> asyncHandler) {
return publishAsync(new PublishRequest().withTopicArn(topicArn).withMessage(message), asyncHandler);
}
|
java
|
@Override
public java.util.concurrent.Future<PublishResult> publishAsync(String topicArn, String message,
com.amazonaws.handlers.AsyncHandler<PublishRequest, PublishResult> asyncHandler) {
return publishAsync(new PublishRequest().withTopicArn(topicArn).withMessage(message), asyncHandler);
}
|
[
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"PublishResult",
">",
"publishAsync",
"(",
"String",
"topicArn",
",",
"String",
"message",
",",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"PublishRequest",
",",
"PublishResult",
">",
"asyncHandler",
")",
"{",
"return",
"publishAsync",
"(",
"new",
"PublishRequest",
"(",
")",
".",
"withTopicArn",
"(",
"topicArn",
")",
".",
"withMessage",
"(",
"message",
")",
",",
"asyncHandler",
")",
";",
"}"
] |
Simplified method form for invoking the Publish operation with an AsyncHandler.
@see #publishAsync(PublishRequest, com.amazonaws.handlers.AsyncHandler)
|
[
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"Publish",
"operation",
"with",
"an",
"AsyncHandler",
"."
] |
aa38502458969b2d13a1c3665a56aba600e4dbd0
|
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/AbstractAmazonSNSAsync.java#L674-L679
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.