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,600 | aws/aws-sdk-java | aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/MessageRequest.java | MessageRequest.withEndpoints | public MessageRequest withEndpoints(java.util.Map<String, EndpointSendConfiguration> endpoints) {
setEndpoints(endpoints);
return this;
} | java | public MessageRequest withEndpoints(java.util.Map<String, EndpointSendConfiguration> endpoints) {
setEndpoints(endpoints);
return this;
} | [
"public",
"MessageRequest",
"withEndpoints",
"(",
"java",
".",
"util",
".",
"Map",
"<",
"String",
",",
"EndpointSendConfiguration",
">",
"endpoints",
")",
"{",
"setEndpoints",
"(",
"endpoints",
")",
";",
"return",
"this",
";",
"}"
] | A map of key-value pairs, where each key is an endpoint ID and each value is an EndpointSendConfiguration object.
Within an EndpointSendConfiguration object, you can tailor the message for an endpoint by specifying message
overrides or substitutions.
@param endpoints
A map of key-value pairs, where each key is an endp... | [
"A",
"map",
"of",
"key",
"-",
"value",
"pairs",
"where",
"each",
"key",
"is",
"an",
"endpoint",
"ID",
"and",
"each",
"value",
"is",
"an",
"EndpointSendConfiguration",
"object",
".",
"Within",
"an",
"EndpointSendConfiguration",
"object",
"you",
"can",
"tailor",... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/MessageRequest.java#L213-L216 |
20,601 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ReplicationRule.java | ReplicationRule.setPrefix | @Deprecated
public void setPrefix(String prefix) {
if (prefix == null) {
throw new IllegalArgumentException(
"Prefix cannot be null for a replication rule");
}
if (filter != null) {
throw new IllegalArgumentException(
"You canno... | java | @Deprecated
public void setPrefix(String prefix) {
if (prefix == null) {
throw new IllegalArgumentException(
"Prefix cannot be null for a replication rule");
}
if (filter != null) {
throw new IllegalArgumentException(
"You canno... | [
"@",
"Deprecated",
"public",
"void",
"setPrefix",
"(",
"String",
"prefix",
")",
"{",
"if",
"(",
"prefix",
"==",
"null",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Prefix cannot be null for a replication rule\"",
")",
";",
"}",
"if",
"(",
"filt... | Sets the Amazon S3 Object prefix for the replication rule.
@throws IllegalArgumentException
if the prefix is null.
@deprecated Use {@link ReplicationFilter}. | [
"Sets",
"the",
"Amazon",
"S3",
"Object",
"prefix",
"for",
"the",
"replication",
"rule",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ReplicationRule.java#L139-L150 |
20,602 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/RequestClientOptions.java | RequestClientOptions.appendUserAgent | public void appendUserAgent(String userAgent) {
String marker = markers.get(Marker.USER_AGENT);
if (marker == null)
marker = "";
marker = createUserAgentMarkerString(marker, userAgent);
putClientMarker(Marker.USER_AGENT, marker);
} | java | public void appendUserAgent(String userAgent) {
String marker = markers.get(Marker.USER_AGENT);
if (marker == null)
marker = "";
marker = createUserAgentMarkerString(marker, userAgent);
putClientMarker(Marker.USER_AGENT, marker);
} | [
"public",
"void",
"appendUserAgent",
"(",
"String",
"userAgent",
")",
"{",
"String",
"marker",
"=",
"markers",
".",
"get",
"(",
"Marker",
".",
"USER_AGENT",
")",
";",
"if",
"(",
"marker",
"==",
"null",
")",
"marker",
"=",
"\"\"",
";",
"marker",
"=",
"c... | Appends a user agent to the USER_AGENT client marker.
This method is intended only for internal use by the AWS SDK. | [
"Appends",
"a",
"user",
"agent",
"to",
"the",
"USER_AGENT",
"client",
"marker",
".",
"This",
"method",
"is",
"intended",
"only",
"for",
"internal",
"use",
"by",
"the",
"AWS",
"SDK",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/RequestClientOptions.java#L86-L92 |
20,603 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/RequestClientOptions.java | RequestClientOptions.createUserAgentMarkerString | private String createUserAgentMarkerString(final String marker, String userAgent) {
return marker.contains(userAgent) ? marker : marker + " " + userAgent;
} | java | private String createUserAgentMarkerString(final String marker, String userAgent) {
return marker.contains(userAgent) ? marker : marker + " " + userAgent;
} | [
"private",
"String",
"createUserAgentMarkerString",
"(",
"final",
"String",
"marker",
",",
"String",
"userAgent",
")",
"{",
"return",
"marker",
".",
"contains",
"(",
"userAgent",
")",
"?",
"marker",
":",
"marker",
"+",
"\" \"",
"+",
"userAgent",
";",
"}"
] | Appends the given client marker string to the existing one and returns it. | [
"Appends",
"the",
"given",
"client",
"marker",
"string",
"to",
"the",
"existing",
"one",
"and",
"returns",
"it",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/RequestClientOptions.java#L97-L99 |
20,604 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/InputSettings.java | InputSettings.setAudioSelectors | public void setAudioSelectors(java.util.Collection<AudioSelector> audioSelectors) {
if (audioSelectors == null) {
this.audioSelectors = null;
return;
}
this.audioSelectors = new java.util.ArrayList<AudioSelector>(audioSelectors);
} | java | public void setAudioSelectors(java.util.Collection<AudioSelector> audioSelectors) {
if (audioSelectors == null) {
this.audioSelectors = null;
return;
}
this.audioSelectors = new java.util.ArrayList<AudioSelector>(audioSelectors);
} | [
"public",
"void",
"setAudioSelectors",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"AudioSelector",
">",
"audioSelectors",
")",
"{",
"if",
"(",
"audioSelectors",
"==",
"null",
")",
"{",
"this",
".",
"audioSelectors",
"=",
"null",
";",
"return",
";",
... | Used to select the audio stream to decode for inputs that have multiple available.
@param audioSelectors
Used to select the audio stream to decode for inputs that have multiple available. | [
"Used",
"to",
"select",
"the",
"audio",
"stream",
"to",
"decode",
"for",
"inputs",
"that",
"have",
"multiple",
"available",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/InputSettings.java#L69-L76 |
20,605 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/InputSettings.java | InputSettings.setCaptionSelectors | public void setCaptionSelectors(java.util.Collection<CaptionSelector> captionSelectors) {
if (captionSelectors == null) {
this.captionSelectors = null;
return;
}
this.captionSelectors = new java.util.ArrayList<CaptionSelector>(captionSelectors);
} | java | public void setCaptionSelectors(java.util.Collection<CaptionSelector> captionSelectors) {
if (captionSelectors == null) {
this.captionSelectors = null;
return;
}
this.captionSelectors = new java.util.ArrayList<CaptionSelector>(captionSelectors);
} | [
"public",
"void",
"setCaptionSelectors",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"CaptionSelector",
">",
"captionSelectors",
")",
"{",
"if",
"(",
"captionSelectors",
"==",
"null",
")",
"{",
"this",
".",
"captionSelectors",
"=",
"null",
";",
"return",... | Used to select the caption input to use for inputs that have multiple available.
@param captionSelectors
Used to select the caption input to use for inputs that have multiple available. | [
"Used",
"to",
"select",
"the",
"caption",
"input",
"to",
"use",
"for",
"inputs",
"that",
"have",
"multiple",
"available",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/InputSettings.java#L131-L138 |
20,606 | aws/aws-sdk-java | aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ForbiddenException.java | ForbiddenException.setRequestID | @com.fasterxml.jackson.annotation.JsonProperty("RequestID")
public void setRequestID(String requestID) {
this.requestID = requestID;
} | java | @com.fasterxml.jackson.annotation.JsonProperty("RequestID")
public void setRequestID(String requestID) {
this.requestID = requestID;
} | [
"@",
"com",
".",
"fasterxml",
".",
"jackson",
".",
"annotation",
".",
"JsonProperty",
"(",
"\"RequestID\"",
")",
"public",
"void",
"setRequestID",
"(",
"String",
"requestID",
")",
"{",
"this",
".",
"requestID",
"=",
"requestID",
";",
"}"
] | The unique message body ID.
@param requestID
The unique message body ID. | [
"The",
"unique",
"message",
"body",
"ID",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ForbiddenException.java#L44-L47 |
20,607 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/model/intermediate/MemberModel.java | MemberModel.getSetterGuidanceDoc | private String getSetterGuidanceDoc() {
StringBuilder docBuilder = new StringBuilder();
if (isJsonValue()) {
docBuilder.append("<p>")
.append(LINE_SEPARATOR)
.append("This field's value must be valid JSON according to RFC 7159, including the openi... | java | private String getSetterGuidanceDoc() {
StringBuilder docBuilder = new StringBuilder();
if (isJsonValue()) {
docBuilder.append("<p>")
.append(LINE_SEPARATOR)
.append("This field's value must be valid JSON according to RFC 7159, including the openi... | [
"private",
"String",
"getSetterGuidanceDoc",
"(",
")",
"{",
"StringBuilder",
"docBuilder",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"isJsonValue",
"(",
")",
")",
"{",
"docBuilder",
".",
"append",
"(",
"\"<p>\"",
")",
".",
"append",
"(",
"LINE... | Get the documentation that should be shared between the "with" and "set"-style methods that pertains to the type of data in
the message. This usually instructs customers on how to properly format the data that they write to the message based on
its type. | [
"Get",
"the",
"documentation",
"that",
"should",
"be",
"shared",
"between",
"the",
"with",
"and",
"set",
"-",
"style",
"methods",
"that",
"pertains",
"to",
"the",
"type",
"of",
"data",
"in",
"the",
"message",
".",
"This",
"usually",
"instructs",
"customers",... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/model/intermediate/MemberModel.java#L384-L424 |
20,608 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/model/intermediate/MemberModel.java | MemberModel.getMarshallingType | public String getMarshallingType() {
if (isList()) {
return "LIST";
} else if (isMap()) {
return "MAP";
} else if (isJsonValue()) {
return "JSON_VALUE";
} else if (!isSimple()) {
return "STRUCTURED";
} else {
return Type... | java | public String getMarshallingType() {
if (isList()) {
return "LIST";
} else if (isMap()) {
return "MAP";
} else if (isJsonValue()) {
return "JSON_VALUE";
} else if (!isSimple()) {
return "STRUCTURED";
} else {
return Type... | [
"public",
"String",
"getMarshallingType",
"(",
")",
"{",
"if",
"(",
"isList",
"(",
")",
")",
"{",
"return",
"\"LIST\"",
";",
"}",
"else",
"if",
"(",
"isMap",
"(",
")",
")",
"{",
"return",
"\"MAP\"",
";",
"}",
"else",
"if",
"(",
"isJsonValue",
"(",
... | Currently used only for JSON services.
@return Marshalling type to use when creating a {@link MarshallingInfo}. Must be a field of {@link
com.amazonaws.protocol.MarshallingType}. | [
"Currently",
"used",
"only",
"for",
"JSON",
"services",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/model/intermediate/MemberModel.java#L505-L517 |
20,609 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.batchUpdateSchedule | @Override
public BatchUpdateScheduleResult batchUpdateSchedule(BatchUpdateScheduleRequest request) {
request = beforeClientExecution(request);
return executeBatchUpdateSchedule(request);
} | java | @Override
public BatchUpdateScheduleResult batchUpdateSchedule(BatchUpdateScheduleRequest request) {
request = beforeClientExecution(request);
return executeBatchUpdateSchedule(request);
} | [
"@",
"Override",
"public",
"BatchUpdateScheduleResult",
"batchUpdateSchedule",
"(",
"BatchUpdateScheduleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchUpdateSchedule",
"(",
"request",
")",
";",
"}... | Update a channel schedule
@param batchUpdateScheduleRequest
List of actions to create and list of actions to delete.
@return Result of the BatchUpdateSchedule operation returned by the service.
@throws BadRequestException
This request was invalid.
@throws UnprocessableEntityException
The update schedule request failed... | [
"Update",
"a",
"channel",
"schedule"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L179-L183 |
20,610 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.createInput | @Override
public CreateInputResult createInput(CreateInputRequest request) {
request = beforeClientExecution(request);
return executeCreateInput(request);
} | java | @Override
public CreateInputResult createInput(CreateInputRequest request) {
request = beforeClientExecution(request);
return executeCreateInput(request);
} | [
"@",
"Override",
"public",
"CreateInputResult",
"createInput",
"(",
"CreateInputRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateInput",
"(",
"request",
")",
";",
"}"
] | Create an input
@param createInputRequest
The name of the input
@return Result of the CreateInput operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal Service Error
@throws ForbiddenException
Access was denied
@throws BadGatewayException
... | [
"Create",
"an",
"input"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L309-L313 |
20,611 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.createInputSecurityGroup | @Override
public CreateInputSecurityGroupResult createInputSecurityGroup(CreateInputSecurityGroupRequest request) {
request = beforeClientExecution(request);
return executeCreateInputSecurityGroup(request);
} | java | @Override
public CreateInputSecurityGroupResult createInputSecurityGroup(CreateInputSecurityGroupRequest request) {
request = beforeClientExecution(request);
return executeCreateInputSecurityGroup(request);
} | [
"@",
"Override",
"public",
"CreateInputSecurityGroupResult",
"createInputSecurityGroup",
"(",
"CreateInputSecurityGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateInputSecurityGroup",
"(",
"request"... | Creates a Input Security Group
@param createInputSecurityGroupRequest
The IPv4 CIDRs to whitelist for this Input Security Group
@return Result of the CreateInputSecurityGroup operation returned by the service.
@throws BadRequestException
The request to create an Input Security Group was Invalid
@throws InternalServerE... | [
"Creates",
"a",
"Input",
"Security",
"Group"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L372-L376 |
20,612 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.deleteInput | @Override
public DeleteInputResult deleteInput(DeleteInputRequest request) {
request = beforeClientExecution(request);
return executeDeleteInput(request);
} | java | @Override
public DeleteInputResult deleteInput(DeleteInputRequest request) {
request = beforeClientExecution(request);
return executeDeleteInput(request);
} | [
"@",
"Override",
"public",
"DeleteInputResult",
"deleteInput",
"(",
"DeleteInputRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteInput",
"(",
"request",
")",
";",
"}"
] | Deletes the input end point
@param deleteInputRequest
Placeholder documentation for DeleteInputRequest
@return Result of the DeleteInput operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal Service Error
@throws ForbiddenException
Access ... | [
"Deletes",
"the",
"input",
"end",
"point"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L567-L571 |
20,613 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.deleteInputSecurityGroup | @Override
public DeleteInputSecurityGroupResult deleteInputSecurityGroup(DeleteInputSecurityGroupRequest request) {
request = beforeClientExecution(request);
return executeDeleteInputSecurityGroup(request);
} | java | @Override
public DeleteInputSecurityGroupResult deleteInputSecurityGroup(DeleteInputSecurityGroupRequest request) {
request = beforeClientExecution(request);
return executeDeleteInputSecurityGroup(request);
} | [
"@",
"Override",
"public",
"DeleteInputSecurityGroupResult",
"deleteInputSecurityGroup",
"(",
"DeleteInputSecurityGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteInputSecurityGroup",
"(",
"request"... | Deletes an Input Security Group
@param deleteInputSecurityGroupRequest
Placeholder documentation for DeleteInputSecurityGroupRequest
@return Result of the DeleteInputSecurityGroup operation returned by the service.
@throws BadRequestException
The request to delete the Input Security Group was Invalid
@throws InternalS... | [
"Deletes",
"an",
"Input",
"Security",
"Group"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L632-L636 |
20,614 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.deleteReservation | @Override
public DeleteReservationResult deleteReservation(DeleteReservationRequest request) {
request = beforeClientExecution(request);
return executeDeleteReservation(request);
} | java | @Override
public DeleteReservationResult deleteReservation(DeleteReservationRequest request) {
request = beforeClientExecution(request);
return executeDeleteReservation(request);
} | [
"@",
"Override",
"public",
"DeleteReservationResult",
"deleteReservation",
"(",
"DeleteReservationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteReservation",
"(",
"request",
")",
";",
"}"
] | Delete an expired reservation.
@param deleteReservationRequest
Placeholder documentation for DeleteReservationRequest
@return Result of the DeleteReservation operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal service error
@throws Forbi... | [
"Delete",
"an",
"expired",
"reservation",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L701-L705 |
20,615 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.describeInput | @Override
public DescribeInputResult describeInput(DescribeInputRequest request) {
request = beforeClientExecution(request);
return executeDescribeInput(request);
} | java | @Override
public DescribeInputResult describeInput(DescribeInputRequest request) {
request = beforeClientExecution(request);
return executeDescribeInput(request);
} | [
"@",
"Override",
"public",
"DescribeInputResult",
"describeInput",
"(",
"DescribeInputRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeInput",
"(",
"request",
")",
";",
"}"
] | Produces details about an input
@param describeInputRequest
Placeholder documentation for DescribeInputRequest
@return Result of the DescribeInput operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal Service Error
@throws ForbiddenExcepti... | [
"Produces",
"details",
"about",
"an",
"input"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L890-L894 |
20,616 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.describeInputSecurityGroup | @Override
public DescribeInputSecurityGroupResult describeInputSecurityGroup(DescribeInputSecurityGroupRequest request) {
request = beforeClientExecution(request);
return executeDescribeInputSecurityGroup(request);
} | java | @Override
public DescribeInputSecurityGroupResult describeInputSecurityGroup(DescribeInputSecurityGroupRequest request) {
request = beforeClientExecution(request);
return executeDescribeInputSecurityGroup(request);
} | [
"@",
"Override",
"public",
"DescribeInputSecurityGroupResult",
"describeInputSecurityGroup",
"(",
"DescribeInputSecurityGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeInputSecurityGroup",
"(",
"... | Produces a summary of an Input Security Group
@param describeInputSecurityGroupRequest
Placeholder documentation for DescribeInputSecurityGroupRequest
@return Result of the DescribeInputSecurityGroup operation returned by the service.
@throws BadRequestException
The request to describe an Input Security Group was Inva... | [
"Produces",
"a",
"summary",
"of",
"an",
"Input",
"Security",
"Group"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L955-L959 |
20,617 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.describeOffering | @Override
public DescribeOfferingResult describeOffering(DescribeOfferingRequest request) {
request = beforeClientExecution(request);
return executeDescribeOffering(request);
} | java | @Override
public DescribeOfferingResult describeOffering(DescribeOfferingRequest request) {
request = beforeClientExecution(request);
return executeDescribeOffering(request);
} | [
"@",
"Override",
"public",
"DescribeOfferingResult",
"describeOffering",
"(",
"DescribeOfferingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeOffering",
"(",
"request",
")",
";",
"}"
] | Get details for an offering.
@param describeOfferingRequest
Placeholder documentation for DescribeOfferingRequest
@return Result of the DescribeOffering operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal service error
@throws ForbiddenE... | [
"Get",
"details",
"for",
"an",
"offering",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1022-L1026 |
20,618 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.describeReservation | @Override
public DescribeReservationResult describeReservation(DescribeReservationRequest request) {
request = beforeClientExecution(request);
return executeDescribeReservation(request);
} | java | @Override
public DescribeReservationResult describeReservation(DescribeReservationRequest request) {
request = beforeClientExecution(request);
return executeDescribeReservation(request);
} | [
"@",
"Override",
"public",
"DescribeReservationResult",
"describeReservation",
"(",
"DescribeReservationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeReservation",
"(",
"request",
")",
";",
"}... | Get details for a reservation.
@param describeReservationRequest
Placeholder documentation for DescribeReservationRequest
@return Result of the DescribeReservation operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal service error
@throws... | [
"Get",
"details",
"for",
"a",
"reservation",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1087-L1091 |
20,619 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.describeSchedule | @Override
public DescribeScheduleResult describeSchedule(DescribeScheduleRequest request) {
request = beforeClientExecution(request);
return executeDescribeSchedule(request);
} | java | @Override
public DescribeScheduleResult describeSchedule(DescribeScheduleRequest request) {
request = beforeClientExecution(request);
return executeDescribeSchedule(request);
} | [
"@",
"Override",
"public",
"DescribeScheduleResult",
"describeSchedule",
"(",
"DescribeScheduleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSchedule",
"(",
"request",
")",
";",
"}"
] | Get a channel schedule
@param describeScheduleRequest
Placeholder documentation for DescribeScheduleRequest
@return Result of the DescribeSchedule operation returned by the service.
@throws BadRequestException
This request was invalid.
@throws InternalServerErrorException
Unexpected internal service error.
@throws For... | [
"Get",
"a",
"channel",
"schedule"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1152-L1156 |
20,620 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.listInputSecurityGroups | @Override
public ListInputSecurityGroupsResult listInputSecurityGroups(ListInputSecurityGroupsRequest request) {
request = beforeClientExecution(request);
return executeListInputSecurityGroups(request);
} | java | @Override
public ListInputSecurityGroupsResult listInputSecurityGroups(ListInputSecurityGroupsRequest request) {
request = beforeClientExecution(request);
return executeListInputSecurityGroups(request);
} | [
"@",
"Override",
"public",
"ListInputSecurityGroupsResult",
"listInputSecurityGroups",
"(",
"ListInputSecurityGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListInputSecurityGroups",
"(",
"request",
... | Produces a list of Input Security Groups for an account
@param listInputSecurityGroupsRequest
Placeholder documentation for ListInputSecurityGroupsRequest
@return Result of the ListInputSecurityGroups operation returned by the service.
@throws BadRequestException
The request to list Input Security Groups was invalid
@... | [
"Produces",
"a",
"list",
"of",
"Input",
"Security",
"Groups",
"for",
"an",
"account"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1278-L1282 |
20,621 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.listInputs | @Override
public ListInputsResult listInputs(ListInputsRequest request) {
request = beforeClientExecution(request);
return executeListInputs(request);
} | java | @Override
public ListInputsResult listInputs(ListInputsRequest request) {
request = beforeClientExecution(request);
return executeListInputs(request);
} | [
"@",
"Override",
"public",
"ListInputsResult",
"listInputs",
"(",
"ListInputsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListInputs",
"(",
"request",
")",
";",
"}"
] | Produces list of inputs that have been created
@param listInputsRequest
Placeholder documentation for ListInputsRequest
@return Result of the ListInputs operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal Service Error
@throws ForbiddenE... | [
"Produces",
"list",
"of",
"inputs",
"that",
"have",
"been",
"created"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1343-L1347 |
20,622 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.listOfferings | @Override
public ListOfferingsResult listOfferings(ListOfferingsRequest request) {
request = beforeClientExecution(request);
return executeListOfferings(request);
} | java | @Override
public ListOfferingsResult listOfferings(ListOfferingsRequest request) {
request = beforeClientExecution(request);
return executeListOfferings(request);
} | [
"@",
"Override",
"public",
"ListOfferingsResult",
"listOfferings",
"(",
"ListOfferingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListOfferings",
"(",
"request",
")",
";",
"}"
] | List offerings available for purchase.
@param listOfferingsRequest
Placeholder documentation for ListOfferingsRequest
@return Result of the ListOfferings operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal service error
@throws Forbidden... | [
"List",
"offerings",
"available",
"for",
"purchase",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1406-L1410 |
20,623 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.listReservations | @Override
public ListReservationsResult listReservations(ListReservationsRequest request) {
request = beforeClientExecution(request);
return executeListReservations(request);
} | java | @Override
public ListReservationsResult listReservations(ListReservationsRequest request) {
request = beforeClientExecution(request);
return executeListReservations(request);
} | [
"@",
"Override",
"public",
"ListReservationsResult",
"listReservations",
"(",
"ListReservationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListReservations",
"(",
"request",
")",
";",
"}"
] | List purchased reservations.
@param listReservationsRequest
Placeholder documentation for ListReservationsRequest
@return Result of the ListReservations operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal service error
@throws ForbiddenE... | [
"List",
"purchased",
"reservations",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1469-L1473 |
20,624 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.purchaseOffering | @Override
public PurchaseOfferingResult purchaseOffering(PurchaseOfferingRequest request) {
request = beforeClientExecution(request);
return executePurchaseOffering(request);
} | java | @Override
public PurchaseOfferingResult purchaseOffering(PurchaseOfferingRequest request) {
request = beforeClientExecution(request);
return executePurchaseOffering(request);
} | [
"@",
"Override",
"public",
"PurchaseOfferingResult",
"purchaseOffering",
"(",
"PurchaseOfferingRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePurchaseOffering",
"(",
"request",
")",
";",
"}"
] | Purchase an offering and create a reservation.
@param purchaseOfferingRequest
Placeholder documentation for PurchaseOfferingRequest
@return Result of the PurchaseOffering operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal service error
... | [
"Purchase",
"an",
"offering",
"and",
"create",
"a",
"reservation",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1595-L1599 |
20,625 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.startChannel | @Override
public StartChannelResult startChannel(StartChannelRequest request) {
request = beforeClientExecution(request);
return executeStartChannel(request);
} | java | @Override
public StartChannelResult startChannel(StartChannelRequest request) {
request = beforeClientExecution(request);
return executeStartChannel(request);
} | [
"@",
"Override",
"public",
"StartChannelResult",
"startChannel",
"(",
"StartChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartChannel",
"(",
"request",
")",
";",
"}"
] | Starts an existing channel
@param startChannelRequest
Placeholder documentation for StartChannelRequest
@return Result of the StartChannel operation returned by the service.
@throws BadRequestException
This request was invalid.
@throws InternalServerErrorException
Unexpected internal service error.
@throws ForbiddenEx... | [
"Starts",
"an",
"existing",
"channel"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1662-L1666 |
20,626 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.stopChannel | @Override
public StopChannelResult stopChannel(StopChannelRequest request) {
request = beforeClientExecution(request);
return executeStopChannel(request);
} | java | @Override
public StopChannelResult stopChannel(StopChannelRequest request) {
request = beforeClientExecution(request);
return executeStopChannel(request);
} | [
"@",
"Override",
"public",
"StopChannelResult",
"stopChannel",
"(",
"StopChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopChannel",
"(",
"request",
")",
";",
"}"
] | Stops a running channel
@param stopChannelRequest
Placeholder documentation for StopChannelRequest
@return Result of the StopChannel operation returned by the service.
@throws BadRequestException
This request was invalid.
@throws InternalServerErrorException
Unexpected internal service error.
@throws ForbiddenExceptio... | [
"Stops",
"a",
"running",
"channel"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1729-L1733 |
20,627 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.updateInput | @Override
public UpdateInputResult updateInput(UpdateInputRequest request) {
request = beforeClientExecution(request);
return executeUpdateInput(request);
} | java | @Override
public UpdateInputResult updateInput(UpdateInputRequest request) {
request = beforeClientExecution(request);
return executeUpdateInput(request);
} | [
"@",
"Override",
"public",
"UpdateInputResult",
"updateInput",
"(",
"UpdateInputRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateInput",
"(",
"request",
")",
";",
"}"
] | Updates an input.
@param updateInputRequest
A request to update an input.
@return Result of the UpdateInput operation returned by the service.
@throws BadRequestException
This request to update the input was invalid.
@throws InternalServerErrorException
Internal Service Error
@throws ForbiddenException
The requester d... | [
"Updates",
"an",
"input",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1859-L1863 |
20,628 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.updateInputSecurityGroup | @Override
public UpdateInputSecurityGroupResult updateInputSecurityGroup(UpdateInputSecurityGroupRequest request) {
request = beforeClientExecution(request);
return executeUpdateInputSecurityGroup(request);
} | java | @Override
public UpdateInputSecurityGroupResult updateInputSecurityGroup(UpdateInputSecurityGroupRequest request) {
request = beforeClientExecution(request);
return executeUpdateInputSecurityGroup(request);
} | [
"@",
"Override",
"public",
"UpdateInputSecurityGroupResult",
"updateInputSecurityGroup",
"(",
"UpdateInputSecurityGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateInputSecurityGroup",
"(",
"request"... | Update an Input Security Group's Whilelists.
@param updateInputSecurityGroupRequest
The request to update some combination of the Input Security Group name and the IPv4 CIDRs the Input
Security Group should allow.
@return Result of the UpdateInputSecurityGroup operation returned by the service.
@throws BadRequestExcep... | [
"Update",
"an",
"Input",
"Security",
"Group",
"s",
"Whilelists",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1925-L1929 |
20,629 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java | AWSMediaLiveClient.updateReservation | @Override
public UpdateReservationResult updateReservation(UpdateReservationRequest request) {
request = beforeClientExecution(request);
return executeUpdateReservation(request);
} | java | @Override
public UpdateReservationResult updateReservation(UpdateReservationRequest request) {
request = beforeClientExecution(request);
return executeUpdateReservation(request);
} | [
"@",
"Override",
"public",
"UpdateReservationResult",
"updateReservation",
"(",
"UpdateReservationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateReservation",
"(",
"request",
")",
";",
"}"
] | Update reservation.
@param updateReservationRequest
Request to update a reservation
@return Result of the UpdateReservation operation returned by the service.
@throws BadRequestException
This request was invalid
@throws InternalServerErrorException
Internal service error
@throws ForbiddenException
You do not have perm... | [
"Update",
"reservation",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/AWSMediaLiveClient.java#L1994-L1998 |
20,630 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/RestoreObjectRequest.java | RestoreObjectRequest.withType | public RestoreObjectRequest withType(RestoreRequestType restoreRequestType) {
setType(restoreRequestType == null ? null : restoreRequestType.toString());
return this;
} | java | public RestoreObjectRequest withType(RestoreRequestType restoreRequestType) {
setType(restoreRequestType == null ? null : restoreRequestType.toString());
return this;
} | [
"public",
"RestoreObjectRequest",
"withType",
"(",
"RestoreRequestType",
"restoreRequestType",
")",
"{",
"setType",
"(",
"restoreRequestType",
"==",
"null",
"?",
"null",
":",
"restoreRequestType",
".",
"toString",
"(",
")",
")",
";",
"return",
"this",
";",
"}"
] | Sets the restore request type.
@param restoreRequestType New value for restore request type.
@return This object for method chaining. | [
"Sets",
"the",
"restore",
"request",
"type",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/RestoreObjectRequest.java#L393-L396 |
20,631 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/RestoreObjectRequest.java | RestoreObjectRequest.withTier | public RestoreObjectRequest withTier(Tier tier) {
this.tier = tier == null ? null : tier.toString();
return this;
} | java | public RestoreObjectRequest withTier(Tier tier) {
this.tier = tier == null ? null : tier.toString();
return this;
} | [
"public",
"RestoreObjectRequest",
"withTier",
"(",
"Tier",
"tier",
")",
"{",
"this",
".",
"tier",
"=",
"tier",
"==",
"null",
"?",
"null",
":",
"tier",
".",
"toString",
"(",
")",
";",
"return",
"this",
";",
"}"
] | Sets the glacier retrieval tier.
@param tier New value for tier.
@return This object for method chaining. | [
"Sets",
"the",
"glacier",
"retrieval",
"tier",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/RestoreObjectRequest.java#L431-L434 |
20,632 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AmazonS3ExceptionBuilder.java | AmazonS3ExceptionBuilder.addAdditionalDetail | public void addAdditionalDetail(String key, String detail) {
if (detail == null || detail.trim().isEmpty())
return;
if (this.additionalDetails == null) {
this.additionalDetails = new HashMap<String, String>();
}
String additionalContent = this.additionalDetails.... | java | public void addAdditionalDetail(String key, String detail) {
if (detail == null || detail.trim().isEmpty())
return;
if (this.additionalDetails == null) {
this.additionalDetails = new HashMap<String, String>();
}
String additionalContent = this.additionalDetails.... | [
"public",
"void",
"addAdditionalDetail",
"(",
"String",
"key",
",",
"String",
"detail",
")",
"{",
"if",
"(",
"detail",
"==",
"null",
"||",
"detail",
".",
"trim",
"(",
")",
".",
"isEmpty",
"(",
")",
")",
"return",
";",
"if",
"(",
"this",
".",
"additio... | Adds an entry to the additional information map. | [
"Adds",
"an",
"entry",
"to",
"the",
"additional",
"information",
"map",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AmazonS3ExceptionBuilder.java#L209-L222 |
20,633 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AmazonS3ExceptionBuilder.java | AmazonS3ExceptionBuilder.build | public AmazonS3Exception build() {
AmazonS3Exception s3Exception = errorResponseXml == null ? new AmazonS3Exception(
errorMessage) : new AmazonS3Exception(errorMessage,
errorResponseXml);
s3Exception.setErrorCode(errorCode);
s3Exception.setExtendedRequestId(extend... | java | public AmazonS3Exception build() {
AmazonS3Exception s3Exception = errorResponseXml == null ? new AmazonS3Exception(
errorMessage) : new AmazonS3Exception(errorMessage,
errorResponseXml);
s3Exception.setErrorCode(errorCode);
s3Exception.setExtendedRequestId(extend... | [
"public",
"AmazonS3Exception",
"build",
"(",
")",
"{",
"AmazonS3Exception",
"s3Exception",
"=",
"errorResponseXml",
"==",
"null",
"?",
"new",
"AmazonS3Exception",
"(",
"errorMessage",
")",
":",
"new",
"AmazonS3Exception",
"(",
"errorMessage",
",",
"errorResponseXml",
... | Creates a new AmazonS3Exception object with the values set. | [
"Creates",
"a",
"new",
"AmazonS3Exception",
"object",
"with",
"the",
"values",
"set",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AmazonS3ExceptionBuilder.java#L241-L253 |
20,634 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/util/PolicyUtils.java | PolicyUtils.validateResourceList | public static void validateResourceList(final List<Resource> resourceList) {
boolean hasNotResource = false;
boolean hasResource = false;
for (Resource resource : resourceList) {
if (resource.isNotType()) {
hasNotResource = true;
} else {
h... | java | public static void validateResourceList(final List<Resource> resourceList) {
boolean hasNotResource = false;
boolean hasResource = false;
for (Resource resource : resourceList) {
if (resource.isNotType()) {
hasNotResource = true;
} else {
h... | [
"public",
"static",
"void",
"validateResourceList",
"(",
"final",
"List",
"<",
"Resource",
">",
"resourceList",
")",
"{",
"boolean",
"hasNotResource",
"=",
"false",
";",
"boolean",
"hasResource",
"=",
"false",
";",
"for",
"(",
"Resource",
"resource",
":",
"res... | Determines if a list of Resource objects is valid, containing either all NotResource elements or all Resource
elements
@param resourceList the list of Resource objects
@throws IllegalArgumentException if the resource list is invalid | [
"Determines",
"if",
"a",
"list",
"of",
"Resource",
"objects",
"is",
"valid",
"containing",
"either",
"all",
"NotResource",
"elements",
"or",
"all",
"Resource",
"elements"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/PolicyUtils.java#L35-L50 |
20,635 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/BatchScheduleActionDeleteRequest.java | BatchScheduleActionDeleteRequest.setActionNames | public void setActionNames(java.util.Collection<String> actionNames) {
if (actionNames == null) {
this.actionNames = null;
return;
}
this.actionNames = new java.util.ArrayList<String>(actionNames);
} | java | public void setActionNames(java.util.Collection<String> actionNames) {
if (actionNames == null) {
this.actionNames = null;
return;
}
this.actionNames = new java.util.ArrayList<String>(actionNames);
} | [
"public",
"void",
"setActionNames",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"String",
">",
"actionNames",
")",
"{",
"if",
"(",
"actionNames",
"==",
"null",
")",
"{",
"this",
".",
"actionNames",
"=",
"null",
";",
"return",
";",
"}",
"this",
".... | A list of schedule actions to delete.
@param actionNames
A list of schedule actions to delete. | [
"A",
"list",
"of",
"schedule",
"actions",
"to",
"delete",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/BatchScheduleActionDeleteRequest.java#L49-L56 |
20,636 | aws/aws-sdk-java | aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/ListBulkDeploymentDetailedReportsResult.java | ListBulkDeploymentDetailedReportsResult.setDeployments | public void setDeployments(java.util.Collection<BulkDeploymentResult> deployments) {
if (deployments == null) {
this.deployments = null;
return;
}
this.deployments = new java.util.ArrayList<BulkDeploymentResult>(deployments);
} | java | public void setDeployments(java.util.Collection<BulkDeploymentResult> deployments) {
if (deployments == null) {
this.deployments = null;
return;
}
this.deployments = new java.util.ArrayList<BulkDeploymentResult>(deployments);
} | [
"public",
"void",
"setDeployments",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"BulkDeploymentResult",
">",
"deployments",
")",
"{",
"if",
"(",
"deployments",
"==",
"null",
")",
"{",
"this",
".",
"deployments",
"=",
"null",
";",
"return",
";",
"}",
... | A list of the individual group deployments in the bulk deployment operation.
@param deployments
A list of the individual group deployments in the bulk deployment operation. | [
"A",
"list",
"of",
"the",
"individual",
"group",
"deployments",
"in",
"the",
"bulk",
"deployment",
"operation",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/ListBulkDeploymentDetailedReportsResult.java#L49-L56 |
20,637 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/BatchGetItemOutcome.java | BatchGetItemOutcome.getTableItems | public Map<String, List<Item>> getTableItems() {
Map<String, List<Map<String, AttributeValue>>> res =
result.getResponses();
Map<String, List<Item>> map = new LinkedHashMap<String, List<Item>>(res.size());
for (Map.Entry<String, List<Map<String, AttributeValue>>> e
... | java | public Map<String, List<Item>> getTableItems() {
Map<String, List<Map<String, AttributeValue>>> res =
result.getResponses();
Map<String, List<Item>> map = new LinkedHashMap<String, List<Item>>(res.size());
for (Map.Entry<String, List<Map<String, AttributeValue>>> e
... | [
"public",
"Map",
"<",
"String",
",",
"List",
"<",
"Item",
">",
">",
"getTableItems",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"List",
"<",
"Map",
"<",
"String",
",",
"AttributeValue",
">",
">",
">",
"res",
"=",
"result",
".",
"getResponses",
"(",
... | Returns a map of table name to the list of retrieved items | [
"Returns",
"a",
"map",
"of",
"table",
"name",
"to",
"the",
"list",
"of",
"retrieved",
"items"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/BatchGetItemOutcome.java#L46-L57 |
20,638 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/StandardAnnotationMaps.java | StandardAnnotationMaps.of | static final <T> TableMap<T> of(Class<T> clazz) {
final TableMap<T> annotations = new TableMap<T>(clazz);
annotations.putAll(clazz);
return annotations;
} | java | static final <T> TableMap<T> of(Class<T> clazz) {
final TableMap<T> annotations = new TableMap<T>(clazz);
annotations.putAll(clazz);
return annotations;
} | [
"static",
"final",
"<",
"T",
">",
"TableMap",
"<",
"T",
">",
"of",
"(",
"Class",
"<",
"T",
">",
"clazz",
")",
"{",
"final",
"TableMap",
"<",
"T",
">",
"annotations",
"=",
"new",
"TableMap",
"<",
"T",
">",
"(",
"clazz",
")",
";",
"annotations",
".... | Gets all the DynamoDB annotations for a given class. | [
"Gets",
"all",
"the",
"DynamoDB",
"annotations",
"for",
"a",
"given",
"class",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/StandardAnnotationMaps.java#L47-L51 |
20,639 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/StandardAnnotationMaps.java | StandardAnnotationMaps.overrideOf | private static <T> T overrideOf(Class<T> clazz, Class<?> targetType, Annotation annotation) {
try {
if (annotation != null) {
try {
return clazz.getConstructor(Class.class, annotation.annotationType()).newInstance(targetType, annotation);
} catch (... | java | private static <T> T overrideOf(Class<T> clazz, Class<?> targetType, Annotation annotation) {
try {
if (annotation != null) {
try {
return clazz.getConstructor(Class.class, annotation.annotationType()).newInstance(targetType, annotation);
} catch (... | [
"private",
"static",
"<",
"T",
">",
"T",
"overrideOf",
"(",
"Class",
"<",
"T",
">",
"clazz",
",",
"Class",
"<",
"?",
">",
"targetType",
",",
"Annotation",
"annotation",
")",
"{",
"try",
"{",
"if",
"(",
"annotation",
"!=",
"null",
")",
"{",
"try",
"... | Creates a new instance of the clazz with the target type and annotation
as parameters if available. | [
"Creates",
"a",
"new",
"instance",
"of",
"the",
"clazz",
"with",
"the",
"target",
"type",
"and",
"annotation",
"as",
"parameters",
"if",
"available",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/StandardAnnotationMaps.java#L432-L446 |
20,640 | aws/aws-sdk-java | aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/waiters/AmazonRDSWaiters.java | AmazonRDSWaiters.dBSnapshotAvailable | public Waiter<DescribeDBSnapshotsRequest> dBSnapshotAvailable() {
return new WaiterBuilder<DescribeDBSnapshotsRequest, DescribeDBSnapshotsResult>()
.withSdkFunction(new DescribeDBSnapshotsFunction(client))
.withAcceptors(new DBSnapshotAvailable.IsAvailableMatcher(), new DBSnapsh... | java | public Waiter<DescribeDBSnapshotsRequest> dBSnapshotAvailable() {
return new WaiterBuilder<DescribeDBSnapshotsRequest, DescribeDBSnapshotsResult>()
.withSdkFunction(new DescribeDBSnapshotsFunction(client))
.withAcceptors(new DBSnapshotAvailable.IsAvailableMatcher(), new DBSnapsh... | [
"public",
"Waiter",
"<",
"DescribeDBSnapshotsRequest",
">",
"dBSnapshotAvailable",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeDBSnapshotsRequest",
",",
"DescribeDBSnapshotsResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeDBSnapsho... | Builds a DBSnapshotAvailable 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",
"DBSnapshotAvailable",
"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-rds/src/main/java/com/amazonaws/services/rds/waiters/AmazonRDSWaiters.java#L67-L76 |
20,641 | aws/aws-sdk-java | aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/waiters/AmazonRDSWaiters.java | AmazonRDSWaiters.dBSnapshotDeleted | public Waiter<DescribeDBSnapshotsRequest> dBSnapshotDeleted() {
return new WaiterBuilder<DescribeDBSnapshotsRequest, DescribeDBSnapshotsResult>()
.withSdkFunction(new DescribeDBSnapshotsFunction(client))
.withAcceptors(new DBSnapshotDeleted.IsDeletedMatcher(), new DBSnapshotDele... | java | public Waiter<DescribeDBSnapshotsRequest> dBSnapshotDeleted() {
return new WaiterBuilder<DescribeDBSnapshotsRequest, DescribeDBSnapshotsResult>()
.withSdkFunction(new DescribeDBSnapshotsFunction(client))
.withAcceptors(new DBSnapshotDeleted.IsDeletedMatcher(), new DBSnapshotDele... | [
"public",
"Waiter",
"<",
"DescribeDBSnapshotsRequest",
">",
"dBSnapshotDeleted",
"(",
")",
"{",
"return",
"new",
"WaiterBuilder",
"<",
"DescribeDBSnapshotsRequest",
",",
"DescribeDBSnapshotsResult",
">",
"(",
")",
".",
"withSdkFunction",
"(",
"new",
"DescribeDBSnapshots... | Builds a DBSnapshotDeleted 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",
"DBSnapshotDeleted",
"waiter",
"by",
"using",
"custom",
"parameters",
"waiterParameters",
"and",
"other",
"parameters",
"defined",
"in",
"the",
"waiters",
"specification",
"and",
"then",
"polls",
"until",
"it",
"determines",
"whether",
"the",
"resourc... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-rds/src/main/java/com/amazonaws/services/rds/waiters/AmazonRDSWaiters.java#L83-L92 |
20,642 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/http/ExecutionContext.java | ExecutionContext.getSignerByURI | @Deprecated
public Signer getSignerByURI(URI uri) {
return awsClient == null ? null : awsClient.getSignerByURI(uri);
} | java | @Deprecated
public Signer getSignerByURI(URI uri) {
return awsClient == null ? null : awsClient.getSignerByURI(uri);
} | [
"@",
"Deprecated",
"public",
"Signer",
"getSignerByURI",
"(",
"URI",
"uri",
")",
"{",
"return",
"awsClient",
"==",
"null",
"?",
"null",
":",
"awsClient",
".",
"getSignerByURI",
"(",
"uri",
")",
";",
"}"
] | Returns the signer for the given uri. Note S3 in particular overrides this method. | [
"Returns",
"the",
"signer",
"for",
"the",
"given",
"uri",
".",
"Note",
"S3",
"in",
"particular",
"overrides",
"this",
"method",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/http/ExecutionContext.java#L140-L143 |
20,643 | aws/aws-sdk-java | aws-java-sdk-mediapackage/src/main/java/com/amazonaws/services/mediapackage/model/ListOriginEndpointsResult.java | ListOriginEndpointsResult.setOriginEndpoints | public void setOriginEndpoints(java.util.Collection<OriginEndpoint> originEndpoints) {
if (originEndpoints == null) {
this.originEndpoints = null;
return;
}
this.originEndpoints = new java.util.ArrayList<OriginEndpoint>(originEndpoints);
} | java | public void setOriginEndpoints(java.util.Collection<OriginEndpoint> originEndpoints) {
if (originEndpoints == null) {
this.originEndpoints = null;
return;
}
this.originEndpoints = new java.util.ArrayList<OriginEndpoint>(originEndpoints);
} | [
"public",
"void",
"setOriginEndpoints",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"OriginEndpoint",
">",
"originEndpoints",
")",
"{",
"if",
"(",
"originEndpoints",
"==",
"null",
")",
"{",
"this",
".",
"originEndpoints",
"=",
"null",
";",
"return",
";... | A list of OriginEndpoint records.
@param originEndpoints
A list of OriginEndpoint records. | [
"A",
"list",
"of",
"OriginEndpoint",
"records",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediapackage/src/main/java/com/amazonaws/services/mediapackage/model/ListOriginEndpointsResult.java#L82-L89 |
20,644 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/regions/Region.java | Region.createClient | @Deprecated
public <T extends AmazonWebServiceClient> T createClient(Class<T> serviceClass,
AWSCredentialsProvider credentials,
ClientConfiguration config) {
Constructor<T> constructor;
... | java | @Deprecated
public <T extends AmazonWebServiceClient> T createClient(Class<T> serviceClass,
AWSCredentialsProvider credentials,
ClientConfiguration config) {
Constructor<T> constructor;
... | [
"@",
"Deprecated",
"public",
"<",
"T",
"extends",
"AmazonWebServiceClient",
">",
"T",
"createClient",
"(",
"Class",
"<",
"T",
">",
"serviceClass",
",",
"AWSCredentialsProvider",
"credentials",
",",
"ClientConfiguration",
"config",
")",
"{",
"Constructor",
"<",
"T"... | Creates a new service client of the class given and configures it. If
credentials or config are null, defaults will be used.
@param serviceClass The service client class to instantiate, e.g. AmazonS3Client.class
@param credentials The credentials provider to use, or null for the default
credentials provider
@param co... | [
"Creates",
"a",
"new",
"service",
"client",
"of",
"the",
"class",
"given",
"and",
"configures",
"it",
".",
"If",
"credentials",
"or",
"config",
"are",
"null",
"defaults",
"will",
"be",
"used",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/regions/Region.java#L142-L168 |
20,645 | aws/aws-sdk-java | aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/UpdateInputRequest.java | UpdateInputRequest.withMediaConnectFlows | public UpdateInputRequest withMediaConnectFlows(MediaConnectFlowRequest... mediaConnectFlows) {
if (this.mediaConnectFlows == null) {
setMediaConnectFlows(new java.util.ArrayList<MediaConnectFlowRequest>(mediaConnectFlows.length));
}
for (MediaConnectFlowRequest ele : mediaConnectFlo... | java | public UpdateInputRequest withMediaConnectFlows(MediaConnectFlowRequest... mediaConnectFlows) {
if (this.mediaConnectFlows == null) {
setMediaConnectFlows(new java.util.ArrayList<MediaConnectFlowRequest>(mediaConnectFlows.length));
}
for (MediaConnectFlowRequest ele : mediaConnectFlo... | [
"public",
"UpdateInputRequest",
"withMediaConnectFlows",
"(",
"MediaConnectFlowRequest",
"...",
"mediaConnectFlows",
")",
"{",
"if",
"(",
"this",
".",
"mediaConnectFlows",
"==",
"null",
")",
"{",
"setMediaConnectFlows",
"(",
"new",
"java",
".",
"util",
".",
"ArrayLi... | A list of the MediaConnect Flow ARNs that you want to use as the source of the input. You can specify as few as
one Flow and presently, as many as two. The only requirement is when you have more than one is that each Flow is
in a separate Availability Zone as this ensures your EML input is redundant to AZ issues.
<p>
... | [
"A",
"list",
"of",
"the",
"MediaConnect",
"Flow",
"ARNs",
"that",
"you",
"want",
"to",
"use",
"as",
"the",
"source",
"of",
"the",
"input",
".",
"You",
"can",
"specify",
"as",
"few",
"as",
"one",
"Flow",
"and",
"presently",
"as",
"many",
"as",
"two",
... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/UpdateInputRequest.java#L262-L270 |
20,646 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/Table.java | Table.describe | public TableDescription describe() {
DescribeTableResult result = client.describeTable(
InternalUtils.applyUserAgent(new DescribeTableRequest(tableName)));
return tableDescription = result.getTable();
} | java | public TableDescription describe() {
DescribeTableResult result = client.describeTable(
InternalUtils.applyUserAgent(new DescribeTableRequest(tableName)));
return tableDescription = result.getTable();
} | [
"public",
"TableDescription",
"describe",
"(",
")",
"{",
"DescribeTableResult",
"result",
"=",
"client",
".",
"describeTable",
"(",
"InternalUtils",
".",
"applyUserAgent",
"(",
"new",
"DescribeTableRequest",
"(",
"tableName",
")",
")",
")",
";",
"return",
"tableDe... | Retrieves the table description from DynamoDB. Involves network calls.
Meant to be called as infrequently as possible to avoid throttling
exception from the server side.
@return a non-null table description
@throws ResourceNotFoundException if the table doesn't exist | [
"Retrieves",
"the",
"table",
"description",
"from",
"DynamoDB",
".",
"Involves",
"network",
"calls",
".",
"Meant",
"to",
"be",
"called",
"as",
"infrequently",
"as",
"possible",
"to",
"avoid",
"throttling",
"exception",
"from",
"the",
"server",
"side",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/Table.java#L136-L140 |
20,647 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/Utils.java | Utils.getRequiredResourceAsStream | public static InputStream getRequiredResourceAsStream(Class<?> clzz, String location) {
InputStream resourceStream = clzz.getResourceAsStream(location);
if (resourceStream == null) {
// Try with a leading "/"
if (!location.startsWith("/")) {
resourceStream = clzz... | java | public static InputStream getRequiredResourceAsStream(Class<?> clzz, String location) {
InputStream resourceStream = clzz.getResourceAsStream(location);
if (resourceStream == null) {
// Try with a leading "/"
if (!location.startsWith("/")) {
resourceStream = clzz... | [
"public",
"static",
"InputStream",
"getRequiredResourceAsStream",
"(",
"Class",
"<",
"?",
">",
"clzz",
",",
"String",
"location",
")",
"{",
"InputStream",
"resourceStream",
"=",
"clzz",
".",
"getResourceAsStream",
"(",
"location",
")",
";",
"if",
"(",
"resourceS... | Return an InputStream of the specified resource, failing if it can't be found.
@param clzz
@param location
Location of resource | [
"Return",
"an",
"InputStream",
"of",
"the",
"specified",
"resource",
"failing",
"if",
"it",
"can",
"t",
"be",
"found",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/Utils.java#L208-L222 |
20,648 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/Utils.java | Utils.getRequiredSystemProperty | public static String getRequiredSystemProperty(String propertyName, String errorMsgIfNotFound) {
String propertyValue = System.getProperty(propertyName);
if (propertyValue == null) {
throw new RuntimeException(errorMsgIfNotFound);
}
return propertyValue;
} | java | public static String getRequiredSystemProperty(String propertyName, String errorMsgIfNotFound) {
String propertyValue = System.getProperty(propertyName);
if (propertyValue == null) {
throw new RuntimeException(errorMsgIfNotFound);
}
return propertyValue;
} | [
"public",
"static",
"String",
"getRequiredSystemProperty",
"(",
"String",
"propertyName",
",",
"String",
"errorMsgIfNotFound",
")",
"{",
"String",
"propertyValue",
"=",
"System",
".",
"getProperty",
"(",
"propertyName",
")",
";",
"if",
"(",
"propertyValue",
"==",
... | Retrieve system property by name, failing if it's not found
@param propertyName
@param errorMsgIfNotFound
@return Value of property if it exists | [
"Retrieve",
"system",
"property",
"by",
"name",
"failing",
"if",
"it",
"s",
"not",
"found"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/Utils.java#L231-L237 |
20,649 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/Utils.java | Utils.assertNotNull | public static <T> T assertNotNull(T argument, String msg) {
if (argument == null) throw new IllegalArgumentException(msg);
return argument;
} | java | public static <T> T assertNotNull(T argument, String msg) {
if (argument == null) throw new IllegalArgumentException(msg);
return argument;
} | [
"public",
"static",
"<",
"T",
">",
"T",
"assertNotNull",
"(",
"T",
"argument",
",",
"String",
"msg",
")",
"{",
"if",
"(",
"argument",
"==",
"null",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"msg",
")",
";",
"return",
"argument",
";",
"}"
] | Throws IllegalArgumentException with the specified error message if the input
is null, otherwise return the input as is. | [
"Throws",
"IllegalArgumentException",
"with",
"the",
"specified",
"error",
"message",
"if",
"the",
"input",
"is",
"null",
"otherwise",
"return",
"the",
"input",
"as",
"is",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/Utils.java#L253-L256 |
20,650 | aws/aws-sdk-java | aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/Utils.java | Utils.createInputShapeMarshaller | public static ShapeMarshaller createInputShapeMarshaller(ServiceMetadata service, Operation operation) {
if (operation == null)
throw new IllegalArgumentException(
"The operation parameter must be specified!");
ShapeMarshaller marshaller = new ShapeMarshaller()
... | java | public static ShapeMarshaller createInputShapeMarshaller(ServiceMetadata service, Operation operation) {
if (operation == null)
throw new IllegalArgumentException(
"The operation parameter must be specified!");
ShapeMarshaller marshaller = new ShapeMarshaller()
... | [
"public",
"static",
"ShapeMarshaller",
"createInputShapeMarshaller",
"(",
"ServiceMetadata",
"service",
",",
"Operation",
"operation",
")",
"{",
"if",
"(",
"operation",
"==",
"null",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"The operation parameter must be ... | Create the ShapeMarshaller to the input shape from the specified Operation.
The input shape in the operation could be empty.
@param service
@param operation
@return | [
"Create",
"the",
"ShapeMarshaller",
"to",
"the",
"input",
"shape",
"from",
"the",
"specified",
"Operation",
".",
"The",
"input",
"shape",
"in",
"the",
"operation",
"could",
"be",
"empty",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/Utils.java#L298-L322 |
20,651 | aws/aws-sdk-java | aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoPutMediaClient.java | AmazonKinesisVideoPutMediaClient.getPort | private int getPort(URI endpoint) {
if (endpoint.getPort() != -1) {
return endpoint.getPort();
} else if ("https".equals(endpoint.getScheme())) {
return 443;
} else {
return 80;
}
} | java | private int getPort(URI endpoint) {
if (endpoint.getPort() != -1) {
return endpoint.getPort();
} else if ("https".equals(endpoint.getScheme())) {
return 443;
} else {
return 80;
}
} | [
"private",
"int",
"getPort",
"(",
"URI",
"endpoint",
")",
"{",
"if",
"(",
"endpoint",
".",
"getPort",
"(",
")",
"!=",
"-",
"1",
")",
"{",
"return",
"endpoint",
".",
"getPort",
"(",
")",
";",
"}",
"else",
"if",
"(",
"\"https\"",
".",
"equals",
"(",
... | Netty needs an explicit port so resolve that from the endpoint provided.
@param endpoint Configured endpoint
@return Port number to use. | [
"Netty",
"needs",
"an",
"explicit",
"port",
"so",
"resolve",
"that",
"from",
"the",
"endpoint",
"provided",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoPutMediaClient.java#L163-L171 |
20,652 | aws/aws-sdk-java | aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoPutMediaClient.java | AmazonKinesisVideoPutMediaClient.resolveCredentials | private AWSCredentials resolveCredentials(PutMediaRequest request) {
AWSCredentialsProvider resolvedProvider = CredentialUtils.getCredentialsProvider(request, credentialsProvider);
AWSCredentials resolvedCredentials = resolvedProvider == null ? null : resolvedProvider.getCredentials();
if (resol... | java | private AWSCredentials resolveCredentials(PutMediaRequest request) {
AWSCredentialsProvider resolvedProvider = CredentialUtils.getCredentialsProvider(request, credentialsProvider);
AWSCredentials resolvedCredentials = resolvedProvider == null ? null : resolvedProvider.getCredentials();
if (resol... | [
"private",
"AWSCredentials",
"resolveCredentials",
"(",
"PutMediaRequest",
"request",
")",
"{",
"AWSCredentialsProvider",
"resolvedProvider",
"=",
"CredentialUtils",
".",
"getCredentialsProvider",
"(",
"request",
",",
"credentialsProvider",
")",
";",
"AWSCredentials",
"reso... | Resolve credentials which may be overridden at a per request level.
@param request Request being made.
@return Credentials to use or null if no credentials found. | [
"Resolve",
"credentials",
"which",
"may",
"be",
"overridden",
"at",
"a",
"per",
"request",
"level",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoPutMediaClient.java#L192-L201 |
20,653 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java | EC2MetadataUtils.getIAMInstanceProfileInfo | public static IAMInfo getIAMInstanceProfileInfo() {
String json = getData(EC2_METADATA_ROOT + "/iam/info");
if (null == json) {
return null;
}
try {
return mapper.readValue(json, IAMInfo.class);
} catch (Exception e) {
log.warn("Unable to pa... | java | public static IAMInfo getIAMInstanceProfileInfo() {
String json = getData(EC2_METADATA_ROOT + "/iam/info");
if (null == json) {
return null;
}
try {
return mapper.readValue(json, IAMInfo.class);
} catch (Exception e) {
log.warn("Unable to pa... | [
"public",
"static",
"IAMInfo",
"getIAMInstanceProfileInfo",
"(",
")",
"{",
"String",
"json",
"=",
"getData",
"(",
"EC2_METADATA_ROOT",
"+",
"\"/iam/info\"",
")",
";",
"if",
"(",
"null",
"==",
"json",
")",
"{",
"return",
"null",
";",
"}",
"try",
"{",
"retur... | Get information about the last time the instance profile was updated,
including the instance's LastUpdated date, InstanceProfileArn, and
InstanceProfileId. | [
"Get",
"information",
"about",
"the",
"last",
"time",
"the",
"instance",
"profile",
"was",
"updated",
"including",
"the",
"instance",
"s",
"LastUpdated",
"date",
"InstanceProfileArn",
"and",
"InstanceProfileId",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java#L217-L232 |
20,654 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java | EC2MetadataUtils.getBlockDeviceMapping | public static Map<String, String> getBlockDeviceMapping() {
Map<String, String> blockDeviceMapping = new HashMap<String, String>();
List<String> devices = getItems(EC2_METADATA_ROOT + "/block-device-mapping");
if (devices != null) {
for (String device : devices) {
bl... | java | public static Map<String, String> getBlockDeviceMapping() {
Map<String, String> blockDeviceMapping = new HashMap<String, String>();
List<String> devices = getItems(EC2_METADATA_ROOT + "/block-device-mapping");
if (devices != null) {
for (String device : devices) {
bl... | [
"public",
"static",
"Map",
"<",
"String",
",",
"String",
">",
"getBlockDeviceMapping",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"blockDeviceMapping",
"=",
"new",
"HashMap",
"<",
"String",
",",
"String",
">",
"(",
")",
";",
"List",
"<",
... | Get the virtual devices associated with the ami, root, ebs, and swap. | [
"Get",
"the",
"virtual",
"devices",
"associated",
"with",
"the",
"ami",
"root",
"ebs",
"and",
"swap",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java#L325-L336 |
20,655 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java | EC2MetadataUtils.getNetworkInterfaces | public static List<NetworkInterface> getNetworkInterfaces() {
List<NetworkInterface> networkInterfaces = new LinkedList<NetworkInterface>();
List<String> macs = getItems(EC2_METADATA_ROOT + "/network/interfaces/macs/");
if (macs != null) {
for (String mac : macs) {
S... | java | public static List<NetworkInterface> getNetworkInterfaces() {
List<NetworkInterface> networkInterfaces = new LinkedList<NetworkInterface>();
List<String> macs = getItems(EC2_METADATA_ROOT + "/network/interfaces/macs/");
if (macs != null) {
for (String mac : macs) {
S... | [
"public",
"static",
"List",
"<",
"NetworkInterface",
">",
"getNetworkInterfaces",
"(",
")",
"{",
"List",
"<",
"NetworkInterface",
">",
"networkInterfaces",
"=",
"new",
"LinkedList",
"<",
"NetworkInterface",
">",
"(",
")",
";",
"List",
"<",
"String",
">",
"macs... | Get the list of network interfaces on the instance. | [
"Get",
"the",
"list",
"of",
"network",
"interfaces",
"on",
"the",
"instance",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java#L341-L355 |
20,656 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java | EC2MetadataUtils.getHostAddressForEC2MetadataService | public static String getHostAddressForEC2MetadataService() {
String host = System.getProperty(EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY);
return host != null ? host : EC2_METADATA_SERVICE_URL;
} | java | public static String getHostAddressForEC2MetadataService() {
String host = System.getProperty(EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY);
return host != null ? host : EC2_METADATA_SERVICE_URL;
} | [
"public",
"static",
"String",
"getHostAddressForEC2MetadataService",
"(",
")",
"{",
"String",
"host",
"=",
"System",
".",
"getProperty",
"(",
"EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY",
")",
";",
"return",
"host",
"!=",
"null",
"?",
"host",
":",
"EC2_METADATA_SER... | Returns the host address of the Amazon EC2 Instance Metadata Service. | [
"Returns",
"the",
"host",
"address",
"of",
"the",
"Amazon",
"EC2",
"Instance",
"Metadata",
"Service",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/EC2MetadataUtils.java#L439-L442 |
20,657 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterExecution.java | WaiterExecution.pollResource | public boolean pollResource() throws AmazonServiceException, WaiterTimedOutException, WaiterUnrecoverableException {
int retriesAttempted = 0;
while (true) {
switch (getCurrentState()) {
case SUCCESS:
return true;
case FAILURE:
... | java | public boolean pollResource() throws AmazonServiceException, WaiterTimedOutException, WaiterUnrecoverableException {
int retriesAttempted = 0;
while (true) {
switch (getCurrentState()) {
case SUCCESS:
return true;
case FAILURE:
... | [
"public",
"boolean",
"pollResource",
"(",
")",
"throws",
"AmazonServiceException",
",",
"WaiterTimedOutException",
",",
"WaiterUnrecoverableException",
"{",
"int",
"retriesAttempted",
"=",
"0",
";",
"while",
"(",
"true",
")",
"{",
"switch",
"(",
"getCurrentState",
"... | Polls until a specified resource transitions into either success or failure state or
until the specified number of retries has been made.
@return True if the resource transitions into desired state.
@throws AmazonServiceException If the service exception thrown doesn't match any of the expected
exceptions, it's ... | [
"Polls",
"until",
"a",
"specified",
"resource",
"transitions",
"into",
"either",
"success",
"or",
"failure",
"state",
"or",
"until",
"the",
"specified",
"number",
"of",
"retries",
"has",
"been",
"made",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterExecution.java#L71-L92 |
20,658 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterExecution.java | WaiterExecution.getCurrentState | private WaiterState getCurrentState() throws AmazonServiceException {
try {
return acceptor.accepts(sdkFunction.apply(request));
} catch (AmazonServiceException amazonServiceException) {
return acceptor.accepts(amazonServiceException);
}
} | java | private WaiterState getCurrentState() throws AmazonServiceException {
try {
return acceptor.accepts(sdkFunction.apply(request));
} catch (AmazonServiceException amazonServiceException) {
return acceptor.accepts(amazonServiceException);
}
} | [
"private",
"WaiterState",
"getCurrentState",
"(",
")",
"throws",
"AmazonServiceException",
"{",
"try",
"{",
"return",
"acceptor",
".",
"accepts",
"(",
"sdkFunction",
".",
"apply",
"(",
"request",
")",
")",
";",
"}",
"catch",
"(",
"AmazonServiceException",
"amazo... | Fetches the current state of the resource based on the acceptor it matches
@return Current state of the resource
@throws Exception | [
"Fetches",
"the",
"current",
"state",
"of",
"the",
"resource",
"based",
"on",
"the",
"acceptor",
"it",
"matches"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterExecution.java#L100-L107 |
20,659 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterExecution.java | WaiterExecution.safeCustomDelay | private void safeCustomDelay(PollingStrategyContext pollingStrategyContext) {
try {
pollingStrategy.getDelayStrategy().delayBeforeNextRetry(pollingStrategyContext);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new RuntimeException(e);
... | java | private void safeCustomDelay(PollingStrategyContext pollingStrategyContext) {
try {
pollingStrategy.getDelayStrategy().delayBeforeNextRetry(pollingStrategyContext);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new RuntimeException(e);
... | [
"private",
"void",
"safeCustomDelay",
"(",
"PollingStrategyContext",
"pollingStrategyContext",
")",
"{",
"try",
"{",
"pollingStrategy",
".",
"getDelayStrategy",
"(",
")",
".",
"delayBeforeNextRetry",
"(",
"pollingStrategyContext",
")",
";",
"}",
"catch",
"(",
"Interru... | Calls the custom delay strategy to control the sleep time
@param pollingStrategyContext Provides the polling strategy context.
Includes request and number of retries
attempted so far. | [
"Calls",
"the",
"custom",
"delay",
"strategy",
"to",
"control",
"the",
"sleep",
"time"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/waiters/WaiterExecution.java#L116-L123 |
20,660 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/regions/RegionUtils.java | RegionUtils.getRegionMetadata | public static RegionMetadata getRegionMetadata() {
RegionMetadata rval = regionMetadata;
if (rval != null) {
return rval;
}
synchronized (RegionUtils.class) {
if (regionMetadata == null) {
initialize();
}
}
return regi... | java | public static RegionMetadata getRegionMetadata() {
RegionMetadata rval = regionMetadata;
if (rval != null) {
return rval;
}
synchronized (RegionUtils.class) {
if (regionMetadata == null) {
initialize();
}
}
return regi... | [
"public",
"static",
"RegionMetadata",
"getRegionMetadata",
"(",
")",
"{",
"RegionMetadata",
"rval",
"=",
"regionMetadata",
";",
"if",
"(",
"rval",
"!=",
"null",
")",
"{",
"return",
"rval",
";",
"}",
"synchronized",
"(",
"RegionUtils",
".",
"class",
")",
"{",... | Returns the current set of region metadata for this process,
initializing it if it has not yet been explicitly initialized before.
@return the current set of region metadata | [
"Returns",
"the",
"current",
"set",
"of",
"region",
"metadata",
"for",
"this",
"process",
"initializing",
"it",
"if",
"it",
"has",
"not",
"yet",
"been",
"explicitly",
"initialized",
"before",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/regions/RegionUtils.java#L44-L57 |
20,661 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/regions/RegionUtils.java | RegionUtils.loadMetadataFromResource | @Deprecated
public static RegionMetadata loadMetadataFromResource(final String name)
throws IOException {
return LegacyRegionXmlLoadUtils.load(RegionUtils
.class, name);
} | java | @Deprecated
public static RegionMetadata loadMetadataFromResource(final String name)
throws IOException {
return LegacyRegionXmlLoadUtils.load(RegionUtils
.class, name);
} | [
"@",
"Deprecated",
"public",
"static",
"RegionMetadata",
"loadMetadataFromResource",
"(",
"final",
"String",
"name",
")",
"throws",
"IOException",
"{",
"return",
"LegacyRegionXmlLoadUtils",
".",
"load",
"(",
"RegionUtils",
".",
"class",
",",
"name",
")",
";",
"}"
... | Loads a set of region metadata from an XML file stored as a resource
of the classloader used to load the RegionUtils class.
@param name the path of the resource, relative to the RegionUtils class
@return the parsed region metadata
@throws IOException if the resource is not found or cannot be parsed | [
"Loads",
"a",
"set",
"of",
"region",
"metadata",
"from",
"an",
"XML",
"file",
"stored",
"as",
"a",
"resource",
"of",
"the",
"classloader",
"used",
"to",
"load",
"the",
"RegionUtils",
"class",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/regions/RegionUtils.java#L163-L169 |
20,662 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/regions/RegionUtils.java | RegionUtils.initializeFromFile | @Deprecated
public static synchronized void initializeFromFile(final File file) {
try {
regionMetadata = loadMetadataFromFile(file);
} catch (IOException exception) {
throw new SdkClientException(
"Error parsing region metadata from " + file,
... | java | @Deprecated
public static synchronized void initializeFromFile(final File file) {
try {
regionMetadata = loadMetadataFromFile(file);
} catch (IOException exception) {
throw new SdkClientException(
"Error parsing region metadata from " + file,
... | [
"@",
"Deprecated",
"public",
"static",
"synchronized",
"void",
"initializeFromFile",
"(",
"final",
"File",
"file",
")",
"{",
"try",
"{",
"regionMetadata",
"=",
"loadMetadataFromFile",
"(",
"file",
")",
";",
"}",
"catch",
"(",
"IOException",
"exception",
")",
"... | Initializes the region metadata singleton from an XML file on disk.
@param file the file to load from
@throws SdkClientException on error opening or reading from the file | [
"Initializes",
"the",
"region",
"metadata",
"singleton",
"from",
"an",
"XML",
"file",
"on",
"disk",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/regions/RegionUtils.java#L286-L295 |
20,663 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.addAclHeaders | private static void addAclHeaders(Request<? extends AmazonWebServiceRequest> request, AccessControlList acl) {
List<Grant> grants = acl.getGrantsAsList();
Map<Permission, Collection<Grantee>> grantsByPermission = new HashMap<Permission, Collection<Grantee>>();
for ( Grant grant : grants ) {
... | java | private static void addAclHeaders(Request<? extends AmazonWebServiceRequest> request, AccessControlList acl) {
List<Grant> grants = acl.getGrantsAsList();
Map<Permission, Collection<Grantee>> grantsByPermission = new HashMap<Permission, Collection<Grantee>>();
for ( Grant grant : grants ) {
... | [
"private",
"static",
"void",
"addAclHeaders",
"(",
"Request",
"<",
"?",
"extends",
"AmazonWebServiceRequest",
">",
"request",
",",
"AccessControlList",
"acl",
")",
"{",
"List",
"<",
"Grant",
">",
"grants",
"=",
"acl",
".",
"getGrantsAsList",
"(",
")",
";",
"... | Sets the access control headers for the request given. | [
"Sets",
"the",
"access",
"control",
"headers",
"for",
"the",
"request",
"given",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L1916-L1941 |
20,664 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.setAcl | private void setAcl(String bucketName, String key, String versionId, CannedAccessControlList cannedAcl, boolean isRequesterPays,
AmazonWebServiceRequest originalRequest) {
if (originalRequest == null) originalRequest = new GenericBucketRequest(bucketName);
Request<AmazonWebServiceRequest> r... | java | private void setAcl(String bucketName, String key, String versionId, CannedAccessControlList cannedAcl, boolean isRequesterPays,
AmazonWebServiceRequest originalRequest) {
if (originalRequest == null) originalRequest = new GenericBucketRequest(bucketName);
Request<AmazonWebServiceRequest> r... | [
"private",
"void",
"setAcl",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"String",
"versionId",
",",
"CannedAccessControlList",
"cannedAcl",
",",
"boolean",
"isRequesterPays",
",",
"AmazonWebServiceRequest",
"originalRequest",
")",
"{",
"if",
"(",
"origi... | Sets the Canned ACL for the specified resource in S3. If only bucketName
is specified, the canned ACL will be applied to the bucket, otherwise if
bucketName and key are specified, the canned ACL will be applied to the
object.
@param bucketName
The name of the bucket containing the specified key, or if no
key is listed... | [
"Sets",
"the",
"Canned",
"ACL",
"for",
"the",
"specified",
"resource",
"in",
"S3",
".",
"If",
"only",
"bucketName",
"is",
"specified",
"the",
"canned",
"ACL",
"will",
"be",
"applied",
"to",
"the",
"bucket",
"otherwise",
"if",
"bucketName",
"and",
"key",
"a... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L3909-L3927 |
20,665 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.setAcl | private void setAcl(String bucketName, String key, String versionId, AccessControlList acl, boolean isRequesterPays,
AmazonWebServiceRequest originalRequest) {
if (originalRequest == null) originalRequest = new GenericBucketRequest(bucketName);
Request<AmazonWebServiceRequest> request = cre... | java | private void setAcl(String bucketName, String key, String versionId, AccessControlList acl, boolean isRequesterPays,
AmazonWebServiceRequest originalRequest) {
if (originalRequest == null) originalRequest = new GenericBucketRequest(bucketName);
Request<AmazonWebServiceRequest> request = cre... | [
"private",
"void",
"setAcl",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"String",
"versionId",
",",
"AccessControlList",
"acl",
",",
"boolean",
"isRequesterPays",
",",
"AmazonWebServiceRequest",
"originalRequest",
")",
"{",
"if",
"(",
"originalRequest",... | Sets the ACL for the specified resource in S3. If only bucketName is
specified, the ACL will be applied to the bucket, otherwise if bucketName
and key are specified, the ACL will be applied to the object.
@param bucketName
The name of the bucket containing the specified key, or if no
key is listed, the bucket whose AC... | [
"Sets",
"the",
"ACL",
"for",
"the",
"specified",
"resource",
"in",
"S3",
".",
"If",
"only",
"bucketName",
"is",
"specified",
"the",
"ACL",
"will",
"be",
"applied",
"to",
"the",
"bucket",
"otherwise",
"if",
"bucketName",
"and",
"key",
"are",
"specified",
"t... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L3947-L3969 |
20,666 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.presignRequest | protected <T> void presignRequest(Request<T> request, HttpMethod methodName,
String bucketName, String key, Date expiration, String subResource) {
// Run any additional request handlers if present
beforeRequest(request);
String resourcePath = "/" +
((bucketName != null) ... | java | protected <T> void presignRequest(Request<T> request, HttpMethod methodName,
String bucketName, String key, Date expiration, String subResource) {
// Run any additional request handlers if present
beforeRequest(request);
String resourcePath = "/" +
((bucketName != null) ... | [
"protected",
"<",
"T",
">",
"void",
"presignRequest",
"(",
"Request",
"<",
"T",
">",
"request",
",",
"HttpMethod",
"methodName",
",",
"String",
"bucketName",
",",
"String",
"key",
",",
"Date",
"expiration",
",",
"String",
"subResource",
")",
"{",
"// Run any... | Pre-signs the specified request, using a signature query-string
parameter.
@param request
The request to sign.
@param methodName
The HTTP method (GET, PUT, DELETE, HEAD) for the specified
request.
@param bucketName
The name of the bucket involved in the request. If the request
is not an operation on a bucket this para... | [
"Pre",
"-",
"signs",
"the",
"specified",
"request",
"using",
"a",
"signature",
"query",
"-",
"string",
"parameter",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L4111-L4139 |
20,667 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.addPartNumberIfNotNull | private void addPartNumberIfNotNull(Request<?> request, Integer partNumber) {
if (partNumber != null) {
request.addParameter("partNumber", partNumber.toString());
}
} | java | private void addPartNumberIfNotNull(Request<?> request, Integer partNumber) {
if (partNumber != null) {
request.addParameter("partNumber", partNumber.toString());
}
} | [
"private",
"void",
"addPartNumberIfNotNull",
"(",
"Request",
"<",
"?",
">",
"request",
",",
"Integer",
"partNumber",
")",
"{",
"if",
"(",
"partNumber",
"!=",
"null",
")",
"{",
"request",
".",
"addParameter",
"(",
"\"partNumber\"",
",",
"partNumber",
".",
"to... | Adds the part number to the specified request, if partNumber is not null.
@param request
The request to add the partNumber to.
@param partNumber
The part number to be added. | [
"Adds",
"the",
"part",
"number",
"to",
"the",
"specified",
"request",
"if",
"partNumber",
"is",
"not",
"null",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L4420-L4424 |
20,668 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.addHeaderIfNotNull | private static void addHeaderIfNotNull(Request<?> request, String header, String value) {
if (value != null) {
request.addHeader(header, value);
}
} | java | private static void addHeaderIfNotNull(Request<?> request, String header, String value) {
if (value != null) {
request.addHeader(header, value);
}
} | [
"private",
"static",
"void",
"addHeaderIfNotNull",
"(",
"Request",
"<",
"?",
">",
"request",
",",
"String",
"header",
",",
"String",
"value",
")",
"{",
"if",
"(",
"value",
"!=",
"null",
")",
"{",
"request",
".",
"addHeader",
"(",
"header",
",",
"value",
... | Adds the specified header to the specified request, if the header value
is not null.
@param request
The request to add the header to.
@param header
The header name.
@param value
The header value. | [
"Adds",
"the",
"specified",
"header",
"to",
"the",
"specified",
"request",
"if",
"the",
"header",
"value",
"is",
"not",
"null",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L4437-L4441 |
20,669 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.getResourceUrl | public String getResourceUrl(String bucketName, String key) {
try {
return getUrl(bucketName, key).toString();
} catch ( Exception e ) {
return null;
}
} | java | public String getResourceUrl(String bucketName, String key) {
try {
return getUrl(bucketName, key).toString();
} catch ( Exception e ) {
return null;
}
} | [
"public",
"String",
"getResourceUrl",
"(",
"String",
"bucketName",
",",
"String",
"key",
")",
"{",
"try",
"{",
"return",
"getUrl",
"(",
"bucketName",
",",
"key",
")",
".",
"toString",
"(",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"retur... | Returns the URL to the key in the bucket given, using the client's scheme
and endpoint. Returns null if the given bucket and key cannot be
converted to a URL. | [
"Returns",
"the",
"URL",
"to",
"the",
"key",
"in",
"the",
"bucket",
"given",
"using",
"the",
"client",
"s",
"scheme",
"and",
"endpoint",
".",
"Returns",
"null",
"if",
"the",
"given",
"bucket",
"and",
"key",
"cannot",
"be",
"converted",
"to",
"a",
"URL",
... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L4559-L4565 |
20,670 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.createRequest | protected <X extends AmazonWebServiceRequest> Request<X> createRequest(String bucketName, String key, X originalRequest, HttpMethodName httpMethod) {
return createRequest(bucketName, key, originalRequest, httpMethod, endpoint);
} | java | protected <X extends AmazonWebServiceRequest> Request<X> createRequest(String bucketName, String key, X originalRequest, HttpMethodName httpMethod) {
return createRequest(bucketName, key, originalRequest, httpMethod, endpoint);
} | [
"protected",
"<",
"X",
"extends",
"AmazonWebServiceRequest",
">",
"Request",
"<",
"X",
">",
"createRequest",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"X",
"originalRequest",
",",
"HttpMethodName",
"httpMethod",
")",
"{",
"return",
"createRequest",
... | Creates and initializes a new request object for the specified S3
resource. This method is responsible for determining the right way to
address resources. For example, bucket names that are not DNS addressable
cannot be addressed in V2, virtual host, style, and instead must use V1,
path style. The returned request obje... | [
"Creates",
"and",
"initializes",
"a",
"new",
"request",
"object",
"for",
"the",
"specified",
"S3",
"resource",
".",
"This",
"method",
"is",
"responsible",
"for",
"determining",
"the",
"right",
"way",
"to",
"address",
"resources",
".",
"For",
"example",
"bucket... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L4629-L4631 |
20,671 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.resolveRequestEndpoint | private void resolveRequestEndpoint(Request<?> request, String bucketName, String key, URI endpoint) {
ServiceEndpointBuilder builder = getBuilder(endpoint, endpoint.getScheme(), false);
buildEndpointResolver(builder, bucketName, key).resolveRequestEndpoint(request);
} | java | private void resolveRequestEndpoint(Request<?> request, String bucketName, String key, URI endpoint) {
ServiceEndpointBuilder builder = getBuilder(endpoint, endpoint.getScheme(), false);
buildEndpointResolver(builder, bucketName, key).resolveRequestEndpoint(request);
} | [
"private",
"void",
"resolveRequestEndpoint",
"(",
"Request",
"<",
"?",
">",
"request",
",",
"String",
"bucketName",
",",
"String",
"key",
",",
"URI",
"endpoint",
")",
"{",
"ServiceEndpointBuilder",
"builder",
"=",
"getBuilder",
"(",
"endpoint",
",",
"endpoint",
... | Configure the given request with an endpoint and resource path based on the bucket name and
key provided | [
"Configure",
"the",
"given",
"request",
"with",
"an",
"endpoint",
"and",
"resource",
"path",
"based",
"on",
"the",
"bucket",
"name",
"and",
"key",
"provided"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L4663-L4666 |
20,672 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.isSigV2PresignedUrl | private boolean isSigV2PresignedUrl(URL presignedUrl) {
String url = presignedUrl.toString();
return url.contains("AWSAccessKeyId=") && !presignedUrl.toString().contains("X-Amz-Algorithm=AWS4-HMAC-SHA256");
} | java | private boolean isSigV2PresignedUrl(URL presignedUrl) {
String url = presignedUrl.toString();
return url.contains("AWSAccessKeyId=") && !presignedUrl.toString().contains("X-Amz-Algorithm=AWS4-HMAC-SHA256");
} | [
"private",
"boolean",
"isSigV2PresignedUrl",
"(",
"URL",
"presignedUrl",
")",
"{",
"String",
"url",
"=",
"presignedUrl",
".",
"toString",
"(",
")",
";",
"return",
"url",
".",
"contains",
"(",
"\"AWSAccessKeyId=\"",
")",
"&&",
"!",
"presignedUrl",
".",
"toStrin... | SigV2 presigned url has "AWSAccessKeyId" in the params. Also doing "X-Amz-Algorithm" check to ensure
"AWSAccessKeyId=" is not present in the bucket or key name | [
"SigV2",
"presigned",
"url",
"has",
"AWSAccessKeyId",
"in",
"the",
"params",
".",
"Also",
"doing",
"X",
"-",
"Amz",
"-",
"Algorithm",
"check",
"to",
"ensure",
"AWSAccessKeyId",
"=",
"is",
"not",
"present",
"in",
"the",
"bucket",
"or",
"key",
"name"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L4836-L4839 |
20,673 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.newInitiateMultipartUploadRequest | protected final InitiateMultipartUploadRequest newInitiateMultipartUploadRequest(
UploadObjectRequest req) {
return new InitiateMultipartUploadRequest(
req.getBucketName(), req.getKey(), req.getMetadata())
.withRedirectLocation(req.getRedirectLocation())
.with... | java | protected final InitiateMultipartUploadRequest newInitiateMultipartUploadRequest(
UploadObjectRequest req) {
return new InitiateMultipartUploadRequest(
req.getBucketName(), req.getKey(), req.getMetadata())
.withRedirectLocation(req.getRedirectLocation())
.with... | [
"protected",
"final",
"InitiateMultipartUploadRequest",
"newInitiateMultipartUploadRequest",
"(",
"UploadObjectRequest",
"req",
")",
"{",
"return",
"new",
"InitiateMultipartUploadRequest",
"(",
"req",
".",
"getBucketName",
"(",
")",
",",
"req",
".",
"getKey",
"(",
")",
... | Creates and returns a multi-part upload initiation request from the given upload-object
request. | [
"Creates",
"and",
"returns",
"a",
"multi",
"-",
"part",
"upload",
"initiation",
"request",
"from",
"the",
"given",
"upload",
"-",
"object",
"request",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L5135-L5148 |
20,674 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.putLocalObject | private void putLocalObject(final UploadObjectRequest reqIn,
OutputStream os) throws IOException {
UploadObjectRequest req = reqIn.clone();
final File fileOrig = req.getFile();
final InputStream isOrig = req.getInputStream();
if (isOrig == null) {
if (fileOrig =... | java | private void putLocalObject(final UploadObjectRequest reqIn,
OutputStream os) throws IOException {
UploadObjectRequest req = reqIn.clone();
final File fileOrig = req.getFile();
final InputStream isOrig = req.getInputStream();
if (isOrig == null) {
if (fileOrig =... | [
"private",
"void",
"putLocalObject",
"(",
"final",
"UploadObjectRequest",
"reqIn",
",",
"OutputStream",
"os",
")",
"throws",
"IOException",
"{",
"UploadObjectRequest",
"req",
"=",
"reqIn",
".",
"clone",
"(",
")",
";",
"final",
"File",
"fileOrig",
"=",
"req",
"... | Used for performance testing purposes only. | [
"Used",
"for",
"performance",
"testing",
"purposes",
"only",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L5153-L5175 |
20,675 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.uploadObject | CompleteMultipartUploadResult uploadObject(final UploadObjectRequest req)
throws IOException, InterruptedException, ExecutionException {
// Set up the pipeline for concurrent encrypt and upload
// Set up a thread pool for this pipeline
ExecutorService es = req.getExecutorService();
... | java | CompleteMultipartUploadResult uploadObject(final UploadObjectRequest req)
throws IOException, InterruptedException, ExecutionException {
// Set up the pipeline for concurrent encrypt and upload
// Set up a thread pool for this pipeline
ExecutorService es = req.getExecutorService();
... | [
"CompleteMultipartUploadResult",
"uploadObject",
"(",
"final",
"UploadObjectRequest",
"req",
")",
"throws",
"IOException",
",",
"InterruptedException",
",",
"ExecutionException",
"{",
"// Set up the pipeline for concurrent encrypt and upload",
"// Set up a thread pool for this pipeline... | Used for performance testing purposes only. Hence package private.
This method is subject to removal anytime without notice. | [
"Used",
"for",
"performance",
"testing",
"purposes",
"only",
".",
"Hence",
"package",
"private",
".",
"This",
"method",
"is",
"subject",
"to",
"removal",
"anytime",
"without",
"notice",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L5181-L5218 |
20,676 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.resolveServiceEndpoint | URI resolveServiceEndpoint(String bucketName) {
if (getSignerRegion() != null || isSignerOverridden()) return endpoint;
final String regionStr = fetchRegionFromCache(bucketName);
final com.amazonaws.regions.Region region = RegionUtils.getRegion(regionStr);
if (region == null) {
... | java | URI resolveServiceEndpoint(String bucketName) {
if (getSignerRegion() != null || isSignerOverridden()) return endpoint;
final String regionStr = fetchRegionFromCache(bucketName);
final com.amazonaws.regions.Region region = RegionUtils.getRegion(regionStr);
if (region == null) {
... | [
"URI",
"resolveServiceEndpoint",
"(",
"String",
"bucketName",
")",
"{",
"if",
"(",
"getSignerRegion",
"(",
")",
"!=",
"null",
"||",
"isSignerOverridden",
"(",
")",
")",
"return",
"endpoint",
";",
"final",
"String",
"regionStr",
"=",
"fetchRegionFromCache",
"(",
... | Specifically made package access for testing.
Used for internal consumption of AWS SDK.
Tries to determine the service endpoint for the bucket name.
Returns the endpoint configured in the client if the region cannot be determined. | [
"Specifically",
"made",
"package",
"access",
"for",
"testing",
".",
"Used",
"for",
"internal",
"consumption",
"of",
"AWS",
"SDK",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L5635-L5651 |
20,677 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.fetchRegionFromCache | private String fetchRegionFromCache(String bucketName) {
String bucketRegion = bucketRegionCache.get(bucketName);
if (bucketRegion == null) {
if (log.isDebugEnabled()) {
log.debug("Bucket region cache doesn't have an entry for " + bucketName
+ ". Tryin... | java | private String fetchRegionFromCache(String bucketName) {
String bucketRegion = bucketRegionCache.get(bucketName);
if (bucketRegion == null) {
if (log.isDebugEnabled()) {
log.debug("Bucket region cache doesn't have an entry for " + bucketName
+ ". Tryin... | [
"private",
"String",
"fetchRegionFromCache",
"(",
"String",
"bucketName",
")",
"{",
"String",
"bucketRegion",
"=",
"bucketRegionCache",
".",
"get",
"(",
"bucketName",
")",
";",
"if",
"(",
"bucketRegion",
"==",
"null",
")",
"{",
"if",
"(",
"log",
".",
"isDebu... | Fetches the region of the bucket from the cache maintained. If the cache
doesn't have an entry, fetches the region from Amazon S3 and updates the
cache. | [
"Fetches",
"the",
"region",
"of",
"the",
"bucket",
"from",
"the",
"cache",
"maintained",
".",
"If",
"the",
"cache",
"doesn",
"t",
"have",
"an",
"entry",
"fetches",
"the",
"region",
"from",
"Amazon",
"S3",
"and",
"updates",
"the",
"cache",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L5658-L5676 |
20,678 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java | AmazonS3Client.getBucketRegionViaHeadRequest | private String getBucketRegionViaHeadRequest(String bucketName) {
String bucketRegion = null;
try {
Request<HeadBucketRequest> request = createRequest(bucketName, null,
new HeadBucketRequest(bucketName), HttpMethodName.HEAD);
request.addHandlerContext(Handler... | java | private String getBucketRegionViaHeadRequest(String bucketName) {
String bucketRegion = null;
try {
Request<HeadBucketRequest> request = createRequest(bucketName, null,
new HeadBucketRequest(bucketName), HttpMethodName.HEAD);
request.addHandlerContext(Handler... | [
"private",
"String",
"getBucketRegionViaHeadRequest",
"(",
"String",
"bucketName",
")",
"{",
"String",
"bucketRegion",
"=",
"null",
";",
"try",
"{",
"Request",
"<",
"HeadBucketRequest",
">",
"request",
"=",
"createRequest",
"(",
"bucketName",
",",
"null",
",",
"... | Retrieves the region of the bucket by making a HeadBucket request to us-west-1 region.
Currently S3 doesn't return region in a HEAD Bucket request if the bucket
owner has enabled bucket to accept only SigV4 requests via bucket
policies. | [
"Retrieves",
"the",
"region",
"of",
"the",
"bucket",
"by",
"making",
"a",
"HeadBucket",
"request",
"to",
"us",
"-",
"west",
"-",
"1",
"region",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java#L5685-L5707 |
20,679 | aws/aws-sdk-java | aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/GrantFlowEntitlementsRequest.java | GrantFlowEntitlementsRequest.setEntitlements | public void setEntitlements(java.util.Collection<GrantEntitlementRequest> entitlements) {
if (entitlements == null) {
this.entitlements = null;
return;
}
this.entitlements = new java.util.ArrayList<GrantEntitlementRequest>(entitlements);
} | java | public void setEntitlements(java.util.Collection<GrantEntitlementRequest> entitlements) {
if (entitlements == null) {
this.entitlements = null;
return;
}
this.entitlements = new java.util.ArrayList<GrantEntitlementRequest>(entitlements);
} | [
"public",
"void",
"setEntitlements",
"(",
"java",
".",
"util",
".",
"Collection",
"<",
"GrantEntitlementRequest",
">",
"entitlements",
")",
"{",
"if",
"(",
"entitlements",
"==",
"null",
")",
"{",
"this",
".",
"entitlements",
"=",
"null",
";",
"return",
";",
... | The list of entitlements that you want to grant.
@param entitlements
The list of entitlements that you want to grant. | [
"The",
"list",
"of",
"entitlements",
"that",
"you",
"want",
"to",
"grant",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/GrantFlowEntitlementsRequest.java#L51-L58 |
20,680 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/MultiFileOutputStream.java | MultiFileOutputStream.fos | private FileOutputStream fos() throws IOException {
if (closed)
throw new IOException("Output stream is already closed");
if (os == null || currFileBytesWritten >= partSize) {
if (os != null) {
os.close();
// notify about the new file ready for pro... | java | private FileOutputStream fos() throws IOException {
if (closed)
throw new IOException("Output stream is already closed");
if (os == null || currFileBytesWritten >= partSize) {
if (os != null) {
os.close();
// notify about the new file ready for pro... | [
"private",
"FileOutputStream",
"fos",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"closed",
")",
"throw",
"new",
"IOException",
"(",
"\"Output stream is already closed\"",
")",
";",
"if",
"(",
"os",
"==",
"null",
"||",
"currFileBytesWritten",
">=",
"partS... | Returns the file output stream to be used for writing, blocking if
necessary if running out of disk space.
@throws InterruptedException if the running thread was interrupted | [
"Returns",
"the",
"file",
"output",
"stream",
"to",
"be",
"used",
"for",
"writing",
"blocking",
"if",
"necessary",
"if",
"running",
"out",
"of",
"disk",
"space",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/MultiFileOutputStream.java#L164-L181 |
20,681 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/MultiFileOutputStream.java | MultiFileOutputStream.blockIfNecessary | private void blockIfNecessary() {
if (diskPermits == null || diskLimit == Long.MAX_VALUE)
return;
try {
diskPermits.acquire();
} catch (InterruptedException e) {
// don't want to re-interrupt so it won't cause SDK stream to be
// closed in case the... | java | private void blockIfNecessary() {
if (diskPermits == null || diskLimit == Long.MAX_VALUE)
return;
try {
diskPermits.acquire();
} catch (InterruptedException e) {
// don't want to re-interrupt so it won't cause SDK stream to be
// closed in case the... | [
"private",
"void",
"blockIfNecessary",
"(",
")",
"{",
"if",
"(",
"diskPermits",
"==",
"null",
"||",
"diskLimit",
"==",
"Long",
".",
"MAX_VALUE",
")",
"return",
";",
"try",
"{",
"diskPermits",
".",
"acquire",
"(",
")",
";",
"}",
"catch",
"(",
"Interrupted... | Blocks the running thread if running out of disk space.
@throws AbortedException
if the running thread is interrupted while acquiring a
semaphore | [
"Blocks",
"the",
"running",
"thread",
"if",
"running",
"out",
"of",
"disk",
"space",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/MultiFileOutputStream.java#L196-L206 |
20,682 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBReflector.java | DynamoDBReflector.isVersionAttributeGetter | boolean isVersionAttributeGetter(Method getter) {
synchronized (versionAttributeGetterCache) {
if ( !versionAttributeGetterCache.containsKey(getter) ) {
versionAttributeGetterCache.put(
getter,
getter.getName().startsWith("get") && gett... | java | boolean isVersionAttributeGetter(Method getter) {
synchronized (versionAttributeGetterCache) {
if ( !versionAttributeGetterCache.containsKey(getter) ) {
versionAttributeGetterCache.put(
getter,
getter.getName().startsWith("get") && gett... | [
"boolean",
"isVersionAttributeGetter",
"(",
"Method",
"getter",
")",
"{",
"synchronized",
"(",
"versionAttributeGetterCache",
")",
"{",
"if",
"(",
"!",
"versionAttributeGetterCache",
".",
"containsKey",
"(",
"getter",
")",
")",
"{",
"versionAttributeGetterCache",
".",... | Returns whether the method given is an annotated, no-args getter of a
version attribute. | [
"Returns",
"whether",
"the",
"method",
"given",
"is",
"an",
"annotated",
"no",
"-",
"args",
"getter",
"of",
"a",
"version",
"attribute",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBReflector.java#L283-L293 |
20,683 | aws/aws-sdk-java | aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBReflector.java | DynamoDBReflector.getPrimaryRangeKeyName | String getPrimaryRangeKeyName(Class<?> clazz) {
Method primaryRangeKeyGetter = getPrimaryHashKeyGetter(clazz);
return primaryRangeKeyGetter == null ?
null
:
getAttributeName(getPrimaryRangeKeyGetter(clazz));
} | java | String getPrimaryRangeKeyName(Class<?> clazz) {
Method primaryRangeKeyGetter = getPrimaryHashKeyGetter(clazz);
return primaryRangeKeyGetter == null ?
null
:
getAttributeName(getPrimaryRangeKeyGetter(clazz));
} | [
"String",
"getPrimaryRangeKeyName",
"(",
"Class",
"<",
"?",
">",
"clazz",
")",
"{",
"Method",
"primaryRangeKeyGetter",
"=",
"getPrimaryHashKeyGetter",
"(",
"clazz",
")",
";",
"return",
"primaryRangeKeyGetter",
"==",
"null",
"?",
"null",
":",
"getAttributeName",
"(... | Returns the name of the primary range key, or null if the table does not
one. | [
"Returns",
"the",
"name",
"of",
"the",
"primary",
"range",
"key",
"or",
"null",
"if",
"the",
"table",
"does",
"not",
"one",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBReflector.java#L324-L330 |
20,684 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.toObjectMetadata | ObjectMetadata toObjectMetadata(ObjectMetadata metadata, CryptoMode mode) {
return mode == CryptoMode.EncryptionOnly && !usesKMSKey()
? toObjectMetadataEO(metadata)
: toObjectMetadata(metadata);
} | java | ObjectMetadata toObjectMetadata(ObjectMetadata metadata, CryptoMode mode) {
return mode == CryptoMode.EncryptionOnly && !usesKMSKey()
? toObjectMetadataEO(metadata)
: toObjectMetadata(metadata);
} | [
"ObjectMetadata",
"toObjectMetadata",
"(",
"ObjectMetadata",
"metadata",
",",
"CryptoMode",
"mode",
")",
"{",
"return",
"mode",
"==",
"CryptoMode",
".",
"EncryptionOnly",
"&&",
"!",
"usesKMSKey",
"(",
")",
"?",
"toObjectMetadataEO",
"(",
"metadata",
")",
":",
"t... | Returns the given metadata updated with this content crypto material. | [
"Returns",
"the",
"given",
"metadata",
"updated",
"with",
"this",
"content",
"crypto",
"material",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L117-L121 |
20,685 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.toObjectMetadata | private ObjectMetadata toObjectMetadata(ObjectMetadata metadata) {
// If we generated a symmetric key to encrypt the data, store it in the
// object metadata.
byte[] encryptedCEK = getEncryptedCEK();
metadata.addUserMetadata(Headers.CRYPTO_KEY_V2,
Base64.... | java | private ObjectMetadata toObjectMetadata(ObjectMetadata metadata) {
// If we generated a symmetric key to encrypt the data, store it in the
// object metadata.
byte[] encryptedCEK = getEncryptedCEK();
metadata.addUserMetadata(Headers.CRYPTO_KEY_V2,
Base64.... | [
"private",
"ObjectMetadata",
"toObjectMetadata",
"(",
"ObjectMetadata",
"metadata",
")",
"{",
"// If we generated a symmetric key to encrypt the data, store it in the",
"// object metadata.",
"byte",
"[",
"]",
"encryptedCEK",
"=",
"getEncryptedCEK",
"(",
")",
";",
"metadata",
... | Returns the metadata in the latest format. | [
"Returns",
"the",
"metadata",
"in",
"the",
"latest",
"format",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L126-L153 |
20,686 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.toJsonString | private String toJsonString() {
Map<String, String> map = new HashMap<String, String>();
byte[] encryptedCEK = getEncryptedCEK();
map.put(Headers.CRYPTO_KEY_V2, Base64.encodeAsString(encryptedCEK));
byte[] iv = cipherLite.getIV();
map.put(Headers.CRYPTO_IV, Base64.encodeAsString(... | java | private String toJsonString() {
Map<String, String> map = new HashMap<String, String>();
byte[] encryptedCEK = getEncryptedCEK();
map.put(Headers.CRYPTO_KEY_V2, Base64.encodeAsString(encryptedCEK));
byte[] iv = cipherLite.getIV();
map.put(Headers.CRYPTO_IV, Base64.encodeAsString(... | [
"private",
"String",
"toJsonString",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"map",
"=",
"new",
"HashMap",
"<",
"String",
",",
"String",
">",
"(",
")",
";",
"byte",
"[",
"]",
"encryptedCEK",
"=",
"getEncryptedCEK",
"(",
")",
";",
"ma... | Returns the json string in the latest format. | [
"Returns",
"the",
"json",
"string",
"in",
"the",
"latest",
"format",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L186-L205 |
20,687 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.kekMaterialDescAsJson | private String kekMaterialDescAsJson() {
Map<String, String> kekMaterialDesc = getKEKMaterialsDescription();
if (kekMaterialDesc == null)
kekMaterialDesc = Collections.emptyMap();
return Jackson.toJsonString(kekMaterialDesc);
} | java | private String kekMaterialDescAsJson() {
Map<String, String> kekMaterialDesc = getKEKMaterialsDescription();
if (kekMaterialDesc == null)
kekMaterialDesc = Collections.emptyMap();
return Jackson.toJsonString(kekMaterialDesc);
} | [
"private",
"String",
"kekMaterialDescAsJson",
"(",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"kekMaterialDesc",
"=",
"getKEKMaterialsDescription",
"(",
")",
";",
"if",
"(",
"kekMaterialDesc",
"==",
"null",
")",
"kekMaterialDesc",
"=",
"Collections",
".... | Returns the key-encrypting-key material description as a non-null json
string; | [
"Returns",
"the",
"key",
"-",
"encrypting",
"-",
"key",
"material",
"description",
"as",
"a",
"non",
"-",
"null",
"json",
"string",
";"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L220-L225 |
20,688 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.matdescFromJson | @SuppressWarnings("unchecked")
private static Map<String, String> matdescFromJson(String json) {
Map<String, String> map = Jackson.fromJsonString(json, Map.class);
return map == null ? null : Collections.unmodifiableMap(map);
} | java | @SuppressWarnings("unchecked")
private static Map<String, String> matdescFromJson(String json) {
Map<String, String> map = Jackson.fromJsonString(json, Map.class);
return map == null ? null : Collections.unmodifiableMap(map);
} | [
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"private",
"static",
"Map",
"<",
"String",
",",
"String",
">",
"matdescFromJson",
"(",
"String",
"json",
")",
"{",
"Map",
"<",
"String",
",",
"String",
">",
"map",
"=",
"Jackson",
".",
"fromJsonString",
"... | Returns the corresponding kek material description from the given json;
or null if the input is null. | [
"Returns",
"the",
"corresponding",
"kek",
"material",
"description",
"from",
"the",
"given",
"json",
";",
"or",
"null",
"if",
"the",
"input",
"is",
"null",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L231-L235 |
20,689 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.cek | private static SecretKey cek(byte[] cekSecured, String keyWrapAlgo,
EncryptionMaterials materials, Provider securityProvider,
ContentCryptoScheme contentCryptoScheme, AWSKMS kms) {
if (isKMSKeyWrapped(keyWrapAlgo))
return cekByKMS(cek... | java | private static SecretKey cek(byte[] cekSecured, String keyWrapAlgo,
EncryptionMaterials materials, Provider securityProvider,
ContentCryptoScheme contentCryptoScheme, AWSKMS kms) {
if (isKMSKeyWrapped(keyWrapAlgo))
return cekByKMS(cek... | [
"private",
"static",
"SecretKey",
"cek",
"(",
"byte",
"[",
"]",
"cekSecured",
",",
"String",
"keyWrapAlgo",
",",
"EncryptionMaterials",
"materials",
",",
"Provider",
"securityProvider",
",",
"ContentCryptoScheme",
"contentCryptoScheme",
",",
"AWSKMS",
"kms",
")",
"{... | Returns the content encrypting key unwrapped or decrypted. Note if KMS
is used for key protection, a remote call will be made to KMS to decrypt
the ciphertext blob.
@param cekSecured
the content encrypting key in wrapped or encrypted form; must
not be null
@param keyWrapAlgo
key wrapping algorithm; or null if direct ... | [
"Returns",
"the",
"content",
"encrypting",
"key",
"unwrapped",
"or",
"decrypted",
".",
"Note",
"if",
"KMS",
"is",
"used",
"for",
"key",
"protection",
"a",
"remote",
"call",
"will",
"be",
"made",
"to",
"KMS",
"to",
"decrypt",
"the",
"ciphertext",
"blob",
".... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L255-L300 |
20,690 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.cekByKMS | private static SecretKey cekByKMS(byte[] cekSecured, String keyWrapAlgo,
EncryptionMaterials materials,
ContentCryptoScheme contentCryptoScheme, AWSKMS kms) {
DecryptRequest kmsreq = new DecryptRequest()
.withEncryptionConte... | java | private static SecretKey cekByKMS(byte[] cekSecured, String keyWrapAlgo,
EncryptionMaterials materials,
ContentCryptoScheme contentCryptoScheme, AWSKMS kms) {
DecryptRequest kmsreq = new DecryptRequest()
.withEncryptionConte... | [
"private",
"static",
"SecretKey",
"cekByKMS",
"(",
"byte",
"[",
"]",
"cekSecured",
",",
"String",
"keyWrapAlgo",
",",
"EncryptionMaterials",
"materials",
",",
"ContentCryptoScheme",
"contentCryptoScheme",
",",
"AWSKMS",
"kms",
")",
"{",
"DecryptRequest",
"kmsreq",
"... | Decrypts the secured CEK via KMS; involves network calls.
@return the CEK (in plaintext). | [
"Decrypts",
"the",
"secured",
"CEK",
"via",
"KMS",
";",
"involves",
"network",
"calls",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L307-L316 |
20,691 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.fromObjectMetadata | static ContentCryptoMaterial fromObjectMetadata(
ObjectMetadata metadata,
EncryptionMaterialsAccessor kekMaterialAccessor,
Provider securityProvider,
boolean alwaysUseSecurityProvider,
long[] range,
ExtraMaterialsDescription extra,
boolean keyWrapExpected,
... | java | static ContentCryptoMaterial fromObjectMetadata(
ObjectMetadata metadata,
EncryptionMaterialsAccessor kekMaterialAccessor,
Provider securityProvider,
boolean alwaysUseSecurityProvider,
long[] range,
ExtraMaterialsDescription extra,
boolean keyWrapExpected,
... | [
"static",
"ContentCryptoMaterial",
"fromObjectMetadata",
"(",
"ObjectMetadata",
"metadata",
",",
"EncryptionMaterialsAccessor",
"kekMaterialAccessor",
",",
"Provider",
"securityProvider",
",",
"boolean",
"alwaysUseSecurityProvider",
",",
"long",
"[",
"]",
"range",
",",
"Ext... | Factory method to return the content crypto material from the S3 object
meta data, using the specified key encrypting key material accessor and
an optional security provider.
@return a non-null content crypto material. | [
"Factory",
"method",
"to",
"return",
"the",
"content",
"crypto",
"material",
"from",
"the",
"S3",
"object",
"meta",
"data",
"using",
"the",
"specified",
"key",
"encrypting",
"key",
"material",
"accessor",
"and",
"an",
"optional",
"security",
"provider",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L340-L352 |
20,692 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.fromInstructionFile | static ContentCryptoMaterial fromInstructionFile(
Map<String, String> instFile,
EncryptionMaterialsAccessor kekMaterialAccessor,
Provider securityProvider,
boolean alwaysUseSecurityProvider,
long[] range,
ExtraMaterialsDescription extra,
boolean keyWrapExpected,
... | java | static ContentCryptoMaterial fromInstructionFile(
Map<String, String> instFile,
EncryptionMaterialsAccessor kekMaterialAccessor,
Provider securityProvider,
boolean alwaysUseSecurityProvider,
long[] range,
ExtraMaterialsDescription extra,
boolean keyWrapExpected,
... | [
"static",
"ContentCryptoMaterial",
"fromInstructionFile",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"instFile",
",",
"EncryptionMaterialsAccessor",
"kekMaterialAccessor",
",",
"Provider",
"securityProvider",
",",
"boolean",
"alwaysUseSecurityProvider",
",",
"long",
"... | Factory method to return the content crypto material from the S3
instruction file, using the specified key encrypting key material
accessor and an optional security provider.
@return a non-null content crypto material. | [
"Factory",
"method",
"to",
"return",
"the",
"content",
"crypto",
"material",
"from",
"the",
"S3",
"instruction",
"file",
"using",
"the",
"specified",
"key",
"encrypting",
"key",
"material",
"accessor",
"and",
"an",
"optional",
"security",
"provider",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L462-L474 |
20,693 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.parseInstructionFile | static String parseInstructionFile(S3Object instructionFile) {
try {
return convertStreamToString(instructionFile.getObjectContent());
} catch (Exception e) {
throw failure(e, "Error parsing JSON instruction file");
}
} | java | static String parseInstructionFile(S3Object instructionFile) {
try {
return convertStreamToString(instructionFile.getObjectContent());
} catch (Exception e) {
throw failure(e, "Error parsing JSON instruction file");
}
} | [
"static",
"String",
"parseInstructionFile",
"(",
"S3Object",
"instructionFile",
")",
"{",
"try",
"{",
"return",
"convertStreamToString",
"(",
"instructionFile",
".",
"getObjectContent",
"(",
")",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
... | Parses instruction data retrieved from S3 and returns a JSON string
representing the instruction. Made for testing purposes. | [
"Parses",
"instruction",
"data",
"retrieved",
"from",
"S3",
"and",
"returns",
"a",
"JSON",
"string",
"representing",
"the",
"instruction",
".",
"Made",
"for",
"testing",
"purposes",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L562-L568 |
20,694 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.convertStreamToString | private static String convertStreamToString(InputStream inputStream)
throws IOException {
if (inputStream == null) {
return "";
} else {
StringBuilder stringBuilder = new StringBuilder();
String line;
try {
BufferedReader reader =
... | java | private static String convertStreamToString(InputStream inputStream)
throws IOException {
if (inputStream == null) {
return "";
} else {
StringBuilder stringBuilder = new StringBuilder();
String line;
try {
BufferedReader reader =
... | [
"private",
"static",
"String",
"convertStreamToString",
"(",
"InputStream",
"inputStream",
")",
"throws",
"IOException",
"{",
"if",
"(",
"inputStream",
"==",
"null",
")",
"{",
"return",
"\"\"",
";",
"}",
"else",
"{",
"StringBuilder",
"stringBuilder",
"=",
"new",... | Converts the contents of an input stream to a String | [
"Converts",
"the",
"contents",
"of",
"an",
"input",
"stream",
"to",
"a",
"String"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L573-L592 |
20,695 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java | ContentCryptoMaterial.recreate | ContentCryptoMaterial recreate(EncryptionMaterials newKEK,
EncryptionMaterialsAccessor accessor, S3CryptoScheme targetScheme,
CryptoConfiguration config, AWSKMS kms, AmazonWebServiceRequest req) {
if (!usesKMSKey()
&& newKEK.getM... | java | ContentCryptoMaterial recreate(EncryptionMaterials newKEK,
EncryptionMaterialsAccessor accessor, S3CryptoScheme targetScheme,
CryptoConfiguration config, AWSKMS kms, AmazonWebServiceRequest req) {
if (!usesKMSKey()
&& newKEK.getM... | [
"ContentCryptoMaterial",
"recreate",
"(",
"EncryptionMaterials",
"newKEK",
",",
"EncryptionMaterialsAccessor",
"accessor",
",",
"S3CryptoScheme",
"targetScheme",
",",
"CryptoConfiguration",
"config",
",",
"AWSKMS",
"kms",
",",
"AmazonWebServiceRequest",
"req",
")",
"{",
"... | Recreates a new content crypto material from the current material given a
new KEK encryption materials. The purpose is to re-encrypt the CEK under
the new KEK.
Note network calls are involved if the CEK has been or is to be protected
by KMS.
@param newKEK
encryption materials for the new KEK; must not be null
@param ... | [
"Recreates",
"a",
"new",
"content",
"crypto",
"material",
"from",
"the",
"current",
"material",
"given",
"a",
"new",
"KEK",
"encryption",
"materials",
".",
"The",
"purpose",
"is",
"to",
"re",
"-",
"encrypt",
"the",
"CEK",
"under",
"the",
"new",
"KEK",
"."
... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/ContentCryptoMaterial.java#L693-L720 |
20,696 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/Mimetypes.java | Mimetypes.getInstance | public synchronized static Mimetypes getInstance() {
if (mimetypes != null) return mimetypes;
mimetypes = new Mimetypes();
InputStream is = mimetypes.getClass().getResourceAsStream("/mime.types");
if (is != null) {
if (log.isDebugEnabled()) {
log.debug("Loadi... | java | public synchronized static Mimetypes getInstance() {
if (mimetypes != null) return mimetypes;
mimetypes = new Mimetypes();
InputStream is = mimetypes.getClass().getResourceAsStream("/mime.types");
if (is != null) {
if (log.isDebugEnabled()) {
log.debug("Loadi... | [
"public",
"synchronized",
"static",
"Mimetypes",
"getInstance",
"(",
")",
"{",
"if",
"(",
"mimetypes",
"!=",
"null",
")",
"return",
"mimetypes",
";",
"mimetypes",
"=",
"new",
"Mimetypes",
"(",
")",
";",
"InputStream",
"is",
"=",
"mimetypes",
".",
"getClass",... | Loads MIME type info from the file 'mime.types' in the classpath, if it's available. | [
"Loads",
"MIME",
"type",
"info",
"from",
"the",
"file",
"mime",
".",
"types",
"in",
"the",
"classpath",
"if",
"it",
"s",
"available",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/Mimetypes.java#L75-L99 |
20,697 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/Mimetypes.java | Mimetypes.loadAndReplaceMimetypes | public void loadAndReplaceMimetypes(InputStream is) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(is,
StringUtils.UTF8));
String line = null;
while ((line = br.readLine()) != null) {
line = line.trim();
if (line.start... | java | public void loadAndReplaceMimetypes(InputStream is) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(is,
StringUtils.UTF8));
String line = null;
while ((line = br.readLine()) != null) {
line = line.trim();
if (line.start... | [
"public",
"void",
"loadAndReplaceMimetypes",
"(",
"InputStream",
"is",
")",
"throws",
"IOException",
"{",
"BufferedReader",
"br",
"=",
"new",
"BufferedReader",
"(",
"new",
"InputStreamReader",
"(",
"is",
",",
"StringUtils",
".",
"UTF8",
")",
")",
";",
"String",
... | Reads and stores the mime type setting corresponding to a file extension, by reading
text from an InputStream. If a mime type setting already exists when this method is run,
the mime type value is replaced with the newer one.
@param is
@throws IOException | [
"Reads",
"and",
"stores",
"the",
"mime",
"type",
"setting",
"corresponding",
"to",
"a",
"file",
"extension",
"by",
"reading",
"text",
"from",
"an",
"InputStream",
".",
"If",
"a",
"mime",
"type",
"setting",
"already",
"exists",
"when",
"this",
"method",
"is",... | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/Mimetypes.java#L110-L138 |
20,698 | aws/aws-sdk-java | aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/SelectParameters.java | SelectParameters.withExpressionType | public SelectParameters withExpressionType(ExpressionType expressionType) {
setExpressionType(expressionType == null ? null : expressionType.toString());
return this;
} | java | public SelectParameters withExpressionType(ExpressionType expressionType) {
setExpressionType(expressionType == null ? null : expressionType.toString());
return this;
} | [
"public",
"SelectParameters",
"withExpressionType",
"(",
"ExpressionType",
"expressionType",
")",
"{",
"setExpressionType",
"(",
"expressionType",
"==",
"null",
"?",
"null",
":",
"expressionType",
".",
"toString",
"(",
")",
")",
";",
"return",
"this",
";",
"}"
] | Sets the expressionType
@param expressionType The new expressionType value.
@return This object for method chaining. | [
"Sets",
"the",
"expressionType"
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/SelectParameters.java#L106-L109 |
20,699 | aws/aws-sdk-java | aws-java-sdk-core/src/main/java/com/amazonaws/event/request/ProgressSupport.java | ProgressSupport.addRequestContentLength | @Override
public void addRequestContentLength(long contentLength) {
if (contentLength < 0)
throw new IllegalArgumentException();
synchronized(lock) {
if (this.requestContentLength == -1)
this.requestContentLength = contentLength;
else
... | java | @Override
public void addRequestContentLength(long contentLength) {
if (contentLength < 0)
throw new IllegalArgumentException();
synchronized(lock) {
if (this.requestContentLength == -1)
this.requestContentLength = contentLength;
else
... | [
"@",
"Override",
"public",
"void",
"addRequestContentLength",
"(",
"long",
"contentLength",
")",
"{",
"if",
"(",
"contentLength",
"<",
"0",
")",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"thi... | Adds the number of bytes to be expected in the request. | [
"Adds",
"the",
"number",
"of",
"bytes",
"to",
"be",
"expected",
"in",
"the",
"request",
"."
] | aa38502458969b2d13a1c3665a56aba600e4dbd0 | https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/event/request/ProgressSupport.java#L48-L58 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.