id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
19,500
aws/aws-sdk-java
aws-java-sdk-support/src/main/java/com/amazonaws/services/support/AbstractAWSSupportAsync.java
AbstractAWSSupportAsync.describeSeverityLevelsAsync
@Override public java.util.concurrent.Future<DescribeSeverityLevelsResult> describeSeverityLevelsAsync( com.amazonaws.handlers.AsyncHandler<DescribeSeverityLevelsRequest, DescribeSeverityLevelsResult> asyncHandler) { return describeSeverityLevelsAsync(new DescribeSeverityLevelsRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<DescribeSeverityLevelsResult> describeSeverityLevelsAsync( com.amazonaws.handlers.AsyncHandler<DescribeSeverityLevelsRequest, DescribeSeverityLevelsResult> asyncHandler) { return describeSeverityLevelsAsync(new DescribeSeverityLevelsRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DescribeSeverityLevelsResult", ">", "describeSeverityLevelsAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "DescribeSeverityLevelsRequest", ",", "DescribeSeverityLevelsResult", ">", "asyncHandler", ")", "{", "return", "describeSeverityLevelsAsync", "(", "new", "DescribeSeverityLevelsRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the DescribeSeverityLevels operation with an AsyncHandler. @see #describeSeverityLevelsAsync(DescribeSeverityLevelsRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "DescribeSeverityLevels", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-support/src/main/java/com/amazonaws/services/support/AbstractAWSSupportAsync.java#L196-L201
19,501
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/MultipleFileTransfer.java
MultipleFileTransfer.setState
@Override public void setState(TransferState state) { super.setState(state); switch (state) { case Waiting: fireProgressEvent(ProgressEventType.TRANSFER_PREPARING_EVENT); break; case InProgress: if ( subTransferStarted.compareAndSet(false, true) ) { /* The first InProgress signal */ fireProgressEvent(ProgressEventType.TRANSFER_STARTED_EVENT); } /* Don't need any event code update for subsequent InProgress signals */ break; case Completed: fireProgressEvent(ProgressEventType.TRANSFER_COMPLETED_EVENT); break; case Canceled: fireProgressEvent(ProgressEventType.TRANSFER_CANCELED_EVENT); break; case Failed: fireProgressEvent(ProgressEventType.TRANSFER_FAILED_EVENT); break; default: break; } }
java
@Override public void setState(TransferState state) { super.setState(state); switch (state) { case Waiting: fireProgressEvent(ProgressEventType.TRANSFER_PREPARING_EVENT); break; case InProgress: if ( subTransferStarted.compareAndSet(false, true) ) { /* The first InProgress signal */ fireProgressEvent(ProgressEventType.TRANSFER_STARTED_EVENT); } /* Don't need any event code update for subsequent InProgress signals */ break; case Completed: fireProgressEvent(ProgressEventType.TRANSFER_COMPLETED_EVENT); break; case Canceled: fireProgressEvent(ProgressEventType.TRANSFER_CANCELED_EVENT); break; case Failed: fireProgressEvent(ProgressEventType.TRANSFER_FAILED_EVENT); break; default: break; } }
[ "@", "Override", "public", "void", "setState", "(", "TransferState", "state", ")", "{", "super", ".", "setState", "(", "state", ")", ";", "switch", "(", "state", ")", "{", "case", "Waiting", ":", "fireProgressEvent", "(", "ProgressEventType", ".", "TRANSFER_PREPARING_EVENT", ")", ";", "break", ";", "case", "InProgress", ":", "if", "(", "subTransferStarted", ".", "compareAndSet", "(", "false", ",", "true", ")", ")", "{", "/* The first InProgress signal */", "fireProgressEvent", "(", "ProgressEventType", ".", "TRANSFER_STARTED_EVENT", ")", ";", "}", "/* Don't need any event code update for subsequent InProgress signals */", "break", ";", "case", "Completed", ":", "fireProgressEvent", "(", "ProgressEventType", ".", "TRANSFER_COMPLETED_EVENT", ")", ";", "break", ";", "case", "Canceled", ":", "fireProgressEvent", "(", "ProgressEventType", ".", "TRANSFER_CANCELED_EVENT", ")", ";", "break", ";", "case", "Failed", ":", "fireProgressEvent", "(", "ProgressEventType", ".", "TRANSFER_FAILED_EVENT", ")", ";", "break", ";", "default", ":", "break", ";", "}", "}" ]
Override this method so that TransferState updates are also sent out to the progress listener chain in forms of ProgressEvent.
[ "Override", "this", "method", "so", "that", "TransferState", "updates", "are", "also", "sent", "out", "to", "the", "progress", "listener", "chain", "in", "forms", "of", "ProgressEvent", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/MultipleFileTransfer.java#L69-L96
19,502
aws/aws-sdk-java
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/Output.java
Output.setAudioDescriptionNames
public void setAudioDescriptionNames(java.util.Collection<String> audioDescriptionNames) { if (audioDescriptionNames == null) { this.audioDescriptionNames = null; return; } this.audioDescriptionNames = new java.util.ArrayList<String>(audioDescriptionNames); }
java
public void setAudioDescriptionNames(java.util.Collection<String> audioDescriptionNames) { if (audioDescriptionNames == null) { this.audioDescriptionNames = null; return; } this.audioDescriptionNames = new java.util.ArrayList<String>(audioDescriptionNames); }
[ "public", "void", "setAudioDescriptionNames", "(", "java", ".", "util", ".", "Collection", "<", "String", ">", "audioDescriptionNames", ")", "{", "if", "(", "audioDescriptionNames", "==", "null", ")", "{", "this", ".", "audioDescriptionNames", "=", "null", ";", "return", ";", "}", "this", ".", "audioDescriptionNames", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "String", ">", "(", "audioDescriptionNames", ")", ";", "}" ]
The names of the AudioDescriptions used as audio sources for this output. @param audioDescriptionNames The names of the AudioDescriptions used as audio sources for this output.
[ "The", "names", "of", "the", "AudioDescriptions", "used", "as", "audio", "sources", "for", "this", "output", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/Output.java#L57-L64
19,503
aws/aws-sdk-java
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/Output.java
Output.setCaptionDescriptionNames
public void setCaptionDescriptionNames(java.util.Collection<String> captionDescriptionNames) { if (captionDescriptionNames == null) { this.captionDescriptionNames = null; return; } this.captionDescriptionNames = new java.util.ArrayList<String>(captionDescriptionNames); }
java
public void setCaptionDescriptionNames(java.util.Collection<String> captionDescriptionNames) { if (captionDescriptionNames == null) { this.captionDescriptionNames = null; return; } this.captionDescriptionNames = new java.util.ArrayList<String>(captionDescriptionNames); }
[ "public", "void", "setCaptionDescriptionNames", "(", "java", ".", "util", ".", "Collection", "<", "String", ">", "captionDescriptionNames", ")", "{", "if", "(", "captionDescriptionNames", "==", "null", ")", "{", "this", ".", "captionDescriptionNames", "=", "null", ";", "return", ";", "}", "this", ".", "captionDescriptionNames", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "String", ">", "(", "captionDescriptionNames", ")", ";", "}" ]
The names of the CaptionDescriptions used as caption sources for this output. @param captionDescriptionNames The names of the CaptionDescriptions used as caption sources for this output.
[ "The", "names", "of", "the", "CaptionDescriptions", "used", "as", "caption", "sources", "for", "this", "output", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/Output.java#L119-L126
19,504
aws/aws-sdk-java
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/AWSCloudTrailAsyncClient.java
AWSCloudTrailAsyncClient.describeTrailsAsync
@Override public java.util.concurrent.Future<DescribeTrailsResult> describeTrailsAsync( com.amazonaws.handlers.AsyncHandler<DescribeTrailsRequest, DescribeTrailsResult> asyncHandler) { return describeTrailsAsync(new DescribeTrailsRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<DescribeTrailsResult> describeTrailsAsync( com.amazonaws.handlers.AsyncHandler<DescribeTrailsRequest, DescribeTrailsResult> asyncHandler) { return describeTrailsAsync(new DescribeTrailsRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DescribeTrailsResult", ">", "describeTrailsAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "DescribeTrailsRequest", ",", "DescribeTrailsResult", ">", "asyncHandler", ")", "{", "return", "describeTrailsAsync", "(", "new", "DescribeTrailsRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the DescribeTrails operation with an AsyncHandler. @see #describeTrailsAsync(DescribeTrailsRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "DescribeTrails", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/AWSCloudTrailAsyncClient.java#L414-L419
19,505
aws/aws-sdk-java
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/AWSCloudTrailAsyncClient.java
AWSCloudTrailAsyncClient.listPublicKeysAsync
@Override public java.util.concurrent.Future<ListPublicKeysResult> listPublicKeysAsync( com.amazonaws.handlers.AsyncHandler<ListPublicKeysRequest, ListPublicKeysResult> asyncHandler) { return listPublicKeysAsync(new ListPublicKeysRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<ListPublicKeysResult> listPublicKeysAsync( com.amazonaws.handlers.AsyncHandler<ListPublicKeysRequest, ListPublicKeysResult> asyncHandler) { return listPublicKeysAsync(new ListPublicKeysRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "ListPublicKeysResult", ">", "listPublicKeysAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "ListPublicKeysRequest", ",", "ListPublicKeysResult", ">", "asyncHandler", ")", "{", "return", "listPublicKeysAsync", "(", "new", "ListPublicKeysRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the ListPublicKeys operation with an AsyncHandler. @see #listPublicKeysAsync(ListPublicKeysRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "ListPublicKeys", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/AWSCloudTrailAsyncClient.java#L536-L541
19,506
aws/aws-sdk-java
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/buffered/QueueBufferFuture.java
QueueBufferFuture.setSuccess
public synchronized void setSuccess(Res paramResult) { if (done) return; // can't mark done twice result = paramResult; done = true; notifyAll(); // if we have a callback to call, schedule // it on a different thread. Who knows what this // thread is doing. if (callback != null) { QueueBuffer.executor.submit(new Callable<Void>() { public Void call() throws Exception { callback.onSuccess(result); return null; } }); } }
java
public synchronized void setSuccess(Res paramResult) { if (done) return; // can't mark done twice result = paramResult; done = true; notifyAll(); // if we have a callback to call, schedule // it on a different thread. Who knows what this // thread is doing. if (callback != null) { QueueBuffer.executor.submit(new Callable<Void>() { public Void call() throws Exception { callback.onSuccess(result); return null; } }); } }
[ "public", "synchronized", "void", "setSuccess", "(", "Res", "paramResult", ")", "{", "if", "(", "done", ")", "return", ";", "// can't mark done twice", "result", "=", "paramResult", ";", "done", "=", "true", ";", "notifyAll", "(", ")", ";", "// if we have a callback to call, schedule", "// it on a different thread. Who knows what this", "// thread is doing.", "if", "(", "callback", "!=", "null", ")", "{", "QueueBuffer", ".", "executor", ".", "submit", "(", "new", "Callable", "<", "Void", ">", "(", ")", "{", "public", "Void", "call", "(", ")", "throws", "Exception", "{", "callback", ".", "onSuccess", "(", "result", ")", ";", "return", "null", ";", "}", "}", ")", ";", "}", "}" ]
Report that the task this future represents has succeeded.
[ "Report", "that", "the", "task", "this", "future", "represents", "has", "succeeded", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/buffered/QueueBufferFuture.java#L59-L78
19,507
aws/aws-sdk-java
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/buffered/QueueBufferFuture.java
QueueBufferFuture.setFailure
public synchronized void setFailure(Exception paramE) { if (done) return; // can't mark done twice e = paramE; done = true; notifyAll(); // if we have a callback to call, schedule // it on a different thread. Who knows what this // thread is doing. if (callback != null) { QueueBuffer.executor.submit(new Callable<Void>() { public Void call() throws Exception { callback.onError(e); return null; } }); } }
java
public synchronized void setFailure(Exception paramE) { if (done) return; // can't mark done twice e = paramE; done = true; notifyAll(); // if we have a callback to call, schedule // it on a different thread. Who knows what this // thread is doing. if (callback != null) { QueueBuffer.executor.submit(new Callable<Void>() { public Void call() throws Exception { callback.onError(e); return null; } }); } }
[ "public", "synchronized", "void", "setFailure", "(", "Exception", "paramE", ")", "{", "if", "(", "done", ")", "return", ";", "// can't mark done twice", "e", "=", "paramE", ";", "done", "=", "true", ";", "notifyAll", "(", ")", ";", "// if we have a callback to call, schedule", "// it on a different thread. Who knows what this", "// thread is doing.", "if", "(", "callback", "!=", "null", ")", "{", "QueueBuffer", ".", "executor", ".", "submit", "(", "new", "Callable", "<", "Void", ">", "(", ")", "{", "public", "Void", "call", "(", ")", "throws", "Exception", "{", "callback", ".", "onError", "(", "e", ")", ";", "return", "null", ";", "}", "}", ")", ";", "}", "}" ]
Report that the task this future represents has failed.
[ "Report", "that", "the", "task", "this", "future", "represents", "has", "failed", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/buffered/QueueBufferFuture.java#L83-L103
19,508
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/customization/processors/RenameShapesProcessor.java
RenameShapesProcessor.preprocess_RenameMemberShapes
private void preprocess_RenameMemberShapes(String shapeName, Shape shape) { if (shape.getListMember() != null) { preprocess_RenameMemberShape(shape.getListMember()); } if (shape.getMapKeyType() != null) { preprocess_RenameMemberShape(shape.getMapKeyType()); } if (shape.getMapValueType() != null) { preprocess_RenameMemberShape(shape.getMapValueType()); } if (shape.getMembers() != null) { for (Entry<String, Member> entry : shape.getMembers().entrySet()) { preprocess_RenameMemberShape(entry.getValue()); } } }
java
private void preprocess_RenameMemberShapes(String shapeName, Shape shape) { if (shape.getListMember() != null) { preprocess_RenameMemberShape(shape.getListMember()); } if (shape.getMapKeyType() != null) { preprocess_RenameMemberShape(shape.getMapKeyType()); } if (shape.getMapValueType() != null) { preprocess_RenameMemberShape(shape.getMapValueType()); } if (shape.getMembers() != null) { for (Entry<String, Member> entry : shape.getMembers().entrySet()) { preprocess_RenameMemberShape(entry.getValue()); } } }
[ "private", "void", "preprocess_RenameMemberShapes", "(", "String", "shapeName", ",", "Shape", "shape", ")", "{", "if", "(", "shape", ".", "getListMember", "(", ")", "!=", "null", ")", "{", "preprocess_RenameMemberShape", "(", "shape", ".", "getListMember", "(", ")", ")", ";", "}", "if", "(", "shape", ".", "getMapKeyType", "(", ")", "!=", "null", ")", "{", "preprocess_RenameMemberShape", "(", "shape", ".", "getMapKeyType", "(", ")", ")", ";", "}", "if", "(", "shape", ".", "getMapValueType", "(", ")", "!=", "null", ")", "{", "preprocess_RenameMemberShape", "(", "shape", ".", "getMapValueType", "(", ")", ")", ";", "}", "if", "(", "shape", ".", "getMembers", "(", ")", "!=", "null", ")", "{", "for", "(", "Entry", "<", "String", ",", "Member", ">", "entry", ":", "shape", ".", "getMembers", "(", ")", ".", "entrySet", "(", ")", ")", "{", "preprocess_RenameMemberShape", "(", "entry", ".", "getValue", "(", ")", ")", ";", "}", "}", "}" ]
Rename all the member shapes within this shape
[ "Rename", "all", "the", "member", "shapes", "within", "this", "shape" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/customization/processors/RenameShapesProcessor.java#L103-L118
19,509
aws/aws-sdk-java
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java
AmazonECSAsyncClient.describeClustersAsync
@Override public java.util.concurrent.Future<DescribeClustersResult> describeClustersAsync( com.amazonaws.handlers.AsyncHandler<DescribeClustersRequest, DescribeClustersResult> asyncHandler) { return describeClustersAsync(new DescribeClustersRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<DescribeClustersResult> describeClustersAsync( com.amazonaws.handlers.AsyncHandler<DescribeClustersRequest, DescribeClustersResult> asyncHandler) { return describeClustersAsync(new DescribeClustersRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DescribeClustersResult", ">", "describeClustersAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "DescribeClustersRequest", ",", "DescribeClustersResult", ">", "asyncHandler", ")", "{", "return", "describeClustersAsync", "(", "new", "DescribeClustersRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the DescribeClusters operation with an AsyncHandler. @see #describeClustersAsync(DescribeClustersRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "DescribeClusters", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java#L663-L668
19,510
aws/aws-sdk-java
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java
AmazonECSAsyncClient.listContainerInstancesAsync
@Override public java.util.concurrent.Future<ListContainerInstancesResult> listContainerInstancesAsync( com.amazonaws.handlers.AsyncHandler<ListContainerInstancesRequest, ListContainerInstancesResult> asyncHandler) { return listContainerInstancesAsync(new ListContainerInstancesRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<ListContainerInstancesResult> listContainerInstancesAsync( com.amazonaws.handlers.AsyncHandler<ListContainerInstancesRequest, ListContainerInstancesResult> asyncHandler) { return listContainerInstancesAsync(new ListContainerInstancesRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "ListContainerInstancesResult", ">", "listContainerInstancesAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "ListContainerInstancesRequest", ",", "ListContainerInstancesResult", ">", "asyncHandler", ")", "{", "return", "listContainerInstancesAsync", "(", "new", "ListContainerInstancesRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the ListContainerInstances operation with an AsyncHandler. @see #listContainerInstancesAsync(ListContainerInstancesRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "ListContainerInstances", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java#L1062-L1067
19,511
aws/aws-sdk-java
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java
AmazonECSAsyncClient.listTaskDefinitionFamiliesAsync
@Override public java.util.concurrent.Future<ListTaskDefinitionFamiliesResult> listTaskDefinitionFamiliesAsync( com.amazonaws.handlers.AsyncHandler<ListTaskDefinitionFamiliesRequest, ListTaskDefinitionFamiliesResult> asyncHandler) { return listTaskDefinitionFamiliesAsync(new ListTaskDefinitionFamiliesRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<ListTaskDefinitionFamiliesResult> listTaskDefinitionFamiliesAsync( com.amazonaws.handlers.AsyncHandler<ListTaskDefinitionFamiliesRequest, ListTaskDefinitionFamiliesResult> asyncHandler) { return listTaskDefinitionFamiliesAsync(new ListTaskDefinitionFamiliesRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "ListTaskDefinitionFamiliesResult", ">", "listTaskDefinitionFamiliesAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "ListTaskDefinitionFamiliesRequest", ",", "ListTaskDefinitionFamiliesResult", ">", "asyncHandler", ")", "{", "return", "listTaskDefinitionFamiliesAsync", "(", "new", "ListTaskDefinitionFamiliesRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the ListTaskDefinitionFamilies operation with an AsyncHandler. @see #listTaskDefinitionFamiliesAsync(ListTaskDefinitionFamiliesRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "ListTaskDefinitionFamilies", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java#L1207-L1212
19,512
aws/aws-sdk-java
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java
AmazonECSAsyncClient.listTaskDefinitionsAsync
@Override public java.util.concurrent.Future<ListTaskDefinitionsResult> listTaskDefinitionsAsync( com.amazonaws.handlers.AsyncHandler<ListTaskDefinitionsRequest, ListTaskDefinitionsResult> asyncHandler) { return listTaskDefinitionsAsync(new ListTaskDefinitionsRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<ListTaskDefinitionsResult> listTaskDefinitionsAsync( com.amazonaws.handlers.AsyncHandler<ListTaskDefinitionsRequest, ListTaskDefinitionsResult> asyncHandler) { return listTaskDefinitionsAsync(new ListTaskDefinitionsRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "ListTaskDefinitionsResult", ">", "listTaskDefinitionsAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "ListTaskDefinitionsRequest", ",", "ListTaskDefinitionsResult", ">", "asyncHandler", ")", "{", "return", "listTaskDefinitionsAsync", "(", "new", "ListTaskDefinitionsRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the ListTaskDefinitions operation with an AsyncHandler. @see #listTaskDefinitionsAsync(ListTaskDefinitionsRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "ListTaskDefinitions", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java#L1263-L1268
19,513
aws/aws-sdk-java
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java
AmazonECSAsyncClient.listTasksAsync
@Override public java.util.concurrent.Future<ListTasksResult> listTasksAsync(com.amazonaws.handlers.AsyncHandler<ListTasksRequest, ListTasksResult> asyncHandler) { return listTasksAsync(new ListTasksRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<ListTasksResult> listTasksAsync(com.amazonaws.handlers.AsyncHandler<ListTasksRequest, ListTasksResult> asyncHandler) { return listTasksAsync(new ListTasksRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "ListTasksResult", ">", "listTasksAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "ListTasksRequest", ",", "ListTasksResult", ">", "asyncHandler", ")", "{", "return", "listTasksAsync", "(", "new", "ListTasksRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the ListTasks operation with an AsyncHandler. @see #listTasksAsync(ListTasksRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "ListTasks", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java#L1319-L1323
19,514
aws/aws-sdk-java
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java
AmazonECSAsyncClient.submitContainerStateChangeAsync
@Override public java.util.concurrent.Future<SubmitContainerStateChangeResult> submitContainerStateChangeAsync( com.amazonaws.handlers.AsyncHandler<SubmitContainerStateChangeRequest, SubmitContainerStateChangeResult> asyncHandler) { return submitContainerStateChangeAsync(new SubmitContainerStateChangeRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<SubmitContainerStateChangeResult> submitContainerStateChangeAsync( com.amazonaws.handlers.AsyncHandler<SubmitContainerStateChangeRequest, SubmitContainerStateChangeResult> asyncHandler) { return submitContainerStateChangeAsync(new SubmitContainerStateChangeRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "SubmitContainerStateChangeResult", ">", "submitContainerStateChangeAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "SubmitContainerStateChangeRequest", ",", "SubmitContainerStateChangeResult", ">", "asyncHandler", ")", "{", "return", "submitContainerStateChangeAsync", "(", "new", "SubmitContainerStateChangeRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the SubmitContainerStateChange operation with an AsyncHandler. @see #submitContainerStateChangeAsync(SubmitContainerStateChangeRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "SubmitContainerStateChange", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/AmazonECSAsyncClient.java#L1638-L1643
19,515
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/regions/LegacyRegionXmlLoadUtils.java
LegacyRegionXmlLoadUtils.load
public static RegionMetadata load (final File file) throws IOException { return RegionMetadataParser.parse(new BufferedInputStream(new FileInputStream(file))); }
java
public static RegionMetadata load (final File file) throws IOException { return RegionMetadataParser.parse(new BufferedInputStream(new FileInputStream(file))); }
[ "public", "static", "RegionMetadata", "load", "(", "final", "File", "file", ")", "throws", "IOException", "{", "return", "RegionMetadataParser", ".", "parse", "(", "new", "BufferedInputStream", "(", "new", "FileInputStream", "(", "file", ")", ")", ")", ";", "}" ]
Loads a set of region metadata by parsing the given file. @param file the region metadata to load from @throws IOException any error while reading from file.
[ "Loads", "a", "set", "of", "region", "metadata", "by", "parsing", "the", "given", "file", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/regions/LegacyRegionXmlLoadUtils.java#L55-L59
19,516
aws/aws-sdk-java
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java
MachineMetricFactory.addMetrics
private void addMetrics(List<MetricDatum> list, MetricValues metricValues, StandardUnit unit) { List<MachineMetric> machineMetrics = metricValues.getMetrics(); List<Long> values = metricValues.getValues(); for (int i=0; i < machineMetrics.size(); i++) { MachineMetric metric = machineMetrics.get(i); long val = values.get(i).longValue(); // skip zero values in some cases if (val != 0 || metric.includeZeroValue()) { MetricDatum datum = new MetricDatum() .withMetricName(metric.getMetricName()) .withDimensions( new Dimension() .withName(metric.getDimensionName()) .withValue(metric.name())) .withUnit(unit) .withValue((double) val) ; list.add(datum); } } }
java
private void addMetrics(List<MetricDatum> list, MetricValues metricValues, StandardUnit unit) { List<MachineMetric> machineMetrics = metricValues.getMetrics(); List<Long> values = metricValues.getValues(); for (int i=0; i < machineMetrics.size(); i++) { MachineMetric metric = machineMetrics.get(i); long val = values.get(i).longValue(); // skip zero values in some cases if (val != 0 || metric.includeZeroValue()) { MetricDatum datum = new MetricDatum() .withMetricName(metric.getMetricName()) .withDimensions( new Dimension() .withName(metric.getDimensionName()) .withValue(metric.name())) .withUnit(unit) .withValue((double) val) ; list.add(datum); } } }
[ "private", "void", "addMetrics", "(", "List", "<", "MetricDatum", ">", "list", ",", "MetricValues", "metricValues", ",", "StandardUnit", "unit", ")", "{", "List", "<", "MachineMetric", ">", "machineMetrics", "=", "metricValues", ".", "getMetrics", "(", ")", ";", "List", "<", "Long", ">", "values", "=", "metricValues", ".", "getValues", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "machineMetrics", ".", "size", "(", ")", ";", "i", "++", ")", "{", "MachineMetric", "metric", "=", "machineMetrics", ".", "get", "(", "i", ")", ";", "long", "val", "=", "values", ".", "get", "(", "i", ")", ".", "longValue", "(", ")", ";", "// skip zero values in some cases", "if", "(", "val", "!=", "0", "||", "metric", ".", "includeZeroValue", "(", ")", ")", "{", "MetricDatum", "datum", "=", "new", "MetricDatum", "(", ")", ".", "withMetricName", "(", "metric", ".", "getMetricName", "(", ")", ")", ".", "withDimensions", "(", "new", "Dimension", "(", ")", ".", "withName", "(", "metric", ".", "getDimensionName", "(", ")", ")", ".", "withValue", "(", "metric", ".", "name", "(", ")", ")", ")", ".", "withUnit", "(", "unit", ")", ".", "withValue", "(", "(", "double", ")", "val", ")", ";", "list", ".", "add", "(", "datum", ")", ";", "}", "}", "}" ]
Add the given list of metrics and corresponding values specified in "metricValues" to the given list of metric datum. @param list list of metric data @param metricValues list of metrics and their corresponding values
[ "Add", "the", "given", "list", "of", "metrics", "and", "corresponding", "values", "specified", "in", "metricValues", "to", "the", "given", "list", "of", "metric", "datum", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java#L64-L86
19,517
aws/aws-sdk-java
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java
MachineMetricFactory.customMachineMetrics
private Set<MachineMetric> customMachineMetrics() { Set<MachineMetric> customized = new HashSet<MachineMetric>(); for (MetricType m: AwsSdkMetrics.getPredefinedMetrics()) { if (m instanceof MachineMetric) customized.add((MachineMetric)m); } return customized; }
java
private Set<MachineMetric> customMachineMetrics() { Set<MachineMetric> customized = new HashSet<MachineMetric>(); for (MetricType m: AwsSdkMetrics.getPredefinedMetrics()) { if (m instanceof MachineMetric) customized.add((MachineMetric)m); } return customized; }
[ "private", "Set", "<", "MachineMetric", ">", "customMachineMetrics", "(", ")", "{", "Set", "<", "MachineMetric", ">", "customized", "=", "new", "HashSet", "<", "MachineMetric", ">", "(", ")", ";", "for", "(", "MetricType", "m", ":", "AwsSdkMetrics", ".", "getPredefinedMetrics", "(", ")", ")", "{", "if", "(", "m", "instanceof", "MachineMetric", ")", "customized", ".", "add", "(", "(", "MachineMetric", ")", "m", ")", ";", "}", "return", "customized", ";", "}" ]
Returns the set of custom machine metrics specified in the SDK metrics registry; or an empty set if there is none. Note any machine metrics found in the registry must have been custom specified, as the default behavior is to include all machine metrics when enabled. @return a non-null set of machine metrics. An empty set means no custom machine metrics have been specified.
[ "Returns", "the", "set", "of", "custom", "machine", "metrics", "specified", "in", "the", "SDK", "metrics", "registry", ";", "or", "an", "empty", "set", "if", "there", "is", "none", ".", "Note", "any", "machine", "metrics", "found", "in", "the", "registry", "must", "have", "been", "custom", "specified", "as", "the", "default", "behavior", "is", "to", "include", "all", "machine", "metrics", "when", "enabled", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java#L97-L104
19,518
aws/aws-sdk-java
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java
MachineMetricFactory.memoryMetricValues
private MetricValues memoryMetricValues(Set<MachineMetric> customSet, List<Long> values) { return metricValues(customSet, MachineMetricFactory.memoryMetrics, values); }
java
private MetricValues memoryMetricValues(Set<MachineMetric> customSet, List<Long> values) { return metricValues(customSet, MachineMetricFactory.memoryMetrics, values); }
[ "private", "MetricValues", "memoryMetricValues", "(", "Set", "<", "MachineMetric", ">", "customSet", ",", "List", "<", "Long", ">", "values", ")", "{", "return", "metricValues", "(", "customSet", ",", "MachineMetricFactory", ".", "memoryMetrics", ",", "values", ")", ";", "}" ]
Returns the set of memory metrics and the corresponding values based on the default and the customized set of metrics, if any. @param customSet a non-null customized set of metrics @param values a non-null list of values corresponding to the list of default memory metrics
[ "Returns", "the", "set", "of", "memory", "metrics", "and", "the", "corresponding", "values", "based", "on", "the", "default", "and", "the", "customized", "set", "of", "metrics", "if", "any", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java#L215-L219
19,519
aws/aws-sdk-java
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java
MachineMetricFactory.fdMetricValues
private MetricValues fdMetricValues(Set<MachineMetric> customSet, List<Long> values) { return metricValues(customSet, MachineMetricFactory.fdMetrics, values); }
java
private MetricValues fdMetricValues(Set<MachineMetric> customSet, List<Long> values) { return metricValues(customSet, MachineMetricFactory.fdMetrics, values); }
[ "private", "MetricValues", "fdMetricValues", "(", "Set", "<", "MachineMetric", ">", "customSet", ",", "List", "<", "Long", ">", "values", ")", "{", "return", "metricValues", "(", "customSet", ",", "MachineMetricFactory", ".", "fdMetrics", ",", "values", ")", ";", "}" ]
Returns the set of file-descriptor metrics and the corresponding values based on the default and the customized set of metrics, if any. @param customSet a non-null customized set of metrics @param values a non-null list of values corresponding to the list of default file-descriptor metrics
[ "Returns", "the", "set", "of", "file", "-", "descriptor", "metrics", "and", "the", "corresponding", "values", "based", "on", "the", "default", "and", "the", "customized", "set", "of", "metrics", "if", "any", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java#L231-L234
19,520
aws/aws-sdk-java
aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java
MachineMetricFactory.threadMetricValues
private MetricValues threadMetricValues(Set<MachineMetric> customSet, List<Long> values) { return metricValues(customSet, MachineMetricFactory.threadMetrics, values); }
java
private MetricValues threadMetricValues(Set<MachineMetric> customSet, List<Long> values) { return metricValues(customSet, MachineMetricFactory.threadMetrics, values); }
[ "private", "MetricValues", "threadMetricValues", "(", "Set", "<", "MachineMetric", ">", "customSet", ",", "List", "<", "Long", ">", "values", ")", "{", "return", "metricValues", "(", "customSet", ",", "MachineMetricFactory", ".", "threadMetrics", ",", "values", ")", ";", "}" ]
Returns the set of thread metrics and the corresponding values based on the default and the customized set of metrics, if any. @param customSet a non-null customized set of metrics @param values a non-null list of values corresponding to the list of default thread metrics
[ "Returns", "the", "set", "of", "thread", "metrics", "and", "the", "corresponding", "values", "based", "on", "the", "default", "and", "the", "customized", "set", "of", "metrics", "if", "any", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MachineMetricFactory.java#L246-L250
19,521
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/waiters/AmazonElasticLoadBalancingWaiters.java
AmazonElasticLoadBalancingWaiters.anyInstanceInService
public Waiter<DescribeInstanceHealthRequest> anyInstanceInService() { return new WaiterBuilder<DescribeInstanceHealthRequest, DescribeInstanceHealthResult>().withSdkFunction(new DescribeInstanceHealthFunction(client)) .withAcceptors(new AnyInstanceInService.IsInServiceMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeInstanceHealthRequest> anyInstanceInService() { return new WaiterBuilder<DescribeInstanceHealthRequest, DescribeInstanceHealthResult>().withSdkFunction(new DescribeInstanceHealthFunction(client)) .withAcceptors(new AnyInstanceInService.IsInServiceMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeInstanceHealthRequest", ">", "anyInstanceInService", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeInstanceHealthRequest", ",", "DescribeInstanceHealthResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeInstanceHealthFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "AnyInstanceInService", ".", "IsInServiceMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a AnyInstanceInService 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", "AnyInstanceInService", "waiter", "by", "using", "custom", "parameters", "waiterParameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/waiters/AmazonElasticLoadBalancingWaiters.java#L51-L57
19,522
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/waiters/AmazonElasticLoadBalancingWaiters.java
AmazonElasticLoadBalancingWaiters.instanceDeregistered
public Waiter<DescribeInstanceHealthRequest> instanceDeregistered() { return new WaiterBuilder<DescribeInstanceHealthRequest, DescribeInstanceHealthResult>().withSdkFunction(new DescribeInstanceHealthFunction(client)) .withAcceptors(new InstanceDeregistered.IsOutOfServiceMatcher(), new InstanceDeregistered.IsInvalidInstanceMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeInstanceHealthRequest> instanceDeregistered() { return new WaiterBuilder<DescribeInstanceHealthRequest, DescribeInstanceHealthResult>().withSdkFunction(new DescribeInstanceHealthFunction(client)) .withAcceptors(new InstanceDeregistered.IsOutOfServiceMatcher(), new InstanceDeregistered.IsInvalidInstanceMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeInstanceHealthRequest", ">", "instanceDeregistered", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeInstanceHealthRequest", ",", "DescribeInstanceHealthResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeInstanceHealthFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "InstanceDeregistered", ".", "IsOutOfServiceMatcher", "(", ")", ",", "new", "InstanceDeregistered", ".", "IsInvalidInstanceMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a InstanceDeregistered 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", "InstanceDeregistered", "waiter", "by", "using", "custom", "parameters", "waiterParameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/waiters/AmazonElasticLoadBalancingWaiters.java#L64-L70
19,523
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/waiters/AmazonElasticLoadBalancingWaiters.java
AmazonElasticLoadBalancingWaiters.instanceInService
public Waiter<DescribeInstanceHealthRequest> instanceInService() { return new WaiterBuilder<DescribeInstanceHealthRequest, DescribeInstanceHealthResult>().withSdkFunction(new DescribeInstanceHealthFunction(client)) .withAcceptors(new InstanceInService.IsInServiceMatcher(), new InstanceInService.IsInvalidInstanceMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeInstanceHealthRequest> instanceInService() { return new WaiterBuilder<DescribeInstanceHealthRequest, DescribeInstanceHealthResult>().withSdkFunction(new DescribeInstanceHealthFunction(client)) .withAcceptors(new InstanceInService.IsInServiceMatcher(), new InstanceInService.IsInvalidInstanceMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeInstanceHealthRequest", ">", "instanceInService", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeInstanceHealthRequest", ",", "DescribeInstanceHealthResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeInstanceHealthFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "InstanceInService", ".", "IsInServiceMatcher", "(", ")", ",", "new", "InstanceInService", ".", "IsInvalidInstanceMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a InstanceInService 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", "InstanceInService", "waiter", "by", "using", "custom", "parameters", "waiterParameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/waiters/AmazonElasticLoadBalancingWaiters.java#L77-L83
19,524
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.batchGetItemAsync
@Override public java.util.concurrent.Future<BatchGetItemResult> batchGetItemAsync(java.util.Map<String, KeysAndAttributes> requestItems, String returnConsumedCapacity) { return batchGetItemAsync(new BatchGetItemRequest().withRequestItems(requestItems).withReturnConsumedCapacity(returnConsumedCapacity)); }
java
@Override public java.util.concurrent.Future<BatchGetItemResult> batchGetItemAsync(java.util.Map<String, KeysAndAttributes> requestItems, String returnConsumedCapacity) { return batchGetItemAsync(new BatchGetItemRequest().withRequestItems(requestItems).withReturnConsumedCapacity(returnConsumedCapacity)); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "BatchGetItemResult", ">", "batchGetItemAsync", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "KeysAndAttributes", ">", "requestItems", ",", "String", "returnConsumedCapacity", ")", "{", "return", "batchGetItemAsync", "(", "new", "BatchGetItemRequest", "(", ")", ".", "withRequestItems", "(", "requestItems", ")", ".", "withReturnConsumedCapacity", "(", "returnConsumedCapacity", ")", ")", ";", "}" ]
Simplified method form for invoking the BatchGetItem operation. @see #batchGetItemAsync(BatchGetItemRequest)
[ "Simplified", "method", "form", "for", "invoking", "the", "BatchGetItem", "operation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L48-L53
19,525
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.batchGetItemAsync
@Override public java.util.concurrent.Future<BatchGetItemResult> batchGetItemAsync(java.util.Map<String, KeysAndAttributes> requestItems, String returnConsumedCapacity, com.amazonaws.handlers.AsyncHandler<BatchGetItemRequest, BatchGetItemResult> asyncHandler) { return batchGetItemAsync(new BatchGetItemRequest().withRequestItems(requestItems).withReturnConsumedCapacity(returnConsumedCapacity), asyncHandler); }
java
@Override public java.util.concurrent.Future<BatchGetItemResult> batchGetItemAsync(java.util.Map<String, KeysAndAttributes> requestItems, String returnConsumedCapacity, com.amazonaws.handlers.AsyncHandler<BatchGetItemRequest, BatchGetItemResult> asyncHandler) { return batchGetItemAsync(new BatchGetItemRequest().withRequestItems(requestItems).withReturnConsumedCapacity(returnConsumedCapacity), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "BatchGetItemResult", ">", "batchGetItemAsync", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "KeysAndAttributes", ">", "requestItems", ",", "String", "returnConsumedCapacity", ",", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "BatchGetItemRequest", ",", "BatchGetItemResult", ">", "asyncHandler", ")", "{", "return", "batchGetItemAsync", "(", "new", "BatchGetItemRequest", "(", ")", ".", "withRequestItems", "(", "requestItems", ")", ".", "withReturnConsumedCapacity", "(", "returnConsumedCapacity", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the BatchGetItem operation with an AsyncHandler. @see #batchGetItemAsync(BatchGetItemRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "BatchGetItem", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L60-L65
19,526
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.batchWriteItemAsync
@Override public java.util.concurrent.Future<BatchWriteItemResult> batchWriteItemAsync(java.util.Map<String, java.util.List<WriteRequest>> requestItems) { return batchWriteItemAsync(new BatchWriteItemRequest().withRequestItems(requestItems)); }
java
@Override public java.util.concurrent.Future<BatchWriteItemResult> batchWriteItemAsync(java.util.Map<String, java.util.List<WriteRequest>> requestItems) { return batchWriteItemAsync(new BatchWriteItemRequest().withRequestItems(requestItems)); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "BatchWriteItemResult", ">", "batchWriteItemAsync", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "java", ".", "util", ".", "List", "<", "WriteRequest", ">", ">", "requestItems", ")", "{", "return", "batchWriteItemAsync", "(", "new", "BatchWriteItemRequest", "(", ")", ".", "withRequestItems", "(", "requestItems", ")", ")", ";", "}" ]
Simplified method form for invoking the BatchWriteItem operation. @see #batchWriteItemAsync(BatchWriteItemRequest)
[ "Simplified", "method", "form", "for", "invoking", "the", "BatchWriteItem", "operation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L108-L112
19,527
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.batchWriteItemAsync
@Override public java.util.concurrent.Future<BatchWriteItemResult> batchWriteItemAsync(java.util.Map<String, java.util.List<WriteRequest>> requestItems, com.amazonaws.handlers.AsyncHandler<BatchWriteItemRequest, BatchWriteItemResult> asyncHandler) { return batchWriteItemAsync(new BatchWriteItemRequest().withRequestItems(requestItems), asyncHandler); }
java
@Override public java.util.concurrent.Future<BatchWriteItemResult> batchWriteItemAsync(java.util.Map<String, java.util.List<WriteRequest>> requestItems, com.amazonaws.handlers.AsyncHandler<BatchWriteItemRequest, BatchWriteItemResult> asyncHandler) { return batchWriteItemAsync(new BatchWriteItemRequest().withRequestItems(requestItems), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "BatchWriteItemResult", ">", "batchWriteItemAsync", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "java", ".", "util", ".", "List", "<", "WriteRequest", ">", ">", "requestItems", ",", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "BatchWriteItemRequest", ",", "BatchWriteItemResult", ">", "asyncHandler", ")", "{", "return", "batchWriteItemAsync", "(", "new", "BatchWriteItemRequest", "(", ")", ".", "withRequestItems", "(", "requestItems", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the BatchWriteItem operation with an AsyncHandler. @see #batchWriteItemAsync(BatchWriteItemRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "BatchWriteItem", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L119-L124
19,528
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.createTableAsync
@Override public java.util.concurrent.Future<CreateTableResult> createTableAsync(java.util.List<AttributeDefinition> attributeDefinitions, String tableName, java.util.List<KeySchemaElement> keySchema, ProvisionedThroughput provisionedThroughput) { return createTableAsync(new CreateTableRequest().withAttributeDefinitions(attributeDefinitions).withTableName(tableName).withKeySchema(keySchema) .withProvisionedThroughput(provisionedThroughput)); }
java
@Override public java.util.concurrent.Future<CreateTableResult> createTableAsync(java.util.List<AttributeDefinition> attributeDefinitions, String tableName, java.util.List<KeySchemaElement> keySchema, ProvisionedThroughput provisionedThroughput) { return createTableAsync(new CreateTableRequest().withAttributeDefinitions(attributeDefinitions).withTableName(tableName).withKeySchema(keySchema) .withProvisionedThroughput(provisionedThroughput)); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "CreateTableResult", ">", "createTableAsync", "(", "java", ".", "util", ".", "List", "<", "AttributeDefinition", ">", "attributeDefinitions", ",", "String", "tableName", ",", "java", ".", "util", ".", "List", "<", "KeySchemaElement", ">", "keySchema", ",", "ProvisionedThroughput", "provisionedThroughput", ")", "{", "return", "createTableAsync", "(", "new", "CreateTableRequest", "(", ")", ".", "withAttributeDefinitions", "(", "attributeDefinitions", ")", ".", "withTableName", "(", "tableName", ")", ".", "withKeySchema", "(", "keySchema", ")", ".", "withProvisionedThroughput", "(", "provisionedThroughput", ")", ")", ";", "}" ]
Simplified method form for invoking the CreateTable operation. @see #createTableAsync(CreateTableRequest)
[ "Simplified", "method", "form", "for", "invoking", "the", "CreateTable", "operation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L170-L176
19,529
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.deleteItemAsync
@Override public java.util.concurrent.Future<DeleteItemResult> deleteItemAsync(String tableName, java.util.Map<String, AttributeValue> key) { return deleteItemAsync(new DeleteItemRequest().withTableName(tableName).withKey(key)); }
java
@Override public java.util.concurrent.Future<DeleteItemResult> deleteItemAsync(String tableName, java.util.Map<String, AttributeValue> key) { return deleteItemAsync(new DeleteItemRequest().withTableName(tableName).withKey(key)); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DeleteItemResult", ">", "deleteItemAsync", "(", "String", "tableName", ",", "java", ".", "util", ".", "Map", "<", "String", ",", "AttributeValue", ">", "key", ")", "{", "return", "deleteItemAsync", "(", "new", "DeleteItemRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ".", "withKey", "(", "key", ")", ")", ";", "}" ]
Simplified method form for invoking the DeleteItem operation. @see #deleteItemAsync(DeleteItemRequest)
[ "Simplified", "method", "form", "for", "invoking", "the", "DeleteItem", "operation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L223-L227
19,530
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.deleteItemAsync
@Override public java.util.concurrent.Future<DeleteItemResult> deleteItemAsync(String tableName, java.util.Map<String, AttributeValue> key, com.amazonaws.handlers.AsyncHandler<DeleteItemRequest, DeleteItemResult> asyncHandler) { return deleteItemAsync(new DeleteItemRequest().withTableName(tableName).withKey(key), asyncHandler); }
java
@Override public java.util.concurrent.Future<DeleteItemResult> deleteItemAsync(String tableName, java.util.Map<String, AttributeValue> key, com.amazonaws.handlers.AsyncHandler<DeleteItemRequest, DeleteItemResult> asyncHandler) { return deleteItemAsync(new DeleteItemRequest().withTableName(tableName).withKey(key), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DeleteItemResult", ">", "deleteItemAsync", "(", "String", "tableName", ",", "java", ".", "util", ".", "Map", "<", "String", ",", "AttributeValue", ">", "key", ",", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "DeleteItemRequest", ",", "DeleteItemResult", ">", "asyncHandler", ")", "{", "return", "deleteItemAsync", "(", "new", "DeleteItemRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ".", "withKey", "(", "key", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the DeleteItem operation with an AsyncHandler. @see #deleteItemAsync(DeleteItemRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "DeleteItem", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L234-L239
19,531
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.deleteTableAsync
@Override public java.util.concurrent.Future<DeleteTableResult> deleteTableAsync(String tableName) { return deleteTableAsync(new DeleteTableRequest().withTableName(tableName)); }
java
@Override public java.util.concurrent.Future<DeleteTableResult> deleteTableAsync(String tableName) { return deleteTableAsync(new DeleteTableRequest().withTableName(tableName)); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DeleteTableResult", ">", "deleteTableAsync", "(", "String", "tableName", ")", "{", "return", "deleteTableAsync", "(", "new", "DeleteTableRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ")", ";", "}" ]
Simplified method form for invoking the DeleteTable operation. @see #deleteTableAsync(DeleteTableRequest)
[ "Simplified", "method", "form", "for", "invoking", "the", "DeleteTable", "operation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L282-L286
19,532
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.deleteTableAsync
@Override public java.util.concurrent.Future<DeleteTableResult> deleteTableAsync(String tableName, com.amazonaws.handlers.AsyncHandler<DeleteTableRequest, DeleteTableResult> asyncHandler) { return deleteTableAsync(new DeleteTableRequest().withTableName(tableName), asyncHandler); }
java
@Override public java.util.concurrent.Future<DeleteTableResult> deleteTableAsync(String tableName, com.amazonaws.handlers.AsyncHandler<DeleteTableRequest, DeleteTableResult> asyncHandler) { return deleteTableAsync(new DeleteTableRequest().withTableName(tableName), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DeleteTableResult", ">", "deleteTableAsync", "(", "String", "tableName", ",", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "DeleteTableRequest", ",", "DeleteTableResult", ">", "asyncHandler", ")", "{", "return", "deleteTableAsync", "(", "new", "DeleteTableRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the DeleteTable operation with an AsyncHandler. @see #deleteTableAsync(DeleteTableRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "DeleteTable", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L293-L298
19,533
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.describeTableAsync
@Override public java.util.concurrent.Future<DescribeTableResult> describeTableAsync(String tableName) { return describeTableAsync(new DescribeTableRequest().withTableName(tableName)); }
java
@Override public java.util.concurrent.Future<DescribeTableResult> describeTableAsync(String tableName) { return describeTableAsync(new DescribeTableRequest().withTableName(tableName)); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DescribeTableResult", ">", "describeTableAsync", "(", "String", "tableName", ")", "{", "return", "describeTableAsync", "(", "new", "DescribeTableRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ")", ";", "}" ]
Simplified method form for invoking the DescribeTable operation. @see #describeTableAsync(DescribeTableRequest)
[ "Simplified", "method", "form", "for", "invoking", "the", "DescribeTable", "operation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L396-L400
19,534
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.describeTableAsync
@Override public java.util.concurrent.Future<DescribeTableResult> describeTableAsync(String tableName, com.amazonaws.handlers.AsyncHandler<DescribeTableRequest, DescribeTableResult> asyncHandler) { return describeTableAsync(new DescribeTableRequest().withTableName(tableName), asyncHandler); }
java
@Override public java.util.concurrent.Future<DescribeTableResult> describeTableAsync(String tableName, com.amazonaws.handlers.AsyncHandler<DescribeTableRequest, DescribeTableResult> asyncHandler) { return describeTableAsync(new DescribeTableRequest().withTableName(tableName), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DescribeTableResult", ">", "describeTableAsync", "(", "String", "tableName", ",", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "DescribeTableRequest", ",", "DescribeTableResult", ">", "asyncHandler", ")", "{", "return", "describeTableAsync", "(", "new", "DescribeTableRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the DescribeTable operation with an AsyncHandler. @see #describeTableAsync(DescribeTableRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "DescribeTable", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L407-L412
19,535
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.getItemAsync
@Override public java.util.concurrent.Future<GetItemResult> getItemAsync(String tableName, java.util.Map<String, AttributeValue> key) { return getItemAsync(new GetItemRequest().withTableName(tableName).withKey(key)); }
java
@Override public java.util.concurrent.Future<GetItemResult> getItemAsync(String tableName, java.util.Map<String, AttributeValue> key) { return getItemAsync(new GetItemRequest().withTableName(tableName).withKey(key)); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "GetItemResult", ">", "getItemAsync", "(", "String", "tableName", ",", "java", ".", "util", ".", "Map", "<", "String", ",", "AttributeValue", ">", "key", ")", "{", "return", "getItemAsync", "(", "new", "GetItemRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ".", "withKey", "(", "key", ")", ")", ";", "}" ]
Simplified method form for invoking the GetItem operation. @see #getItemAsync(GetItemRequest)
[ "Simplified", "method", "form", "for", "invoking", "the", "GetItem", "operation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L445-L449
19,536
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.getItemAsync
@Override public java.util.concurrent.Future<GetItemResult> getItemAsync(String tableName, java.util.Map<String, AttributeValue> key, com.amazonaws.handlers.AsyncHandler<GetItemRequest, GetItemResult> asyncHandler) { return getItemAsync(new GetItemRequest().withTableName(tableName).withKey(key), asyncHandler); }
java
@Override public java.util.concurrent.Future<GetItemResult> getItemAsync(String tableName, java.util.Map<String, AttributeValue> key, com.amazonaws.handlers.AsyncHandler<GetItemRequest, GetItemResult> asyncHandler) { return getItemAsync(new GetItemRequest().withTableName(tableName).withKey(key), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "GetItemResult", ">", "getItemAsync", "(", "String", "tableName", ",", "java", ".", "util", ".", "Map", "<", "String", ",", "AttributeValue", ">", "key", ",", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "GetItemRequest", ",", "GetItemResult", ">", "asyncHandler", ")", "{", "return", "getItemAsync", "(", "new", "GetItemRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ".", "withKey", "(", "key", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the GetItem operation with an AsyncHandler. @see #getItemAsync(GetItemRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "GetItem", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L456-L461
19,537
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.putItemAsync
@Override public java.util.concurrent.Future<PutItemResult> putItemAsync(String tableName, java.util.Map<String, AttributeValue> item) { return putItemAsync(new PutItemRequest().withTableName(tableName).withItem(item)); }
java
@Override public java.util.concurrent.Future<PutItemResult> putItemAsync(String tableName, java.util.Map<String, AttributeValue> item) { return putItemAsync(new PutItemRequest().withTableName(tableName).withItem(item)); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "PutItemResult", ">", "putItemAsync", "(", "String", "tableName", ",", "java", ".", "util", ".", "Map", "<", "String", ",", "AttributeValue", ">", "item", ")", "{", "return", "putItemAsync", "(", "new", "PutItemRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ".", "withItem", "(", "item", ")", ")", ";", "}" ]
Simplified method form for invoking the PutItem operation. @see #putItemAsync(PutItemRequest)
[ "Simplified", "method", "form", "for", "invoking", "the", "PutItem", "operation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L647-L651
19,538
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.putItemAsync
@Override public java.util.concurrent.Future<PutItemResult> putItemAsync(String tableName, java.util.Map<String, AttributeValue> item, com.amazonaws.handlers.AsyncHandler<PutItemRequest, PutItemResult> asyncHandler) { return putItemAsync(new PutItemRequest().withTableName(tableName).withItem(item), asyncHandler); }
java
@Override public java.util.concurrent.Future<PutItemResult> putItemAsync(String tableName, java.util.Map<String, AttributeValue> item, com.amazonaws.handlers.AsyncHandler<PutItemRequest, PutItemResult> asyncHandler) { return putItemAsync(new PutItemRequest().withTableName(tableName).withItem(item), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "PutItemResult", ">", "putItemAsync", "(", "String", "tableName", ",", "java", ".", "util", ".", "Map", "<", "String", ",", "AttributeValue", ">", "item", ",", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "PutItemRequest", ",", "PutItemResult", ">", "asyncHandler", ")", "{", "return", "putItemAsync", "(", "new", "PutItemRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ".", "withItem", "(", "item", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the PutItem operation with an AsyncHandler. @see #putItemAsync(PutItemRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "PutItem", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L658-L663
19,539
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.scanAsync
@Override public java.util.concurrent.Future<ScanResult> scanAsync(String tableName, java.util.Map<String, Condition> scanFilter, com.amazonaws.handlers.AsyncHandler<ScanRequest, ScanResult> asyncHandler) { return scanAsync(new ScanRequest().withTableName(tableName).withScanFilter(scanFilter), asyncHandler); }
java
@Override public java.util.concurrent.Future<ScanResult> scanAsync(String tableName, java.util.Map<String, Condition> scanFilter, com.amazonaws.handlers.AsyncHandler<ScanRequest, ScanResult> asyncHandler) { return scanAsync(new ScanRequest().withTableName(tableName).withScanFilter(scanFilter), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "ScanResult", ">", "scanAsync", "(", "String", "tableName", ",", "java", ".", "util", ".", "Map", "<", "String", ",", "Condition", ">", "scanFilter", ",", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "ScanRequest", ",", "ScanResult", ">", "asyncHandler", ")", "{", "return", "scanAsync", "(", "new", "ScanRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ".", "withScanFilter", "(", "scanFilter", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the Scan operation with an AsyncHandler. @see #scanAsync(ScanRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "Scan", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L777-L782
19,540
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.updateTableAsync
@Override public java.util.concurrent.Future<UpdateTableResult> updateTableAsync(String tableName, ProvisionedThroughput provisionedThroughput) { return updateTableAsync(new UpdateTableRequest().withTableName(tableName).withProvisionedThroughput(provisionedThroughput)); }
java
@Override public java.util.concurrent.Future<UpdateTableResult> updateTableAsync(String tableName, ProvisionedThroughput provisionedThroughput) { return updateTableAsync(new UpdateTableRequest().withTableName(tableName).withProvisionedThroughput(provisionedThroughput)); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "UpdateTableResult", ">", "updateTableAsync", "(", "String", "tableName", ",", "ProvisionedThroughput", "provisionedThroughput", ")", "{", "return", "updateTableAsync", "(", "new", "UpdateTableRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ".", "withProvisionedThroughput", "(", "provisionedThroughput", ")", ")", ";", "}" ]
Simplified method form for invoking the UpdateTable operation. @see #updateTableAsync(UpdateTableRequest)
[ "Simplified", "method", "form", "for", "invoking", "the", "UpdateTable", "operation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L982-L986
19,541
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java
AbstractAmazonDynamoDBAsync.updateTableAsync
@Override public java.util.concurrent.Future<UpdateTableResult> updateTableAsync(String tableName, ProvisionedThroughput provisionedThroughput, com.amazonaws.handlers.AsyncHandler<UpdateTableRequest, UpdateTableResult> asyncHandler) { return updateTableAsync(new UpdateTableRequest().withTableName(tableName).withProvisionedThroughput(provisionedThroughput), asyncHandler); }
java
@Override public java.util.concurrent.Future<UpdateTableResult> updateTableAsync(String tableName, ProvisionedThroughput provisionedThroughput, com.amazonaws.handlers.AsyncHandler<UpdateTableRequest, UpdateTableResult> asyncHandler) { return updateTableAsync(new UpdateTableRequest().withTableName(tableName).withProvisionedThroughput(provisionedThroughput), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "UpdateTableResult", ">", "updateTableAsync", "(", "String", "tableName", ",", "ProvisionedThroughput", "provisionedThroughput", ",", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "UpdateTableRequest", ",", "UpdateTableResult", ">", "asyncHandler", ")", "{", "return", "updateTableAsync", "(", "new", "UpdateTableRequest", "(", ")", ".", "withTableName", "(", "tableName", ")", ".", "withProvisionedThroughput", "(", "provisionedThroughput", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the UpdateTable operation with an AsyncHandler. @see #updateTableAsync(UpdateTableRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "UpdateTable", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AbstractAmazonDynamoDBAsync.java#L993-L998
19,542
aws/aws-sdk-java
aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/waiters/AmazonCloudWatchWaiters.java
AmazonCloudWatchWaiters.alarmExists
public Waiter<DescribeAlarmsRequest> alarmExists() { return new WaiterBuilder<DescribeAlarmsRequest, DescribeAlarmsResult>().withSdkFunction(new DescribeAlarmsFunction(client)) .withAcceptors(new AlarmExists.IsTrueMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(5))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeAlarmsRequest> alarmExists() { return new WaiterBuilder<DescribeAlarmsRequest, DescribeAlarmsResult>().withSdkFunction(new DescribeAlarmsFunction(client)) .withAcceptors(new AlarmExists.IsTrueMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(5))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeAlarmsRequest", ">", "alarmExists", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeAlarmsRequest", ",", "DescribeAlarmsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeAlarmsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "AlarmExists", ".", "IsTrueMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "5", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a AlarmExists 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", "AlarmExists", "waiter", "by", "using", "custom", "parameters", "waiterParameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-cloudwatch/src/main/java/com/amazonaws/services/cloudwatch/waiters/AmazonCloudWatchWaiters.java#L51-L57
19,543
aws/aws-sdk-java
aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/AbstractAWSLogsAsync.java
AbstractAWSLogsAsync.describeDestinationsAsync
@Override public java.util.concurrent.Future<DescribeDestinationsResult> describeDestinationsAsync( com.amazonaws.handlers.AsyncHandler<DescribeDestinationsRequest, DescribeDestinationsResult> asyncHandler) { return describeDestinationsAsync(new DescribeDestinationsRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<DescribeDestinationsResult> describeDestinationsAsync( com.amazonaws.handlers.AsyncHandler<DescribeDestinationsRequest, DescribeDestinationsResult> asyncHandler) { return describeDestinationsAsync(new DescribeDestinationsRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DescribeDestinationsResult", ">", "describeDestinationsAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "DescribeDestinationsRequest", ",", "DescribeDestinationsResult", ">", "asyncHandler", ")", "{", "return", "describeDestinationsAsync", "(", "new", "DescribeDestinationsRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the DescribeDestinations operation with an AsyncHandler. @see #describeDestinationsAsync(DescribeDestinationsRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "DescribeDestinations", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/AbstractAWSLogsAsync.java#L214-L219
19,544
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/PrimaryKey.java
PrimaryKey.addComponents
public PrimaryKey addComponents(KeyAttribute ... components) { if (components != null) { for (KeyAttribute ka: components) { InternalUtils.rejectNullInput(ka); this.components.put(ka.getName(), ka); } } return this; }
java
public PrimaryKey addComponents(KeyAttribute ... components) { if (components != null) { for (KeyAttribute ka: components) { InternalUtils.rejectNullInput(ka); this.components.put(ka.getName(), ka); } } return this; }
[ "public", "PrimaryKey", "addComponents", "(", "KeyAttribute", "...", "components", ")", "{", "if", "(", "components", "!=", "null", ")", "{", "for", "(", "KeyAttribute", "ka", ":", "components", ")", "{", "InternalUtils", ".", "rejectNullInput", "(", "ka", ")", ";", "this", ".", "components", ".", "put", "(", "ka", ".", "getName", "(", ")", ",", "ka", ")", ";", "}", "}", "return", "this", ";", "}" ]
Add one or multiple key components to this primary key. Note adding a key component with the same name as that of an existing one would overwrite and become a single key component instead of two.
[ "Add", "one", "or", "multiple", "key", "components", "to", "this", "primary", "key", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/PrimaryKey.java#L85-L93
19,545
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/PrimaryKey.java
PrimaryKey.addComponent
public PrimaryKey addComponent(String keyAttributeName, Object keyAttributeValue) { components.put(keyAttributeName, new KeyAttribute(keyAttributeName, keyAttributeValue)); return this; }
java
public PrimaryKey addComponent(String keyAttributeName, Object keyAttributeValue) { components.put(keyAttributeName, new KeyAttribute(keyAttributeName, keyAttributeValue)); return this; }
[ "public", "PrimaryKey", "addComponent", "(", "String", "keyAttributeName", ",", "Object", "keyAttributeValue", ")", "{", "components", ".", "put", "(", "keyAttributeName", ",", "new", "KeyAttribute", "(", "keyAttributeName", ",", "keyAttributeValue", ")", ")", ";", "return", "this", ";", "}" ]
Add a key component to this primary key. Note adding a key component with the same name as that of an existing one would overwrite and become a single key component instead of two.
[ "Add", "a", "key", "component", "to", "this", "primary", "key", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/PrimaryKey.java#L101-L105
19,546
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/conditions/ConditionFactory.java
ConditionFactory.newUserAgentCondition
public static Condition newUserAgentCondition(StringComparisonType comparisonType, String value) { return new StringCondition(comparisonType, USER_AGENT_CONDITION_KEY, value); }
java
public static Condition newUserAgentCondition(StringComparisonType comparisonType, String value) { return new StringCondition(comparisonType, USER_AGENT_CONDITION_KEY, value); }
[ "public", "static", "Condition", "newUserAgentCondition", "(", "StringComparisonType", "comparisonType", ",", "String", "value", ")", "{", "return", "new", "StringCondition", "(", "comparisonType", ",", "USER_AGENT_CONDITION_KEY", ",", "value", ")", ";", "}" ]
Constructs a new access control policy condition that tests the incoming request's user agent field against the specified value, using the specified comparison type. This condition can be used to allow or deny access to a resource based on what user agent is specified in the request. @param comparisonType The type of string comparison to perform when testing an incoming request's user agent field with the specified value. @param value The value against which to compare the incoming request's user agent. @return A new access control policy condition that tests an incoming request's user agent field.
[ "Constructs", "a", "new", "access", "control", "policy", "condition", "that", "tests", "the", "incoming", "request", "s", "user", "agent", "field", "against", "the", "specified", "value", "using", "the", "specified", "comparison", "type", ".", "This", "condition", "can", "be", "used", "to", "allow", "or", "deny", "access", "to", "a", "resource", "based", "on", "what", "user", "agent", "is", "specified", "in", "the", "request", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/conditions/ConditionFactory.java#L152-L154
19,547
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/conditions/ConditionFactory.java
ConditionFactory.newRefererCondition
public static Condition newRefererCondition(StringComparisonType comparisonType, String value) { return new StringCondition(comparisonType, REFERER_CONDITION_KEY, value); }
java
public static Condition newRefererCondition(StringComparisonType comparisonType, String value) { return new StringCondition(comparisonType, REFERER_CONDITION_KEY, value); }
[ "public", "static", "Condition", "newRefererCondition", "(", "StringComparisonType", "comparisonType", ",", "String", "value", ")", "{", "return", "new", "StringCondition", "(", "comparisonType", ",", "REFERER_CONDITION_KEY", ",", "value", ")", ";", "}" ]
Constructs a new access control policy condition that tests the incoming request's referer field against the specified value, using the specified comparison type. @param comparisonType The type of string comparison to perform when testing an incoming request's referer field with the specified value. @param value The value against which to compare the incoming request's referer field. @return A new access control policy condition that tests an incoming request's referer field.
[ "Constructs", "a", "new", "access", "control", "policy", "condition", "that", "tests", "the", "incoming", "request", "s", "referer", "field", "against", "the", "specified", "value", "using", "the", "specified", "comparison", "type", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/conditions/ConditionFactory.java#L171-L173
19,548
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java
AmazonElasticLoadBalancingWaiters.loadBalancerAvailable
public Waiter<DescribeLoadBalancersRequest> loadBalancerAvailable() { return new WaiterBuilder<DescribeLoadBalancersRequest, DescribeLoadBalancersResult>() .withSdkFunction(new DescribeLoadBalancersFunction(client)) .withAcceptors(new LoadBalancerAvailable.IsActiveMatcher(), new LoadBalancerAvailable.IsProvisioningMatcher(), new LoadBalancerAvailable.IsLoadBalancerNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeLoadBalancersRequest> loadBalancerAvailable() { return new WaiterBuilder<DescribeLoadBalancersRequest, DescribeLoadBalancersResult>() .withSdkFunction(new DescribeLoadBalancersFunction(client)) .withAcceptors(new LoadBalancerAvailable.IsActiveMatcher(), new LoadBalancerAvailable.IsProvisioningMatcher(), new LoadBalancerAvailable.IsLoadBalancerNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeLoadBalancersRequest", ">", "loadBalancerAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeLoadBalancersRequest", ",", "DescribeLoadBalancersResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeLoadBalancersFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "LoadBalancerAvailable", ".", "IsActiveMatcher", "(", ")", ",", "new", "LoadBalancerAvailable", ".", "IsProvisioningMatcher", "(", ")", ",", "new", "LoadBalancerAvailable", ".", "IsLoadBalancerNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a LoadBalancerAvailable 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", "LoadBalancerAvailable", "waiter", "by", "using", "custom", "parameters", "waiterParameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java#L51-L59
19,549
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java
AmazonElasticLoadBalancingWaiters.targetDeregistered
public Waiter<DescribeTargetHealthRequest> targetDeregistered() { return new WaiterBuilder<DescribeTargetHealthRequest, DescribeTargetHealthResult>().withSdkFunction(new DescribeTargetHealthFunction(client)) .withAcceptors(new TargetDeregistered.IsInvalidTargetMatcher(), new TargetDeregistered.IsUnusedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeTargetHealthRequest> targetDeregistered() { return new WaiterBuilder<DescribeTargetHealthRequest, DescribeTargetHealthResult>().withSdkFunction(new DescribeTargetHealthFunction(client)) .withAcceptors(new TargetDeregistered.IsInvalidTargetMatcher(), new TargetDeregistered.IsUnusedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeTargetHealthRequest", ">", "targetDeregistered", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeTargetHealthRequest", ",", "DescribeTargetHealthResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeTargetHealthFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "TargetDeregistered", ".", "IsInvalidTargetMatcher", "(", ")", ",", "new", "TargetDeregistered", ".", "IsUnusedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a TargetDeregistered 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", "TargetDeregistered", "waiter", "by", "using", "custom", "parameters", "waiterParameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java#L66-L72
19,550
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java
AmazonElasticLoadBalancingWaiters.targetInService
public Waiter<DescribeTargetHealthRequest> targetInService() { return new WaiterBuilder<DescribeTargetHealthRequest, DescribeTargetHealthResult>().withSdkFunction(new DescribeTargetHealthFunction(client)) .withAcceptors(new TargetInService.IsHealthyMatcher(), new TargetInService.IsInvalidInstanceMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeTargetHealthRequest> targetInService() { return new WaiterBuilder<DescribeTargetHealthRequest, DescribeTargetHealthResult>().withSdkFunction(new DescribeTargetHealthFunction(client)) .withAcceptors(new TargetInService.IsHealthyMatcher(), new TargetInService.IsInvalidInstanceMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeTargetHealthRequest", ">", "targetInService", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeTargetHealthRequest", ",", "DescribeTargetHealthResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeTargetHealthFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "TargetInService", ".", "IsHealthyMatcher", "(", ")", ",", "new", "TargetInService", ".", "IsInvalidInstanceMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a TargetInService 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", "TargetInService", "waiter", "by", "using", "custom", "parameters", "waiterParameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java#L79-L85
19,551
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java
AmazonElasticLoadBalancingWaiters.loadBalancerExists
public Waiter<DescribeLoadBalancersRequest> loadBalancerExists() { return new WaiterBuilder<DescribeLoadBalancersRequest, DescribeLoadBalancersResult>().withSdkFunction(new DescribeLoadBalancersFunction(client)) .withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new LoadBalancerExists.IsLoadBalancerNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeLoadBalancersRequest> loadBalancerExists() { return new WaiterBuilder<DescribeLoadBalancersRequest, DescribeLoadBalancersResult>().withSdkFunction(new DescribeLoadBalancersFunction(client)) .withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new LoadBalancerExists.IsLoadBalancerNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeLoadBalancersRequest", ">", "loadBalancerExists", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeLoadBalancersRequest", ",", "DescribeLoadBalancersResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeLoadBalancersFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "HttpSuccessStatusAcceptor", "(", "WaiterState", ".", "SUCCESS", ")", ",", "new", "LoadBalancerExists", ".", "IsLoadBalancerNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a LoadBalancerExists 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", "LoadBalancerExists", "waiter", "by", "using", "custom", "parameters", "waiterParameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java#L92-L98
19,552
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java
AmazonElasticLoadBalancingWaiters.loadBalancersDeleted
public Waiter<DescribeLoadBalancersRequest> loadBalancersDeleted() { return new WaiterBuilder<DescribeLoadBalancersRequest, DescribeLoadBalancersResult>().withSdkFunction(new DescribeLoadBalancersFunction(client)) .withAcceptors(new LoadBalancersDeleted.IsActiveMatcher(), new LoadBalancersDeleted.IsLoadBalancerNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeLoadBalancersRequest> loadBalancersDeleted() { return new WaiterBuilder<DescribeLoadBalancersRequest, DescribeLoadBalancersResult>().withSdkFunction(new DescribeLoadBalancersFunction(client)) .withAcceptors(new LoadBalancersDeleted.IsActiveMatcher(), new LoadBalancersDeleted.IsLoadBalancerNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeLoadBalancersRequest", ">", "loadBalancersDeleted", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeLoadBalancersRequest", ",", "DescribeLoadBalancersResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeLoadBalancersFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "LoadBalancersDeleted", ".", "IsActiveMatcher", "(", ")", ",", "new", "LoadBalancersDeleted", ".", "IsLoadBalancerNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a LoadBalancersDeleted 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", "LoadBalancersDeleted", "waiter", "by", "using", "custom", "parameters", "waiterParameters", "and", "other", "parameters", "defined", "in", "the", "waiters", "specification", "and", "then", "polls", "until", "it", "determines", "whether", "the", "resource", "entered", "the", "desired", "state", "or", "not", "where", "polling", "criteria", "is", "bound", "by", "either", "default", "polling", "strategy", "or", "custom", "polling", "strategy", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancingv2/src/main/java/com/amazonaws/services/elasticloadbalancingv2/waiters/AmazonElasticLoadBalancingWaiters.java#L105-L111
19,553
aws/aws-sdk-java
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/internal/TreeHashInputStream.java
TreeHashInputStream.digestPart
private void digestPart() { if ( byteOffset >= MB ) { byteOffset = 0; checksums.add(digestInputStream.getMessageDigest().digest()); digestInputStream.getMessageDigest().reset(); } }
java
private void digestPart() { if ( byteOffset >= MB ) { byteOffset = 0; checksums.add(digestInputStream.getMessageDigest().digest()); digestInputStream.getMessageDigest().reset(); } }
[ "private", "void", "digestPart", "(", ")", "{", "if", "(", "byteOffset", ">=", "MB", ")", "{", "byteOffset", "=", "0", ";", "checksums", ".", "add", "(", "digestInputStream", ".", "getMessageDigest", "(", ")", ".", "digest", "(", ")", ")", ";", "digestInputStream", ".", "getMessageDigest", "(", ")", ".", "reset", "(", ")", ";", "}", "}" ]
Digests the current part of the message, if necessary, and resets digest state.
[ "Digests", "the", "current", "part", "of", "the", "message", "if", "necessary", "and", "resets", "digest", "state", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/internal/TreeHashInputStream.java#L113-L119
19,554
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/S3AbortableInputStream.java
S3AbortableInputStream.onException
private int onException(Exception e) throws IOException { eofReached = true; if (e instanceof IOException) { throw (IOException) e; } else if (e instanceof RuntimeException) { throw (RuntimeException) e; } else { // Impossible since InputStream throws no other checked exceptions. throw Throwables.failure(e); } }
java
private int onException(Exception e) throws IOException { eofReached = true; if (e instanceof IOException) { throw (IOException) e; } else if (e instanceof RuntimeException) { throw (RuntimeException) e; } else { // Impossible since InputStream throws no other checked exceptions. throw Throwables.failure(e); } }
[ "private", "int", "onException", "(", "Exception", "e", ")", "throws", "IOException", "{", "eofReached", "=", "true", ";", "if", "(", "e", "instanceof", "IOException", ")", "{", "throw", "(", "IOException", ")", "e", ";", "}", "else", "if", "(", "e", "instanceof", "RuntimeException", ")", "{", "throw", "(", "RuntimeException", ")", "e", ";", "}", "else", "{", "// Impossible since InputStream throws no other checked exceptions.", "throw", "Throwables", ".", "failure", "(", "e", ")", ";", "}", "}" ]
Marks the input stream as EOF since no further reads should be done. @param e Exception thrown by delegate stream. @return Noting, just for return signature. @throws IOException or {@link RuntimeException}
[ "Marks", "the", "input", "stream", "as", "EOF", "since", "no", "further", "reads", "should", "be", "done", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/S3AbortableInputStream.java#L209-L219
19,555
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/internal/ReleasableInputStream.java
ReleasableInputStream.doRelease
private void doRelease() { try { in.close(); } catch (Exception ex) { if (log.isDebugEnabled()) log.debug("FYI", ex); } if (in instanceof Releasable) { // This allows any underlying stream that has the close operation // disabled to be truly released Releasable r = (Releasable)in; r.release(); } abortIfNeeded(); }
java
private void doRelease() { try { in.close(); } catch (Exception ex) { if (log.isDebugEnabled()) log.debug("FYI", ex); } if (in instanceof Releasable) { // This allows any underlying stream that has the close operation // disabled to be truly released Releasable r = (Releasable)in; r.release(); } abortIfNeeded(); }
[ "private", "void", "doRelease", "(", ")", "{", "try", "{", "in", ".", "close", "(", ")", ";", "}", "catch", "(", "Exception", "ex", ")", "{", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "log", ".", "debug", "(", "\"FYI\"", ",", "ex", ")", ";", "}", "if", "(", "in", "instanceof", "Releasable", ")", "{", "// This allows any underlying stream that has the close operation", "// disabled to be truly released", "Releasable", "r", "=", "(", "Releasable", ")", "in", ";", "r", ".", "release", "(", ")", ";", "}", "abortIfNeeded", "(", ")", ";", "}" ]
Used to truly release the underlying resources.
[ "Used", "to", "truly", "release", "the", "underlying", "resources", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/internal/ReleasableInputStream.java#L83-L97
19,556
aws/aws-sdk-java
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/AbstractAWSStorageGatewayAsync.java
AbstractAWSStorageGatewayAsync.listTagsForResourceAsync
@Override public java.util.concurrent.Future<ListTagsForResourceResult> listTagsForResourceAsync( com.amazonaws.handlers.AsyncHandler<ListTagsForResourceRequest, ListTagsForResourceResult> asyncHandler) { return listTagsForResourceAsync(new ListTagsForResourceRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<ListTagsForResourceResult> listTagsForResourceAsync( com.amazonaws.handlers.AsyncHandler<ListTagsForResourceRequest, ListTagsForResourceResult> asyncHandler) { return listTagsForResourceAsync(new ListTagsForResourceRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "ListTagsForResourceResult", ">", "listTagsForResourceAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "ListTagsForResourceRequest", ",", "ListTagsForResourceResult", ">", "asyncHandler", ")", "{", "return", "listTagsForResourceAsync", "(", "new", "ListTagsForResourceRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the ListTagsForResource operation with an AsyncHandler. @see #listTagsForResourceAsync(ListTagsForResourceRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "ListTagsForResource", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/AbstractAWSStorageGatewayAsync.java#L718-L723
19,557
aws/aws-sdk-java
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/AbstractAWSStorageGatewayAsync.java
AbstractAWSStorageGatewayAsync.removeTagsFromResourceAsync
@Override public java.util.concurrent.Future<RemoveTagsFromResourceResult> removeTagsFromResourceAsync( com.amazonaws.handlers.AsyncHandler<RemoveTagsFromResourceRequest, RemoveTagsFromResourceResult> asyncHandler) { return removeTagsFromResourceAsync(new RemoveTagsFromResourceRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<RemoveTagsFromResourceResult> removeTagsFromResourceAsync( com.amazonaws.handlers.AsyncHandler<RemoveTagsFromResourceRequest, RemoveTagsFromResourceResult> asyncHandler) { return removeTagsFromResourceAsync(new RemoveTagsFromResourceRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "RemoveTagsFromResourceResult", ">", "removeTagsFromResourceAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "RemoveTagsFromResourceRequest", ",", "RemoveTagsFromResourceResult", ">", "asyncHandler", ")", "{", "return", "removeTagsFromResourceAsync", "(", "new", "RemoveTagsFromResourceRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the RemoveTagsFromResource operation with an AsyncHandler. @see #removeTagsFromResourceAsync(RemoveTagsFromResourceRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "RemoveTagsFromResource", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/AbstractAWSStorageGatewayAsync.java#L832-L837
19,558
aws/aws-sdk-java
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/OutputChannelMapping.java
OutputChannelMapping.setInputChannels
public void setInputChannels(java.util.Collection<Integer> inputChannels) { if (inputChannels == null) { this.inputChannels = null; return; } this.inputChannels = new java.util.ArrayList<Integer>(inputChannels); }
java
public void setInputChannels(java.util.Collection<Integer> inputChannels) { if (inputChannels == null) { this.inputChannels = null; return; } this.inputChannels = new java.util.ArrayList<Integer>(inputChannels); }
[ "public", "void", "setInputChannels", "(", "java", ".", "util", ".", "Collection", "<", "Integer", ">", "inputChannels", ")", "{", "if", "(", "inputChannels", "==", "null", ")", "{", "this", ".", "inputChannels", "=", "null", ";", "return", ";", "}", "this", ".", "inputChannels", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "Integer", ">", "(", "inputChannels", ")", ";", "}" ]
List of input channels @param inputChannels List of input channels
[ "List", "of", "input", "channels" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/OutputChannelMapping.java#L49-L56
19,559
aws/aws-sdk-java
aws-java-sdk-sts/src/main/java/com/amazonaws/services/securitytoken/AWSSecurityTokenServiceAsyncClient.java
AWSSecurityTokenServiceAsyncClient.getSessionTokenAsync
@Override public java.util.concurrent.Future<GetSessionTokenResult> getSessionTokenAsync( com.amazonaws.handlers.AsyncHandler<GetSessionTokenRequest, GetSessionTokenResult> asyncHandler) { return getSessionTokenAsync(new GetSessionTokenRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<GetSessionTokenResult> getSessionTokenAsync( com.amazonaws.handlers.AsyncHandler<GetSessionTokenRequest, GetSessionTokenResult> asyncHandler) { return getSessionTokenAsync(new GetSessionTokenRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "GetSessionTokenResult", ">", "getSessionTokenAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "GetSessionTokenRequest", ",", "GetSessionTokenResult", ">", "asyncHandler", ")", "{", "return", "getSessionTokenAsync", "(", "new", "GetSessionTokenRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the GetSessionToken operation with an AsyncHandler. @see #getSessionTokenAsync(GetSessionTokenRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "GetSessionToken", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sts/src/main/java/com/amazonaws/services/securitytoken/AWSSecurityTokenServiceAsyncClient.java#L546-L551
19,560
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/PaginatedList.java
PaginatedList.loadNextResults
private synchronized boolean loadNextResults() { if ( atEndOfResults() ) return false; do { nextResults.addAll(fetchNextPage()); } while ( !atEndOfResults() && nextResults.isEmpty() ); return !nextResults.isEmpty(); }
java
private synchronized boolean loadNextResults() { if ( atEndOfResults() ) return false; do { nextResults.addAll(fetchNextPage()); } while ( !atEndOfResults() && nextResults.isEmpty() ); return !nextResults.isEmpty(); }
[ "private", "synchronized", "boolean", "loadNextResults", "(", ")", "{", "if", "(", "atEndOfResults", "(", ")", ")", "return", "false", ";", "do", "{", "nextResults", ".", "addAll", "(", "fetchNextPage", "(", ")", ")", ";", "}", "while", "(", "!", "atEndOfResults", "(", ")", "&&", "nextResults", ".", "isEmpty", "(", ")", ")", ";", "return", "!", "nextResults", ".", "isEmpty", "(", ")", ";", "}" ]
Attempts to load the next batch of results, if there are any, into the nextResults buffer. Returns whether there were any results to load. A return value of true guarantees that nextResults had items added to it.
[ "Attempts", "to", "load", "the", "next", "batch", "of", "results", "if", "there", "are", "any", "into", "the", "nextResults", "buffer", ".", "Returns", "whether", "there", "were", "any", "results", "to", "load", ".", "A", "return", "value", "of", "true", "guarantees", "that", "nextResults", "had", "items", "added", "to", "it", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/PaginatedList.java#L156-L165
19,561
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/PaginatedList.java
PaginatedList.moveNextResults
private void moveNextResults(boolean clearPreviousResults) { if (clearPreviousResults) { allResults.clear(); } allResults.addAll(nextResults); nextResults.clear(); }
java
private void moveNextResults(boolean clearPreviousResults) { if (clearPreviousResults) { allResults.clear(); } allResults.addAll(nextResults); nextResults.clear(); }
[ "private", "void", "moveNextResults", "(", "boolean", "clearPreviousResults", ")", "{", "if", "(", "clearPreviousResults", ")", "{", "allResults", ".", "clear", "(", ")", ";", "}", "allResults", ".", "addAll", "(", "nextResults", ")", ";", "nextResults", ".", "clear", "(", ")", ";", "}" ]
Moves the contents of the nextResults buffer into allResults and resets the buffer. @param clearPreviousResults Whether it should clear previous results in allResults field.
[ "Moves", "the", "contents", "of", "the", "nextResults", "buffer", "into", "allResults", "and", "resets", "the", "buffer", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/PaginatedList.java#L174-L180
19,562
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/S3RequestEndpointResolver.java
S3RequestEndpointResolver.convertToVirtualHostEndpoint
private static URI convertToVirtualHostEndpoint(URI endpoint, String bucketName) { try { return new URI(String.format("%s://%s.%s", endpoint.getScheme(), bucketName, endpoint.getAuthority())); } catch (URISyntaxException e) { throw new IllegalArgumentException("Invalid bucket name: " + bucketName, e); } }
java
private static URI convertToVirtualHostEndpoint(URI endpoint, String bucketName) { try { return new URI(String.format("%s://%s.%s", endpoint.getScheme(), bucketName, endpoint.getAuthority())); } catch (URISyntaxException e) { throw new IllegalArgumentException("Invalid bucket name: " + bucketName, e); } }
[ "private", "static", "URI", "convertToVirtualHostEndpoint", "(", "URI", "endpoint", ",", "String", "bucketName", ")", "{", "try", "{", "return", "new", "URI", "(", "String", ".", "format", "(", "\"%s://%s.%s\"", ",", "endpoint", ".", "getScheme", "(", ")", ",", "bucketName", ",", "endpoint", ".", "getAuthority", "(", ")", ")", ")", ";", "}", "catch", "(", "URISyntaxException", "e", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Invalid bucket name: \"", "+", "bucketName", ",", "e", ")", ";", "}", "}" ]
Converts the current endpoint set for this client into virtual addressing style, by placing the name of the specified bucket before the S3 service endpoint. @param bucketName The name of the bucket to use in the virtual addressing style of the returned URI. @return A new URI, creating from the current service endpoint URI and the specified bucket.
[ "Converts", "the", "current", "endpoint", "set", "for", "this", "client", "into", "virtual", "addressing", "style", "by", "placing", "the", "name", "of", "the", "specified", "bucket", "before", "the", "S3", "service", "endpoint", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/S3RequestEndpointResolver.java#L73-L79
19,563
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/S3RequestEndpointResolver.java
S3RequestEndpointResolver.resolveRequestEndpoint
public void resolveRequestEndpoint(Request<?> request, String regionString) { if (regionString != null) { final Region r = RegionUtils.getRegion(regionString); if (r == null) { throw new SdkClientException("Not able to determine region" + " for " + regionString + ".Please upgrade to a newer " + "version of the SDK"); } endpointBuilder.withRegion(r); } final URI endpoint = endpointBuilder.getServiceEndpoint(); if (shouldUseVirtualAddressing(endpoint)) { request.setEndpoint(convertToVirtualHostEndpoint(endpoint, bucketName)); request.setResourcePath(SdkHttpUtils.urlEncode(getHostStyleResourcePath(), true)); } else { request.setEndpoint(endpoint); if (bucketName != null) { request.setResourcePath(SdkHttpUtils.urlEncode(getPathStyleResourcePath(), true)); } } }
java
public void resolveRequestEndpoint(Request<?> request, String regionString) { if (regionString != null) { final Region r = RegionUtils.getRegion(regionString); if (r == null) { throw new SdkClientException("Not able to determine region" + " for " + regionString + ".Please upgrade to a newer " + "version of the SDK"); } endpointBuilder.withRegion(r); } final URI endpoint = endpointBuilder.getServiceEndpoint(); if (shouldUseVirtualAddressing(endpoint)) { request.setEndpoint(convertToVirtualHostEndpoint(endpoint, bucketName)); request.setResourcePath(SdkHttpUtils.urlEncode(getHostStyleResourcePath(), true)); } else { request.setEndpoint(endpoint); if (bucketName != null) { request.setResourcePath(SdkHttpUtils.urlEncode(getPathStyleResourcePath(), true)); } } }
[ "public", "void", "resolveRequestEndpoint", "(", "Request", "<", "?", ">", "request", ",", "String", "regionString", ")", "{", "if", "(", "regionString", "!=", "null", ")", "{", "final", "Region", "r", "=", "RegionUtils", ".", "getRegion", "(", "regionString", ")", ";", "if", "(", "r", "==", "null", ")", "{", "throw", "new", "SdkClientException", "(", "\"Not able to determine region\"", "+", "\" for \"", "+", "regionString", "+", "\".Please upgrade to a newer \"", "+", "\"version of the SDK\"", ")", ";", "}", "endpointBuilder", ".", "withRegion", "(", "r", ")", ";", "}", "final", "URI", "endpoint", "=", "endpointBuilder", ".", "getServiceEndpoint", "(", ")", ";", "if", "(", "shouldUseVirtualAddressing", "(", "endpoint", ")", ")", "{", "request", ".", "setEndpoint", "(", "convertToVirtualHostEndpoint", "(", "endpoint", ",", "bucketName", ")", ")", ";", "request", ".", "setResourcePath", "(", "SdkHttpUtils", ".", "urlEncode", "(", "getHostStyleResourcePath", "(", ")", ",", "true", ")", ")", ";", "}", "else", "{", "request", ".", "setEndpoint", "(", "endpoint", ")", ";", "if", "(", "bucketName", "!=", "null", ")", "{", "request", ".", "setResourcePath", "(", "SdkHttpUtils", ".", "urlEncode", "(", "getPathStyleResourcePath", "(", ")", ",", "true", ")", ")", ";", "}", "}", "}" ]
Set the request's endpoint and resource path with the new region provided @param request Request to set endpoint for @param regionString New region to determine endpoint to hit
[ "Set", "the", "request", "s", "endpoint", "and", "resource", "path", "with", "the", "new", "region", "provided" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/S3RequestEndpointResolver.java#L101-L123
19,564
aws/aws-sdk-java
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ChannelMapping.java
ChannelMapping.setOutputChannels
public void setOutputChannels(java.util.Collection<OutputChannelMapping> outputChannels) { if (outputChannels == null) { this.outputChannels = null; return; } this.outputChannels = new java.util.ArrayList<OutputChannelMapping>(outputChannels); }
java
public void setOutputChannels(java.util.Collection<OutputChannelMapping> outputChannels) { if (outputChannels == null) { this.outputChannels = null; return; } this.outputChannels = new java.util.ArrayList<OutputChannelMapping>(outputChannels); }
[ "public", "void", "setOutputChannels", "(", "java", ".", "util", ".", "Collection", "<", "OutputChannelMapping", ">", "outputChannels", ")", "{", "if", "(", "outputChannels", "==", "null", ")", "{", "this", ".", "outputChannels", "=", "null", ";", "return", ";", "}", "this", ".", "outputChannels", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "OutputChannelMapping", ">", "(", "outputChannels", ")", ";", "}" ]
List of output channels @param outputChannels List of output channels
[ "List", "of", "output", "channels" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ChannelMapping.java#L51-L58
19,565
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/SubstitutionContext.java
SubstitutionContext.nameTokenFor
String nameTokenFor(String name) { Integer token = nameToToken.get(name); if (token == null) { token = nameToToken.size(); nameToToken.put(name, token); } return "#" + token; }
java
String nameTokenFor(String name) { Integer token = nameToToken.get(name); if (token == null) { token = nameToToken.size(); nameToToken.put(name, token); } return "#" + token; }
[ "String", "nameTokenFor", "(", "String", "name", ")", "{", "Integer", "token", "=", "nameToToken", ".", "get", "(", "name", ")", ";", "if", "(", "token", "==", "null", ")", "{", "token", "=", "nameToToken", ".", "size", "(", ")", ";", "nameToToken", ".", "put", "(", "name", ",", "token", ")", ";", "}", "return", "\"#\"", "+", "token", ";", "}" ]
Returns the name token for the given name, creating a new token as necessary.
[ "Returns", "the", "name", "token", "for", "the", "given", "name", "creating", "a", "new", "token", "as", "necessary", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/SubstitutionContext.java#L46-L53
19,566
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/SubstitutionContext.java
SubstitutionContext.valueTokenFor
String valueTokenFor(Object value) { Integer token = valueToToken.get(value); if (token == null) { token = valueToToken.size(); valueToToken.put(value, token); } return ":" + token; }
java
String valueTokenFor(Object value) { Integer token = valueToToken.get(value); if (token == null) { token = valueToToken.size(); valueToToken.put(value, token); } return ":" + token; }
[ "String", "valueTokenFor", "(", "Object", "value", ")", "{", "Integer", "token", "=", "valueToToken", ".", "get", "(", "value", ")", ";", "if", "(", "token", "==", "null", ")", "{", "token", "=", "valueToToken", ".", "size", "(", ")", ";", "valueToToken", ".", "put", "(", "value", ",", "token", ")", ";", "}", "return", "\":\"", "+", "token", ";", "}" ]
Returns the value token for the given value, creating a new token as necessary.
[ "Returns", "the", "value", "token", "for", "the", "given", "value", "creating", "a", "new", "token", "as", "necessary", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/SubstitutionContext.java#L59-L66
19,567
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SendUsersMessageRequest.java
SendUsersMessageRequest.withContext
public SendUsersMessageRequest withContext(java.util.Map<String, String> context) { setContext(context); return this; }
java
public SendUsersMessageRequest withContext(java.util.Map<String, String> context) { setContext(context); return this; }
[ "public", "SendUsersMessageRequest", "withContext", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "context", ")", "{", "setContext", "(", "context", ")", ";", "return", "this", ";", "}" ]
A map of custom attribute-value pairs. Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the push notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries. @param context A map of custom attribute-value pairs. Amazon Pinpoint adds these attributes to the data.pinpoint object in the body of the push notification payload. Amazon Pinpoint also provides these attributes in the events that it generates for users-messages deliveries. @return Returns a reference to this object so that method calls can be chained together.
[ "A", "map", "of", "custom", "attribute", "-", "value", "pairs", ".", "Amazon", "Pinpoint", "adds", "these", "attributes", "to", "the", "data", ".", "pinpoint", "object", "in", "the", "body", "of", "the", "push", "notification", "payload", ".", "Amazon", "Pinpoint", "also", "provides", "these", "attributes", "in", "the", "events", "that", "it", "generates", "for", "users", "-", "messages", "deliveries", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SendUsersMessageRequest.java#L86-L89
19,568
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SendUsersMessageRequest.java
SendUsersMessageRequest.withUsers
public SendUsersMessageRequest withUsers(java.util.Map<String, EndpointSendConfiguration> users) { setUsers(users); return this; }
java
public SendUsersMessageRequest withUsers(java.util.Map<String, EndpointSendConfiguration> users) { setUsers(users); return this; }
[ "public", "SendUsersMessageRequest", "withUsers", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "EndpointSendConfiguration", ">", "users", ")", "{", "setUsers", "(", "users", ")", ";", "return", "this", ";", "}" ]
A map that associates user IDs with EndpointSendConfiguration objects. Within an EndpointSendConfiguration object, you can tailor the message for a user by specifying message overrides or substitutions. @param users A map that associates user IDs with EndpointSendConfiguration objects. Within an EndpointSendConfiguration object, you can tailor the message for a user by specifying message overrides or substitutions. @return Returns a reference to this object so that method calls can be chained together.
[ "A", "map", "that", "associates", "user", "IDs", "with", "EndpointSendConfiguration", "objects", ".", "Within", "an", "EndpointSendConfiguration", "object", "you", "can", "tailor", "the", "message", "for", "a", "user", "by", "specifying", "message", "overrides", "or", "substitutions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SendUsersMessageRequest.java#L216-L219
19,569
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/SseKmsEncryptedObjects.java
SseKmsEncryptedObjects.withStatus
public SseKmsEncryptedObjects withStatus(SseKmsEncryptedObjectsStatus status) { setStatus(status == null ? null : status.toString()); return this; }
java
public SseKmsEncryptedObjects withStatus(SseKmsEncryptedObjectsStatus status) { setStatus(status == null ? null : status.toString()); return this; }
[ "public", "SseKmsEncryptedObjects", "withStatus", "(", "SseKmsEncryptedObjectsStatus", "status", ")", "{", "setStatus", "(", "status", "==", "null", "?", "null", ":", "status", ".", "toString", "(", ")", ")", ";", "return", "this", ";", "}" ]
Sets the replication status for KMS encrypted objects. KMS encrypted S3 objects are not replicated if status is Disabled. @param status New replication status. @return This object for method chaining.
[ "Sets", "the", "replication", "status", "for", "KMS", "encrypted", "objects", ".", "KMS", "encrypted", "S3", "objects", "are", "not", "replicated", "if", "status", "is", "Disabled", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/SseKmsEncryptedObjects.java#L60-L63
19,570
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3ClientBuilder.java
AmazonS3ClientBuilder.build
@Override protected AmazonS3 build(AwsSyncClientParams clientParams) { return clientFactory.apply(new AmazonS3ClientParamsWrapper(clientParams, resolveS3ClientOptions())); }
java
@Override protected AmazonS3 build(AwsSyncClientParams clientParams) { return clientFactory.apply(new AmazonS3ClientParamsWrapper(clientParams, resolveS3ClientOptions())); }
[ "@", "Override", "protected", "AmazonS3", "build", "(", "AwsSyncClientParams", "clientParams", ")", "{", "return", "clientFactory", ".", "apply", "(", "new", "AmazonS3ClientParamsWrapper", "(", "clientParams", ",", "resolveS3ClientOptions", "(", ")", ")", ")", ";", "}" ]
Construct a synchronous implementation of AmazonS3 using the current builder configuration. @return Fully configured implementation of AmazonS3.
[ "Construct", "a", "synchronous", "implementation", "of", "AmazonS3", "using", "the", "current", "builder", "configuration", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3ClientBuilder.java#L62-L65
19,571
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3Object.java
S3Object.setObjectContent
public void setObjectContent(InputStream objectContent) { setObjectContent(new S3ObjectInputStream(objectContent, this.objectContent != null ? this.objectContent.getHttpRequest() : null)); }
java
public void setObjectContent(InputStream objectContent) { setObjectContent(new S3ObjectInputStream(objectContent, this.objectContent != null ? this.objectContent.getHttpRequest() : null)); }
[ "public", "void", "setObjectContent", "(", "InputStream", "objectContent", ")", "{", "setObjectContent", "(", "new", "S3ObjectInputStream", "(", "objectContent", ",", "this", ".", "objectContent", "!=", "null", "?", "this", ".", "objectContent", ".", "getHttpRequest", "(", ")", ":", "null", ")", ")", ";", "}" ]
Sets the input stream containing this object's contents. @param objectContent The input stream containing this object's contents. Will get wrapped in an S3ObjectInputStream. @see S3Object#getObjectContent()
[ "Sets", "the", "input", "stream", "containing", "this", "object", "s", "contents", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3Object.java#L129-L132
19,572
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3Object.java
S3Object.close
@Override public void close() throws IOException { InputStream is = getObjectContent(); if (is != null) is.close(); }
java
@Override public void close() throws IOException { InputStream is = getObjectContent(); if (is != null) is.close(); }
[ "@", "Override", "public", "void", "close", "(", ")", "throws", "IOException", "{", "InputStream", "is", "=", "getObjectContent", "(", ")", ";", "if", "(", "is", "!=", "null", ")", "is", ".", "close", "(", ")", ";", "}" ]
Releases any underlying system resources. If the resources are already released then invoking this method has no effect. @throws IOException if an I/O error occurs
[ "Releases", "any", "underlying", "system", "resources", ".", "If", "the", "resources", "are", "already", "released", "then", "invoking", "this", "method", "has", "no", "effect", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3Object.java#L221-L226
19,573
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/UpdateAttributesRequest.java
UpdateAttributesRequest.setBlacklist
public void setBlacklist(java.util.Collection<String> blacklist) { if (blacklist == null) { this.blacklist = null; return; } this.blacklist = new java.util.ArrayList<String>(blacklist); }
java
public void setBlacklist(java.util.Collection<String> blacklist) { if (blacklist == null) { this.blacklist = null; return; } this.blacklist = new java.util.ArrayList<String>(blacklist); }
[ "public", "void", "setBlacklist", "(", "java", ".", "util", ".", "Collection", "<", "String", ">", "blacklist", ")", "{", "if", "(", "blacklist", "==", "null", ")", "{", "this", ".", "blacklist", "=", "null", ";", "return", ";", "}", "this", ".", "blacklist", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "String", ">", "(", "blacklist", ")", ";", "}" ]
The GLOB wildcard for removing the attributes in the application @param blacklist The GLOB wildcard for removing the attributes in the application
[ "The", "GLOB", "wildcard", "for", "removing", "the", "attributes", "in", "the", "application" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/UpdateAttributesRequest.java#L49-L56
19,574
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/PersistableTransfer.java
PersistableTransfer.deserializeFrom
public static <T extends PersistableTransfer> T deserializeFrom( String serialized) { if (serialized == null) return null; ByteArrayInputStream byteStream = new ByteArrayInputStream( serialized.getBytes(UTF8)); try{ return deserializeFrom(byteStream); }finally{ try { byteStream.close(); } catch(IOException ioe) { } ; } }
java
public static <T extends PersistableTransfer> T deserializeFrom( String serialized) { if (serialized == null) return null; ByteArrayInputStream byteStream = new ByteArrayInputStream( serialized.getBytes(UTF8)); try{ return deserializeFrom(byteStream); }finally{ try { byteStream.close(); } catch(IOException ioe) { } ; } }
[ "public", "static", "<", "T", "extends", "PersistableTransfer", ">", "T", "deserializeFrom", "(", "String", "serialized", ")", "{", "if", "(", "serialized", "==", "null", ")", "return", "null", ";", "ByteArrayInputStream", "byteStream", "=", "new", "ByteArrayInputStream", "(", "serialized", ".", "getBytes", "(", "UTF8", ")", ")", ";", "try", "{", "return", "deserializeFrom", "(", "byteStream", ")", ";", "}", "finally", "{", "try", "{", "byteStream", ".", "close", "(", ")", ";", "}", "catch", "(", "IOException", "ioe", ")", "{", "}", ";", "}", "}" ]
Returns the deserialized transfer state of the given serialized representation. @throws UnsupportedOperationException if the paused transfer type extracted from the serialized representation is not supported.
[ "Returns", "the", "deserialized", "transfer", "state", "of", "the", "given", "serialized", "representation", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/PersistableTransfer.java#L103-L114
19,575
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentsResponse.java
SegmentsResponse.setItem
public void setItem(java.util.Collection<SegmentResponse> item) { if (item == null) { this.item = null; return; } this.item = new java.util.ArrayList<SegmentResponse>(item); }
java
public void setItem(java.util.Collection<SegmentResponse> item) { if (item == null) { this.item = null; return; } this.item = new java.util.ArrayList<SegmentResponse>(item); }
[ "public", "void", "setItem", "(", "java", ".", "util", ".", "Collection", "<", "SegmentResponse", ">", "item", ")", "{", "if", "(", "item", "==", "null", ")", "{", "this", ".", "item", "=", "null", ";", "return", ";", "}", "this", ".", "item", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "SegmentResponse", ">", "(", "item", ")", ";", "}" ]
The list of segments. @param item The list of segments.
[ "The", "list", "of", "segments", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentsResponse.java#L51-L58
19,576
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentGroup.java
SegmentGroup.setDimensions
public void setDimensions(java.util.Collection<SegmentDimensions> dimensions) { if (dimensions == null) { this.dimensions = null; return; } this.dimensions = new java.util.ArrayList<SegmentDimensions>(dimensions); }
java
public void setDimensions(java.util.Collection<SegmentDimensions> dimensions) { if (dimensions == null) { this.dimensions = null; return; } this.dimensions = new java.util.ArrayList<SegmentDimensions>(dimensions); }
[ "public", "void", "setDimensions", "(", "java", ".", "util", ".", "Collection", "<", "SegmentDimensions", ">", "dimensions", ")", "{", "if", "(", "dimensions", "==", "null", ")", "{", "this", ".", "dimensions", "=", "null", ";", "return", ";", "}", "this", ".", "dimensions", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "SegmentDimensions", ">", "(", "dimensions", ")", ";", "}" ]
List of dimensions to include or exclude. @param dimensions List of dimensions to include or exclude.
[ "List", "of", "dimensions", "to", "include", "or", "exclude", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/SegmentGroup.java#L69-L76
19,577
aws/aws-sdk-java
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/EncoderSettings.java
EncoderSettings.setCaptionDescriptions
public void setCaptionDescriptions(java.util.Collection<CaptionDescription> captionDescriptions) { if (captionDescriptions == null) { this.captionDescriptions = null; return; } this.captionDescriptions = new java.util.ArrayList<CaptionDescription>(captionDescriptions); }
java
public void setCaptionDescriptions(java.util.Collection<CaptionDescription> captionDescriptions) { if (captionDescriptions == null) { this.captionDescriptions = null; return; } this.captionDescriptions = new java.util.ArrayList<CaptionDescription>(captionDescriptions); }
[ "public", "void", "setCaptionDescriptions", "(", "java", ".", "util", ".", "Collection", "<", "CaptionDescription", ">", "captionDescriptions", ")", "{", "if", "(", "captionDescriptions", "==", "null", ")", "{", "this", ".", "captionDescriptions", "=", "null", ";", "return", ";", "}", "this", ".", "captionDescriptions", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "CaptionDescription", ">", "(", "captionDescriptions", ")", ";", "}" ]
Settings for caption decriptions @param captionDescriptions Settings for caption decriptions
[ "Settings", "for", "caption", "decriptions" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/EncoderSettings.java#L218-L225
19,578
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/utils/ValueMap.java
ValueMap.withList
public ValueMap withList(String key, Object ... vals) { super.put(key, vals == null ? null : new ArrayList<Object>(Arrays.asList(vals))); return this; }
java
public ValueMap withList(String key, Object ... vals) { super.put(key, vals == null ? null : new ArrayList<Object>(Arrays.asList(vals))); return this; }
[ "public", "ValueMap", "withList", "(", "String", "key", ",", "Object", "...", "vals", ")", "{", "super", ".", "put", "(", "key", ",", "vals", "==", "null", "?", "null", ":", "new", "ArrayList", "<", "Object", ">", "(", "Arrays", ".", "asList", "(", "vals", ")", ")", ")", ";", "return", "this", ";", "}" ]
Sets the value of the specified key in the current ValueMap to the given values as a list.
[ "Sets", "the", "value", "of", "the", "specified", "key", "in", "the", "current", "ValueMap", "to", "the", "given", "values", "as", "a", "list", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/utils/ValueMap.java#L167-L171
19,579
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/utils/ValueMap.java
ValueMap.withBoolean
public ValueMap withBoolean(String key, boolean val) { super.put(key, Boolean.valueOf(val)); return this; }
java
public ValueMap withBoolean(String key, boolean val) { super.put(key, Boolean.valueOf(val)); return this; }
[ "public", "ValueMap", "withBoolean", "(", "String", "key", ",", "boolean", "val", ")", "{", "super", ".", "put", "(", "key", ",", "Boolean", ".", "valueOf", "(", "val", ")", ")", ";", "return", "this", ";", "}" ]
Sets the value of the specified key in the current ValueMap to the boolean value.
[ "Sets", "the", "value", "of", "the", "specified", "key", "in", "the", "current", "ValueMap", "to", "the", "boolean", "value", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/utils/ValueMap.java#L186-L189
19,580
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/utils/ValueMap.java
ValueMap.withJSON
public ValueMap withJSON(String key, String jsonValue) { super.put(key, valueConformer.transform(Jackson.fromJsonString(jsonValue, Object.class))); return this; }
java
public ValueMap withJSON(String key, String jsonValue) { super.put(key, valueConformer.transform(Jackson.fromJsonString(jsonValue, Object.class))); return this; }
[ "public", "ValueMap", "withJSON", "(", "String", "key", ",", "String", "jsonValue", ")", "{", "super", ".", "put", "(", "key", ",", "valueConformer", ".", "transform", "(", "Jackson", ".", "fromJsonString", "(", "jsonValue", ",", "Object", ".", "class", ")", ")", ")", ";", "return", "this", ";", "}" ]
Sets the value of the specified key to an object represented by the JSON structure passed.
[ "Sets", "the", "value", "of", "the", "specified", "key", "to", "an", "object", "represented", "by", "the", "JSON", "structure", "passed", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/utils/ValueMap.java#L203-L206
19,581
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/protocol/json/SdkJsonProtocolFactory.java
SdkJsonProtocolFactory.createResponseHandler
public <T> HttpResponseHandler<AmazonWebServiceResponse<T>> createResponseHandler( JsonOperationMetadata operationMetadata, Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller) { return getSdkFactory().createResponseHandler(operationMetadata, responseUnmarshaller); }
java
public <T> HttpResponseHandler<AmazonWebServiceResponse<T>> createResponseHandler( JsonOperationMetadata operationMetadata, Unmarshaller<T, JsonUnmarshallerContext> responseUnmarshaller) { return getSdkFactory().createResponseHandler(operationMetadata, responseUnmarshaller); }
[ "public", "<", "T", ">", "HttpResponseHandler", "<", "AmazonWebServiceResponse", "<", "T", ">", ">", "createResponseHandler", "(", "JsonOperationMetadata", "operationMetadata", ",", "Unmarshaller", "<", "T", ",", "JsonUnmarshallerContext", ">", "responseUnmarshaller", ")", "{", "return", "getSdkFactory", "(", ")", ".", "createResponseHandler", "(", "operationMetadata", ",", "responseUnmarshaller", ")", ";", "}" ]
Returns the response handler to be used for handling a successful response. @param operationMetadata Additional context information about an operation to create the appropriate response handler.
[ "Returns", "the", "response", "handler", "to", "be", "used", "for", "handling", "a", "successful", "response", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/protocol/json/SdkJsonProtocolFactory.java#L85-L89
19,582
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/CoreDefinitionVersion.java
CoreDefinitionVersion.setCores
public void setCores(java.util.Collection<Core> cores) { if (cores == null) { this.cores = null; return; } this.cores = new java.util.ArrayList<Core>(cores); }
java
public void setCores(java.util.Collection<Core> cores) { if (cores == null) { this.cores = null; return; } this.cores = new java.util.ArrayList<Core>(cores); }
[ "public", "void", "setCores", "(", "java", ".", "util", ".", "Collection", "<", "Core", ">", "cores", ")", "{", "if", "(", "cores", "==", "null", ")", "{", "this", ".", "cores", "=", "null", ";", "return", ";", "}", "this", ".", "cores", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "Core", ">", "(", "cores", ")", ";", "}" ]
A list of cores in the core definition version. @param cores A list of cores in the core definition version.
[ "A", "list", "of", "cores", "in", "the", "core", "definition", "version", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/CoreDefinitionVersion.java#L49-L56
19,583
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/http/conn/ssl/ShouldClearSslSessionPredicate.java
ShouldClearSslSessionPredicate.isExceptionAffected
private boolean isExceptionAffected(final String exceptionMessage) { if (exceptionMessage != null) { for (String affectedMessage : EXCEPTION_MESSAGE_WHITELIST) { if (exceptionMessage.contains(affectedMessage)) { return true; } } } return false; }
java
private boolean isExceptionAffected(final String exceptionMessage) { if (exceptionMessage != null) { for (String affectedMessage : EXCEPTION_MESSAGE_WHITELIST) { if (exceptionMessage.contains(affectedMessage)) { return true; } } } return false; }
[ "private", "boolean", "isExceptionAffected", "(", "final", "String", "exceptionMessage", ")", "{", "if", "(", "exceptionMessage", "!=", "null", ")", "{", "for", "(", "String", "affectedMessage", ":", "EXCEPTION_MESSAGE_WHITELIST", ")", "{", "if", "(", "exceptionMessage", ".", "contains", "(", "affectedMessage", ")", ")", "{", "return", "true", ";", "}", "}", "}", "return", "false", ";", "}" ]
Restrict the workaround to only certain types of SSLExceptions that indicate the bug may have been encountered. @param exceptionMessage Message of the {@link SSLException} @return True if message indicates the bug may have been encountered, false otherwise
[ "Restrict", "the", "workaround", "to", "only", "certain", "types", "of", "SSLExceptions", "that", "indicate", "the", "bug", "may", "have", "been", "encountered", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/http/conn/ssl/ShouldClearSslSessionPredicate.java#L102-L111
19,584
aws/aws-sdk-java
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SnsNotification.java
SnsNotification.unsubscribeFromTopic
public void unsubscribeFromTopic() { try { HttpGet request = new HttpGet(unsubscribeUrl.toURI()); HttpResponse response = httpClient.execute(request); if (!ApacheUtils.isRequestSuccessful(response)) { throw new SdkClientException(String.format("Could not unsubscribe from %s: %d %s.%n%s", getTopicArn(), response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), IOUtils.toString(response.getEntity().getContent()))); } } catch (Exception e) { throw new SdkClientException(e); } }
java
public void unsubscribeFromTopic() { try { HttpGet request = new HttpGet(unsubscribeUrl.toURI()); HttpResponse response = httpClient.execute(request); if (!ApacheUtils.isRequestSuccessful(response)) { throw new SdkClientException(String.format("Could not unsubscribe from %s: %d %s.%n%s", getTopicArn(), response.getStatusLine().getStatusCode(), response.getStatusLine().getReasonPhrase(), IOUtils.toString(response.getEntity().getContent()))); } } catch (Exception e) { throw new SdkClientException(e); } }
[ "public", "void", "unsubscribeFromTopic", "(", ")", "{", "try", "{", "HttpGet", "request", "=", "new", "HttpGet", "(", "unsubscribeUrl", ".", "toURI", "(", ")", ")", ";", "HttpResponse", "response", "=", "httpClient", ".", "execute", "(", "request", ")", ";", "if", "(", "!", "ApacheUtils", ".", "isRequestSuccessful", "(", "response", ")", ")", "{", "throw", "new", "SdkClientException", "(", "String", ".", "format", "(", "\"Could not unsubscribe from %s: %d %s.%n%s\"", ",", "getTopicArn", "(", ")", ",", "response", ".", "getStatusLine", "(", ")", ".", "getStatusCode", "(", ")", ",", "response", ".", "getStatusLine", "(", ")", ".", "getReasonPhrase", "(", ")", ",", "IOUtils", ".", "toString", "(", "response", ".", "getEntity", "(", ")", ".", "getContent", "(", ")", ")", ")", ")", ";", "}", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "SdkClientException", "(", "e", ")", ";", "}", "}" ]
Unsubscribes this endpoint from the topic.
[ "Unsubscribes", "this", "endpoint", "from", "the", "topic", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/message/SnsNotification.java#L73-L88
19,585
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java
ServiceUtils.removeQuotes
public static String removeQuotes(String s) { if (s == null) return null; s = s.trim(); if (s.startsWith("\"")) s = s.substring(1); if (s.endsWith("\"")) s = s.substring(0, s.length() - 1); return s; }
java
public static String removeQuotes(String s) { if (s == null) return null; s = s.trim(); if (s.startsWith("\"")) s = s.substring(1); if (s.endsWith("\"")) s = s.substring(0, s.length() - 1); return s; }
[ "public", "static", "String", "removeQuotes", "(", "String", "s", ")", "{", "if", "(", "s", "==", "null", ")", "return", "null", ";", "s", "=", "s", ".", "trim", "(", ")", ";", "if", "(", "s", ".", "startsWith", "(", "\"\\\"\"", ")", ")", "s", "=", "s", ".", "substring", "(", "1", ")", ";", "if", "(", "s", ".", "endsWith", "(", "\"\\\"\"", ")", ")", "s", "=", "s", ".", "substring", "(", "0", ",", "s", ".", "length", "(", ")", "-", "1", ")", ";", "return", "s", ";", "}" ]
Removes any surrounding quotes from the specified string and returns a new string. @param s The string to check for surrounding quotes. @return A new string created from the specified string, minus any surrounding quotes.
[ "Removes", "any", "surrounding", "quotes", "from", "the", "specified", "string", "and", "returns", "a", "new", "string", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java#L122-L130
19,586
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java
ServiceUtils.join
public static String join(List<String> strings) { StringBuilder result = new StringBuilder(); boolean first = true; for (String s : strings) { if (!first) result.append(", "); result.append(s); first = false; } return result.toString(); }
java
public static String join(List<String> strings) { StringBuilder result = new StringBuilder(); boolean first = true; for (String s : strings) { if (!first) result.append(", "); result.append(s); first = false; } return result.toString(); }
[ "public", "static", "String", "join", "(", "List", "<", "String", ">", "strings", ")", "{", "StringBuilder", "result", "=", "new", "StringBuilder", "(", ")", ";", "boolean", "first", "=", "true", ";", "for", "(", "String", "s", ":", "strings", ")", "{", "if", "(", "!", "first", ")", "result", ".", "append", "(", "\", \"", ")", ";", "result", ".", "append", "(", "s", ")", ";", "first", "=", "false", ";", "}", "return", "result", ".", "toString", "(", ")", ";", "}" ]
Returns a new string created by joining each of the strings in the specified list together, with a comma between them. @param strings The list of strings to join into a single, comma delimited string list. @return A new string created by joining each of the strings in the specified list together, with a comma between strings.
[ "Returns", "a", "new", "string", "created", "by", "joining", "each", "of", "the", "strings", "in", "the", "specified", "list", "together", "with", "a", "comma", "between", "them", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java#L239-L251
19,587
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java
ServiceUtils.createParentDirectoryIfNecessary
public static void createParentDirectoryIfNecessary(final File file) { final File parentDirectory = file.getParentFile(); if (parentDirectory == null || parentDirectory.mkdirs() || parentDirectory.exists()) { return; } throw new SdkClientException("Unable to create directory in the path: " + parentDirectory.getAbsolutePath()); }
java
public static void createParentDirectoryIfNecessary(final File file) { final File parentDirectory = file.getParentFile(); if (parentDirectory == null || parentDirectory.mkdirs() || parentDirectory.exists()) { return; } throw new SdkClientException("Unable to create directory in the path: " + parentDirectory.getAbsolutePath()); }
[ "public", "static", "void", "createParentDirectoryIfNecessary", "(", "final", "File", "file", ")", "{", "final", "File", "parentDirectory", "=", "file", ".", "getParentFile", "(", ")", ";", "if", "(", "parentDirectory", "==", "null", "||", "parentDirectory", ".", "mkdirs", "(", ")", "||", "parentDirectory", ".", "exists", "(", ")", ")", "{", "return", ";", "}", "throw", "new", "SdkClientException", "(", "\"Unable to create directory in the path: \"", "+", "parentDirectory", ".", "getAbsolutePath", "(", ")", ")", ";", "}" ]
Creates the parent directory for a file if it doesn't already exist. @param file @throws SdkClientException when creation of parent directory failed.
[ "Creates", "the", "parent", "directory", "for", "a", "file", "if", "it", "doesn", "t", "already", "exist", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java#L347-L353
19,588
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java
ServiceUtils.appendFile
public static void appendFile(File sourceFile, File destinationFile) { ValidationUtils.assertNotNull(destinationFile, "destFile"); ValidationUtils.assertNotNull(sourceFile, "sourceFile"); if (!FileLocks.lock(sourceFile)) { throw new FileLockException("Fail to lock " + sourceFile); } if (!FileLocks.lock(destinationFile)) { throw new FileLockException("Fail to lock " + destinationFile); } FileChannel in = null; FileChannel out = null; try { in = new FileInputStream(sourceFile).getChannel(); out = new FileOutputStream(destinationFile, true).getChannel(); final long size = in.size(); // In some Windows platforms, copying large files fail due to insufficient system resources. // Limit copy size to 32 MB in each transfer final long count = 32 * MB; long position = 0; while (position < size) { position += in.transferTo(position, count, out); } } catch (IOException e) { throw new SdkClientException("Unable to append file " + sourceFile.getAbsolutePath() + "to destination file " + destinationFile.getAbsolutePath() + "\n" + e.getMessage(), e); } finally { closeQuietly(out, LOG); closeQuietly(in, LOG); FileLocks.unlock(sourceFile); FileLocks.unlock(destinationFile); try { if (!sourceFile.delete()) { LOG.warn("Failed to delete file " + sourceFile.getAbsolutePath()); } } catch (SecurityException exception) { LOG.warn("Security manager denied delete access to file " + sourceFile.getAbsolutePath()); } } }
java
public static void appendFile(File sourceFile, File destinationFile) { ValidationUtils.assertNotNull(destinationFile, "destFile"); ValidationUtils.assertNotNull(sourceFile, "sourceFile"); if (!FileLocks.lock(sourceFile)) { throw new FileLockException("Fail to lock " + sourceFile); } if (!FileLocks.lock(destinationFile)) { throw new FileLockException("Fail to lock " + destinationFile); } FileChannel in = null; FileChannel out = null; try { in = new FileInputStream(sourceFile).getChannel(); out = new FileOutputStream(destinationFile, true).getChannel(); final long size = in.size(); // In some Windows platforms, copying large files fail due to insufficient system resources. // Limit copy size to 32 MB in each transfer final long count = 32 * MB; long position = 0; while (position < size) { position += in.transferTo(position, count, out); } } catch (IOException e) { throw new SdkClientException("Unable to append file " + sourceFile.getAbsolutePath() + "to destination file " + destinationFile.getAbsolutePath() + "\n" + e.getMessage(), e); } finally { closeQuietly(out, LOG); closeQuietly(in, LOG); FileLocks.unlock(sourceFile); FileLocks.unlock(destinationFile); try { if (!sourceFile.delete()) { LOG.warn("Failed to delete file " + sourceFile.getAbsolutePath()); } } catch (SecurityException exception) { LOG.warn("Security manager denied delete access to file " + sourceFile.getAbsolutePath()); } } }
[ "public", "static", "void", "appendFile", "(", "File", "sourceFile", ",", "File", "destinationFile", ")", "{", "ValidationUtils", ".", "assertNotNull", "(", "destinationFile", ",", "\"destFile\"", ")", ";", "ValidationUtils", ".", "assertNotNull", "(", "sourceFile", ",", "\"sourceFile\"", ")", ";", "if", "(", "!", "FileLocks", ".", "lock", "(", "sourceFile", ")", ")", "{", "throw", "new", "FileLockException", "(", "\"Fail to lock \"", "+", "sourceFile", ")", ";", "}", "if", "(", "!", "FileLocks", ".", "lock", "(", "destinationFile", ")", ")", "{", "throw", "new", "FileLockException", "(", "\"Fail to lock \"", "+", "destinationFile", ")", ";", "}", "FileChannel", "in", "=", "null", ";", "FileChannel", "out", "=", "null", ";", "try", "{", "in", "=", "new", "FileInputStream", "(", "sourceFile", ")", ".", "getChannel", "(", ")", ";", "out", "=", "new", "FileOutputStream", "(", "destinationFile", ",", "true", ")", ".", "getChannel", "(", ")", ";", "final", "long", "size", "=", "in", ".", "size", "(", ")", ";", "// In some Windows platforms, copying large files fail due to insufficient system resources.", "// Limit copy size to 32 MB in each transfer", "final", "long", "count", "=", "32", "*", "MB", ";", "long", "position", "=", "0", ";", "while", "(", "position", "<", "size", ")", "{", "position", "+=", "in", ".", "transferTo", "(", "position", ",", "count", ",", "out", ")", ";", "}", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "SdkClientException", "(", "\"Unable to append file \"", "+", "sourceFile", ".", "getAbsolutePath", "(", ")", "+", "\"to destination file \"", "+", "destinationFile", ".", "getAbsolutePath", "(", ")", "+", "\"\\n\"", "+", "e", ".", "getMessage", "(", ")", ",", "e", ")", ";", "}", "finally", "{", "closeQuietly", "(", "out", ",", "LOG", ")", ";", "closeQuietly", "(", "in", ",", "LOG", ")", ";", "FileLocks", ".", "unlock", "(", "sourceFile", ")", ";", "FileLocks", ".", "unlock", "(", "destinationFile", ")", ";", "try", "{", "if", "(", "!", "sourceFile", ".", "delete", "(", ")", ")", "{", "LOG", ".", "warn", "(", "\"Failed to delete file \"", "+", "sourceFile", ".", "getAbsolutePath", "(", ")", ")", ";", "}", "}", "catch", "(", "SecurityException", "exception", ")", "{", "LOG", ".", "warn", "(", "\"Security manager denied delete access to file \"", "+", "sourceFile", ".", "getAbsolutePath", "(", ")", ")", ";", "}", "}", "}" ]
Append the data in sourceFile to destinationFile. Note that the sourceFile is deleted after appending the data. @param sourceFile The file that is to be appended. @param destinationFile The file to append to.
[ "Append", "the", "data", "in", "sourceFile", "to", "destinationFile", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java#L444-L484
19,589
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java
ServiceUtils.getPartCount
public static Integer getPartCount(GetObjectRequest getObjectRequest, AmazonS3 s3) { ValidationUtils.assertNotNull(s3, "S3 client"); ValidationUtils.assertNotNull(getObjectRequest, "GetObjectRequest"); GetObjectMetadataRequest getObjectMetadataRequest = RequestCopyUtils.createGetObjectMetadataRequestFrom(getObjectRequest) .withPartNumber(1); return s3.getObjectMetadata(getObjectMetadataRequest).getPartCount(); }
java
public static Integer getPartCount(GetObjectRequest getObjectRequest, AmazonS3 s3) { ValidationUtils.assertNotNull(s3, "S3 client"); ValidationUtils.assertNotNull(getObjectRequest, "GetObjectRequest"); GetObjectMetadataRequest getObjectMetadataRequest = RequestCopyUtils.createGetObjectMetadataRequestFrom(getObjectRequest) .withPartNumber(1); return s3.getObjectMetadata(getObjectMetadataRequest).getPartCount(); }
[ "public", "static", "Integer", "getPartCount", "(", "GetObjectRequest", "getObjectRequest", ",", "AmazonS3", "s3", ")", "{", "ValidationUtils", ".", "assertNotNull", "(", "s3", ",", "\"S3 client\"", ")", ";", "ValidationUtils", ".", "assertNotNull", "(", "getObjectRequest", ",", "\"GetObjectRequest\"", ")", ";", "GetObjectMetadataRequest", "getObjectMetadataRequest", "=", "RequestCopyUtils", ".", "createGetObjectMetadataRequestFrom", "(", "getObjectRequest", ")", ".", "withPartNumber", "(", "1", ")", ";", "return", "s3", ".", "getObjectMetadata", "(", "getObjectMetadataRequest", ")", ".", "getPartCount", "(", ")", ";", "}" ]
Returns the part count of the object represented by the getObjectRequest. @param getObjectRequest The request to check. @param s3 The Amazon s3 client. @return The number of parts in the object if it is multipart object, otherwise returns null.
[ "Returns", "the", "part", "count", "of", "the", "object", "represented", "by", "the", "getObjectRequest", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java#L514-L522
19,590
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java
ServiceUtils.getPartSize
@SdkInternalApi public static long getPartSize(GetObjectRequest getObjectRequest, AmazonS3 s3, int partNumber) { ValidationUtils.assertNotNull(s3, "S3 client"); ValidationUtils.assertNotNull(getObjectRequest, "GetObjectRequest"); GetObjectMetadataRequest getObjectMetadataRequest = RequestCopyUtils.createGetObjectMetadataRequestFrom(getObjectRequest) .withPartNumber(partNumber); return s3.getObjectMetadata(getObjectMetadataRequest).getContentLength(); }
java
@SdkInternalApi public static long getPartSize(GetObjectRequest getObjectRequest, AmazonS3 s3, int partNumber) { ValidationUtils.assertNotNull(s3, "S3 client"); ValidationUtils.assertNotNull(getObjectRequest, "GetObjectRequest"); GetObjectMetadataRequest getObjectMetadataRequest = RequestCopyUtils.createGetObjectMetadataRequestFrom(getObjectRequest) .withPartNumber(partNumber); return s3.getObjectMetadata(getObjectMetadataRequest).getContentLength(); }
[ "@", "SdkInternalApi", "public", "static", "long", "getPartSize", "(", "GetObjectRequest", "getObjectRequest", ",", "AmazonS3", "s3", ",", "int", "partNumber", ")", "{", "ValidationUtils", ".", "assertNotNull", "(", "s3", ",", "\"S3 client\"", ")", ";", "ValidationUtils", ".", "assertNotNull", "(", "getObjectRequest", ",", "\"GetObjectRequest\"", ")", ";", "GetObjectMetadataRequest", "getObjectMetadataRequest", "=", "RequestCopyUtils", ".", "createGetObjectMetadataRequestFrom", "(", "getObjectRequest", ")", ".", "withPartNumber", "(", "partNumber", ")", ";", "return", "s3", ".", "getObjectMetadata", "(", "getObjectMetadataRequest", ")", ".", "getContentLength", "(", ")", ";", "}" ]
Returns the part size of the part @param getObjectRequest the request to check @param s3 the s3 client @param partNumber the part number @return the part size
[ "Returns", "the", "part", "size", "of", "the", "part" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ServiceUtils.java#L532-L541
19,591
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/AclXmlFactory.java
AclXmlFactory.convertToXmlByteArray
public byte[] convertToXmlByteArray(AccessControlList acl) throws SdkClientException { Owner owner = acl.getOwner(); if (owner == null) { throw new SdkClientException("Invalid AccessControlList: missing an S3Owner"); } XmlWriter xml = new XmlWriter(); xml.start("AccessControlPolicy", "xmlns", Constants.XML_NAMESPACE); xml.start("Owner"); if (owner.getId() != null) { xml.start("ID").value(owner.getId()).end(); } if (owner.getDisplayName() != null) { xml.start("DisplayName").value(owner.getDisplayName()).end(); } xml.end(); xml.start("AccessControlList"); for (Grant grant : acl.getGrantsAsList()) { xml.start("Grant"); convertToXml(grant.getGrantee(), xml); xml.start("Permission").value(grant.getPermission().toString()).end(); xml.end(); } xml.end(); xml.end(); return xml.getBytes(); }
java
public byte[] convertToXmlByteArray(AccessControlList acl) throws SdkClientException { Owner owner = acl.getOwner(); if (owner == null) { throw new SdkClientException("Invalid AccessControlList: missing an S3Owner"); } XmlWriter xml = new XmlWriter(); xml.start("AccessControlPolicy", "xmlns", Constants.XML_NAMESPACE); xml.start("Owner"); if (owner.getId() != null) { xml.start("ID").value(owner.getId()).end(); } if (owner.getDisplayName() != null) { xml.start("DisplayName").value(owner.getDisplayName()).end(); } xml.end(); xml.start("AccessControlList"); for (Grant grant : acl.getGrantsAsList()) { xml.start("Grant"); convertToXml(grant.getGrantee(), xml); xml.start("Permission").value(grant.getPermission().toString()).end(); xml.end(); } xml.end(); xml.end(); return xml.getBytes(); }
[ "public", "byte", "[", "]", "convertToXmlByteArray", "(", "AccessControlList", "acl", ")", "throws", "SdkClientException", "{", "Owner", "owner", "=", "acl", ".", "getOwner", "(", ")", ";", "if", "(", "owner", "==", "null", ")", "{", "throw", "new", "SdkClientException", "(", "\"Invalid AccessControlList: missing an S3Owner\"", ")", ";", "}", "XmlWriter", "xml", "=", "new", "XmlWriter", "(", ")", ";", "xml", ".", "start", "(", "\"AccessControlPolicy\"", ",", "\"xmlns\"", ",", "Constants", ".", "XML_NAMESPACE", ")", ";", "xml", ".", "start", "(", "\"Owner\"", ")", ";", "if", "(", "owner", ".", "getId", "(", ")", "!=", "null", ")", "{", "xml", ".", "start", "(", "\"ID\"", ")", ".", "value", "(", "owner", ".", "getId", "(", ")", ")", ".", "end", "(", ")", ";", "}", "if", "(", "owner", ".", "getDisplayName", "(", ")", "!=", "null", ")", "{", "xml", ".", "start", "(", "\"DisplayName\"", ")", ".", "value", "(", "owner", ".", "getDisplayName", "(", ")", ")", ".", "end", "(", ")", ";", "}", "xml", ".", "end", "(", ")", ";", "xml", ".", "start", "(", "\"AccessControlList\"", ")", ";", "for", "(", "Grant", "grant", ":", "acl", ".", "getGrantsAsList", "(", ")", ")", "{", "xml", ".", "start", "(", "\"Grant\"", ")", ";", "convertToXml", "(", "grant", ".", "getGrantee", "(", ")", ",", "xml", ")", ";", "xml", ".", "start", "(", "\"Permission\"", ")", ".", "value", "(", "grant", ".", "getPermission", "(", ")", ".", "toString", "(", ")", ")", ".", "end", "(", ")", ";", "xml", ".", "end", "(", ")", ";", "}", "xml", ".", "end", "(", ")", ";", "xml", ".", "end", "(", ")", ";", "return", "xml", ".", "getBytes", "(", ")", ";", "}" ]
Converts the specified AccessControlList object to an XML fragment that can be sent to Amazon S3. @param acl The AccessControlList to convert to XML. @return an XML representation of the Access Control List object, suitable to send in a request to Amazon S3.
[ "Converts", "the", "specified", "AccessControlList", "object", "to", "an", "XML", "fragment", "that", "can", "be", "sent", "to", "Amazon", "S3", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/AclXmlFactory.java#L44-L71
19,592
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/AclXmlFactory.java
AclXmlFactory.convertToXml
protected XmlWriter convertToXml(Grantee grantee, XmlWriter xml) throws SdkClientException { if (grantee instanceof CanonicalGrantee) { return convertToXml((CanonicalGrantee)grantee, xml); } else if (grantee instanceof EmailAddressGrantee) { return convertToXml((EmailAddressGrantee)grantee, xml); } else if (grantee instanceof GroupGrantee) { return convertToXml((GroupGrantee)grantee, xml); } else { throw new SdkClientException("Unknown Grantee type: " + grantee.getClass().getName()); } }
java
protected XmlWriter convertToXml(Grantee grantee, XmlWriter xml) throws SdkClientException { if (grantee instanceof CanonicalGrantee) { return convertToXml((CanonicalGrantee)grantee, xml); } else if (grantee instanceof EmailAddressGrantee) { return convertToXml((EmailAddressGrantee)grantee, xml); } else if (grantee instanceof GroupGrantee) { return convertToXml((GroupGrantee)grantee, xml); } else { throw new SdkClientException("Unknown Grantee type: " + grantee.getClass().getName()); } }
[ "protected", "XmlWriter", "convertToXml", "(", "Grantee", "grantee", ",", "XmlWriter", "xml", ")", "throws", "SdkClientException", "{", "if", "(", "grantee", "instanceof", "CanonicalGrantee", ")", "{", "return", "convertToXml", "(", "(", "CanonicalGrantee", ")", "grantee", ",", "xml", ")", ";", "}", "else", "if", "(", "grantee", "instanceof", "EmailAddressGrantee", ")", "{", "return", "convertToXml", "(", "(", "EmailAddressGrantee", ")", "grantee", ",", "xml", ")", ";", "}", "else", "if", "(", "grantee", "instanceof", "GroupGrantee", ")", "{", "return", "convertToXml", "(", "(", "GroupGrantee", ")", "grantee", ",", "xml", ")", ";", "}", "else", "{", "throw", "new", "SdkClientException", "(", "\"Unknown Grantee type: \"", "+", "grantee", ".", "getClass", "(", ")", ".", "getName", "(", ")", ")", ";", "}", "}" ]
Returns an XML fragment representing the specified Grantee. @param grantee The grantee to convert to an XML representation that can be sent to Amazon S3 as part of a request. @param xml The XmlWriter to which to concatenate this node to. @return The given XmlWriter containing the specified grantee. @throws SdkClientException If the specified grantee type isn't recognized.
[ "Returns", "an", "XML", "fragment", "representing", "the", "specified", "Grantee", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/AclXmlFactory.java#L87-L97
19,593
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/AclXmlFactory.java
AclXmlFactory.convertToXml
protected XmlWriter convertToXml(EmailAddressGrantee grantee, XmlWriter xml) { xml.start("Grantee", new String[] {"xmlns:xsi" , "xsi:type"}, new String[] {"http://www.w3.org/2001/XMLSchema-instance", "AmazonCustomerByEmail"}); xml.start("EmailAddress").value(grantee.getIdentifier()).end(); xml.end(); return xml; }
java
protected XmlWriter convertToXml(EmailAddressGrantee grantee, XmlWriter xml) { xml.start("Grantee", new String[] {"xmlns:xsi" , "xsi:type"}, new String[] {"http://www.w3.org/2001/XMLSchema-instance", "AmazonCustomerByEmail"}); xml.start("EmailAddress").value(grantee.getIdentifier()).end(); xml.end(); return xml; }
[ "protected", "XmlWriter", "convertToXml", "(", "EmailAddressGrantee", "grantee", ",", "XmlWriter", "xml", ")", "{", "xml", ".", "start", "(", "\"Grantee\"", ",", "new", "String", "[", "]", "{", "\"xmlns:xsi\"", ",", "\"xsi:type\"", "}", ",", "new", "String", "[", "]", "{", "\"http://www.w3.org/2001/XMLSchema-instance\"", ",", "\"AmazonCustomerByEmail\"", "}", ")", ";", "xml", ".", "start", "(", "\"EmailAddress\"", ")", ".", "value", "(", "grantee", ".", "getIdentifier", "(", ")", ")", ".", "end", "(", ")", ";", "xml", ".", "end", "(", ")", ";", "return", "xml", ";", "}" ]
Returns an XML fragment representing the specified email address grantee. @param grantee The email address grantee to convert to an XML representation that can be sent to Amazon S3 as part of request. @param xml The XmlWriter to which to concatenate this node to. @return The given XmlWriter containing the specified email address grantee
[ "Returns", "an", "XML", "fragment", "representing", "the", "specified", "email", "address", "grantee", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/transform/AclXmlFactory.java#L130-L137
19,594
aws/aws-sdk-java
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/ContentManagerAsync.java
ContentManagerAsync.getDocumentStreamAsync
public Future<GetDocumentStreamResult> getDocumentStreamAsync( final GetDocumentStreamRequest getDocumentStreamRequest) { Callable<GetDocumentStreamResult> task = new Callable<GetDocumentStreamResult>() { public GetDocumentStreamResult call() { return getDocumentStream(getDocumentStreamRequest); } }; return executorService.submit(task); }
java
public Future<GetDocumentStreamResult> getDocumentStreamAsync( final GetDocumentStreamRequest getDocumentStreamRequest) { Callable<GetDocumentStreamResult> task = new Callable<GetDocumentStreamResult>() { public GetDocumentStreamResult call() { return getDocumentStream(getDocumentStreamRequest); } }; return executorService.submit(task); }
[ "public", "Future", "<", "GetDocumentStreamResult", ">", "getDocumentStreamAsync", "(", "final", "GetDocumentStreamRequest", "getDocumentStreamRequest", ")", "{", "Callable", "<", "GetDocumentStreamResult", ">", "task", "=", "new", "Callable", "<", "GetDocumentStreamResult", ">", "(", ")", "{", "public", "GetDocumentStreamResult", "call", "(", ")", "{", "return", "getDocumentStream", "(", "getDocumentStreamRequest", ")", ";", "}", "}", ";", "return", "executorService", ".", "submit", "(", "task", ")", ";", "}" ]
Asynchronously gets document stream of latest version of given document and version ID. If version ID is null, it retrieves latest version of requested document ID. Clients must close the stream once content is read. @param getDocumentStreamRequest Request specifying parameters of the operation. @return Result containing stream of requested document content.
[ "Asynchronously", "gets", "document", "stream", "of", "latest", "version", "of", "given", "document", "and", "version", "ID", ".", "If", "version", "ID", "is", "null", "it", "retrieves", "latest", "version", "of", "requested", "document", "ID", ".", "Clients", "must", "close", "the", "stream", "once", "content", "is", "read", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/ContentManagerAsync.java#L88-L97
19,595
aws/aws-sdk-java
aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/ContentManagerAsync.java
ContentManagerAsync.uploadDocumentStreamAsync
public Future<UploadDocumentStreamResult> uploadDocumentStreamAsync( final UploadDocumentStreamRequest uploadDocumentStreamRequest) throws IllegalArgumentException { Callable<UploadDocumentStreamResult> task = new Callable<UploadDocumentStreamResult>() { public UploadDocumentStreamResult call() { return uploadDocumentStream(uploadDocumentStreamRequest); } }; return executorService.submit(task); }
java
public Future<UploadDocumentStreamResult> uploadDocumentStreamAsync( final UploadDocumentStreamRequest uploadDocumentStreamRequest) throws IllegalArgumentException { Callable<UploadDocumentStreamResult> task = new Callable<UploadDocumentStreamResult>() { public UploadDocumentStreamResult call() { return uploadDocumentStream(uploadDocumentStreamRequest); } }; return executorService.submit(task); }
[ "public", "Future", "<", "UploadDocumentStreamResult", ">", "uploadDocumentStreamAsync", "(", "final", "UploadDocumentStreamRequest", "uploadDocumentStreamRequest", ")", "throws", "IllegalArgumentException", "{", "Callable", "<", "UploadDocumentStreamResult", ">", "task", "=", "new", "Callable", "<", "UploadDocumentStreamResult", ">", "(", ")", "{", "public", "UploadDocumentStreamResult", "call", "(", ")", "{", "return", "uploadDocumentStream", "(", "uploadDocumentStreamRequest", ")", ";", "}", "}", ";", "return", "executorService", ".", "submit", "(", "task", ")", ";", "}" ]
Asynchronously uploads stream to given folder and document name. Client must close the input stream once upload operation is complete. @param uploadDocumentStreamRequest Request specifying parameters of the operation. @return Result containing metadata of the newly created document or version.
[ "Asynchronously", "uploads", "stream", "to", "given", "folder", "and", "document", "name", ".", "Client", "must", "close", "the", "input", "stream", "once", "upload", "operation", "is", "complete", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-workdocs/src/main/java/com/amazonaws/services/workdocs/ContentManagerAsync.java#L107-L116
19,596
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/AWS4Signer.java
AWS4Signer.setOverrideDate
@SdkTestInternalApi public void setOverrideDate(Date overriddenDate) { if (overriddenDate != null) { this.overriddenDate = new Date(overriddenDate.getTime()); } else { this.overriddenDate = null; } }
java
@SdkTestInternalApi public void setOverrideDate(Date overriddenDate) { if (overriddenDate != null) { this.overriddenDate = new Date(overriddenDate.getTime()); } else { this.overriddenDate = null; } }
[ "@", "SdkTestInternalApi", "public", "void", "setOverrideDate", "(", "Date", "overriddenDate", ")", "{", "if", "(", "overriddenDate", "!=", "null", ")", "{", "this", ".", "overriddenDate", "=", "new", "Date", "(", "overriddenDate", ".", "getTime", "(", ")", ")", ";", "}", "else", "{", "this", ".", "overriddenDate", "=", "null", ";", "}", "}" ]
Sets the date that overrides the signing date in the request. This method is internal and should be used only for testing purposes.
[ "Sets", "the", "date", "that", "overrides", "the", "signing", "date", "in", "the", "request", ".", "This", "method", "is", "internal", "and", "should", "be", "used", "only", "for", "testing", "purposes", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/AWS4Signer.java#L180-L187
19,597
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/AWS4Signer.java
AWS4Signer.computeSigningCacheKeyName
private final String computeSigningCacheKeyName(AWSCredentials credentials, AWS4SignerRequestParams signerRequestParams) { final StringBuilder hashKeyBuilder = new StringBuilder( credentials.getAWSSecretKey()); return hashKeyBuilder.append("-") .append(signerRequestParams.getRegionName()) .append("-") .append(signerRequestParams.getServiceName()).toString(); }
java
private final String computeSigningCacheKeyName(AWSCredentials credentials, AWS4SignerRequestParams signerRequestParams) { final StringBuilder hashKeyBuilder = new StringBuilder( credentials.getAWSSecretKey()); return hashKeyBuilder.append("-") .append(signerRequestParams.getRegionName()) .append("-") .append(signerRequestParams.getServiceName()).toString(); }
[ "private", "final", "String", "computeSigningCacheKeyName", "(", "AWSCredentials", "credentials", ",", "AWS4SignerRequestParams", "signerRequestParams", ")", "{", "final", "StringBuilder", "hashKeyBuilder", "=", "new", "StringBuilder", "(", "credentials", ".", "getAWSSecretKey", "(", ")", ")", ";", "return", "hashKeyBuilder", ".", "append", "(", "\"-\"", ")", ".", "append", "(", "signerRequestParams", ".", "getRegionName", "(", ")", ")", ".", "append", "(", "\"-\"", ")", ".", "append", "(", "signerRequestParams", ".", "getServiceName", "(", ")", ")", ".", "toString", "(", ")", ";", "}" ]
Computes the name to be used to reference the signing key in the cache.
[ "Computes", "the", "name", "to", "be", "used", "to", "reference", "the", "signing", "key", "in", "the", "cache", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/AWS4Signer.java#L408-L417
19,598
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/AWS4Signer.java
AWS4Signer.buildAuthorizationHeader
private String buildAuthorizationHeader(SignableRequest<?> request, byte[] signature, AWSCredentials credentials, AWS4SignerRequestParams signerParams) { final String signingCredentials = credentials.getAWSAccessKeyId() + "/" + signerParams.getScope(); final String credential = "Credential=" + signingCredentials; final String signerHeaders = "SignedHeaders=" + getSignedHeadersString(request); final String signatureHeader = "Signature=" + BinaryUtils.toHex(signature); final StringBuilder authHeaderBuilder = new StringBuilder(); authHeaderBuilder.append(AWS4_SIGNING_ALGORITHM) .append(" ") .append(credential) .append(", ") .append(signerHeaders) .append(", ") .append(signatureHeader); return authHeaderBuilder.toString(); }
java
private String buildAuthorizationHeader(SignableRequest<?> request, byte[] signature, AWSCredentials credentials, AWS4SignerRequestParams signerParams) { final String signingCredentials = credentials.getAWSAccessKeyId() + "/" + signerParams.getScope(); final String credential = "Credential=" + signingCredentials; final String signerHeaders = "SignedHeaders=" + getSignedHeadersString(request); final String signatureHeader = "Signature=" + BinaryUtils.toHex(signature); final StringBuilder authHeaderBuilder = new StringBuilder(); authHeaderBuilder.append(AWS4_SIGNING_ALGORITHM) .append(" ") .append(credential) .append(", ") .append(signerHeaders) .append(", ") .append(signatureHeader); return authHeaderBuilder.toString(); }
[ "private", "String", "buildAuthorizationHeader", "(", "SignableRequest", "<", "?", ">", "request", ",", "byte", "[", "]", "signature", ",", "AWSCredentials", "credentials", ",", "AWS4SignerRequestParams", "signerParams", ")", "{", "final", "String", "signingCredentials", "=", "credentials", ".", "getAWSAccessKeyId", "(", ")", "+", "\"/\"", "+", "signerParams", ".", "getScope", "(", ")", ";", "final", "String", "credential", "=", "\"Credential=\"", "+", "signingCredentials", ";", "final", "String", "signerHeaders", "=", "\"SignedHeaders=\"", "+", "getSignedHeadersString", "(", "request", ")", ";", "final", "String", "signatureHeader", "=", "\"Signature=\"", "+", "BinaryUtils", ".", "toHex", "(", "signature", ")", ";", "final", "StringBuilder", "authHeaderBuilder", "=", "new", "StringBuilder", "(", ")", ";", "authHeaderBuilder", ".", "append", "(", "AWS4_SIGNING_ALGORITHM", ")", ".", "append", "(", "\" \"", ")", ".", "append", "(", "credential", ")", ".", "append", "(", "\", \"", ")", ".", "append", "(", "signerHeaders", ")", ".", "append", "(", "\", \"", ")", ".", "append", "(", "signatureHeader", ")", ";", "return", "authHeaderBuilder", ".", "toString", "(", ")", ";", "}" ]
Creates the authorization header to be included in the request.
[ "Creates", "the", "authorization", "header", "to", "be", "included", "in", "the", "request", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/AWS4Signer.java#L434-L458
19,599
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/AWS4Signer.java
AWS4Signer.addPreSignInformationToRequest
private void addPreSignInformationToRequest(SignableRequest<?> request, AWSCredentials credentials, AWS4SignerRequestParams signerParams, String timeStamp, long expirationInSeconds) { String signingCredentials = credentials.getAWSAccessKeyId() + "/" + signerParams.getScope(); request.addParameter(X_AMZ_ALGORITHM, AWS4_SIGNING_ALGORITHM); request.addParameter(X_AMZ_DATE, timeStamp); request.addParameter(X_AMZ_SIGNED_HEADER, getSignedHeadersString(request)); request.addParameter(X_AMZ_EXPIRES, Long.toString(expirationInSeconds)); request.addParameter(X_AMZ_CREDENTIAL, signingCredentials); }
java
private void addPreSignInformationToRequest(SignableRequest<?> request, AWSCredentials credentials, AWS4SignerRequestParams signerParams, String timeStamp, long expirationInSeconds) { String signingCredentials = credentials.getAWSAccessKeyId() + "/" + signerParams.getScope(); request.addParameter(X_AMZ_ALGORITHM, AWS4_SIGNING_ALGORITHM); request.addParameter(X_AMZ_DATE, timeStamp); request.addParameter(X_AMZ_SIGNED_HEADER, getSignedHeadersString(request)); request.addParameter(X_AMZ_EXPIRES, Long.toString(expirationInSeconds)); request.addParameter(X_AMZ_CREDENTIAL, signingCredentials); }
[ "private", "void", "addPreSignInformationToRequest", "(", "SignableRequest", "<", "?", ">", "request", ",", "AWSCredentials", "credentials", ",", "AWS4SignerRequestParams", "signerParams", ",", "String", "timeStamp", ",", "long", "expirationInSeconds", ")", "{", "String", "signingCredentials", "=", "credentials", ".", "getAWSAccessKeyId", "(", ")", "+", "\"/\"", "+", "signerParams", ".", "getScope", "(", ")", ";", "request", ".", "addParameter", "(", "X_AMZ_ALGORITHM", ",", "AWS4_SIGNING_ALGORITHM", ")", ";", "request", ".", "addParameter", "(", "X_AMZ_DATE", ",", "timeStamp", ")", ";", "request", ".", "addParameter", "(", "X_AMZ_SIGNED_HEADER", ",", "getSignedHeadersString", "(", "request", ")", ")", ";", "request", ".", "addParameter", "(", "X_AMZ_EXPIRES", ",", "Long", ".", "toString", "(", "expirationInSeconds", ")", ")", ";", "request", ".", "addParameter", "(", "X_AMZ_CREDENTIAL", ",", "signingCredentials", ")", ";", "}" ]
Includes all the signing headers as request parameters for pre-signing.
[ "Includes", "all", "the", "signing", "headers", "as", "request", "parameters", "for", "pre", "-", "signing", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/AWS4Signer.java#L463-L477