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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
20,200 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final JmesPathProjection jmesPathProjection,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathProjection( " + jmesPathProjection.getLhsExpr()
.accept(this, aVoid) + ", " + jmesPathProjection.getProjectionExpr()
... | java | @Override
public String visit(final JmesPathProjection jmesPathProjection,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathProjection( " + jmesPathProjection.getLhsExpr()
.accept(this, aVoid) + ", " + jmesPathProjection.getProjectionExpr()
... | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"JmesPathProjection",
"jmesPathProjection",
",",
"final",
"Void",
"aVoid",
")",
"throws",
"InvalidTypeException",
"{",
"return",
"\"new JmesPathProjection( \"",
"+",
"jmesPathProjection",
".",
"getLhsExpr",
"("... | Generates the code for a new JmesPathProjection.
@param jmesPathProjection JmesPath projection type
@param aVoid void
@return String that represents a call to
the new list projection
@throws InvalidTypeException | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"JmesPathProjection",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L80-L86 |
20,201 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final JmesPathFlatten flatten, final Void aVoid)
throws InvalidTypeException {
return "new JmesPathFlatten( " + flatten.getFlattenExpr()
.accept(this, aVoid) + ")";
} | java | @Override
public String visit(final JmesPathFlatten flatten, final Void aVoid)
throws InvalidTypeException {
return "new JmesPathFlatten( " + flatten.getFlattenExpr()
.accept(this, aVoid) + ")";
} | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"JmesPathFlatten",
"flatten",
",",
"final",
"Void",
"aVoid",
")",
"throws",
"InvalidTypeException",
"{",
"return",
"\"new JmesPathFlatten( \"",
"+",
"flatten",
".",
"getFlattenExpr",
"(",
")",
".",
"accep... | Generates the code for a new JmesPathFlatten.
@param flatten JmesPath flatten type
@param aVoid void
@return String that represents a call to
the new flatten projection
@throws InvalidTypeException | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"JmesPathFlatten",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L97-L102 |
20,202 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final JmesPathValueProjection valueProjection,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathValueProjection( " + valueProjection.getLhsExpr()
.accept(this, aVoid) + ", " + valueProjection.getRhsExpr()
... | java | @Override
public String visit(final JmesPathValueProjection valueProjection,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathValueProjection( " + valueProjection.getLhsExpr()
.accept(this, aVoid) + ", " + valueProjection.getRhsExpr()
... | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"JmesPathValueProjection",
"valueProjection",
",",
"final",
"Void",
"aVoid",
")",
"throws",
"InvalidTypeException",
"{",
"return",
"\"new JmesPathValueProjection( \"",
"+",
"valueProjection",
".",
"getLhsExpr",
... | Generates the code for a new JmesPathValueProjection.
@param valueProjection JmesPath value projection type
@param aVoid void
@return String that represents a call to
the new value projection
@throws InvalidTypeException | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"JmesPathValueProjection",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L127-L133 |
20,203 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final JmesPathLiteral literal, final Void aVoid) {
return "new JmesPathLiteral(\"" + StringEscapeUtils
.escapeJava(literal.getValue().toString()) + "\")";
} | java | @Override
public String visit(final JmesPathLiteral literal, final Void aVoid) {
return "new JmesPathLiteral(\"" + StringEscapeUtils
.escapeJava(literal.getValue().toString()) + "\")";
} | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"JmesPathLiteral",
"literal",
",",
"final",
"Void",
"aVoid",
")",
"{",
"return",
"\"new JmesPathLiteral(\\\"\"",
"+",
"StringEscapeUtils",
".",
"escapeJava",
"(",
"literal",
".",
"getValue",
"(",
")",
"... | Generates the code for a new JmesPathLiteral.
@param literal JmesPath literal type
@param aVoid void
@return String that represents a call to
the new literal expression | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"JmesPathLiteral",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L143-L148 |
20,204 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final JmesPathFilter filter,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathFilter( " + filter.getLhsExpr().accept(this, aVoid)
+ ", " + filter.getRhsExpr().accept(this, aVoid) + ", "
+ filter.getCompa... | java | @Override
public String visit(final JmesPathFilter filter,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathFilter( " + filter.getLhsExpr().accept(this, aVoid)
+ ", " + filter.getRhsExpr().accept(this, aVoid) + ", "
+ filter.getCompa... | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"JmesPathFilter",
"filter",
",",
"final",
"Void",
"aVoid",
")",
"throws",
"InvalidTypeException",
"{",
"return",
"\"new JmesPathFilter( \"",
"+",
"filter",
".",
"getLhsExpr",
"(",
")",
".",
"accept",
"(... | Generates the code for a new JmesPathFilter.
@param filter JmesPath filter type
@param aVoid void
@return String that represents a call to
the new filter expression
@throws InvalidTypeException | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"JmesPathFilter",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L159-L165 |
20,205 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final JmesPathFunction function,
final Void aVoid) throws InvalidTypeException {
final String prefix = "new " + function.getClass()
.getSimpleName() + "( ";
return function.getExpressions().stream()
.map(a -> a.acc... | java | @Override
public String visit(final JmesPathFunction function,
final Void aVoid) throws InvalidTypeException {
final String prefix = "new " + function.getClass()
.getSimpleName() + "( ";
return function.getExpressions().stream()
.map(a -> a.acc... | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"JmesPathFunction",
"function",
",",
"final",
"Void",
"aVoid",
")",
"throws",
"InvalidTypeException",
"{",
"final",
"String",
"prefix",
"=",
"\"new \"",
"+",
"function",
".",
"getClass",
"(",
")",
"."... | Generates the code for a new JmesPathFunction.
@param function JmesPath function type
@param aVoid void
@return String that represents a call to
the new function expression
@throws InvalidTypeException | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"JmesPathFunction",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L176-L184 |
20,206 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final Comparator op, final Void aVoid)
throws InvalidTypeException {
String lhs = op.getLhsExpr().accept(this, aVoid);
String rhs = op.getRhsExpr().accept(this, aVoid);
return String.format("new %s(%s, %s)", op.getClass()
.getSimpleN... | java | @Override
public String visit(final Comparator op, final Void aVoid)
throws InvalidTypeException {
String lhs = op.getLhsExpr().accept(this, aVoid);
String rhs = op.getRhsExpr().accept(this, aVoid);
return String.format("new %s(%s, %s)", op.getClass()
.getSimpleN... | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"Comparator",
"op",
",",
"final",
"Void",
"aVoid",
")",
"throws",
"InvalidTypeException",
"{",
"String",
"lhs",
"=",
"op",
".",
"getLhsExpr",
"(",
")",
".",
"accept",
"(",
"this",
",",
"aVoid",
... | Generates the code for a new Comparator.
@param op JmesPath comparison operator type
@param aVoid void
@return String that represents a call to
the new comparator expression
@throws InvalidTypeException | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"Comparator",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L195-L203 |
20,207 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final JmesPathNotExpression notExpression,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathNotExpression( " + notExpression.getExpr()
.accept(this, aVoid) + " )";
} | java | @Override
public String visit(final JmesPathNotExpression notExpression,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathNotExpression( " + notExpression.getExpr()
.accept(this, aVoid) + " )";
} | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"JmesPathNotExpression",
"notExpression",
",",
"final",
"Void",
"aVoid",
")",
"throws",
"InvalidTypeException",
"{",
"return",
"\"new JmesPathNotExpression( \"",
"+",
"notExpression",
".",
"getExpr",
"(",
")"... | Generates the code for a new JmesPathNotExpression.
@param notExpression JmesPath not-expression type
@param aVoid void
@return String that represents a call to
the new not-expression
@throws InvalidTypeException | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"JmesPathNotExpression",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L214-L219 |
20,208 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final JmesPathAndExpression andExpression,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathAndExpression( " + andExpression.getLhsExpr()
.accept(this, aVoid) + ", " + andExpression.getRhsExpr()
.accept(... | java | @Override
public String visit(final JmesPathAndExpression andExpression,
final Void aVoid) throws InvalidTypeException {
return "new JmesPathAndExpression( " + andExpression.getLhsExpr()
.accept(this, aVoid) + ", " + andExpression.getRhsExpr()
.accept(... | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"JmesPathAndExpression",
"andExpression",
",",
"final",
"Void",
"aVoid",
")",
"throws",
"InvalidTypeException",
"{",
"return",
"\"new JmesPathAndExpression( \"",
"+",
"andExpression",
".",
"getLhsExpr",
"(",
... | Generates the code for a new JmesPathAndExpression.
@param andExpression JmesPath and-expression type
@param aVoid void
@return String that represents a call to
the new and-expression
@throws InvalidTypeException | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"JmesPathAndExpression",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L230-L236 |
20,209 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java | JmesPathCodeGenVisitor.visit | @Override
public String visit(final JmesPathMultiSelectList multiSelectList,
final Void aVoid) throws InvalidTypeException {
final String prefix = "new JmesPathMultiSelectList( ";
return multiSelectList.getExpressions().stream()
.map(a -> a.accept(this, aVoid)... | java | @Override
public String visit(final JmesPathMultiSelectList multiSelectList,
final Void aVoid) throws InvalidTypeException {
final String prefix = "new JmesPathMultiSelectList( ";
return multiSelectList.getExpressions().stream()
.map(a -> a.accept(this, aVoid)... | [
"@",
"Override",
"public",
"String",
"visit",
"(",
"final",
"JmesPathMultiSelectList",
"multiSelectList",
",",
"final",
"Void",
"aVoid",
")",
"throws",
"InvalidTypeException",
"{",
"final",
"String",
"prefix",
"=",
"\"new JmesPathMultiSelectList( \"",
";",
"return",
"... | Generates the code for a new JmesPathMultiSelectList.
@param multiSelectList JmesPath multiSelectList type
@param aVoid void
@return String that represents a call to
the new multiSelectList
@throws InvalidTypeException | [
"Generates",
"the",
"code",
"for",
"a",
"new",
"JmesPathMultiSelectList",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/JmesPathCodeGenVisitor.java#L247-L254 |
20,210 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/util/AwsHostNameUtils.java | AwsHostNameUtils.localHostName | public static String localHostName() {
try {
InetAddress localhost = InetAddress.getLocalHost();
return localhost.getHostName();
} catch (Exception e) {
InternalLogFactory.getLog(AwsHostNameUtils.class)
.debug(
"Failed to determine ... | java | public static String localHostName() {
try {
InetAddress localhost = InetAddress.getLocalHost();
return localhost.getHostName();
} catch (Exception e) {
InternalLogFactory.getLog(AwsHostNameUtils.class)
.debug(
"Failed to determine ... | [
"public",
"static",
"String",
"localHostName",
"(",
")",
"{",
"try",
"{",
"InetAddress",
"localhost",
"=",
"InetAddress",
".",
"getLocalHost",
"(",
")",
";",
"return",
"localhost",
".",
"getHostName",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")"... | Returns the host name for the local host. If the operation is not allowed
by the security check, the textual representation of the IP address of
the local host is returned instead. If the ip address of the local host
cannot be resolved or if there is any other failure, "localhost" is
returned as a fallback. | [
"Returns",
"the",
"host",
"name",
"for",
"the",
"local",
"host",
".",
"If",
"the",
"operation",
"is",
"not",
"allowed",
"by",
"the",
"security",
"check",
"the",
"textual",
"representation",
"of",
"the",
"IP",
"address",
"of",
"the",
"local",
"host",
"is",
... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/AwsHostNameUtils.java#L235-L246 |
20,211 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBQueryExpression.java | DynamoDBQueryExpression.withExpressionAttributeValues | public DynamoDBQueryExpression<T> withExpressionAttributeValues(
java.util.Map<String, AttributeValue> expressionAttributeValues) {
setExpressionAttributeValues(expressionAttributeValues);
return this;
} | java | public DynamoDBQueryExpression<T> withExpressionAttributeValues(
java.util.Map<String, AttributeValue> expressionAttributeValues) {
setExpressionAttributeValues(expressionAttributeValues);
return this;
} | [
"public",
"DynamoDBQueryExpression",
"<",
"T",
">",
"withExpressionAttributeValues",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"AttributeValue",
">",
"expressionAttributeValues",
")",
"{",
"setExpressionAttributeValues",
"(",
"expressionAttributeValues",
... | One or more values that can be substituted in an expression.
@param expressionAttributeValues
One or more values that can be substituted in an expression.
@return A reference to this updated object so that method calls can be
chained together.
@see QueryRequest#withExpressionAttributeValues(Map) | [
"One",
"or",
"more",
"values",
"that",
"can",
"be",
"substituted",
"in",
"an",
"expression",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBQueryExpression.java#L940-L944 |
20,212 | aws/aws-sdk-java | aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/MessageResponse.java | MessageResponse.withEndpointResult | public MessageResponse withEndpointResult(java.util.Map<String, EndpointMessageResult> endpointResult) {
setEndpointResult(endpointResult);
return this;
} | java | public MessageResponse withEndpointResult(java.util.Map<String, EndpointMessageResult> endpointResult) {
setEndpointResult(endpointResult);
return this;
} | [
"public",
"MessageResponse",
"withEndpointResult",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"EndpointMessageResult",
">",
"endpointResult",
")",
"{",
"setEndpointResult",
"(",
"endpointResult",
")",
";",
"return",
"this",
";",
"}"
] | A map containing a multi part response for each address, with the endpointId as the key and the result as the
value.
@param endpointResult
A map containing a multi part response for each address, with the endpointId as the key and the result as
the value.
@return Returns a reference to this object so that method calls... | [
"A",
"map",
"containing",
"a",
"multi",
"part",
"response",
"for",
"each",
"address",
"with",
"the",
"endpointId",
"as",
"the",
"key",
"and",
"the",
"result",
"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/MessageResponse.java#L113-L116 |
20,213 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ExtraMaterialsDescription.java | ExtraMaterialsDescription.mergeInto | public Map<String, String> mergeInto(Map<String, String> core) {
if (extra.size() == 0)
return core; // no supplemental descriptions
if (core == null || core.size() == 0)
return extra; // only core descriptions
switch(resolve) {
case FAIL_FAST: {
... | java | public Map<String, String> mergeInto(Map<String, String> core) {
if (extra.size() == 0)
return core; // no supplemental descriptions
if (core == null || core.size() == 0)
return extra; // only core descriptions
switch(resolve) {
case FAIL_FAST: {
... | [
"public",
"Map",
"<",
"String",
",",
"String",
">",
"mergeInto",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"core",
")",
"{",
"if",
"(",
"extra",
".",
"size",
"(",
")",
"==",
"0",
")",
"return",
"core",
";",
"// no supplemental descriptions",
"if",... | Combine this supplemental material descriptions with those specified in
the "core" parameter. This method has no side effect.
@param core
the core material descriptions to be supplemented;
assumed to be unmodifiable.
@return the merged material descriptions; never null.
The returned map is always unmodifiable, assumin... | [
"Combine",
"this",
"supplemental",
"material",
"descriptions",
"with",
"those",
"specified",
"in",
"the",
"core",
"parameter",
".",
"This",
"method",
"has",
"no",
"side",
"effect",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ExtraMaterialsDescription.java#L99-L128 |
20,214 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/CreateBrokerRequest.java | CreateBrokerRequest.withTags | public CreateBrokerRequest withTags(java.util.Map<String, String> tags) {
setTags(tags);
return this;
} | java | public CreateBrokerRequest withTags(java.util.Map<String, String> tags) {
setTags(tags);
return this;
} | [
"public",
"CreateBrokerRequest",
"withTags",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"String",
">",
"tags",
")",
"{",
"setTags",
"(",
"tags",
")",
";",
"return",
"this",
";",
"}"
] | Create tags when creating the broker.
@param tags
Create tags when creating the broker.
@return Returns a reference to this object so that method calls can be chained together. | [
"Create",
"tags",
"when",
"creating",
"the",
"broker",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/CreateBrokerRequest.java#L717-L720 |
20,215 | aws/aws-sdk-java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/GeneratePreSignUrlRequestHandler.java | GeneratePreSignUrlRequestHandler.generateRequestForPresigning | private Request<CopySnapshotRequest> generateRequestForPresigning(
String sourceSnapshotId, String sourceRegion,
String destinationRegion) {
CopySnapshotRequest copySnapshotRequest = new CopySnapshotRequest()
.withSourceSnapshotId(sourceSnapshotId)
.withS... | java | private Request<CopySnapshotRequest> generateRequestForPresigning(
String sourceSnapshotId, String sourceRegion,
String destinationRegion) {
CopySnapshotRequest copySnapshotRequest = new CopySnapshotRequest()
.withSourceSnapshotId(sourceSnapshotId)
.withS... | [
"private",
"Request",
"<",
"CopySnapshotRequest",
">",
"generateRequestForPresigning",
"(",
"String",
"sourceSnapshotId",
",",
"String",
"sourceRegion",
",",
"String",
"destinationRegion",
")",
"{",
"CopySnapshotRequest",
"copySnapshotRequest",
"=",
"new",
"CopySnapshotRequ... | Generates a Request object for the pre-signed URL. | [
"Generates",
"a",
"Request",
"object",
"for",
"the",
"pre",
"-",
"signed",
"URL",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/GeneratePreSignUrlRequestHandler.java#L101-L113 |
20,216 | aws/aws-sdk-java | aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/GeneratePreSignUrlRequestHandler.java | GeneratePreSignUrlRequestHandler.toURI | private URI toURI(String endpoint) throws IllegalArgumentException {
if (endpoint.contains("://") == false) {
endpoint = Protocol.HTTPS + "://" + endpoint;
}
try {
return new URI(endpoint);
} catch (URISyntaxException e) {
throw new IllegalArgumentEx... | java | private URI toURI(String endpoint) throws IllegalArgumentException {
if (endpoint.contains("://") == false) {
endpoint = Protocol.HTTPS + "://" + endpoint;
}
try {
return new URI(endpoint);
} catch (URISyntaxException e) {
throw new IllegalArgumentEx... | [
"private",
"URI",
"toURI",
"(",
"String",
"endpoint",
")",
"throws",
"IllegalArgumentException",
"{",
"if",
"(",
"endpoint",
".",
"contains",
"(",
"\"://\"",
")",
"==",
"false",
")",
"{",
"endpoint",
"=",
"Protocol",
".",
"HTTPS",
"+",
"\"://\"",
"+",
"end... | Returns the endpoint as a URI. | [
"Returns",
"the",
"endpoint",
"as",
"a",
"URI",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/GeneratePreSignUrlRequestHandler.java#L143-L154 |
20,217 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/EncryptedPutObjectRequest.java | EncryptedPutObjectRequest.setMaterialsDescription | public void setMaterialsDescription(Map<String, String> materialsDescription) {
this.materialsDescription = materialsDescription == null
? null
: Collections.unmodifiableMap(new HashMap<String,String>(materialsDescription))
;
} | java | public void setMaterialsDescription(Map<String, String> materialsDescription) {
this.materialsDescription = materialsDescription == null
? null
: Collections.unmodifiableMap(new HashMap<String,String>(materialsDescription))
;
} | [
"public",
"void",
"setMaterialsDescription",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"materialsDescription",
")",
"{",
"this",
".",
"materialsDescription",
"=",
"materialsDescription",
"==",
"null",
"?",
"null",
":",
"Collections",
".",
"unmodifiableMap",
"... | sets the materials description for the encryption materials to be used with the current PutObjectRequest.
@param materialsDescription the materialsDescription to set | [
"sets",
"the",
"materials",
"description",
"for",
"the",
"encryption",
"materials",
"to",
"be",
"used",
"with",
"the",
"current",
"PutObjectRequest",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/EncryptedPutObjectRequest.java#L67-L72 |
20,218 | aws/aws-sdk-java | aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/AbstractAmazonRedshiftAsync.java | AbstractAmazonRedshiftAsync.describeClusterParameterGroupsAsync | @Override
public java.util.concurrent.Future<DescribeClusterParameterGroupsResult> describeClusterParameterGroupsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeClusterParameterGroupsRequest, DescribeClusterParameterGroupsResult> asyncHandler) {
return describeClusterParameterGroupsAsync(new... | java | @Override
public java.util.concurrent.Future<DescribeClusterParameterGroupsResult> describeClusterParameterGroupsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeClusterParameterGroupsRequest, DescribeClusterParameterGroupsResult> asyncHandler) {
return describeClusterParameterGroupsAsync(new... | [
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeClusterParameterGroupsResult",
">",
"describeClusterParameterGroupsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeClusterParameterG... | Simplified method form for invoking the DescribeClusterParameterGroups operation with an AsyncHandler.
@see #describeClusterParameterGroupsAsync(DescribeClusterParameterGroupsRequest,
com.amazonaws.handlers.AsyncHandler) | [
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeClusterParameterGroups",
"operation",
"with",
"an",
"AsyncHandler",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/AbstractAmazonRedshiftAsync.java#L463-L468 |
20,219 | aws/aws-sdk-java | aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/AbstractAmazonRedshiftAsync.java | AbstractAmazonRedshiftAsync.describeReservedNodeOfferingsAsync | @Override
public java.util.concurrent.Future<DescribeReservedNodeOfferingsResult> describeReservedNodeOfferingsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeReservedNodeOfferingsRequest, DescribeReservedNodeOfferingsResult> asyncHandler) {
return describeReservedNodeOfferingsAsync(new Desc... | java | @Override
public java.util.concurrent.Future<DescribeReservedNodeOfferingsResult> describeReservedNodeOfferingsAsync(
com.amazonaws.handlers.AsyncHandler<DescribeReservedNodeOfferingsRequest, DescribeReservedNodeOfferingsResult> asyncHandler) {
return describeReservedNodeOfferingsAsync(new Desc... | [
"@",
"Override",
"public",
"java",
".",
"util",
".",
"concurrent",
".",
"Future",
"<",
"DescribeReservedNodeOfferingsResult",
">",
"describeReservedNodeOfferingsAsync",
"(",
"com",
".",
"amazonaws",
".",
"handlers",
".",
"AsyncHandler",
"<",
"DescribeReservedNodeOfferin... | Simplified method form for invoking the DescribeReservedNodeOfferings operation with an AsyncHandler.
@see #describeReservedNodeOfferingsAsync(DescribeReservedNodeOfferingsRequest,
com.amazonaws.handlers.AsyncHandler) | [
"Simplified",
"method",
"form",
"for",
"invoking",
"the",
"DescribeReservedNodeOfferings",
"operation",
"with",
"an",
"AsyncHandler",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/AbstractAmazonRedshiftAsync.java#L953-L958 |
20,220 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/SkipMd5CheckStrategy.java | SkipMd5CheckStrategy.metadataInvolvesSse | private boolean metadataInvolvesSse(ObjectMetadata metadata) {
if (metadata == null) {
return false;
}
return containsNonNull(metadata.getSSECustomerAlgorithm(), metadata.getSSECustomerKeyMd5(),
metadata.getSSEAwsKmsKeyId());
} | java | private boolean metadataInvolvesSse(ObjectMetadata metadata) {
if (metadata == null) {
return false;
}
return containsNonNull(metadata.getSSECustomerAlgorithm(), metadata.getSSECustomerKeyMd5(),
metadata.getSSEAwsKmsKeyId());
} | [
"private",
"boolean",
"metadataInvolvesSse",
"(",
"ObjectMetadata",
"metadata",
")",
"{",
"if",
"(",
"metadata",
"==",
"null",
")",
"{",
"return",
"false",
";",
"}",
"return",
"containsNonNull",
"(",
"metadata",
".",
"getSSECustomerAlgorithm",
"(",
")",
",",
"... | If SSE-C or SSE-KMS is involved then the Etag will be the MD5 of the ciphertext not the
plaintext so we can't validate it client side. Plain SSE with S3 managed keys will return an
Etag that does match the MD5 of the plaintext so it's still eligible for client side
validation.
@param metadata
Metadata of request or re... | [
"If",
"SSE",
"-",
"C",
"or",
"SSE",
"-",
"KMS",
"is",
"involved",
"then",
"the",
"Etag",
"will",
"be",
"the",
"MD5",
"of",
"the",
"ciphertext",
"not",
"the",
"plaintext",
"so",
"we",
"can",
"t",
"validate",
"it",
"client",
"side",
".",
"Plain",
"SSE"... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/SkipMd5CheckStrategy.java#L304-L310 |
20,221 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/SkipMd5CheckStrategy.java | SkipMd5CheckStrategy.containsNonNull | private static boolean containsNonNull(Object... items) {
for (Object item : items) {
if (item != null) {
return true;
}
}
return false;
} | java | private static boolean containsNonNull(Object... items) {
for (Object item : items) {
if (item != null) {
return true;
}
}
return false;
} | [
"private",
"static",
"boolean",
"containsNonNull",
"(",
"Object",
"...",
"items",
")",
"{",
"for",
"(",
"Object",
"item",
":",
"items",
")",
"{",
"if",
"(",
"item",
"!=",
"null",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}"
... | Helper method to avoid long chains of non null checks
@param items
@return True if any of the provided items is not null. False if all items are null. | [
"Helper",
"method",
"to",
"avoid",
"long",
"chains",
"of",
"non",
"null",
"checks"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/SkipMd5CheckStrategy.java#L338-L345 |
20,222 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java | AmazonMQClient.describeBroker | @Override
public DescribeBrokerResult describeBroker(DescribeBrokerRequest request) {
request = beforeClientExecution(request);
return executeDescribeBroker(request);
} | java | @Override
public DescribeBrokerResult describeBroker(DescribeBrokerRequest request) {
request = beforeClientExecution(request);
return executeDescribeBroker(request);
} | [
"@",
"Override",
"public",
"DescribeBrokerResult",
"describeBroker",
"(",
"DescribeBrokerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeBroker",
"(",
"request",
")",
";",
"}"
] | Returns information about the specified broker.
@param describeBrokerRequest
@return Result of the DescribeBroker operation returned by the service.
@throws NotFoundException
HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
@throws BadRequestException
HTTP Status... | [
"Returns",
"information",
"about",
"the",
"specified",
"broker",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java#L580-L584 |
20,223 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java | AmazonMQClient.describeBrokerEngineTypes | @Override
public DescribeBrokerEngineTypesResult describeBrokerEngineTypes(DescribeBrokerEngineTypesRequest request) {
request = beforeClientExecution(request);
return executeDescribeBrokerEngineTypes(request);
} | java | @Override
public DescribeBrokerEngineTypesResult describeBrokerEngineTypes(DescribeBrokerEngineTypesRequest request) {
request = beforeClientExecution(request);
return executeDescribeBrokerEngineTypes(request);
} | [
"@",
"Override",
"public",
"DescribeBrokerEngineTypesResult",
"describeBrokerEngineTypes",
"(",
"DescribeBrokerEngineTypesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeBrokerEngineTypes",
"(",
"requ... | Describe available engine types and versions.
@param describeBrokerEngineTypesRequest
@return Result of the DescribeBrokerEngineTypes operation returned by the service.
@throws BadRequestException
HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
@throws InternalServerEr... | [
"Describe",
"available",
"engine",
"types",
"and",
"versions",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java#L636-L640 |
20,224 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java | AmazonMQClient.describeBrokerInstanceOptions | @Override
public DescribeBrokerInstanceOptionsResult describeBrokerInstanceOptions(DescribeBrokerInstanceOptionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeBrokerInstanceOptions(request);
} | java | @Override
public DescribeBrokerInstanceOptionsResult describeBrokerInstanceOptions(DescribeBrokerInstanceOptionsRequest request) {
request = beforeClientExecution(request);
return executeDescribeBrokerInstanceOptions(request);
} | [
"@",
"Override",
"public",
"DescribeBrokerInstanceOptionsResult",
"describeBrokerInstanceOptions",
"(",
"DescribeBrokerInstanceOptionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeBrokerInstanceOptions"... | Describe available broker instance options.
@param describeBrokerInstanceOptionsRequest
@return Result of the DescribeBrokerInstanceOptions operation returned by the service.
@throws BadRequestException
HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
@throws InternalSe... | [
"Describe",
"available",
"broker",
"instance",
"options",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java#L694-L698 |
20,225 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java | AmazonMQClient.describeConfiguration | @Override
public DescribeConfigurationResult describeConfiguration(DescribeConfigurationRequest request) {
request = beforeClientExecution(request);
return executeDescribeConfiguration(request);
} | java | @Override
public DescribeConfigurationResult describeConfiguration(DescribeConfigurationRequest request) {
request = beforeClientExecution(request);
return executeDescribeConfiguration(request);
} | [
"@",
"Override",
"public",
"DescribeConfigurationResult",
"describeConfiguration",
"(",
"DescribeConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeConfiguration",
"(",
"request",
")",
"... | Returns information about the specified configuration.
@param describeConfigurationRequest
@return Result of the DescribeConfiguration operation returned by the service.
@throws NotFoundException
HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
@throws BadRequest... | [
"Returns",
"information",
"about",
"the",
"specified",
"configuration",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java#L754-L758 |
20,226 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java | AmazonMQClient.describeConfigurationRevision | @Override
public DescribeConfigurationRevisionResult describeConfigurationRevision(DescribeConfigurationRevisionRequest request) {
request = beforeClientExecution(request);
return executeDescribeConfigurationRevision(request);
} | java | @Override
public DescribeConfigurationRevisionResult describeConfigurationRevision(DescribeConfigurationRevisionRequest request) {
request = beforeClientExecution(request);
return executeDescribeConfigurationRevision(request);
} | [
"@",
"Override",
"public",
"DescribeConfigurationRevisionResult",
"describeConfigurationRevision",
"(",
"DescribeConfigurationRevisionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeConfigurationRevision"... | Returns the specified configuration revision for the specified configuration.
@param describeConfigurationRevisionRequest
@return Result of the DescribeConfigurationRevision operation returned by the service.
@throws NotFoundException
HTTP Status Code 404: Resource not found due to incorrect input. Correct your reques... | [
"Returns",
"the",
"specified",
"configuration",
"revision",
"for",
"the",
"specified",
"configuration",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java#L813-L817 |
20,227 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java | AmazonMQClient.listBrokers | @Override
public ListBrokersResult listBrokers(ListBrokersRequest request) {
request = beforeClientExecution(request);
return executeListBrokers(request);
} | java | @Override
public ListBrokersResult listBrokers(ListBrokersRequest request) {
request = beforeClientExecution(request);
return executeListBrokers(request);
} | [
"@",
"Override",
"public",
"ListBrokersResult",
"listBrokers",
"(",
"ListBrokersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListBrokers",
"(",
"request",
")",
";",
"}"
] | Returns a list of all brokers.
@param listBrokersRequest
@return Result of the ListBrokers operation returned by the service.
@throws BadRequestException
HTTP Status Code 400: Bad request due to incorrect input. Correct your request and then retry it.
@throws InternalServerErrorException
HTTP Status Code 500: Unexpect... | [
"Returns",
"a",
"list",
"of",
"all",
"brokers",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java#L929-L933 |
20,228 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java | AmazonMQClient.listConfigurationRevisions | @Override
public ListConfigurationRevisionsResult listConfigurationRevisions(ListConfigurationRevisionsRequest request) {
request = beforeClientExecution(request);
return executeListConfigurationRevisions(request);
} | java | @Override
public ListConfigurationRevisionsResult listConfigurationRevisions(ListConfigurationRevisionsRequest request) {
request = beforeClientExecution(request);
return executeListConfigurationRevisions(request);
} | [
"@",
"Override",
"public",
"ListConfigurationRevisionsResult",
"listConfigurationRevisions",
"(",
"ListConfigurationRevisionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListConfigurationRevisions",
"(",
"... | Returns a list of all revisions for the specified configuration.
@param listConfigurationRevisionsRequest
@return Result of the ListConfigurationRevisions operation returned by the service.
@throws NotFoundException
HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it... | [
"Returns",
"a",
"list",
"of",
"all",
"revisions",
"for",
"the",
"specified",
"configuration",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java#L987-L991 |
20,229 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java | AmazonMQClient.updateBroker | @Override
public UpdateBrokerResult updateBroker(UpdateBrokerRequest request) {
request = beforeClientExecution(request);
return executeUpdateBroker(request);
} | java | @Override
public UpdateBrokerResult updateBroker(UpdateBrokerRequest request) {
request = beforeClientExecution(request);
return executeUpdateBroker(request);
} | [
"@",
"Override",
"public",
"UpdateBrokerResult",
"updateBroker",
"(",
"UpdateBrokerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateBroker",
"(",
"request",
")",
";",
"}"
] | Adds a pending configuration change to a broker.
@param updateBrokerRequest
Updates the broker using the specified properties.
@return Result of the UpdateBroker operation returned by the service.
@throws NotFoundException
HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then r... | [
"Adds",
"a",
"pending",
"configuration",
"change",
"to",
"a",
"broker",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java#L1281-L1285 |
20,230 | aws/aws-sdk-java | aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java | AmazonMQClient.updateConfiguration | @Override
public UpdateConfigurationResult updateConfiguration(UpdateConfigurationRequest request) {
request = beforeClientExecution(request);
return executeUpdateConfiguration(request);
} | java | @Override
public UpdateConfigurationResult updateConfiguration(UpdateConfigurationRequest request) {
request = beforeClientExecution(request);
return executeUpdateConfiguration(request);
} | [
"@",
"Override",
"public",
"UpdateConfigurationResult",
"updateConfiguration",
"(",
"UpdateConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateConfiguration",
"(",
"request",
")",
";",
"}... | Updates the specified configuration.
@param updateConfigurationRequest
Updates the specified configuration.
@return Result of the UpdateConfiguration operation returned by the service.
@throws NotFoundException
HTTP Status Code 404: Resource not found due to incorrect input. Correct your request and then retry it.
@th... | [
"Updates",
"the",
"specified",
"configuration",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/AmazonMQClient.java#L1342-L1346 |
20,231 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.initClients | protected static void initClients() throws Exception {
/*
* The ProfileCredentialsProvider will return your [default] credential
* profile by reading from the credentials file located at
* (~/.aws/credentials).
*/
ProfileCredentialsProvider credentialsProvider = new P... | java | protected static void initClients() throws Exception {
/*
* The ProfileCredentialsProvider will return your [default] credential
* profile by reading from the credentials file located at
* (~/.aws/credentials).
*/
ProfileCredentialsProvider credentialsProvider = new P... | [
"protected",
"static",
"void",
"initClients",
"(",
")",
"throws",
"Exception",
"{",
"/*\n * The ProfileCredentialsProvider will return your [default] credential\n * profile by reading from the credentials file located at\n * (~/.aws/credentials).\n */",
"ProfileCr... | Method to initialize the clients using the specified AWSCredentials.
@param Exception | [
"Method",
"to",
"initialize",
"the",
"clients",
"using",
"the",
"specified",
"AWSCredentials",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L119-L152 |
20,232 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.createS3Bucket | protected static void createS3Bucket() throws Exception {
if (StringUtils.isNullOrEmpty(s3BucketName.trim())) {
throw new IllegalArgumentException("Bucket name is empty. Please enter a bucket name "
+ "in firehosetos3sample.properties file");
}
// Create S3 bucke... | java | protected static void createS3Bucket() throws Exception {
if (StringUtils.isNullOrEmpty(s3BucketName.trim())) {
throw new IllegalArgumentException("Bucket name is empty. Please enter a bucket name "
+ "in firehosetos3sample.properties file");
}
// Create S3 bucke... | [
"protected",
"static",
"void",
"createS3Bucket",
"(",
")",
"throws",
"Exception",
"{",
"if",
"(",
"StringUtils",
".",
"isNullOrEmpty",
"(",
"s3BucketName",
".",
"trim",
"(",
")",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Bucket name is e... | Method to create the S3 bucket in specified region.
@throws Exception | [
"Method",
"to",
"create",
"the",
"S3",
"bucket",
"in",
"specified",
"region",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L159-L170 |
20,233 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.printDeliveryStreams | protected static void printDeliveryStreams() {
// list all of my DeliveryStreams
List<String> deliveryStreamNames = listDeliveryStreams();
LOG.info("Printing my list of DeliveryStreams : ");
if (deliveryStreamNames.isEmpty()) {
LOG.info("There are no DeliveryStreams for accou... | java | protected static void printDeliveryStreams() {
// list all of my DeliveryStreams
List<String> deliveryStreamNames = listDeliveryStreams();
LOG.info("Printing my list of DeliveryStreams : ");
if (deliveryStreamNames.isEmpty()) {
LOG.info("There are no DeliveryStreams for accou... | [
"protected",
"static",
"void",
"printDeliveryStreams",
"(",
")",
"{",
"// list all of my DeliveryStreams",
"List",
"<",
"String",
">",
"deliveryStreamNames",
"=",
"listDeliveryStreams",
"(",
")",
";",
"LOG",
".",
"info",
"(",
"\"Printing my list of DeliveryStreams : \"",
... | Method to print all the delivery streams in the customer account. | [
"Method",
"to",
"print",
"all",
"the",
"delivery",
"streams",
"in",
"the",
"customer",
"account",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L175-L188 |
20,234 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.listDeliveryStreams | protected static List<String> listDeliveryStreams() {
ListDeliveryStreamsRequest listDeliveryStreamsRequest = new ListDeliveryStreamsRequest();
ListDeliveryStreamsResult listDeliveryStreamsResult =
firehoseClient.listDeliveryStreams(listDeliveryStreamsRequest);
List<String> deliv... | java | protected static List<String> listDeliveryStreams() {
ListDeliveryStreamsRequest listDeliveryStreamsRequest = new ListDeliveryStreamsRequest();
ListDeliveryStreamsResult listDeliveryStreamsResult =
firehoseClient.listDeliveryStreams(listDeliveryStreamsRequest);
List<String> deliv... | [
"protected",
"static",
"List",
"<",
"String",
">",
"listDeliveryStreams",
"(",
")",
"{",
"ListDeliveryStreamsRequest",
"listDeliveryStreamsRequest",
"=",
"new",
"ListDeliveryStreamsRequest",
"(",
")",
";",
"ListDeliveryStreamsResult",
"listDeliveryStreamsResult",
"=",
"fire... | Method to list all the delivery streams in the customer account.
@return the collection of delivery streams | [
"Method",
"to",
"list",
"all",
"the",
"delivery",
"streams",
"in",
"the",
"customer",
"account",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L195-L210 |
20,235 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.putRecordIntoDeliveryStream | protected static void putRecordIntoDeliveryStream() throws IOException {
try (InputStream inputStream =
Thread.currentThread().getContextClassLoader().getResourceAsStream(PUT_RECORD_STREAM_SOURCE)) {
if (inputStream == null) {
throw new FileNotFoundException("Could no... | java | protected static void putRecordIntoDeliveryStream() throws IOException {
try (InputStream inputStream =
Thread.currentThread().getContextClassLoader().getResourceAsStream(PUT_RECORD_STREAM_SOURCE)) {
if (inputStream == null) {
throw new FileNotFoundException("Could no... | [
"protected",
"static",
"void",
"putRecordIntoDeliveryStream",
"(",
")",
"throws",
"IOException",
"{",
"try",
"(",
"InputStream",
"inputStream",
"=",
"Thread",
".",
"currentThread",
"(",
")",
".",
"getContextClassLoader",
"(",
")",
".",
"getResourceAsStream",
"(",
... | Method to put records in the specified delivery stream by reading
contents from sample input file using PutRecord API.
@throws IOException | [
"Method",
"to",
"put",
"records",
"in",
"the",
"specified",
"delivery",
"stream",
"by",
"reading",
"contents",
"from",
"sample",
"input",
"file",
"using",
"PutRecord",
"API",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L218-L240 |
20,236 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.putRecordBatchIntoDeliveryStream | protected static void putRecordBatchIntoDeliveryStream() throws IOException {
try (InputStream inputStream =
Thread.currentThread().getContextClassLoader().getResourceAsStream(BATCH_PUT_STREAM_SOURCE)) {
if (inputStream == null) {
throw new FileNotFoundException("Coul... | java | protected static void putRecordBatchIntoDeliveryStream() throws IOException {
try (InputStream inputStream =
Thread.currentThread().getContextClassLoader().getResourceAsStream(BATCH_PUT_STREAM_SOURCE)) {
if (inputStream == null) {
throw new FileNotFoundException("Coul... | [
"protected",
"static",
"void",
"putRecordBatchIntoDeliveryStream",
"(",
")",
"throws",
"IOException",
"{",
"try",
"(",
"InputStream",
"inputStream",
"=",
"Thread",
".",
"currentThread",
"(",
")",
".",
"getContextClassLoader",
"(",
")",
".",
"getResourceAsStream",
"(... | Method to put records in the specified delivery stream by reading
contents from sample input file using PutRecordBatch API.
@throws IOException | [
"Method",
"to",
"put",
"records",
"in",
"the",
"specified",
"delivery",
"stream",
"by",
"reading",
"contents",
"from",
"sample",
"input",
"file",
"using",
"PutRecordBatch",
"API",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L248-L278 |
20,237 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.createIamRole | protected static String createIamRole(String s3Prefix) throws InterruptedException {
try {
//set trust policy for the role
iamClient.createRole(new CreateRoleRequest()
.withRoleName(iamRoleName)
.withAssumeRolePolicyDocument(getTrustPolicy()));
... | java | protected static String createIamRole(String s3Prefix) throws InterruptedException {
try {
//set trust policy for the role
iamClient.createRole(new CreateRoleRequest()
.withRoleName(iamRoleName)
.withAssumeRolePolicyDocument(getTrustPolicy()));
... | [
"protected",
"static",
"String",
"createIamRole",
"(",
"String",
"s3Prefix",
")",
"throws",
"InterruptedException",
"{",
"try",
"{",
"//set trust policy for the role",
"iamClient",
".",
"createRole",
"(",
"new",
"CreateRoleRequest",
"(",
")",
".",
"withRoleName",
"(",... | Method to create the IAM role.
@param s3Prefix the s3Prefix to be specified in role policy (only when KMS key ARN is specified)
@return the role ARN
@throws InterruptedException | [
"Method",
"to",
"create",
"the",
"IAM",
"role",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L287-L309 |
20,238 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.waitForDeliveryStreamToBecomeAvailable | protected static void waitForDeliveryStreamToBecomeAvailable(String deliveryStreamName) throws Exception {
LOG.info("Waiting for " + deliveryStreamName + " to become ACTIVE...");
long startTime = System.currentTimeMillis();
long endTime = startTime + (10 * 60 * 1000);
while (System.cur... | java | protected static void waitForDeliveryStreamToBecomeAvailable(String deliveryStreamName) throws Exception {
LOG.info("Waiting for " + deliveryStreamName + " to become ACTIVE...");
long startTime = System.currentTimeMillis();
long endTime = startTime + (10 * 60 * 1000);
while (System.cur... | [
"protected",
"static",
"void",
"waitForDeliveryStreamToBecomeAvailable",
"(",
"String",
"deliveryStreamName",
")",
"throws",
"Exception",
"{",
"LOG",
".",
"info",
"(",
"\"Waiting for \"",
"+",
"deliveryStreamName",
"+",
"\" to become ACTIVE...\"",
")",
";",
"long",
"sta... | Method to wait until the delivery stream becomes active.
@param deliveryStreamName the delivery stream
@throws Exception | [
"Method",
"to",
"wait",
"until",
"the",
"delivery",
"stream",
"becomes",
"active",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L317-L339 |
20,239 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.describeDeliveryStream | protected static DeliveryStreamDescription describeDeliveryStream(String deliveryStreamName) {
DescribeDeliveryStreamRequest describeDeliveryStreamRequest = new DescribeDeliveryStreamRequest();
describeDeliveryStreamRequest.withDeliveryStreamName(deliveryStreamName);
DescribeDeliveryStreamResult... | java | protected static DeliveryStreamDescription describeDeliveryStream(String deliveryStreamName) {
DescribeDeliveryStreamRequest describeDeliveryStreamRequest = new DescribeDeliveryStreamRequest();
describeDeliveryStreamRequest.withDeliveryStreamName(deliveryStreamName);
DescribeDeliveryStreamResult... | [
"protected",
"static",
"DeliveryStreamDescription",
"describeDeliveryStream",
"(",
"String",
"deliveryStreamName",
")",
"{",
"DescribeDeliveryStreamRequest",
"describeDeliveryStreamRequest",
"=",
"new",
"DescribeDeliveryStreamRequest",
"(",
")",
";",
"describeDeliveryStreamRequest"... | Method to describe the delivery stream.
@param deliveryStreamName the delivery stream
@return the delivery description | [
"Method",
"to",
"describe",
"the",
"delivery",
"stream",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L347-L353 |
20,240 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.waitForDataDelivery | protected static void waitForDataDelivery(int waitTimeSecs) throws InterruptedException {
LOG.info("Since the Buffering Hints IntervalInSeconds parameter is specified as: " + waitTimeSecs
+ " seconds. Waiting for " + waitTimeSecs + " seconds for the data to be written to S3 bucket");
Tim... | java | protected static void waitForDataDelivery(int waitTimeSecs) throws InterruptedException {
LOG.info("Since the Buffering Hints IntervalInSeconds parameter is specified as: " + waitTimeSecs
+ " seconds. Waiting for " + waitTimeSecs + " seconds for the data to be written to S3 bucket");
Tim... | [
"protected",
"static",
"void",
"waitForDataDelivery",
"(",
"int",
"waitTimeSecs",
")",
"throws",
"InterruptedException",
"{",
"LOG",
".",
"info",
"(",
"\"Since the Buffering Hints IntervalInSeconds parameter is specified as: \"",
"+",
"waitTimeSecs",
"+",
"\" seconds. Waiting f... | Method to wait for the specified buffering interval seconds so that data
will be delivered to corresponding destination.
@param waitTimeSecs the buffering interval seconds to wait upon
@throws InterruptedException | [
"Method",
"to",
"wait",
"for",
"the",
"specified",
"buffering",
"interval",
"seconds",
"so",
"that",
"data",
"will",
"be",
"delivered",
"to",
"corresponding",
"destination",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L362-L368 |
20,241 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.getBucketARN | protected static String getBucketARN(String bucketName) throws IllegalArgumentException {
return new StringBuilder().append(S3_ARN_PREFIX).append(bucketName).toString();
} | java | protected static String getBucketARN(String bucketName) throws IllegalArgumentException {
return new StringBuilder().append(S3_ARN_PREFIX).append(bucketName).toString();
} | [
"protected",
"static",
"String",
"getBucketARN",
"(",
"String",
"bucketName",
")",
"throws",
"IllegalArgumentException",
"{",
"return",
"new",
"StringBuilder",
"(",
")",
".",
"append",
"(",
"S3_ARN_PREFIX",
")",
".",
"append",
"(",
"bucketName",
")",
".",
"toStr... | Method to return the bucket ARN.
@param bucketName the bucket name to be formulated as ARN
@return the bucket ARN
@throws IllegalArgumentException | [
"Method",
"to",
"return",
"the",
"bucket",
"ARN",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L377-L379 |
20,242 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.putRecordBatch | private static PutRecordBatchResult putRecordBatch(List<Record> recordList) {
PutRecordBatchRequest putRecordBatchRequest = new PutRecordBatchRequest();
putRecordBatchRequest.setDeliveryStreamName(deliveryStreamName);
putRecordBatchRequest.setRecords(recordList);
// Put Record Batch rec... | java | private static PutRecordBatchResult putRecordBatch(List<Record> recordList) {
PutRecordBatchRequest putRecordBatchRequest = new PutRecordBatchRequest();
putRecordBatchRequest.setDeliveryStreamName(deliveryStreamName);
putRecordBatchRequest.setRecords(recordList);
// Put Record Batch rec... | [
"private",
"static",
"PutRecordBatchResult",
"putRecordBatch",
"(",
"List",
"<",
"Record",
">",
"recordList",
")",
"{",
"PutRecordBatchRequest",
"putRecordBatchRequest",
"=",
"new",
"PutRecordBatchRequest",
"(",
")",
";",
"putRecordBatchRequest",
".",
"setDeliveryStreamNa... | Method to perform PutRecordBatch operation with the given record list.
@param recordList the collection of records
@return the output of PutRecordBatch | [
"Method",
"to",
"perform",
"PutRecordBatch",
"operation",
"with",
"the",
"given",
"record",
"list",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L387-L395 |
20,243 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.putRolePolicy | protected static void putRolePolicy(String s3Prefix) {
try {
// set permissions policy for the role
String permissionsPolicyDocument =
containsKMSKeyARN() ? getPermissionsPolicyWithKMSResources(s3Prefix)
: getPermissionsPolicyWithoutKMSReso... | java | protected static void putRolePolicy(String s3Prefix) {
try {
// set permissions policy for the role
String permissionsPolicyDocument =
containsKMSKeyARN() ? getPermissionsPolicyWithKMSResources(s3Prefix)
: getPermissionsPolicyWithoutKMSReso... | [
"protected",
"static",
"void",
"putRolePolicy",
"(",
"String",
"s3Prefix",
")",
"{",
"try",
"{",
"// set permissions policy for the role",
"String",
"permissionsPolicyDocument",
"=",
"containsKMSKeyARN",
"(",
")",
"?",
"getPermissionsPolicyWithKMSResources",
"(",
"s3Prefix"... | Method to put the role policy with permissions document. Permission document would change
based on KMS Key ARN specified in properties file. If KMS Key ARN is specified, permissions
document will contain KMS resource.
@param s3Prefix the s3Prefix which will be included in KMS Condition (only if KMS Key is provided) | [
"Method",
"to",
"put",
"the",
"role",
"policy",
"with",
"permissions",
"document",
".",
"Permission",
"document",
"would",
"change",
"based",
"on",
"KMS",
"Key",
"ARN",
"specified",
"in",
"properties",
"file",
".",
"If",
"KMS",
"Key",
"ARN",
"is",
"specified... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L404-L420 |
20,244 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.getPermissionsPolicyWithKMSResources | private static String getPermissionsPolicyWithKMSResources(String s3Prefix) {
return readResource(IAM_ROLE_PERMISSIONS_POLICY_WITH_KMS_RESOURCES_DOCUMENT)
.replace("{{S3_BUCKET_NAME}}", s3BucketName)
.replace("{{KMS_KEY_ARN}}", s3DestinationAWSKMSKeyId)
.replace("... | java | private static String getPermissionsPolicyWithKMSResources(String s3Prefix) {
return readResource(IAM_ROLE_PERMISSIONS_POLICY_WITH_KMS_RESOURCES_DOCUMENT)
.replace("{{S3_BUCKET_NAME}}", s3BucketName)
.replace("{{KMS_KEY_ARN}}", s3DestinationAWSKMSKeyId)
.replace("... | [
"private",
"static",
"String",
"getPermissionsPolicyWithKMSResources",
"(",
"String",
"s3Prefix",
")",
"{",
"return",
"readResource",
"(",
"IAM_ROLE_PERMISSIONS_POLICY_WITH_KMS_RESOURCES_DOCUMENT",
")",
".",
"replace",
"(",
"\"{{S3_BUCKET_NAME}}\"",
",",
"s3BucketName",
")",
... | Method to return the permissions policy document with KMS resource.
@param s3Prefix the s3Prefix to be specified in KMS Condition
@return the permissions policy document | [
"Method",
"to",
"return",
"the",
"permissions",
"policy",
"document",
"with",
"KMS",
"resource",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L438-L444 |
20,245 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.readResource | private static String readResource(String name) {
try {
return IOUtils.toString(AmazonKinesisFirehoseToRedshiftSample.class.getResourceAsStream(name));
} catch (IOException e) {
throw new RuntimeException("Failed to read document resource: " + name, e);
}
} | java | private static String readResource(String name) {
try {
return IOUtils.toString(AmazonKinesisFirehoseToRedshiftSample.class.getResourceAsStream(name));
} catch (IOException e) {
throw new RuntimeException("Failed to read document resource: " + name, e);
}
} | [
"private",
"static",
"String",
"readResource",
"(",
"String",
"name",
")",
"{",
"try",
"{",
"return",
"IOUtils",
".",
"toString",
"(",
"AmazonKinesisFirehoseToRedshiftSample",
".",
"class",
".",
"getResourceAsStream",
"(",
"name",
")",
")",
";",
"}",
"catch",
... | Method to read the resource for the given filename.
@param name the file name
@return the input stream as string | [
"Method",
"to",
"read",
"the",
"resource",
"for",
"the",
"given",
"filename",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L462-L468 |
20,246 | aws/aws-sdk-java | src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java | AbstractAmazonKinesisFirehoseDelivery.createRecord | private static Record createRecord(String data) {
return new Record().withData(ByteBuffer.wrap(data.getBytes()));
} | java | private static Record createRecord(String data) {
return new Record().withData(ByteBuffer.wrap(data.getBytes()));
} | [
"private",
"static",
"Record",
"createRecord",
"(",
"String",
"data",
")",
"{",
"return",
"new",
"Record",
"(",
")",
".",
"withData",
"(",
"ByteBuffer",
".",
"wrap",
"(",
"data",
".",
"getBytes",
"(",
")",
")",
")",
";",
"}"
] | Method to create the record object for given data.
@param data the content data
@return the Record object | [
"Method",
"to",
"create",
"the",
"record",
"object",
"for",
"given",
"data",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonKinesisFirehose/AbstractAmazonKinesisFirehoseDelivery.java#L485-L487 |
20,247 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/S3ProgressPublisher.java | S3ProgressPublisher.publishTransferPersistable | public static Future<?> publishTransferPersistable(
final ProgressListener listener,
final PersistableTransfer persistableTransfer) {
if (persistableTransfer == null || !(listener instanceof S3ProgressListener)) {
return null;
}
final S3ProgressListener s3list... | java | public static Future<?> publishTransferPersistable(
final ProgressListener listener,
final PersistableTransfer persistableTransfer) {
if (persistableTransfer == null || !(listener instanceof S3ProgressListener)) {
return null;
}
final S3ProgressListener s3list... | [
"public",
"static",
"Future",
"<",
"?",
">",
"publishTransferPersistable",
"(",
"final",
"ProgressListener",
"listener",
",",
"final",
"PersistableTransfer",
"persistableTransfer",
")",
"{",
"if",
"(",
"persistableTransfer",
"==",
"null",
"||",
"!",
"(",
"listener",... | Used to deliver a persistable transfer to the given s3 listener.
@param listener only listener of type {@link S3ProgressListener} will be
notified.
@return the future of a submitted task; or null if the delivery is
synchronous with no future task involved. Note a listener should never
block, and therefore returning ... | [
"Used",
"to",
"deliver",
"a",
"persistable",
"transfer",
"to",
"the",
"given",
"s3",
"listener",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/S3ProgressPublisher.java#L40-L48 |
20,248 | aws/aws-sdk-java | aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/waiters/AmazonMachineLearningWaiters.java | AmazonMachineLearningWaiters.batchPredictionAvailable | public Waiter<DescribeBatchPredictionsRequest> batchPredictionAvailable() {
return new WaiterBuilder<DescribeBatchPredictionsRequest, DescribeBatchPredictionsResult>()
.withSdkFunction(new DescribeBatchPredictionsFunction(client))
.withAcceptors(new BatchPredictionAvailable.IsCO... | java | public Waiter<DescribeBatchPredictionsRequest> batchPredictionAvailable() {
return new WaiterBuilder<DescribeBatchPredictionsRequest, DescribeBatchPredictionsResult>()
.withSdkFunction(new DescribeBatchPredictionsFunction(client))
.withAcceptors(new BatchPredictionAvailable.IsCO... | [
"public",
"Waiter",
"<",
"DescribeBatchPredictionsRequest",
">",
"batchPredictionAvailable",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeBatchPredictionsRequest",
",",
"DescribeBatchPredictionsResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
... | Builds a BatchPredictionAvailable 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 s... | [
"Builds",
"a",
"BatchPredictionAvailable",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/waiters/AmazonMachineLearningWaiters.java#L51-L58 |
20,249 | aws/aws-sdk-java | aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/waiters/AmazonMachineLearningWaiters.java | AmazonMachineLearningWaiters.mLModelAvailable | public Waiter<DescribeMLModelsRequest> mLModelAvailable() {
return new WaiterBuilder<DescribeMLModelsRequest, DescribeMLModelsResult>().withSdkFunction(new DescribeMLModelsFunction(client))
.withAcceptors(new MLModelAvailable.IsCOMPLETEDMatcher(), new MLModelAvailable.IsFAILEDMatcher())
... | java | public Waiter<DescribeMLModelsRequest> mLModelAvailable() {
return new WaiterBuilder<DescribeMLModelsRequest, DescribeMLModelsResult>().withSdkFunction(new DescribeMLModelsFunction(client))
.withAcceptors(new MLModelAvailable.IsCOMPLETEDMatcher(), new MLModelAvailable.IsFAILEDMatcher())
... | [
"public",
"Waiter",
"<",
"DescribeMLModelsRequest",
">",
"mLModelAvailable",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeMLModelsRequest",
",",
"DescribeMLModelsResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeMLModelsFunction",
... | Builds a MLModelAvailable 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",
"MLModelAvailable",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/waiters/AmazonMachineLearningWaiters.java#L65-L71 |
20,250 | aws/aws-sdk-java | aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/waiters/AmazonMachineLearningWaiters.java | AmazonMachineLearningWaiters.dataSourceAvailable | public Waiter<DescribeDataSourcesRequest> dataSourceAvailable() {
return new WaiterBuilder<DescribeDataSourcesRequest, DescribeDataSourcesResult>().withSdkFunction(new DescribeDataSourcesFunction(client))
.withAcceptors(new DataSourceAvailable.IsCOMPLETEDMatcher(), new DataSourceAvailable.IsFAI... | java | public Waiter<DescribeDataSourcesRequest> dataSourceAvailable() {
return new WaiterBuilder<DescribeDataSourcesRequest, DescribeDataSourcesResult>().withSdkFunction(new DescribeDataSourcesFunction(client))
.withAcceptors(new DataSourceAvailable.IsCOMPLETEDMatcher(), new DataSourceAvailable.IsFAI... | [
"public",
"Waiter",
"<",
"DescribeDataSourcesRequest",
">",
"dataSourceAvailable",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeDataSourcesRequest",
",",
"DescribeDataSourcesResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeDataSourc... | Builds a DataSourceAvailable 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 strate... | [
"Builds",
"a",
"DataSourceAvailable",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resou... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/waiters/AmazonMachineLearningWaiters.java#L78-L84 |
20,251 | aws/aws-sdk-java | aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/waiters/AmazonMachineLearningWaiters.java | AmazonMachineLearningWaiters.evaluationAvailable | public Waiter<DescribeEvaluationsRequest> evaluationAvailable() {
return new WaiterBuilder<DescribeEvaluationsRequest, DescribeEvaluationsResult>().withSdkFunction(new DescribeEvaluationsFunction(client))
.withAcceptors(new EvaluationAvailable.IsCOMPLETEDMatcher(), new EvaluationAvailable.IsFAI... | java | public Waiter<DescribeEvaluationsRequest> evaluationAvailable() {
return new WaiterBuilder<DescribeEvaluationsRequest, DescribeEvaluationsResult>().withSdkFunction(new DescribeEvaluationsFunction(client))
.withAcceptors(new EvaluationAvailable.IsCOMPLETEDMatcher(), new EvaluationAvailable.IsFAI... | [
"public",
"Waiter",
"<",
"DescribeEvaluationsRequest",
">",
"evaluationAvailable",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeEvaluationsRequest",
",",
"DescribeEvaluationsResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeEvaluatio... | Builds a EvaluationAvailable 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 strate... | [
"Builds",
"a",
"EvaluationAvailable",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resou... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-machinelearning/src/main/java/com/amazonaws/services/machinelearning/waiters/AmazonMachineLearningWaiters.java#L91-L97 |
20,252 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/iterable/S3Versions.java | S3Versions.withPrefix | public static S3Versions withPrefix(AmazonS3 s3, String bucketName,
String prefix) {
S3Versions versions = new S3Versions(s3, bucketName);
versions.prefix = prefix;
return versions;
} | java | public static S3Versions withPrefix(AmazonS3 s3, String bucketName,
String prefix) {
S3Versions versions = new S3Versions(s3, bucketName);
versions.prefix = prefix;
return versions;
} | [
"public",
"static",
"S3Versions",
"withPrefix",
"(",
"AmazonS3",
"s3",
",",
"String",
"bucketName",
",",
"String",
"prefix",
")",
"{",
"S3Versions",
"versions",
"=",
"new",
"S3Versions",
"(",
"s3",
",",
"bucketName",
")",
";",
"versions",
".",
"prefix",
"=",... | Constructs an iterable that covers the versions in an Amazon S3 bucket
where the object key begins with the given prefix.
@param s3
The Amazon S3 client.
@param bucketName
The bucket name.
@param prefix
The prefix.
@return An iterator for object version summaries. | [
"Constructs",
"an",
"iterable",
"that",
"covers",
"the",
"versions",
"in",
"an",
"Amazon",
"S3",
"bucket",
"where",
"the",
"object",
"key",
"begins",
"with",
"the",
"given",
"prefix",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/iterable/S3Versions.java#L77-L82 |
20,253 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/iterable/S3Versions.java | S3Versions.forKey | public static S3Versions forKey(AmazonS3 s3, String bucketName, String key) {
S3Versions versions = new S3Versions(s3, bucketName);
versions.key = key;
return versions;
} | java | public static S3Versions forKey(AmazonS3 s3, String bucketName, String key) {
S3Versions versions = new S3Versions(s3, bucketName);
versions.key = key;
return versions;
} | [
"public",
"static",
"S3Versions",
"forKey",
"(",
"AmazonS3",
"s3",
",",
"String",
"bucketName",
",",
"String",
"key",
")",
"{",
"S3Versions",
"versions",
"=",
"new",
"S3Versions",
"(",
"s3",
",",
"bucketName",
")",
";",
"versions",
".",
"key",
"=",
"key",
... | Constructs an iterable that covers the versions of a single Amazon S3
object.
@param s3
The Amazon S3 client.
@param bucketName
The bucket name.
@param key
The key.
@return An iterator for object version summaries. | [
"Constructs",
"an",
"iterable",
"that",
"covers",
"the",
"versions",
"of",
"a",
"single",
"Amazon",
"S3",
"object",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/iterable/S3Versions.java#L96-L100 |
20,254 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/AudioChannelMapping.java | AudioChannelMapping.setInputChannelLevels | public void setInputChannelLevels(java.util.Collection<InputChannelLevel> inputChannelLevels) {
if (inputChannelLevels == null) {
this.inputChannelLevels = null;
return;
}
this.inputChannelLevels = new java.util.ArrayList<InputChannelLevel>(inputChannelLevels);
} | java | public void setInputChannelLevels(java.util.Collection<InputChannelLevel> inputChannelLevels) {
if (inputChannelLevels == null) {
this.inputChannelLevels = null;
return;
}
this.inputChannelLevels = new java.util.ArrayList<InputChannelLevel>(inputChannelLevels);
} | [
"public",
"void",
"setInputChannelLevels",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"InputChannelLevel",
">",
"inputChannelLevels",
")",
"{",
"if",
"(",
"inputChannelLevels",
"==",
"null",
")",
"{",
"this",
".",
"inputChannelLevels",
"=",
"null",
";",
... | Indices and gain values for each input channel that should be remixed into this output channel.
@param inputChannelLevels
Indices and gain values for each input channel that should be remixed into this output channel. | [
"Indices",
"and",
"gain",
"values",
"for",
"each",
"input",
"channel",
"that",
"should",
"be",
"remixed",
"into",
"this",
"output",
"channel",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/AudioChannelMapping.java#L51-L58 |
20,255 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/waiters/AmazonS3Waiters.java | AmazonS3Waiters.bucketNotExists | public Waiter<HeadBucketRequest> bucketNotExists() {
return new WaiterBuilder<HeadBucketRequest, HeadBucketResult>()
.withSdkFunction(new HeadBucketFunction(client))
.withAcceptors(
new HttpFailureStatusAcceptor<HeadBucketResult>(404, WaiterState.SUCCESS))
.w... | java | public Waiter<HeadBucketRequest> bucketNotExists() {
return new WaiterBuilder<HeadBucketRequest, HeadBucketResult>()
.withSdkFunction(new HeadBucketFunction(client))
.withAcceptors(
new HttpFailureStatusAcceptor<HeadBucketResult>(404, WaiterState.SUCCESS))
.w... | [
"public",
"Waiter",
"<",
"HeadBucketRequest",
">",
"bucketNotExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"HeadBucketRequest",
",",
"HeadBucketResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"HeadBucketFunction",
"(",
"client",
")",
... | Builds a BucketNotExists 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",
"BucketNotExists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource"... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/waiters/AmazonS3Waiters.java#L53-L63 |
20,256 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/waiters/AmazonS3Waiters.java | AmazonS3Waiters.bucketExists | public Waiter<HeadBucketRequest> bucketExists() {
return new WaiterBuilder<HeadBucketRequest, HeadBucketResult>()
.withSdkFunction(new HeadBucketFunction(client))
.withAcceptors(
new HttpSuccessStatusAcceptor<HeadBucketResult>(WaiterState.SUCCESS),
new Ht... | java | public Waiter<HeadBucketRequest> bucketExists() {
return new WaiterBuilder<HeadBucketRequest, HeadBucketResult>()
.withSdkFunction(new HeadBucketFunction(client))
.withAcceptors(
new HttpSuccessStatusAcceptor<HeadBucketResult>(WaiterState.SUCCESS),
new Ht... | [
"public",
"Waiter",
"<",
"HeadBucketRequest",
">",
"bucketExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"HeadBucketRequest",
",",
"HeadBucketResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"HeadBucketFunction",
"(",
"client",
")",
")... | Builds a BucketExists 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",
"BucketExists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/waiters/AmazonS3Waiters.java#L72-L85 |
20,257 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/RequestXmlFactory.java | RequestXmlFactory.convertToXmlByteArray | public static byte[] convertToXmlByteArray(List<PartETag> partETags) {
XmlWriter xml = new XmlWriter();
xml.start("CompleteMultipartUpload");
if (partETags != null) {
List<PartETag> sortedPartETags = new ArrayList<PartETag>(partETags);
Collections.sort(sortedPartETags, ne... | java | public static byte[] convertToXmlByteArray(List<PartETag> partETags) {
XmlWriter xml = new XmlWriter();
xml.start("CompleteMultipartUpload");
if (partETags != null) {
List<PartETag> sortedPartETags = new ArrayList<PartETag>(partETags);
Collections.sort(sortedPartETags, ne... | [
"public",
"static",
"byte",
"[",
"]",
"convertToXmlByteArray",
"(",
"List",
"<",
"PartETag",
">",
"partETags",
")",
"{",
"XmlWriter",
"xml",
"=",
"new",
"XmlWriter",
"(",
")",
";",
"xml",
".",
"start",
"(",
"\"CompleteMultipartUpload\"",
")",
";",
"if",
"(... | Converts the specified list of PartETags to an XML fragment that can be
sent to the CompleteMultipartUpload operation of Amazon S3.
@param partETags
The list of part ETags containing the data to include in the
new XML fragment.
@return A byte array containing the data | [
"Converts",
"the",
"specified",
"list",
"of",
"PartETags",
"to",
"an",
"XML",
"fragment",
"that",
"can",
"be",
"sent",
"to",
"the",
"CompleteMultipartUpload",
"operation",
"of",
"Amazon",
"S3",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/RequestXmlFactory.java#L56-L79 |
20,258 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/RequestXmlFactory.java | RequestXmlFactory.convertToXmlByteArray | public static byte[] convertToXmlByteArray(SelectObjectContentRequest selectRequest) {
XmlWriter xml = new XmlWriter();
xml.start("SelectObjectContentRequest");
addIfNotNull(xml, "Expression", selectRequest.getExpression());
addIfNotNull(xml, "ExpressionType", selectRequest.getExpressio... | java | public static byte[] convertToXmlByteArray(SelectObjectContentRequest selectRequest) {
XmlWriter xml = new XmlWriter();
xml.start("SelectObjectContentRequest");
addIfNotNull(xml, "Expression", selectRequest.getExpression());
addIfNotNull(xml, "ExpressionType", selectRequest.getExpressio... | [
"public",
"static",
"byte",
"[",
"]",
"convertToXmlByteArray",
"(",
"SelectObjectContentRequest",
"selectRequest",
")",
"{",
"XmlWriter",
"xml",
"=",
"new",
"XmlWriter",
"(",
")",
";",
"xml",
".",
"start",
"(",
"\"SelectObjectContentRequest\"",
")",
";",
"addIfNot... | Converts the SelectObjectContentRequest to an XML fragment that can be sent to
the SelectObjectContent operation of Amazon S3. | [
"Converts",
"the",
"SelectObjectContentRequest",
"to",
"an",
"XML",
"fragment",
"that",
"can",
"be",
"sent",
"to",
"the",
"SelectObjectContent",
"operation",
"of",
"Amazon",
"S3",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/RequestXmlFactory.java#L124-L136 |
20,259 | aws/aws-sdk-java | aws-java-sdk-sts/src/main/java/com/amazonaws/auth/RefreshableTask.java | RefreshableTask.blockingRefresh | private void blockingRefresh() {
try {
if (blockingRefreshLock
.tryLock(BLOCKING_REFRESH_MAX_WAIT_IN_SECONDS, TimeUnit.SECONDS)) {
try {
// Return if successful refresh occurred while waiting for the lock
if (!shouldDoBlocki... | java | private void blockingRefresh() {
try {
if (blockingRefreshLock
.tryLock(BLOCKING_REFRESH_MAX_WAIT_IN_SECONDS, TimeUnit.SECONDS)) {
try {
// Return if successful refresh occurred while waiting for the lock
if (!shouldDoBlocki... | [
"private",
"void",
"blockingRefresh",
"(",
")",
"{",
"try",
"{",
"if",
"(",
"blockingRefreshLock",
".",
"tryLock",
"(",
"BLOCKING_REFRESH_MAX_WAIT_IN_SECONDS",
",",
"TimeUnit",
".",
"SECONDS",
")",
")",
"{",
"try",
"{",
"// Return if successful refresh occurred while ... | Used when there is no valid value to return. Callers are blocked until a new value is created
or an exception is thrown. | [
"Used",
"when",
"there",
"is",
"no",
"valid",
"value",
"to",
"return",
".",
"Callers",
"are",
"blocked",
"until",
"a",
"new",
"value",
"is",
"created",
"or",
"an",
"exception",
"is",
"thrown",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sts/src/main/java/com/amazonaws/auth/RefreshableTask.java#L202-L225 |
20,260 | aws/aws-sdk-java | aws-java-sdk-sts/src/main/java/com/amazonaws/auth/RefreshableTask.java | RefreshableTask.asyncRefresh | private void asyncRefresh() {
// Immediately return if refresh already in progress
if (asyncRefreshing.compareAndSet(false, true)) {
try {
executor.submit(new Runnable() {
@Override
public void run() {
try {
... | java | private void asyncRefresh() {
// Immediately return if refresh already in progress
if (asyncRefreshing.compareAndSet(false, true)) {
try {
executor.submit(new Runnable() {
@Override
public void run() {
try {
... | [
"private",
"void",
"asyncRefresh",
"(",
")",
"{",
"// Immediately return if refresh already in progress",
"if",
"(",
"asyncRefreshing",
".",
"compareAndSet",
"(",
"false",
",",
"true",
")",
")",
"{",
"try",
"{",
"executor",
".",
"submit",
"(",
"new",
"Runnable",
... | Used to asynchronously refresh the value. Caller is never blocked. | [
"Used",
"to",
"asynchronously",
"refresh",
"the",
"value",
".",
"Caller",
"is",
"never",
"blocked",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sts/src/main/java/com/amazonaws/auth/RefreshableTask.java#L230-L249 |
20,261 | aws/aws-sdk-java | aws-java-sdk-sts/src/main/java/com/amazonaws/auth/RefreshableTask.java | RefreshableTask.refreshValue | private void refreshValue() {
try {
refreshableValueHolder
.compareAndSet(refreshableValueHolder.get(), refreshCallable.call());
} catch (AmazonServiceException ase) {
// Preserve the original ASE
throw ase;
} catch (AmazonClientException a... | java | private void refreshValue() {
try {
refreshableValueHolder
.compareAndSet(refreshableValueHolder.get(), refreshCallable.call());
} catch (AmazonServiceException ase) {
// Preserve the original ASE
throw ase;
} catch (AmazonClientException a... | [
"private",
"void",
"refreshValue",
"(",
")",
"{",
"try",
"{",
"refreshableValueHolder",
".",
"compareAndSet",
"(",
"refreshableValueHolder",
".",
"get",
"(",
")",
",",
"refreshCallable",
".",
"call",
"(",
")",
")",
";",
"}",
"catch",
"(",
"AmazonServiceExcepti... | Invokes the callback to get a new value. | [
"Invokes",
"the",
"callback",
"to",
"get",
"a",
"new",
"value",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sts/src/main/java/com/amazonaws/auth/RefreshableTask.java#L254-L267 |
20,262 | aws/aws-sdk-java | aws-java-sdk-sts/src/main/java/com/amazonaws/auth/RefreshableTask.java | RefreshableTask.handleInterruptedException | private void handleInterruptedException(String message, InterruptedException cause) {
Thread.currentThread().interrupt();
throw new AbortedException(message, cause);
} | java | private void handleInterruptedException(String message, InterruptedException cause) {
Thread.currentThread().interrupt();
throw new AbortedException(message, cause);
} | [
"private",
"void",
"handleInterruptedException",
"(",
"String",
"message",
",",
"InterruptedException",
"cause",
")",
"{",
"Thread",
".",
"currentThread",
"(",
")",
".",
"interrupt",
"(",
")",
";",
"throw",
"new",
"AbortedException",
"(",
"message",
",",
"cause"... | If we are interrupted while waiting for a lock we just restore the interrupt status and throw
an AmazonClientException back to the caller. | [
"If",
"we",
"are",
"interrupted",
"while",
"waiting",
"for",
"a",
"lock",
"we",
"just",
"restore",
"the",
"interrupt",
"status",
"and",
"throw",
"an",
"AmazonClientException",
"back",
"to",
"the",
"caller",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sts/src/main/java/com/amazonaws/auth/RefreshableTask.java#L273-L276 |
20,263 | aws/aws-sdk-java | aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/AttributesResource.java | AttributesResource.setAttributes | public void setAttributes(java.util.Collection<String> attributes) {
if (attributes == null) {
this.attributes = null;
return;
}
this.attributes = new java.util.ArrayList<String>(attributes);
} | java | public void setAttributes(java.util.Collection<String> attributes) {
if (attributes == null) {
this.attributes = null;
return;
}
this.attributes = new java.util.ArrayList<String>(attributes);
} | [
"public",
"void",
"setAttributes",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"String",
">",
"attributes",
")",
"{",
"if",
"(",
"attributes",
"==",
"null",
")",
"{",
"this",
".",
"attributes",
"=",
"null",
";",
"return",
";",
"}",
"this",
".",
... | The attributes for the application.
@param attributes
The attributes for the application. | [
"The",
"attributes",
"for",
"the",
"application",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/AttributesResource.java#L121-L128 |
20,264 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3EncryptionClient.java | AmazonS3EncryptionClient.newAWSKMSClient | private AWSKMSClient newAWSKMSClient(
AWSCredentialsProvider credentialsProvider,
ClientConfiguration clientConfig,
CryptoConfiguration cryptoConfig,
RequestMetricCollector requestMetricCollector
) {
final AWSKMSClient kmsClient = new AWSKMSClient(
... | java | private AWSKMSClient newAWSKMSClient(
AWSCredentialsProvider credentialsProvider,
ClientConfiguration clientConfig,
CryptoConfiguration cryptoConfig,
RequestMetricCollector requestMetricCollector
) {
final AWSKMSClient kmsClient = new AWSKMSClient(
... | [
"private",
"AWSKMSClient",
"newAWSKMSClient",
"(",
"AWSCredentialsProvider",
"credentialsProvider",
",",
"ClientConfiguration",
"clientConfig",
",",
"CryptoConfiguration",
"cryptoConfig",
",",
"RequestMetricCollector",
"requestMetricCollector",
")",
"{",
"final",
"AWSKMSClient",
... | Creates and returns a new instance of AWS KMS client in the case when
an explicit AWS KMS client is not specified. | [
"Creates",
"and",
"returns",
"a",
"new",
"instance",
"of",
"AWS",
"KMS",
"client",
"in",
"the",
"case",
"when",
"an",
"explicit",
"AWS",
"KMS",
"client",
"is",
"not",
"specified",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3EncryptionClient.java#L539-L551 |
20,265 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3EncryptionClient.java | AmazonS3EncryptionClient.onAbort | private <T extends Throwable> T onAbort(UploadObjectObserver observer, T t) {
observer.onAbort();
return t;
} | java | private <T extends Throwable> T onAbort(UploadObjectObserver observer, T t) {
observer.onAbort();
return t;
} | [
"private",
"<",
"T",
"extends",
"Throwable",
">",
"T",
"onAbort",
"(",
"UploadObjectObserver",
"observer",
",",
"T",
"t",
")",
"{",
"observer",
".",
"onAbort",
"(",
")",
";",
"return",
"t",
";",
"}"
] | Convenient method to notifies the observer to abort the multi-part
upload, and returns the original exception. | [
"Convenient",
"method",
"to",
"notifies",
"the",
"observer",
"to",
"abort",
"the",
"multi",
"-",
"part",
"upload",
"and",
"returns",
"the",
"original",
"exception",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3EncryptionClient.java#L843-L846 |
20,266 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/AmazonServiceException.java | AmazonServiceException.setRawResponseContent | public void setRawResponseContent(String rawResponseContent) {
this.rawResponse = rawResponseContent == null ? null : rawResponseContent.getBytes
(StringUtils.UTF8);
} | java | public void setRawResponseContent(String rawResponseContent) {
this.rawResponse = rawResponseContent == null ? null : rawResponseContent.getBytes
(StringUtils.UTF8);
} | [
"public",
"void",
"setRawResponseContent",
"(",
"String",
"rawResponseContent",
")",
"{",
"this",
".",
"rawResponse",
"=",
"rawResponseContent",
"==",
"null",
"?",
"null",
":",
"rawResponseContent",
".",
"getBytes",
"(",
"StringUtils",
".",
"UTF8",
")",
";",
"}"... | Sets the raw response content. | [
"Sets",
"the",
"raw",
"response",
"content",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/AmazonServiceException.java#L283-L286 |
20,267 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/ReflectionUtils.java | ReflectionUtils.getFieldNameByGetter | static String getFieldNameByGetter(Method getter, boolean forceCamelCase) {
String getterName = getter.getName();
String fieldNameWithUpperCamelCase = "";
if ( getterName.startsWith("get") ) {
fieldNameWithUpperCamelCase = getterName.substring("get".length());
} else if ( ge... | java | static String getFieldNameByGetter(Method getter, boolean forceCamelCase) {
String getterName = getter.getName();
String fieldNameWithUpperCamelCase = "";
if ( getterName.startsWith("get") ) {
fieldNameWithUpperCamelCase = getterName.substring("get".length());
} else if ( ge... | [
"static",
"String",
"getFieldNameByGetter",
"(",
"Method",
"getter",
",",
"boolean",
"forceCamelCase",
")",
"{",
"String",
"getterName",
"=",
"getter",
".",
"getName",
"(",
")",
";",
"String",
"fieldNameWithUpperCamelCase",
"=",
"\"\"",
";",
"if",
"(",
"getterNa... | Returns the field name that corresponds to the given getter method,
according to the Java naming convention.
@param getter
The getter method.
@param forceCamelCase
True if the returned field name should be in camel-case, i.e.
the first letter is lower-cased. | [
"Returns",
"the",
"field",
"name",
"that",
"corresponds",
"to",
"the",
"given",
"getter",
"method",
"according",
"to",
"the",
"Java",
"naming",
"convention",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/ReflectionUtils.java#L40-L62 |
20,268 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/ReflectionUtils.java | ReflectionUtils.getClassFieldByName | static Field getClassFieldByName(Class<?> clazz, String fieldName) {
try {
return clazz.getDeclaredField(fieldName);
} catch (SecurityException e) {
throw new DynamoDBMappingException(
"Denied access to the [" + fieldName + "] field in class [" + clazz + "].",... | java | static Field getClassFieldByName(Class<?> clazz, String fieldName) {
try {
return clazz.getDeclaredField(fieldName);
} catch (SecurityException e) {
throw new DynamoDBMappingException(
"Denied access to the [" + fieldName + "] field in class [" + clazz + "].",... | [
"static",
"Field",
"getClassFieldByName",
"(",
"Class",
"<",
"?",
">",
"clazz",
",",
"String",
"fieldName",
")",
"{",
"try",
"{",
"return",
"clazz",
".",
"getDeclaredField",
"(",
"fieldName",
")",
";",
"}",
"catch",
"(",
"SecurityException",
"e",
")",
"{",... | Returns the Field object for the specified field name declared in the
specified class. Returns null if no such field can be found.
@param clazz
The declaring class where the field will be reflected. This
method will NOT attempt to reflect its superclass if such
field is not found in this class.
@param fieldName
The ca... | [
"Returns",
"the",
"Field",
"object",
"for",
"the",
"specified",
"field",
"name",
"declared",
"in",
"the",
"specified",
"class",
".",
"Returns",
"null",
"if",
"no",
"such",
"field",
"can",
"be",
"found",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/ReflectionUtils.java#L75-L84 |
20,269 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/ReflectionUtils.java | ReflectionUtils.getAnnotationFromGetterOrField | static <T extends Annotation> T getAnnotationFromGetterOrField(
Method getter, Class<T> annotationClass) {
// Check annotation on the getter method
T onGetter = getter.getAnnotation(annotationClass);
if (onGetter != null) {
return onGetter;
}
// Check ann... | java | static <T extends Annotation> T getAnnotationFromGetterOrField(
Method getter, Class<T> annotationClass) {
// Check annotation on the getter method
T onGetter = getter.getAnnotation(annotationClass);
if (onGetter != null) {
return onGetter;
}
// Check ann... | [
"static",
"<",
"T",
"extends",
"Annotation",
">",
"T",
"getAnnotationFromGetterOrField",
"(",
"Method",
"getter",
",",
"Class",
"<",
"T",
">",
"annotationClass",
")",
"{",
"// Check annotation on the getter method",
"T",
"onGetter",
"=",
"getter",
".",
"getAnnotatio... | This method searches for a specific type of annotation that is applied to
either the specified getter method or its corresponding class field.
Returns the annotation if it is found, else null. | [
"This",
"method",
"searches",
"for",
"a",
"specific",
"type",
"of",
"annotation",
"that",
"is",
"applied",
"to",
"either",
"the",
"specified",
"getter",
"method",
"or",
"its",
"corresponding",
"class",
"field",
".",
"Returns",
"the",
"annotation",
"if",
"it",
... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/ReflectionUtils.java#L91-L108 |
20,270 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/ReflectionUtils.java | ReflectionUtils.getterOrFieldHasAnnotation | static <T extends Annotation> boolean getterOrFieldHasAnnotation(
Method getter, Class<T> annotationClass) {
return getAnnotationFromGetterOrField(getter, annotationClass) != null;
} | java | static <T extends Annotation> boolean getterOrFieldHasAnnotation(
Method getter, Class<T> annotationClass) {
return getAnnotationFromGetterOrField(getter, annotationClass) != null;
} | [
"static",
"<",
"T",
"extends",
"Annotation",
">",
"boolean",
"getterOrFieldHasAnnotation",
"(",
"Method",
"getter",
",",
"Class",
"<",
"T",
">",
"annotationClass",
")",
"{",
"return",
"getAnnotationFromGetterOrField",
"(",
"getter",
",",
"annotationClass",
")",
"!... | Returns true if an annotation for the specified type is found on the
getter method or its corresponding class field. | [
"Returns",
"true",
"if",
"an",
"annotation",
"for",
"the",
"specified",
"type",
"is",
"found",
"on",
"the",
"getter",
"method",
"or",
"its",
"corresponding",
"class",
"field",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/ReflectionUtils.java#L114-L117 |
20,271 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.deleteJobTemplate | @Override
public DeleteJobTemplateResult deleteJobTemplate(DeleteJobTemplateRequest request) {
request = beforeClientExecution(request);
return executeDeleteJobTemplate(request);
} | java | @Override
public DeleteJobTemplateResult deleteJobTemplate(DeleteJobTemplateRequest request) {
request = beforeClientExecution(request);
return executeDeleteJobTemplate(request);
} | [
"@",
"Override",
"public",
"DeleteJobTemplateResult",
"deleteJobTemplate",
"(",
"DeleteJobTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteJobTemplate",
"(",
"request",
")",
";",
"}"
] | Permanently delete a job template you have created.
@param deleteJobTemplateRequest
@return Result of the DeleteJobTemplate operation returned by the service.
@throws BadRequestException
The service can't process your request because of a problem in the request. Please check your request
form and syntax.
@throws Inter... | [
"Permanently",
"delete",
"a",
"job",
"template",
"you",
"have",
"created",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L562-L566 |
20,272 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.deleteQueue | @Override
public DeleteQueueResult deleteQueue(DeleteQueueRequest request) {
request = beforeClientExecution(request);
return executeDeleteQueue(request);
} | java | @Override
public DeleteQueueResult deleteQueue(DeleteQueueRequest request) {
request = beforeClientExecution(request);
return executeDeleteQueue(request);
} | [
"@",
"Override",
"public",
"DeleteQueueResult",
"deleteQueue",
"(",
"DeleteQueueRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteQueue",
"(",
"request",
")",
";",
"}"
] | Permanently delete a queue you have created.
@param deleteQueueRequest
@return Result of the DeleteQueue operation returned by the service.
@throws BadRequestException
The service can't process your request because of a problem in the request. Please check your request
form and syntax.
@throws InternalServerErrorExcep... | [
"Permanently",
"delete",
"a",
"queue",
"you",
"have",
"created",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L692-L696 |
20,273 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.getJobTemplate | @Override
public GetJobTemplateResult getJobTemplate(GetJobTemplateRequest request) {
request = beforeClientExecution(request);
return executeGetJobTemplate(request);
} | java | @Override
public GetJobTemplateResult getJobTemplate(GetJobTemplateRequest request) {
request = beforeClientExecution(request);
return executeGetJobTemplate(request);
} | [
"@",
"Override",
"public",
"GetJobTemplateResult",
"getJobTemplate",
"(",
"GetJobTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetJobTemplate",
"(",
"request",
")",
";",
"}"
] | Retrieve the JSON for a specific job template.
@param getJobTemplateRequest
@return Result of the GetJobTemplate operation returned by the service.
@throws BadRequestException
The service can't process your request because of a problem in the request. Please check your request
form and syntax.
@throws InternalServerEr... | [
"Retrieve",
"the",
"JSON",
"for",
"a",
"specific",
"job",
"template",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L953-L957 |
20,274 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.getPreset | @Override
public GetPresetResult getPreset(GetPresetRequest request) {
request = beforeClientExecution(request);
return executeGetPreset(request);
} | java | @Override
public GetPresetResult getPreset(GetPresetRequest request) {
request = beforeClientExecution(request);
return executeGetPreset(request);
} | [
"@",
"Override",
"public",
"GetPresetResult",
"getPreset",
"(",
"GetPresetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetPreset",
"(",
"request",
")",
";",
"}"
] | Retrieve the JSON for a specific preset.
@param getPresetRequest
@return Result of the GetPreset operation returned by the service.
@throws BadRequestException
The service can't process your request because of a problem in the request. Please check your request
form and syntax.
@throws InternalServerErrorException
The... | [
"Retrieve",
"the",
"JSON",
"for",
"a",
"specific",
"preset",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L1018-L1022 |
20,275 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.getQueue | @Override
public GetQueueResult getQueue(GetQueueRequest request) {
request = beforeClientExecution(request);
return executeGetQueue(request);
} | java | @Override
public GetQueueResult getQueue(GetQueueRequest request) {
request = beforeClientExecution(request);
return executeGetQueue(request);
} | [
"@",
"Override",
"public",
"GetQueueResult",
"getQueue",
"(",
"GetQueueRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetQueue",
"(",
"request",
")",
";",
"}"
] | Retrieve the JSON for a specific queue.
@param getQueueRequest
@return Result of the GetQueue operation returned by the service.
@throws BadRequestException
The service can't process your request because of a problem in the request. Please check your request
form and syntax.
@throws InternalServerErrorException
The se... | [
"Retrieve",
"the",
"JSON",
"for",
"a",
"specific",
"queue",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L1083-L1087 |
20,276 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.listJobTemplates | @Override
public ListJobTemplatesResult listJobTemplates(ListJobTemplatesRequest request) {
request = beforeClientExecution(request);
return executeListJobTemplates(request);
} | java | @Override
public ListJobTemplatesResult listJobTemplates(ListJobTemplatesRequest request) {
request = beforeClientExecution(request);
return executeListJobTemplates(request);
} | [
"@",
"Override",
"public",
"ListJobTemplatesResult",
"listJobTemplates",
"(",
"ListJobTemplatesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListJobTemplates",
"(",
"request",
")",
";",
"}"
] | Retrieve a JSON array of up to twenty of your job templates. This will return the templates themselves, not just
a list of them. To retrieve the next twenty templates, use the nextToken string returned with the array
@param listJobTemplatesRequest
@return Result of the ListJobTemplates operation returned by the servic... | [
"Retrieve",
"a",
"JSON",
"array",
"of",
"up",
"to",
"twenty",
"of",
"your",
"job",
"templates",
".",
"This",
"will",
"return",
"the",
"templates",
"themselves",
"not",
"just",
"a",
"list",
"of",
"them",
".",
"To",
"retrieve",
"the",
"next",
"twenty",
"te... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L1149-L1153 |
20,277 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.listQueues | @Override
public ListQueuesResult listQueues(ListQueuesRequest request) {
request = beforeClientExecution(request);
return executeListQueues(request);
} | java | @Override
public ListQueuesResult listQueues(ListQueuesRequest request) {
request = beforeClientExecution(request);
return executeListQueues(request);
} | [
"@",
"Override",
"public",
"ListQueuesResult",
"listQueues",
"(",
"ListQueuesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListQueues",
"(",
"request",
")",
";",
"}"
] | Retrieve a JSON array of up to twenty of your queues. This will return the queues themselves, not just a list of
them. To retrieve the next twenty queues, use the nextToken string returned with the array.
@param listQueuesRequest
@return Result of the ListQueues operation returned by the service.
@throws BadRequestExc... | [
"Retrieve",
"a",
"JSON",
"array",
"of",
"up",
"to",
"twenty",
"of",
"your",
"queues",
".",
"This",
"will",
"return",
"the",
"queues",
"themselves",
"not",
"just",
"a",
"list",
"of",
"them",
".",
"To",
"retrieve",
"the",
"next",
"twenty",
"queues",
"use",... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L1348-L1352 |
20,278 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.updateJobTemplate | @Override
public UpdateJobTemplateResult updateJobTemplate(UpdateJobTemplateRequest request) {
request = beforeClientExecution(request);
return executeUpdateJobTemplate(request);
} | java | @Override
public UpdateJobTemplateResult updateJobTemplate(UpdateJobTemplateRequest request) {
request = beforeClientExecution(request);
return executeUpdateJobTemplate(request);
} | [
"@",
"Override",
"public",
"UpdateJobTemplateResult",
"updateJobTemplate",
"(",
"UpdateJobTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateJobTemplate",
"(",
"request",
")",
";",
"}"
] | Modify one of your existing job templates.
@param updateJobTemplateRequest
@return Result of the UpdateJobTemplate operation returned by the service.
@throws BadRequestException
The service can't process your request because of a problem in the request. Please check your request
form and syntax.
@throws InternalServer... | [
"Modify",
"one",
"of",
"your",
"existing",
"job",
"templates",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L1610-L1614 |
20,279 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.updatePreset | @Override
public UpdatePresetResult updatePreset(UpdatePresetRequest request) {
request = beforeClientExecution(request);
return executeUpdatePreset(request);
} | java | @Override
public UpdatePresetResult updatePreset(UpdatePresetRequest request) {
request = beforeClientExecution(request);
return executeUpdatePreset(request);
} | [
"@",
"Override",
"public",
"UpdatePresetResult",
"updatePreset",
"(",
"UpdatePresetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdatePreset",
"(",
"request",
")",
";",
"}"
] | Modify one of your existing presets.
@param updatePresetRequest
@return Result of the UpdatePreset operation returned by the service.
@throws BadRequestException
The service can't process your request because of a problem in the request. Please check your request
form and syntax.
@throws InternalServerErrorException
T... | [
"Modify",
"one",
"of",
"your",
"existing",
"presets",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L1675-L1679 |
20,280 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java | AWSMediaConvertClient.updateQueue | @Override
public UpdateQueueResult updateQueue(UpdateQueueRequest request) {
request = beforeClientExecution(request);
return executeUpdateQueue(request);
} | java | @Override
public UpdateQueueResult updateQueue(UpdateQueueRequest request) {
request = beforeClientExecution(request);
return executeUpdateQueue(request);
} | [
"@",
"Override",
"public",
"UpdateQueueResult",
"updateQueue",
"(",
"UpdateQueueRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateQueue",
"(",
"request",
")",
";",
"}"
] | Modify one of your existing queues.
@param updateQueueRequest
@return Result of the UpdateQueue operation returned by the service.
@throws BadRequestException
The service can't process your request because of a problem in the request. Please check your request
form and syntax.
@throws InternalServerErrorException
The ... | [
"Modify",
"one",
"of",
"your",
"existing",
"queues",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/AWSMediaConvertClient.java#L1740-L1744 |
20,281 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/ImmutableMapParameter.java | ImmutableMapParameter.of | public static <K, V> ImmutableMapParameter<K, V> of(K k0, V v0) {
Map<K, V> map = Collections.singletonMap(k0, v0);
return new ImmutableMapParameter<K, V>(map);
} | java | public static <K, V> ImmutableMapParameter<K, V> of(K k0, V v0) {
Map<K, V> map = Collections.singletonMap(k0, v0);
return new ImmutableMapParameter<K, V>(map);
} | [
"public",
"static",
"<",
"K",
",",
"V",
">",
"ImmutableMapParameter",
"<",
"K",
",",
"V",
">",
"of",
"(",
"K",
"k0",
",",
"V",
"v0",
")",
"{",
"Map",
"<",
"K",
",",
"V",
">",
"map",
"=",
"Collections",
".",
"singletonMap",
"(",
"k0",
",",
"v0",... | Returns an ImmutableMapParameter instance containing a single entry.
@param k0
Key of the single entry.
@param v0
Value of the single entry. | [
"Returns",
"an",
"ImmutableMapParameter",
"instance",
"containing",
"a",
"single",
"entry",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/ImmutableMapParameter.java#L82-L85 |
20,282 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/ImmutableMapParameter.java | ImmutableMapParameter.of | public static <K, V> ImmutableMapParameter<K, V> of(K k0, V v0, K k1, V v1) {
Map<K, V> map = new HashMap<K, V>();
putAndWarnDuplicateKeys(map, k0, v0);
putAndWarnDuplicateKeys(map, k1, v1);
return new ImmutableMapParameter<K, V>(map);
} | java | public static <K, V> ImmutableMapParameter<K, V> of(K k0, V v0, K k1, V v1) {
Map<K, V> map = new HashMap<K, V>();
putAndWarnDuplicateKeys(map, k0, v0);
putAndWarnDuplicateKeys(map, k1, v1);
return new ImmutableMapParameter<K, V>(map);
} | [
"public",
"static",
"<",
"K",
",",
"V",
">",
"ImmutableMapParameter",
"<",
"K",
",",
"V",
">",
"of",
"(",
"K",
"k0",
",",
"V",
"v0",
",",
"K",
"k1",
",",
"V",
"v1",
")",
"{",
"Map",
"<",
"K",
",",
"V",
">",
"map",
"=",
"new",
"HashMap",
"<"... | Returns an ImmutableMapParameter instance containing two entries.
@param k0
Key of the first entry.
@param v0
Value of the first entry.
@param k1
Key of the second entry.
@param v1
Value of the second entry. | [
"Returns",
"an",
"ImmutableMapParameter",
"instance",
"containing",
"two",
"entries",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/ImmutableMapParameter.java#L99-L104 |
20,283 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/waiters/AmazonDynamoDBWaiters.java | AmazonDynamoDBWaiters.tableExists | public Waiter<DescribeTableRequest> tableExists() {
return new WaiterBuilder<DescribeTableRequest, DescribeTableResult>().withSdkFunction(new DescribeTableFunction(client))
.withAcceptors(new TableExists.IsACTIVEMatcher(), new TableExists.IsResourceNotFoundExceptionMatcher())
.w... | java | public Waiter<DescribeTableRequest> tableExists() {
return new WaiterBuilder<DescribeTableRequest, DescribeTableResult>().withSdkFunction(new DescribeTableFunction(client))
.withAcceptors(new TableExists.IsACTIVEMatcher(), new TableExists.IsResourceNotFoundExceptionMatcher())
.w... | [
"public",
"Waiter",
"<",
"DescribeTableRequest",
">",
"tableExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeTableRequest",
",",
"DescribeTableResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeTableFunction",
"(",
"client",
... | Builds a TableExists 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",
"TableExists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",
... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/waiters/AmazonDynamoDBWaiters.java#L51-L57 |
20,284 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/waiters/AmazonDynamoDBWaiters.java | AmazonDynamoDBWaiters.tableNotExists | public Waiter<DescribeTableRequest> tableNotExists() {
return new WaiterBuilder<DescribeTableRequest, DescribeTableResult>().withSdkFunction(new DescribeTableFunction(client))
.withAcceptors(new TableNotExists.IsResourceNotFoundExceptionMatcher())
.withDefaultPollingStrategy(new... | java | public Waiter<DescribeTableRequest> tableNotExists() {
return new WaiterBuilder<DescribeTableRequest, DescribeTableResult>().withSdkFunction(new DescribeTableFunction(client))
.withAcceptors(new TableNotExists.IsResourceNotFoundExceptionMatcher())
.withDefaultPollingStrategy(new... | [
"public",
"Waiter",
"<",
"DescribeTableRequest",
">",
"tableNotExists",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeTableRequest",
",",
"DescribeTableResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeTableFunction",
"(",
"client... | Builds a TableNotExists 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",
"TableNotExists",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/waiters/AmazonDynamoDBWaiters.java#L64-L70 |
20,285 | aws/aws-sdk-java | aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/OutputGroupDetail.java | OutputGroupDetail.setOutputDetails | public void setOutputDetails(java.util.Collection<OutputDetail> outputDetails) {
if (outputDetails == null) {
this.outputDetails = null;
return;
}
this.outputDetails = new java.util.ArrayList<OutputDetail>(outputDetails);
} | java | public void setOutputDetails(java.util.Collection<OutputDetail> outputDetails) {
if (outputDetails == null) {
this.outputDetails = null;
return;
}
this.outputDetails = new java.util.ArrayList<OutputDetail>(outputDetails);
} | [
"public",
"void",
"setOutputDetails",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"OutputDetail",
">",
"outputDetails",
")",
"{",
"if",
"(",
"outputDetails",
"==",
"null",
")",
"{",
"this",
".",
"outputDetails",
"=",
"null",
";",
"return",
";",
"}",
... | Details about the output
@param outputDetails
Details about the output | [
"Details",
"about",
"the",
"output"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/OutputGroupDetail.java#L49-L56 |
20,286 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/auth/AwsChunkedEncodingInputStream.java | AwsChunkedEncodingInputStream.mark | @Override
public void mark(int readlimit) {
abortIfNeeded();
if ( !isAtStart )
throw new UnsupportedOperationException("Chunk-encoded stream only supports mark() at the start of the stream.");
if (is.markSupported()) {
if (log.isDebugEnabled()) {
log.d... | java | @Override
public void mark(int readlimit) {
abortIfNeeded();
if ( !isAtStart )
throw new UnsupportedOperationException("Chunk-encoded stream only supports mark() at the start of the stream.");
if (is.markSupported()) {
if (log.isDebugEnabled()) {
log.d... | [
"@",
"Override",
"public",
"void",
"mark",
"(",
"int",
"readlimit",
")",
"{",
"abortIfNeeded",
"(",
")",
";",
"if",
"(",
"!",
"isAtStart",
")",
"throw",
"new",
"UnsupportedOperationException",
"(",
"\"Chunk-encoded stream only supports mark() at the start of the stream.... | The readlimit parameter is ignored. | [
"The",
"readlimit",
"parameter",
"is",
"ignored",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/auth/AwsChunkedEncodingInputStream.java#L214-L233 |
20,287 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/auth/AwsChunkedEncodingInputStream.java | AwsChunkedEncodingInputStream.reset | @Override
public void reset() throws IOException {
abortIfNeeded();
// Clear up any encoded data
currentChunkIterator = null;
priorChunkSignature = headerSignature;
// Reset the wrapped stream if it is mark-supported,
// otherwise use our buffered data.
if (is... | java | @Override
public void reset() throws IOException {
abortIfNeeded();
// Clear up any encoded data
currentChunkIterator = null;
priorChunkSignature = headerSignature;
// Reset the wrapped stream if it is mark-supported,
// otherwise use our buffered data.
if (is... | [
"@",
"Override",
"public",
"void",
"reset",
"(",
")",
"throws",
"IOException",
"{",
"abortIfNeeded",
"(",
")",
";",
"// Clear up any encoded data",
"currentChunkIterator",
"=",
"null",
";",
"priorChunkSignature",
"=",
"headerSignature",
";",
"// Reset the wrapped stream... | Reset the stream, either by resetting the wrapped stream or using the
buffer created by this class. | [
"Reset",
"the",
"stream",
"either",
"by",
"resetting",
"the",
"wrapped",
"stream",
"or",
"using",
"the",
"buffer",
"created",
"by",
"this",
"class",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/auth/AwsChunkedEncodingInputStream.java#L239-L266 |
20,288 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/auth/AwsChunkedEncodingInputStream.java | AwsChunkedEncodingInputStream.setUpNextChunk | private boolean setUpNextChunk() throws IOException {
byte[] chunkData = new byte[DEFAULT_CHUNK_SIZE];
int chunkSizeInBytes = 0;
while (chunkSizeInBytes < DEFAULT_CHUNK_SIZE) {
/** Read from the buffer of the decoded stream */
if (null != decodedStreamBuffer
... | java | private boolean setUpNextChunk() throws IOException {
byte[] chunkData = new byte[DEFAULT_CHUNK_SIZE];
int chunkSizeInBytes = 0;
while (chunkSizeInBytes < DEFAULT_CHUNK_SIZE) {
/** Read from the buffer of the decoded stream */
if (null != decodedStreamBuffer
... | [
"private",
"boolean",
"setUpNextChunk",
"(",
")",
"throws",
"IOException",
"{",
"byte",
"[",
"]",
"chunkData",
"=",
"new",
"byte",
"[",
"DEFAULT_CHUNK_SIZE",
"]",
";",
"int",
"chunkSizeInBytes",
"=",
"0",
";",
"while",
"(",
"chunkSizeInBytes",
"<",
"DEFAULT_CH... | Read in the next chunk of data, and create the necessary chunk extensions.
@return
Returns true if next chunk is the last empty chunk. | [
"Read",
"in",
"the",
"next",
"chunk",
"of",
"data",
"and",
"create",
"the",
"necessary",
"chunk",
"extensions",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/auth/AwsChunkedEncodingInputStream.java#L294-L329 |
20,289 | aws/aws-sdk-java | aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/FindingCriteria.java | FindingCriteria.withCriterion | public FindingCriteria withCriterion(java.util.Map<String, Condition> criterion) {
setCriterion(criterion);
return this;
} | java | public FindingCriteria withCriterion(java.util.Map<String, Condition> criterion) {
setCriterion(criterion);
return this;
} | [
"public",
"FindingCriteria",
"withCriterion",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"Condition",
">",
"criterion",
")",
"{",
"setCriterion",
"(",
"criterion",
")",
";",
"return",
"this",
";",
"}"
] | Represents a map of finding properties that match specified conditions and values when querying findings.
@param criterion
Represents a map of finding properties that match specified conditions and values when querying findings.
@return Returns a reference to this object so that method calls can be chained together. | [
"Represents",
"a",
"map",
"of",
"finding",
"properties",
"that",
"match",
"specified",
"conditions",
"and",
"values",
"when",
"querying",
"findings",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/FindingCriteria.java#L61-L64 |
20,290 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddMetadata.java | AddMetadata.requiresApiKey | private static boolean requiresApiKey(ServiceModel serviceModel) {
return serviceModel.getOperations().values().stream()
.anyMatch(Operation::requiresApiKey);
} | java | private static boolean requiresApiKey(ServiceModel serviceModel) {
return serviceModel.getOperations().values().stream()
.anyMatch(Operation::requiresApiKey);
} | [
"private",
"static",
"boolean",
"requiresApiKey",
"(",
"ServiceModel",
"serviceModel",
")",
"{",
"return",
"serviceModel",
".",
"getOperations",
"(",
")",
".",
"values",
"(",
")",
".",
"stream",
"(",
")",
".",
"anyMatch",
"(",
"Operation",
"::",
"requiresApiKe... | If any operation requires an API key we generate a setter on the builder.
@return True if any operation requires an API key. False otherwise. | [
"If",
"any",
"operation",
"requires",
"an",
"API",
"key",
"we",
"generate",
"a",
"setter",
"on",
"the",
"builder",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddMetadata.java#L151-L154 |
20,291 | aws/aws-sdk-java | aws-java-sdk-opsworkscm/src/main/java/com/amazonaws/services/opsworkscm/waiters/AWSOpsWorksCMWaiters.java | AWSOpsWorksCMWaiters.nodeAssociated | public Waiter<DescribeNodeAssociationStatusRequest> nodeAssociated() {
return new WaiterBuilder<DescribeNodeAssociationStatusRequest, DescribeNodeAssociationStatusResult>()
.withSdkFunction(new DescribeNodeAssociationStatusFunction(client))
.withAcceptors(new NodeAssociated.IsSU... | java | public Waiter<DescribeNodeAssociationStatusRequest> nodeAssociated() {
return new WaiterBuilder<DescribeNodeAssociationStatusRequest, DescribeNodeAssociationStatusResult>()
.withSdkFunction(new DescribeNodeAssociationStatusFunction(client))
.withAcceptors(new NodeAssociated.IsSU... | [
"public",
"Waiter",
"<",
"DescribeNodeAssociationStatusRequest",
">",
"nodeAssociated",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeNodeAssociationStatusRequest",
",",
"DescribeNodeAssociationStatusResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"n... | Builds a NodeAssociated 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",
"NodeAssociated",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resource",... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-opsworkscm/src/main/java/com/amazonaws/services/opsworkscm/waiters/AWSOpsWorksCMWaiters.java#L51-L58 |
20,292 | aws/aws-sdk-java | aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java | StepFunctionBuilder.eq | public static StringEqualsCondition.Builder eq(String variable, String expectedValue) {
return StringEqualsCondition.builder().variable(variable).expectedValue(expectedValue);
} | java | public static StringEqualsCondition.Builder eq(String variable, String expectedValue) {
return StringEqualsCondition.builder().variable(variable).expectedValue(expectedValue);
} | [
"public",
"static",
"StringEqualsCondition",
".",
"Builder",
"eq",
"(",
"String",
"variable",
",",
"String",
"expectedValue",
")",
"{",
"return",
"StringEqualsCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
"(",... | Binary condition for String equality comparison.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https://states-langua... | [
"Binary",
"condition",
"for",
"String",
"equality",
"comparison",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L212-L214 |
20,293 | aws/aws-sdk-java | aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java | StepFunctionBuilder.eq | public static NumericEqualsCondition.Builder eq(String variable, long expectedValue) {
return NumericEqualsCondition.builder().variable(variable).expectedValue(expectedValue);
} | java | public static NumericEqualsCondition.Builder eq(String variable, long expectedValue) {
return NumericEqualsCondition.builder().variable(variable).expectedValue(expectedValue);
} | [
"public",
"static",
"NumericEqualsCondition",
".",
"Builder",
"eq",
"(",
"String",
"variable",
",",
"long",
"expectedValue",
")",
"{",
"return",
"NumericEqualsCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
"(",... | Binary condition for Numeric equality comparison. Supports both integral and floating point numeric types.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-... | [
"Binary",
"condition",
"for",
"Numeric",
"equality",
"comparison",
".",
"Supports",
"both",
"integral",
"and",
"floating",
"point",
"numeric",
"types",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L224-L226 |
20,294 | aws/aws-sdk-java | aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java | StepFunctionBuilder.eq | public static BooleanEqualsCondition.Builder eq(String variable, boolean expectedValue) {
return BooleanEqualsCondition.builder().variable(variable).expectedValue(expectedValue);
} | java | public static BooleanEqualsCondition.Builder eq(String variable, boolean expectedValue) {
return BooleanEqualsCondition.builder().variable(variable).expectedValue(expectedValue);
} | [
"public",
"static",
"BooleanEqualsCondition",
".",
"Builder",
"eq",
"(",
"String",
"variable",
",",
"boolean",
"expectedValue",
")",
"{",
"return",
"BooleanEqualsCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
"... | Binary condition for Boolean equality comparison.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https://states-langu... | [
"Binary",
"condition",
"for",
"Boolean",
"equality",
"comparison",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L248-L250 |
20,295 | aws/aws-sdk-java | aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java | StepFunctionBuilder.eq | public static TimestampEqualsCondition.Builder eq(String variable, Date expectedValue) {
return TimestampEqualsCondition.builder().variable(variable).expectedValue(expectedValue);
} | java | public static TimestampEqualsCondition.Builder eq(String variable, Date expectedValue) {
return TimestampEqualsCondition.builder().variable(variable).expectedValue(expectedValue);
} | [
"public",
"static",
"TimestampEqualsCondition",
".",
"Builder",
"eq",
"(",
"String",
"variable",
",",
"Date",
"expectedValue",
")",
"{",
"return",
"TimestampEqualsCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValue",
... | Binary condition for Timestamp equality comparison. Dates are converted to ISO8601 UTC timestamps.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language... | [
"Binary",
"condition",
"for",
"Timestamp",
"equality",
"comparison",
".",
"Dates",
"are",
"converted",
"to",
"ISO8601",
"UTC",
"timestamps",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L260-L262 |
20,296 | aws/aws-sdk-java | aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java | StepFunctionBuilder.gt | public static StringGreaterThanCondition.Builder gt(String variable, String expectedValue) {
return StringGreaterThanCondition.builder().variable(variable).expectedValue(expectedValue);
} | java | public static StringGreaterThanCondition.Builder gt(String variable, String expectedValue) {
return StringGreaterThanCondition.builder().variable(variable).expectedValue(expectedValue);
} | [
"public",
"static",
"StringGreaterThanCondition",
".",
"Builder",
"gt",
"(",
"String",
"variable",
",",
"String",
"expectedValue",
")",
"{",
"return",
"StringGreaterThanCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expectedValu... | Binary condition for String greater than comparison.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https://states-la... | [
"Binary",
"condition",
"for",
"String",
"greater",
"than",
"comparison",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L272-L274 |
20,297 | aws/aws-sdk-java | aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java | StepFunctionBuilder.gt | public static TimestampGreaterThanCondition.Builder gt(String variable, Date expectedValue) {
return TimestampGreaterThanCondition.builder().variable(variable).expectedValue(expectedValue);
} | java | public static TimestampGreaterThanCondition.Builder gt(String variable, Date expectedValue) {
return TimestampGreaterThanCondition.builder().variable(variable).expectedValue(expectedValue);
} | [
"public",
"static",
"TimestampGreaterThanCondition",
".",
"Builder",
"gt",
"(",
"String",
"variable",
",",
"Date",
"expectedValue",
")",
"{",
"return",
"TimestampGreaterThanCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
"expected... | Binary condition for Timestamp greater than comparison. Dates are converted to ISO8601 UTC timestamps.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-lang... | [
"Binary",
"condition",
"for",
"Timestamp",
"greater",
"than",
"comparison",
".",
"Dates",
"are",
"converted",
"to",
"ISO8601",
"UTC",
"timestamps",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L308-L310 |
20,298 | aws/aws-sdk-java | aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java | StepFunctionBuilder.gte | public static StringGreaterThanOrEqualCondition.Builder gte(String variable, String expectedValue) {
return StringGreaterThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
} | java | public static StringGreaterThanOrEqualCondition.Builder gte(String variable, String expectedValue) {
return StringGreaterThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
} | [
"public",
"static",
"StringGreaterThanOrEqualCondition",
".",
"Builder",
"gte",
"(",
"String",
"variable",
",",
"String",
"expectedValue",
")",
"{",
"return",
"StringGreaterThanOrEqualCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
".",
... | Binary condition for String greater than or equal to comparison.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https://states-language.net/spec.html#choice-state">https... | [
"Binary",
"condition",
"for",
"String",
"greater",
"than",
"or",
"equal",
"to",
"comparison",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L320-L322 |
20,299 | aws/aws-sdk-java | aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java | StepFunctionBuilder.gte | public static TimestampGreaterThanOrEqualCondition.Builder gte(String variable, Date expectedValue) {
return TimestampGreaterThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
} | java | public static TimestampGreaterThanOrEqualCondition.Builder gte(String variable, Date expectedValue) {
return TimestampGreaterThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue);
} | [
"public",
"static",
"TimestampGreaterThanOrEqualCondition",
".",
"Builder",
"gte",
"(",
"String",
"variable",
",",
"Date",
"expectedValue",
")",
"{",
"return",
"TimestampGreaterThanOrEqualCondition",
".",
"builder",
"(",
")",
".",
"variable",
"(",
"variable",
")",
"... | Binary condition for Timestamp greater than or equal to comparison. Dates are converted to ISO8601 UTC timestamps.
@param variable The JSONPath expression that determines which piece of the input document is used for the comparison.
@param expectedValue The expected value for this condition.
@see <a href="https:/... | [
"Binary",
"condition",
"for",
"Timestamp",
"greater",
"than",
"or",
"equal",
"to",
"comparison",
".",
"Dates",
"are",
"converted",
"to",
"ISO8601",
"UTC",
"timestamps",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java#L356-L358 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.