id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
20,700
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/event/request/ProgressSupport.java
ProgressSupport.addResponseContentLength
@Override public void addResponseContentLength(long contentLength) { if (contentLength < 0) throw new IllegalArgumentException(); synchronized(lock) { if (this.responseContentLength == -1) this.responseContentLength = contentLength; else this.responseContentLength += contentLength; } }
java
@Override public void addResponseContentLength(long contentLength) { if (contentLength < 0) throw new IllegalArgumentException(); synchronized(lock) { if (this.responseContentLength == -1) this.responseContentLength = contentLength; else this.responseContentLength += contentLength; } }
[ "@", "Override", "public", "void", "addResponseContentLength", "(", "long", "contentLength", ")", "{", "if", "(", "contentLength", "<", "0", ")", "throw", "new", "IllegalArgumentException", "(", ")", ";", "synchronized", "(", "lock", ")", "{", "if", "(", "this", ".", "responseContentLength", "==", "-", "1", ")", "this", ".", "responseContentLength", "=", "contentLength", ";", "else", "this", ".", "responseContentLength", "+=", "contentLength", ";", "}", "}" ]
Adds the number of bytes to be expected in the response.
[ "Adds", "the", "number", "of", "bytes", "to", "be", "expected", "in", "the", "response", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/event/request/ProgressSupport.java#L81-L91
20,701
aws/aws-sdk-java
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/ListInputSecurityGroupsResult.java
ListInputSecurityGroupsResult.setInputSecurityGroups
public void setInputSecurityGroups(java.util.Collection<InputSecurityGroup> inputSecurityGroups) { if (inputSecurityGroups == null) { this.inputSecurityGroups = null; return; } this.inputSecurityGroups = new java.util.ArrayList<InputSecurityGroup>(inputSecurityGroups); }
java
public void setInputSecurityGroups(java.util.Collection<InputSecurityGroup> inputSecurityGroups) { if (inputSecurityGroups == null) { this.inputSecurityGroups = null; return; } this.inputSecurityGroups = new java.util.ArrayList<InputSecurityGroup>(inputSecurityGroups); }
[ "public", "void", "setInputSecurityGroups", "(", "java", ".", "util", ".", "Collection", "<", "InputSecurityGroup", ">", "inputSecurityGroups", ")", "{", "if", "(", "inputSecurityGroups", "==", "null", ")", "{", "this", ".", "inputSecurityGroups", "=", "null", ";", "return", ";", "}", "this", ".", "inputSecurityGroups", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "InputSecurityGroup", ">", "(", "inputSecurityGroups", ")", ";", "}" ]
List of input security groups @param inputSecurityGroups List of input security groups
[ "List", "of", "input", "security", "groups" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/ListInputSecurityGroupsResult.java#L49-L56
20,702
aws/aws-sdk-java
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathLengthFunction.java
JmesPathLengthFunction.evaluate
@Override public JsonNode evaluate(List<JsonNode> evaluatedArgs) throws InvalidTypeException { JsonNode arg = evaluatedArgs.get(0); if (arg.isTextual()) { return getStringLength(arg); } else if (arg.isArray() || arg.isObject()) { return new IntNode(arg.size()); } throw new InvalidTypeException("Type mismatch. Expecting a string or an array or an object."); }
java
@Override public JsonNode evaluate(List<JsonNode> evaluatedArgs) throws InvalidTypeException { JsonNode arg = evaluatedArgs.get(0); if (arg.isTextual()) { return getStringLength(arg); } else if (arg.isArray() || arg.isObject()) { return new IntNode(arg.size()); } throw new InvalidTypeException("Type mismatch. Expecting a string or an array or an object."); }
[ "@", "Override", "public", "JsonNode", "evaluate", "(", "List", "<", "JsonNode", ">", "evaluatedArgs", ")", "throws", "InvalidTypeException", "{", "JsonNode", "arg", "=", "evaluatedArgs", ".", "get", "(", "0", ")", ";", "if", "(", "arg", ".", "isTextual", "(", ")", ")", "{", "return", "getStringLength", "(", "arg", ")", ";", "}", "else", "if", "(", "arg", ".", "isArray", "(", ")", "||", "arg", ".", "isObject", "(", ")", ")", "{", "return", "new", "IntNode", "(", "arg", ".", "size", "(", ")", ")", ";", "}", "throw", "new", "InvalidTypeException", "(", "\"Type mismatch. Expecting a string or an array or an object.\"", ")", ";", "}" ]
Evaluates the length of the given argument. @param evaluatedArgs List of expressions to be evaluated. Can be a string, array or object @return Length of the argument
[ "Evaluates", "the", "length", "of", "the", "given", "argument", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathLengthFunction.java#L51-L60
20,703
aws/aws-sdk-java
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathContainsFunction.java
JmesPathContainsFunction.doesArrayContain
private static BooleanNode doesArrayContain(JsonNode subject, JsonNode search) { Iterator<JsonNode> elements = subject.elements(); while (elements.hasNext()) { if (elements.next().equals(search)) { return BooleanNode.TRUE; } } return BooleanNode.FALSE; }
java
private static BooleanNode doesArrayContain(JsonNode subject, JsonNode search) { Iterator<JsonNode> elements = subject.elements(); while (elements.hasNext()) { if (elements.next().equals(search)) { return BooleanNode.TRUE; } } return BooleanNode.FALSE; }
[ "private", "static", "BooleanNode", "doesArrayContain", "(", "JsonNode", "subject", ",", "JsonNode", "search", ")", "{", "Iterator", "<", "JsonNode", ">", "elements", "=", "subject", ".", "elements", "(", ")", ";", "while", "(", "elements", ".", "hasNext", "(", ")", ")", "{", "if", "(", "elements", ".", "next", "(", ")", ".", "equals", "(", "search", ")", ")", "{", "return", "BooleanNode", ".", "TRUE", ";", "}", "}", "return", "BooleanNode", ".", "FALSE", ";", "}" ]
If subject is an array, this function returns true if one of the elements in the array is equal to the provided search value. @param subject Array @param search JmesPath expression @return True array contains search; False otherwise
[ "If", "subject", "is", "an", "array", "this", "function", "returns", "true", "if", "one", "of", "the", "elements", "in", "the", "array", "is", "equal", "to", "the", "provided", "search", "value", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathContainsFunction.java#L80-L88
20,704
aws/aws-sdk-java
jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathContainsFunction.java
JmesPathContainsFunction.doesStringContain
private static BooleanNode doesStringContain(JsonNode subject, JsonNode search) { if (subject.asText().contains(search.asText())) { return BooleanNode.TRUE; } return BooleanNode.FALSE; }
java
private static BooleanNode doesStringContain(JsonNode subject, JsonNode search) { if (subject.asText().contains(search.asText())) { return BooleanNode.TRUE; } return BooleanNode.FALSE; }
[ "private", "static", "BooleanNode", "doesStringContain", "(", "JsonNode", "subject", ",", "JsonNode", "search", ")", "{", "if", "(", "subject", ".", "asText", "(", ")", ".", "contains", "(", "search", ".", "asText", "(", ")", ")", ")", "{", "return", "BooleanNode", ".", "TRUE", ";", "}", "return", "BooleanNode", ".", "FALSE", ";", "}" ]
If the provided subject is a string, this function returns true if the string contains the provided search argument. @param subject String @param search JmesPath expression @return True string contains search; False otherwise
[ "If", "the", "provided", "subject", "is", "a", "string", "this", "function", "returns", "true", "if", "the", "string", "contains", "the", "provided", "search", "argument", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/jmespath-java/src/main/java/com/amazonaws/jmespath/JmesPathContainsFunction.java#L99-L104
20,705
aws/aws-sdk-java
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/ForbiddenException.java
ForbiddenException.setErrorAttribute
@com.fasterxml.jackson.annotation.JsonProperty("errorAttribute") public void setErrorAttribute(String errorAttribute) { this.errorAttribute = errorAttribute; }
java
@com.fasterxml.jackson.annotation.JsonProperty("errorAttribute") public void setErrorAttribute(String errorAttribute) { this.errorAttribute = errorAttribute; }
[ "@", "com", ".", "fasterxml", ".", "jackson", ".", "annotation", ".", "JsonProperty", "(", "\"errorAttribute\"", ")", "public", "void", "setErrorAttribute", "(", "String", "errorAttribute", ")", "{", "this", ".", "errorAttribute", "=", "errorAttribute", ";", "}" ]
The attribute which caused the error. @param errorAttribute The attribute which caused the error.
[ "The", "attribute", "which", "caused", "the", "error", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/ForbiddenException.java#L44-L47
20,706
aws/aws-sdk-java
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java
MessageMD5ChecksumHandler.sendMessageOperationMd5Check
private static void sendMessageOperationMd5Check(SendMessageRequest sendMessageRequest, SendMessageResult sendMessageResult) { String messageBodySent = sendMessageRequest.getMessageBody(); String bodyMd5Returned = sendMessageResult.getMD5OfMessageBody(); String clientSideBodyMd5 = calculateMessageBodyMd5(messageBodySent); if (!clientSideBodyMd5.equals(bodyMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE, MESSAGE_BODY, clientSideBodyMd5, bodyMd5Returned)); } Map<String, MessageAttributeValue> messageAttrSent = sendMessageRequest.getMessageAttributes(); if (messageAttrSent != null && !messageAttrSent.isEmpty()) { String clientSideAttrMd5 = calculateMessageAttributesMd5(messageAttrSent); String attrMd5Returned = sendMessageResult.getMD5OfMessageAttributes(); if (!clientSideAttrMd5.equals(attrMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE, MESSAGE_ATTRIBUTES, clientSideAttrMd5, attrMd5Returned)); } } }
java
private static void sendMessageOperationMd5Check(SendMessageRequest sendMessageRequest, SendMessageResult sendMessageResult) { String messageBodySent = sendMessageRequest.getMessageBody(); String bodyMd5Returned = sendMessageResult.getMD5OfMessageBody(); String clientSideBodyMd5 = calculateMessageBodyMd5(messageBodySent); if (!clientSideBodyMd5.equals(bodyMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE, MESSAGE_BODY, clientSideBodyMd5, bodyMd5Returned)); } Map<String, MessageAttributeValue> messageAttrSent = sendMessageRequest.getMessageAttributes(); if (messageAttrSent != null && !messageAttrSent.isEmpty()) { String clientSideAttrMd5 = calculateMessageAttributesMd5(messageAttrSent); String attrMd5Returned = sendMessageResult.getMD5OfMessageAttributes(); if (!clientSideAttrMd5.equals(attrMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE, MESSAGE_ATTRIBUTES, clientSideAttrMd5, attrMd5Returned)); } } }
[ "private", "static", "void", "sendMessageOperationMd5Check", "(", "SendMessageRequest", "sendMessageRequest", ",", "SendMessageResult", "sendMessageResult", ")", "{", "String", "messageBodySent", "=", "sendMessageRequest", ".", "getMessageBody", "(", ")", ";", "String", "bodyMd5Returned", "=", "sendMessageResult", ".", "getMD5OfMessageBody", "(", ")", ";", "String", "clientSideBodyMd5", "=", "calculateMessageBodyMd5", "(", "messageBodySent", ")", ";", "if", "(", "!", "clientSideBodyMd5", ".", "equals", "(", "bodyMd5Returned", ")", ")", "{", "throw", "new", "AmazonClientException", "(", "String", ".", "format", "(", "MD5_MISMATCH_ERROR_MESSAGE", ",", "MESSAGE_BODY", ",", "clientSideBodyMd5", ",", "bodyMd5Returned", ")", ")", ";", "}", "Map", "<", "String", ",", "MessageAttributeValue", ">", "messageAttrSent", "=", "sendMessageRequest", ".", "getMessageAttributes", "(", ")", ";", "if", "(", "messageAttrSent", "!=", "null", "&&", "!", "messageAttrSent", ".", "isEmpty", "(", ")", ")", "{", "String", "clientSideAttrMd5", "=", "calculateMessageAttributesMd5", "(", "messageAttrSent", ")", ";", "String", "attrMd5Returned", "=", "sendMessageResult", ".", "getMD5OfMessageAttributes", "(", ")", ";", "if", "(", "!", "clientSideAttrMd5", ".", "equals", "(", "attrMd5Returned", ")", ")", "{", "throw", "new", "AmazonClientException", "(", "String", ".", "format", "(", "MD5_MISMATCH_ERROR_MESSAGE", ",", "MESSAGE_ATTRIBUTES", ",", "clientSideAttrMd5", ",", "attrMd5Returned", ")", ")", ";", "}", "}", "}" ]
Throw an exception if the MD5 checksums returned in the SendMessageResult do not match the client-side calculation based on the original message in the SendMessageRequest.
[ "Throw", "an", "exception", "if", "the", "MD5", "checksums", "returned", "in", "the", "SendMessageResult", "do", "not", "match", "the", "client", "-", "side", "calculation", "based", "on", "the", "original", "message", "in", "the", "SendMessageRequest", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java#L105-L124
20,707
aws/aws-sdk-java
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java
MessageMD5ChecksumHandler.receiveMessageResultMd5Check
private static void receiveMessageResultMd5Check(ReceiveMessageResult receiveMessageResult) { if (receiveMessageResult.getMessages() != null) { for (Message messageReceived : receiveMessageResult.getMessages()) { String messageBody = messageReceived.getBody(); String bodyMd5Returned = messageReceived.getMD5OfBody(); String clientSideBodyMd5 = calculateMessageBodyMd5(messageBody); if (!clientSideBodyMd5.equals(bodyMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE, MESSAGE_BODY, clientSideBodyMd5, bodyMd5Returned)); } Map<String, MessageAttributeValue> messageAttr = messageReceived.getMessageAttributes(); if (messageAttr != null && !messageAttr.isEmpty()) { String attrMd5Returned = messageReceived.getMD5OfMessageAttributes(); String clientSideAttrMd5 = calculateMessageAttributesMd5(messageAttr); if (!clientSideAttrMd5.equals(attrMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE, MESSAGE_ATTRIBUTES, clientSideAttrMd5, attrMd5Returned)); } } } } }
java
private static void receiveMessageResultMd5Check(ReceiveMessageResult receiveMessageResult) { if (receiveMessageResult.getMessages() != null) { for (Message messageReceived : receiveMessageResult.getMessages()) { String messageBody = messageReceived.getBody(); String bodyMd5Returned = messageReceived.getMD5OfBody(); String clientSideBodyMd5 = calculateMessageBodyMd5(messageBody); if (!clientSideBodyMd5.equals(bodyMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE, MESSAGE_BODY, clientSideBodyMd5, bodyMd5Returned)); } Map<String, MessageAttributeValue> messageAttr = messageReceived.getMessageAttributes(); if (messageAttr != null && !messageAttr.isEmpty()) { String attrMd5Returned = messageReceived.getMD5OfMessageAttributes(); String clientSideAttrMd5 = calculateMessageAttributesMd5(messageAttr); if (!clientSideAttrMd5.equals(attrMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE, MESSAGE_ATTRIBUTES, clientSideAttrMd5, attrMd5Returned)); } } } } }
[ "private", "static", "void", "receiveMessageResultMd5Check", "(", "ReceiveMessageResult", "receiveMessageResult", ")", "{", "if", "(", "receiveMessageResult", ".", "getMessages", "(", ")", "!=", "null", ")", "{", "for", "(", "Message", "messageReceived", ":", "receiveMessageResult", ".", "getMessages", "(", ")", ")", "{", "String", "messageBody", "=", "messageReceived", ".", "getBody", "(", ")", ";", "String", "bodyMd5Returned", "=", "messageReceived", ".", "getMD5OfBody", "(", ")", ";", "String", "clientSideBodyMd5", "=", "calculateMessageBodyMd5", "(", "messageBody", ")", ";", "if", "(", "!", "clientSideBodyMd5", ".", "equals", "(", "bodyMd5Returned", ")", ")", "{", "throw", "new", "AmazonClientException", "(", "String", ".", "format", "(", "MD5_MISMATCH_ERROR_MESSAGE", ",", "MESSAGE_BODY", ",", "clientSideBodyMd5", ",", "bodyMd5Returned", ")", ")", ";", "}", "Map", "<", "String", ",", "MessageAttributeValue", ">", "messageAttr", "=", "messageReceived", ".", "getMessageAttributes", "(", ")", ";", "if", "(", "messageAttr", "!=", "null", "&&", "!", "messageAttr", ".", "isEmpty", "(", ")", ")", "{", "String", "attrMd5Returned", "=", "messageReceived", ".", "getMD5OfMessageAttributes", "(", ")", ";", "String", "clientSideAttrMd5", "=", "calculateMessageAttributesMd5", "(", "messageAttr", ")", ";", "if", "(", "!", "clientSideAttrMd5", ".", "equals", "(", "attrMd5Returned", ")", ")", "{", "throw", "new", "AmazonClientException", "(", "String", ".", "format", "(", "MD5_MISMATCH_ERROR_MESSAGE", ",", "MESSAGE_ATTRIBUTES", ",", "clientSideAttrMd5", ",", "attrMd5Returned", ")", ")", ";", "}", "}", "}", "}", "}" ]
Throw an exception if the MD5 checksums included in the ReceiveMessageResult do not match the client-side calculation on the received messages.
[ "Throw", "an", "exception", "if", "the", "MD5", "checksums", "included", "in", "the", "ReceiveMessageResult", "do", "not", "match", "the", "client", "-", "side", "calculation", "on", "the", "received", "messages", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java#L130-L152
20,708
aws/aws-sdk-java
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java
MessageMD5ChecksumHandler.sendMessageBatchOperationMd5Check
private static void sendMessageBatchOperationMd5Check(SendMessageBatchRequest sendMessageBatchRequest, SendMessageBatchResult sendMessageBatchResult) { Map<String, SendMessageBatchRequestEntry> idToRequestEntryMap = new HashMap<String, SendMessageBatchRequestEntry>(); if (sendMessageBatchRequest.getEntries() != null) { for (SendMessageBatchRequestEntry entry : sendMessageBatchRequest.getEntries()) { idToRequestEntryMap.put(entry.getId(), entry); } } if (sendMessageBatchResult.getSuccessful() != null) { for (SendMessageBatchResultEntry entry : sendMessageBatchResult.getSuccessful()) { String messageBody = idToRequestEntryMap.get(entry.getId()).getMessageBody(); String bodyMd5Returned = entry.getMD5OfMessageBody(); String clientSideBodyMd5 = calculateMessageBodyMd5(messageBody); if (!clientSideBodyMd5.equals(bodyMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE_WITH_ID, MESSAGE_BODY, entry.getId(), clientSideBodyMd5, bodyMd5Returned)); } Map<String, MessageAttributeValue> messageAttr = idToRequestEntryMap.get(entry.getId()) .getMessageAttributes(); if (messageAttr != null && !messageAttr.isEmpty()) { String attrMd5Returned = entry.getMD5OfMessageAttributes(); String clientSideAttrMd5 = calculateMessageAttributesMd5(messageAttr); if (!clientSideAttrMd5.equals(attrMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE_WITH_ID, MESSAGE_ATTRIBUTES, entry.getId(), clientSideAttrMd5, attrMd5Returned)); } } } } }
java
private static void sendMessageBatchOperationMd5Check(SendMessageBatchRequest sendMessageBatchRequest, SendMessageBatchResult sendMessageBatchResult) { Map<String, SendMessageBatchRequestEntry> idToRequestEntryMap = new HashMap<String, SendMessageBatchRequestEntry>(); if (sendMessageBatchRequest.getEntries() != null) { for (SendMessageBatchRequestEntry entry : sendMessageBatchRequest.getEntries()) { idToRequestEntryMap.put(entry.getId(), entry); } } if (sendMessageBatchResult.getSuccessful() != null) { for (SendMessageBatchResultEntry entry : sendMessageBatchResult.getSuccessful()) { String messageBody = idToRequestEntryMap.get(entry.getId()).getMessageBody(); String bodyMd5Returned = entry.getMD5OfMessageBody(); String clientSideBodyMd5 = calculateMessageBodyMd5(messageBody); if (!clientSideBodyMd5.equals(bodyMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE_WITH_ID, MESSAGE_BODY, entry.getId(), clientSideBodyMd5, bodyMd5Returned)); } Map<String, MessageAttributeValue> messageAttr = idToRequestEntryMap.get(entry.getId()) .getMessageAttributes(); if (messageAttr != null && !messageAttr.isEmpty()) { String attrMd5Returned = entry.getMD5OfMessageAttributes(); String clientSideAttrMd5 = calculateMessageAttributesMd5(messageAttr); if (!clientSideAttrMd5.equals(attrMd5Returned)) { throw new AmazonClientException(String.format(MD5_MISMATCH_ERROR_MESSAGE_WITH_ID, MESSAGE_ATTRIBUTES, entry.getId(), clientSideAttrMd5, attrMd5Returned)); } } } } }
[ "private", "static", "void", "sendMessageBatchOperationMd5Check", "(", "SendMessageBatchRequest", "sendMessageBatchRequest", ",", "SendMessageBatchResult", "sendMessageBatchResult", ")", "{", "Map", "<", "String", ",", "SendMessageBatchRequestEntry", ">", "idToRequestEntryMap", "=", "new", "HashMap", "<", "String", ",", "SendMessageBatchRequestEntry", ">", "(", ")", ";", "if", "(", "sendMessageBatchRequest", ".", "getEntries", "(", ")", "!=", "null", ")", "{", "for", "(", "SendMessageBatchRequestEntry", "entry", ":", "sendMessageBatchRequest", ".", "getEntries", "(", ")", ")", "{", "idToRequestEntryMap", ".", "put", "(", "entry", ".", "getId", "(", ")", ",", "entry", ")", ";", "}", "}", "if", "(", "sendMessageBatchResult", ".", "getSuccessful", "(", ")", "!=", "null", ")", "{", "for", "(", "SendMessageBatchResultEntry", "entry", ":", "sendMessageBatchResult", ".", "getSuccessful", "(", ")", ")", "{", "String", "messageBody", "=", "idToRequestEntryMap", ".", "get", "(", "entry", ".", "getId", "(", ")", ")", ".", "getMessageBody", "(", ")", ";", "String", "bodyMd5Returned", "=", "entry", ".", "getMD5OfMessageBody", "(", ")", ";", "String", "clientSideBodyMd5", "=", "calculateMessageBodyMd5", "(", "messageBody", ")", ";", "if", "(", "!", "clientSideBodyMd5", ".", "equals", "(", "bodyMd5Returned", ")", ")", "{", "throw", "new", "AmazonClientException", "(", "String", ".", "format", "(", "MD5_MISMATCH_ERROR_MESSAGE_WITH_ID", ",", "MESSAGE_BODY", ",", "entry", ".", "getId", "(", ")", ",", "clientSideBodyMd5", ",", "bodyMd5Returned", ")", ")", ";", "}", "Map", "<", "String", ",", "MessageAttributeValue", ">", "messageAttr", "=", "idToRequestEntryMap", ".", "get", "(", "entry", ".", "getId", "(", ")", ")", ".", "getMessageAttributes", "(", ")", ";", "if", "(", "messageAttr", "!=", "null", "&&", "!", "messageAttr", ".", "isEmpty", "(", ")", ")", "{", "String", "attrMd5Returned", "=", "entry", ".", "getMD5OfMessageAttributes", "(", ")", ";", "String", "clientSideAttrMd5", "=", "calculateMessageAttributesMd5", "(", "messageAttr", ")", ";", "if", "(", "!", "clientSideAttrMd5", ".", "equals", "(", "attrMd5Returned", ")", ")", "{", "throw", "new", "AmazonClientException", "(", "String", ".", "format", "(", "MD5_MISMATCH_ERROR_MESSAGE_WITH_ID", ",", "MESSAGE_ATTRIBUTES", ",", "entry", ".", "getId", "(", ")", ",", "clientSideAttrMd5", ",", "attrMd5Returned", ")", ")", ";", "}", "}", "}", "}", "}" ]
Throw an exception if the MD5 checksums returned in the SendMessageBatchResult do not match the client-side calculation based on the original messages in the SendMessageBatchRequest.
[ "Throw", "an", "exception", "if", "the", "MD5", "checksums", "returned", "in", "the", "SendMessageBatchResult", "do", "not", "match", "the", "client", "-", "side", "calculation", "based", "on", "the", "original", "messages", "in", "the", "SendMessageBatchRequest", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java#L158-L189
20,709
aws/aws-sdk-java
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java
MessageMD5ChecksumHandler.calculateMessageBodyMd5
private static String calculateMessageBodyMd5(String messageBody) { if (log.isDebugEnabled()) { log.debug("Message body: " + messageBody); } byte[] expectedMd5; try { expectedMd5 = Md5Utils.computeMD5Hash(messageBody.getBytes(UTF8)); } catch (Exception e) { throw new AmazonClientException("Unable to calculate the MD5 hash of the message body. " + e.getMessage(), e); } String expectedMd5Hex = BinaryUtils.toHex(expectedMd5); if (log.isDebugEnabled()) { log.debug("Expected MD5 of message body: " + expectedMd5Hex); } return expectedMd5Hex; }
java
private static String calculateMessageBodyMd5(String messageBody) { if (log.isDebugEnabled()) { log.debug("Message body: " + messageBody); } byte[] expectedMd5; try { expectedMd5 = Md5Utils.computeMD5Hash(messageBody.getBytes(UTF8)); } catch (Exception e) { throw new AmazonClientException("Unable to calculate the MD5 hash of the message body. " + e.getMessage(), e); } String expectedMd5Hex = BinaryUtils.toHex(expectedMd5); if (log.isDebugEnabled()) { log.debug("Expected MD5 of message body: " + expectedMd5Hex); } return expectedMd5Hex; }
[ "private", "static", "String", "calculateMessageBodyMd5", "(", "String", "messageBody", ")", "{", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", "log", ".", "debug", "(", "\"Message body: \"", "+", "messageBody", ")", ";", "}", "byte", "[", "]", "expectedMd5", ";", "try", "{", "expectedMd5", "=", "Md5Utils", ".", "computeMD5Hash", "(", "messageBody", ".", "getBytes", "(", "UTF8", ")", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "AmazonClientException", "(", "\"Unable to calculate the MD5 hash of the message body. \"", "+", "e", ".", "getMessage", "(", ")", ",", "e", ")", ";", "}", "String", "expectedMd5Hex", "=", "BinaryUtils", ".", "toHex", "(", "expectedMd5", ")", ";", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", "log", ".", "debug", "(", "\"Expected MD5 of message body: \"", "+", "expectedMd5Hex", ")", ";", "}", "return", "expectedMd5Hex", ";", "}" ]
Returns the hex-encoded MD5 hash String of the given message body.
[ "Returns", "the", "hex", "-", "encoded", "MD5", "hash", "String", "of", "the", "given", "message", "body", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java#L194-L210
20,710
aws/aws-sdk-java
aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java
MessageMD5ChecksumHandler.calculateMessageAttributesMd5
private static String calculateMessageAttributesMd5(final Map<String, MessageAttributeValue> messageAttributes) { if (log.isDebugEnabled()) { log.debug("Message attribtues: " + messageAttributes); } List<String> sortedAttributeNames = new ArrayList<String>(messageAttributes.keySet()); Collections.sort(sortedAttributeNames); MessageDigest md5Digest = null; try { md5Digest = MessageDigest.getInstance("MD5"); for (String attrName : sortedAttributeNames) { MessageAttributeValue attrValue = messageAttributes.get(attrName); // Encoded Name updateLengthAndBytes(md5Digest, attrName); // Encoded Type updateLengthAndBytes(md5Digest, attrValue.getDataType()); // Encoded Value if (attrValue.getStringValue() != null) { md5Digest.update(STRING_TYPE_FIELD_INDEX); updateLengthAndBytes(md5Digest, attrValue.getStringValue()); } else if (attrValue.getBinaryValue() != null) { md5Digest.update(BINARY_TYPE_FIELD_INDEX); updateLengthAndBytes(md5Digest, attrValue.getBinaryValue()); } else if (attrValue.getStringListValues().size() > 0) { md5Digest.update(STRING_LIST_TYPE_FIELD_INDEX); for (String strListMember : attrValue.getStringListValues()) { updateLengthAndBytes(md5Digest, strListMember); } } else if (attrValue.getBinaryListValues().size() > 0) { md5Digest.update(BINARY_LIST_TYPE_FIELD_INDEX); for (ByteBuffer byteListMember : attrValue.getBinaryListValues()) { updateLengthAndBytes(md5Digest, byteListMember); } } } } catch (Exception e) { throw new AmazonClientException("Unable to calculate the MD5 hash of the message attributes. " + e.getMessage(), e); } String expectedMd5Hex = BinaryUtils.toHex(md5Digest.digest()); if (log.isDebugEnabled()) { log.debug("Expected MD5 of message attributes: " + expectedMd5Hex); } return expectedMd5Hex; }
java
private static String calculateMessageAttributesMd5(final Map<String, MessageAttributeValue> messageAttributes) { if (log.isDebugEnabled()) { log.debug("Message attribtues: " + messageAttributes); } List<String> sortedAttributeNames = new ArrayList<String>(messageAttributes.keySet()); Collections.sort(sortedAttributeNames); MessageDigest md5Digest = null; try { md5Digest = MessageDigest.getInstance("MD5"); for (String attrName : sortedAttributeNames) { MessageAttributeValue attrValue = messageAttributes.get(attrName); // Encoded Name updateLengthAndBytes(md5Digest, attrName); // Encoded Type updateLengthAndBytes(md5Digest, attrValue.getDataType()); // Encoded Value if (attrValue.getStringValue() != null) { md5Digest.update(STRING_TYPE_FIELD_INDEX); updateLengthAndBytes(md5Digest, attrValue.getStringValue()); } else if (attrValue.getBinaryValue() != null) { md5Digest.update(BINARY_TYPE_FIELD_INDEX); updateLengthAndBytes(md5Digest, attrValue.getBinaryValue()); } else if (attrValue.getStringListValues().size() > 0) { md5Digest.update(STRING_LIST_TYPE_FIELD_INDEX); for (String strListMember : attrValue.getStringListValues()) { updateLengthAndBytes(md5Digest, strListMember); } } else if (attrValue.getBinaryListValues().size() > 0) { md5Digest.update(BINARY_LIST_TYPE_FIELD_INDEX); for (ByteBuffer byteListMember : attrValue.getBinaryListValues()) { updateLengthAndBytes(md5Digest, byteListMember); } } } } catch (Exception e) { throw new AmazonClientException("Unable to calculate the MD5 hash of the message attributes. " + e.getMessage(), e); } String expectedMd5Hex = BinaryUtils.toHex(md5Digest.digest()); if (log.isDebugEnabled()) { log.debug("Expected MD5 of message attributes: " + expectedMd5Hex); } return expectedMd5Hex; }
[ "private", "static", "String", "calculateMessageAttributesMd5", "(", "final", "Map", "<", "String", ",", "MessageAttributeValue", ">", "messageAttributes", ")", "{", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", "log", ".", "debug", "(", "\"Message attribtues: \"", "+", "messageAttributes", ")", ";", "}", "List", "<", "String", ">", "sortedAttributeNames", "=", "new", "ArrayList", "<", "String", ">", "(", "messageAttributes", ".", "keySet", "(", ")", ")", ";", "Collections", ".", "sort", "(", "sortedAttributeNames", ")", ";", "MessageDigest", "md5Digest", "=", "null", ";", "try", "{", "md5Digest", "=", "MessageDigest", ".", "getInstance", "(", "\"MD5\"", ")", ";", "for", "(", "String", "attrName", ":", "sortedAttributeNames", ")", "{", "MessageAttributeValue", "attrValue", "=", "messageAttributes", ".", "get", "(", "attrName", ")", ";", "// Encoded Name", "updateLengthAndBytes", "(", "md5Digest", ",", "attrName", ")", ";", "// Encoded Type", "updateLengthAndBytes", "(", "md5Digest", ",", "attrValue", ".", "getDataType", "(", ")", ")", ";", "// Encoded Value", "if", "(", "attrValue", ".", "getStringValue", "(", ")", "!=", "null", ")", "{", "md5Digest", ".", "update", "(", "STRING_TYPE_FIELD_INDEX", ")", ";", "updateLengthAndBytes", "(", "md5Digest", ",", "attrValue", ".", "getStringValue", "(", ")", ")", ";", "}", "else", "if", "(", "attrValue", ".", "getBinaryValue", "(", ")", "!=", "null", ")", "{", "md5Digest", ".", "update", "(", "BINARY_TYPE_FIELD_INDEX", ")", ";", "updateLengthAndBytes", "(", "md5Digest", ",", "attrValue", ".", "getBinaryValue", "(", ")", ")", ";", "}", "else", "if", "(", "attrValue", ".", "getStringListValues", "(", ")", ".", "size", "(", ")", ">", "0", ")", "{", "md5Digest", ".", "update", "(", "STRING_LIST_TYPE_FIELD_INDEX", ")", ";", "for", "(", "String", "strListMember", ":", "attrValue", ".", "getStringListValues", "(", ")", ")", "{", "updateLengthAndBytes", "(", "md5Digest", ",", "strListMember", ")", ";", "}", "}", "else", "if", "(", "attrValue", ".", "getBinaryListValues", "(", ")", ".", "size", "(", ")", ">", "0", ")", "{", "md5Digest", ".", "update", "(", "BINARY_LIST_TYPE_FIELD_INDEX", ")", ";", "for", "(", "ByteBuffer", "byteListMember", ":", "attrValue", ".", "getBinaryListValues", "(", ")", ")", "{", "updateLengthAndBytes", "(", "md5Digest", ",", "byteListMember", ")", ";", "}", "}", "}", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "AmazonClientException", "(", "\"Unable to calculate the MD5 hash of the message attributes. \"", "+", "e", ".", "getMessage", "(", ")", ",", "e", ")", ";", "}", "String", "expectedMd5Hex", "=", "BinaryUtils", ".", "toHex", "(", "md5Digest", ".", "digest", "(", ")", ")", ";", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", "log", ".", "debug", "(", "\"Expected MD5 of message attributes: \"", "+", "expectedMd5Hex", ")", ";", "}", "return", "expectedMd5Hex", ";", "}" ]
Returns the hex-encoded MD5 hash String of the given message attributes.
[ "Returns", "the", "hex", "-", "encoded", "MD5", "hash", "String", "of", "the", "given", "message", "attributes", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/MessageMD5ChecksumHandler.java#L215-L263
20,711
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3ObjectId.java
S3ObjectId.instructionFileId
public InstructionFileId instructionFileId(String suffix) { String ifileKey = key + DOT; ifileKey += (suffix == null || suffix.trim().length() == 0) ? DEFAULT_INSTRUCTION_FILE_SUFFIX : suffix ; return new InstructionFileId(bucket, ifileKey, versionId); }
java
public InstructionFileId instructionFileId(String suffix) { String ifileKey = key + DOT; ifileKey += (suffix == null || suffix.trim().length() == 0) ? DEFAULT_INSTRUCTION_FILE_SUFFIX : suffix ; return new InstructionFileId(bucket, ifileKey, versionId); }
[ "public", "InstructionFileId", "instructionFileId", "(", "String", "suffix", ")", "{", "String", "ifileKey", "=", "key", "+", "DOT", ";", "ifileKey", "+=", "(", "suffix", "==", "null", "||", "suffix", ".", "trim", "(", ")", ".", "length", "(", ")", "==", "0", ")", "?", "DEFAULT_INSTRUCTION_FILE_SUFFIX", ":", "suffix", ";", "return", "new", "InstructionFileId", "(", "bucket", ",", "ifileKey", ",", "versionId", ")", ";", "}" ]
Returns the instruction file id of an instruction file with the given suffix.
[ "Returns", "the", "instruction", "file", "id", "of", "an", "instruction", "file", "with", "the", "given", "suffix", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3ObjectId.java#L95-L102
20,712
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.passwordDataAvailable
public Waiter<GetPasswordDataRequest> passwordDataAvailable() { return new WaiterBuilder<GetPasswordDataRequest, GetPasswordDataResult>().withSdkFunction(new GetPasswordDataFunction(client)) .withAcceptors(new PasswordDataAvailable.IsTrueMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<GetPasswordDataRequest> passwordDataAvailable() { return new WaiterBuilder<GetPasswordDataRequest, GetPasswordDataResult>().withSdkFunction(new GetPasswordDataFunction(client)) .withAcceptors(new PasswordDataAvailable.IsTrueMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "GetPasswordDataRequest", ">", "passwordDataAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "GetPasswordDataRequest", ",", "GetPasswordDataResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "GetPasswordDataFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "PasswordDataAvailable", ".", "IsTrueMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a PasswordDataAvailable 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", "PasswordDataAvailable", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L51-L57
20,713
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.volumeInUse
public Waiter<DescribeVolumesRequest> volumeInUse() { return new WaiterBuilder<DescribeVolumesRequest, DescribeVolumesResult>().withSdkFunction(new DescribeVolumesFunction(client)) .withAcceptors(new VolumeInUse.IsInuseMatcher(), new VolumeInUse.IsDeletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeVolumesRequest> volumeInUse() { return new WaiterBuilder<DescribeVolumesRequest, DescribeVolumesResult>().withSdkFunction(new DescribeVolumesFunction(client)) .withAcceptors(new VolumeInUse.IsInuseMatcher(), new VolumeInUse.IsDeletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeVolumesRequest", ">", "volumeInUse", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeVolumesRequest", ",", "DescribeVolumesResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeVolumesFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "VolumeInUse", ".", "IsInuseMatcher", "(", ")", ",", "new", "VolumeInUse", ".", "IsDeletedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a VolumeInUse 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", "VolumeInUse", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L64-L70
20,714
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.imageAvailable
public Waiter<DescribeImagesRequest> imageAvailable() { return new WaiterBuilder<DescribeImagesRequest, DescribeImagesResult>().withSdkFunction(new DescribeImagesFunction(client)) .withAcceptors(new ImageAvailable.IsAvailableMatcher(), new ImageAvailable.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeImagesRequest> imageAvailable() { return new WaiterBuilder<DescribeImagesRequest, DescribeImagesResult>().withSdkFunction(new DescribeImagesFunction(client)) .withAcceptors(new ImageAvailable.IsAvailableMatcher(), new ImageAvailable.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeImagesRequest", ">", "imageAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeImagesRequest", ",", "DescribeImagesResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeImagesFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "ImageAvailable", ".", "IsAvailableMatcher", "(", ")", ",", "new", "ImageAvailable", ".", "IsFailedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a ImageAvailable 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", "ImageAvailable", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L77-L83
20,715
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.networkInterfaceAvailable
public Waiter<DescribeNetworkInterfacesRequest> networkInterfaceAvailable() { return new WaiterBuilder<DescribeNetworkInterfacesRequest, DescribeNetworkInterfacesResult>() .withSdkFunction(new DescribeNetworkInterfacesFunction(client)) .withAcceptors(new NetworkInterfaceAvailable.IsAvailableMatcher(), new NetworkInterfaceAvailable.IsInvalidNetworkInterfaceIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(10), new FixedDelayStrategy(20))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeNetworkInterfacesRequest> networkInterfaceAvailable() { return new WaiterBuilder<DescribeNetworkInterfacesRequest, DescribeNetworkInterfacesResult>() .withSdkFunction(new DescribeNetworkInterfacesFunction(client)) .withAcceptors(new NetworkInterfaceAvailable.IsAvailableMatcher(), new NetworkInterfaceAvailable.IsInvalidNetworkInterfaceIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(10), new FixedDelayStrategy(20))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeNetworkInterfacesRequest", ">", "networkInterfaceAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeNetworkInterfacesRequest", ",", "DescribeNetworkInterfacesResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeNetworkInterfacesFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "NetworkInterfaceAvailable", ".", "IsAvailableMatcher", "(", ")", ",", "new", "NetworkInterfaceAvailable", ".", "IsInvalidNetworkInterfaceIDNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "10", ")", ",", "new", "FixedDelayStrategy", "(", "20", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a NetworkInterfaceAvailable 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", "NetworkInterfaceAvailable", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L90-L97
20,716
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.systemStatusOk
public Waiter<DescribeInstanceStatusRequest> systemStatusOk() { return new WaiterBuilder<DescribeInstanceStatusRequest, DescribeInstanceStatusResult>().withSdkFunction(new DescribeInstanceStatusFunction(client)) .withAcceptors(new SystemStatusOk.IsOkMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeInstanceStatusRequest> systemStatusOk() { return new WaiterBuilder<DescribeInstanceStatusRequest, DescribeInstanceStatusResult>().withSdkFunction(new DescribeInstanceStatusFunction(client)) .withAcceptors(new SystemStatusOk.IsOkMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeInstanceStatusRequest", ">", "systemStatusOk", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeInstanceStatusRequest", ",", "DescribeInstanceStatusResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeInstanceStatusFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "SystemStatusOk", ".", "IsOkMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a SystemStatusOk 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", "SystemStatusOk", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L104-L110
20,717
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.vpcPeeringConnectionExists
public Waiter<DescribeVpcPeeringConnectionsRequest> vpcPeeringConnectionExists() { return new WaiterBuilder<DescribeVpcPeeringConnectionsRequest, DescribeVpcPeeringConnectionsResult>() .withSdkFunction(new DescribeVpcPeeringConnectionsFunction(client)) .withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new VpcPeeringConnectionExists.IsInvalidVpcPeeringConnectionIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeVpcPeeringConnectionsRequest> vpcPeeringConnectionExists() { return new WaiterBuilder<DescribeVpcPeeringConnectionsRequest, DescribeVpcPeeringConnectionsResult>() .withSdkFunction(new DescribeVpcPeeringConnectionsFunction(client)) .withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new VpcPeeringConnectionExists.IsInvalidVpcPeeringConnectionIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeVpcPeeringConnectionsRequest", ">", "vpcPeeringConnectionExists", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeVpcPeeringConnectionsRequest", ",", "DescribeVpcPeeringConnectionsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeVpcPeeringConnectionsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "HttpSuccessStatusAcceptor", "(", "WaiterState", ".", "SUCCESS", ")", ",", "new", "VpcPeeringConnectionExists", ".", "IsInvalidVpcPeeringConnectionIDNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a VpcPeeringConnectionExists 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", "VpcPeeringConnectionExists", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L117-L125
20,718
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.volumeAvailable
public Waiter<DescribeVolumesRequest> volumeAvailable() { return new WaiterBuilder<DescribeVolumesRequest, DescribeVolumesResult>().withSdkFunction(new DescribeVolumesFunction(client)) .withAcceptors(new VolumeAvailable.IsAvailableMatcher(), new VolumeAvailable.IsDeletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeVolumesRequest> volumeAvailable() { return new WaiterBuilder<DescribeVolumesRequest, DescribeVolumesResult>().withSdkFunction(new DescribeVolumesFunction(client)) .withAcceptors(new VolumeAvailable.IsAvailableMatcher(), new VolumeAvailable.IsDeletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeVolumesRequest", ">", "volumeAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeVolumesRequest", ",", "DescribeVolumesResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeVolumesFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "VolumeAvailable", ".", "IsAvailableMatcher", "(", ")", ",", "new", "VolumeAvailable", ".", "IsDeletedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a VolumeAvailable 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", "VolumeAvailable", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L132-L138
20,719
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.instanceStatusOk
public Waiter<DescribeInstanceStatusRequest> instanceStatusOk() { return new WaiterBuilder<DescribeInstanceStatusRequest, DescribeInstanceStatusResult>().withSdkFunction(new DescribeInstanceStatusFunction(client)) .withAcceptors(new InstanceStatusOk.IsOkMatcher(), new InstanceStatusOk.IsInvalidInstanceIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeInstanceStatusRequest> instanceStatusOk() { return new WaiterBuilder<DescribeInstanceStatusRequest, DescribeInstanceStatusResult>().withSdkFunction(new DescribeInstanceStatusFunction(client)) .withAcceptors(new InstanceStatusOk.IsOkMatcher(), new InstanceStatusOk.IsInvalidInstanceIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeInstanceStatusRequest", ">", "instanceStatusOk", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeInstanceStatusRequest", ",", "DescribeInstanceStatusResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeInstanceStatusFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "InstanceStatusOk", ".", "IsOkMatcher", "(", ")", ",", "new", "InstanceStatusOk", ".", "IsInvalidInstanceIDNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a InstanceStatusOk 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", "InstanceStatusOk", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L145-L151
20,720
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.volumeDeleted
public Waiter<DescribeVolumesRequest> volumeDeleted() { return new WaiterBuilder<DescribeVolumesRequest, DescribeVolumesResult>().withSdkFunction(new DescribeVolumesFunction(client)) .withAcceptors(new VolumeDeleted.IsDeletedMatcher(), new VolumeDeleted.IsInvalidVolumeNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeVolumesRequest> volumeDeleted() { return new WaiterBuilder<DescribeVolumesRequest, DescribeVolumesResult>().withSdkFunction(new DescribeVolumesFunction(client)) .withAcceptors(new VolumeDeleted.IsDeletedMatcher(), new VolumeDeleted.IsInvalidVolumeNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeVolumesRequest", ">", "volumeDeleted", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeVolumesRequest", ",", "DescribeVolumesResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeVolumesFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "VolumeDeleted", ".", "IsDeletedMatcher", "(", ")", ",", "new", "VolumeDeleted", ".", "IsInvalidVolumeNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a VolumeDeleted 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", "VolumeDeleted", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L158-L164
20,721
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.customerGatewayAvailable
public Waiter<DescribeCustomerGatewaysRequest> customerGatewayAvailable() { return new WaiterBuilder<DescribeCustomerGatewaysRequest, DescribeCustomerGatewaysResult>() .withSdkFunction(new DescribeCustomerGatewaysFunction(client)) .withAcceptors(new CustomerGatewayAvailable.IsAvailableMatcher(), new CustomerGatewayAvailable.IsDeletedMatcher(), new CustomerGatewayAvailable.IsDeletingMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeCustomerGatewaysRequest> customerGatewayAvailable() { return new WaiterBuilder<DescribeCustomerGatewaysRequest, DescribeCustomerGatewaysResult>() .withSdkFunction(new DescribeCustomerGatewaysFunction(client)) .withAcceptors(new CustomerGatewayAvailable.IsAvailableMatcher(), new CustomerGatewayAvailable.IsDeletedMatcher(), new CustomerGatewayAvailable.IsDeletingMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeCustomerGatewaysRequest", ">", "customerGatewayAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeCustomerGatewaysRequest", ",", "DescribeCustomerGatewaysResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeCustomerGatewaysFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "CustomerGatewayAvailable", ".", "IsAvailableMatcher", "(", ")", ",", "new", "CustomerGatewayAvailable", ".", "IsDeletedMatcher", "(", ")", ",", "new", "CustomerGatewayAvailable", ".", "IsDeletingMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a CustomerGatewayAvailable 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", "CustomerGatewayAvailable", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L171-L179
20,722
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.natGatewayAvailable
public Waiter<DescribeNatGatewaysRequest> natGatewayAvailable() { return new WaiterBuilder<DescribeNatGatewaysRequest, DescribeNatGatewaysResult>() .withSdkFunction(new DescribeNatGatewaysFunction(client)) .withAcceptors(new NatGatewayAvailable.IsAvailableMatcher(), new NatGatewayAvailable.IsFailedMatcher(), new NatGatewayAvailable.IsDeletingMatcher(), new NatGatewayAvailable.IsDeletedMatcher(), new NatGatewayAvailable.IsNatGatewayNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeNatGatewaysRequest> natGatewayAvailable() { return new WaiterBuilder<DescribeNatGatewaysRequest, DescribeNatGatewaysResult>() .withSdkFunction(new DescribeNatGatewaysFunction(client)) .withAcceptors(new NatGatewayAvailable.IsAvailableMatcher(), new NatGatewayAvailable.IsFailedMatcher(), new NatGatewayAvailable.IsDeletingMatcher(), new NatGatewayAvailable.IsDeletedMatcher(), new NatGatewayAvailable.IsNatGatewayNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeNatGatewaysRequest", ">", "natGatewayAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeNatGatewaysRequest", ",", "DescribeNatGatewaysResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeNatGatewaysFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "NatGatewayAvailable", ".", "IsAvailableMatcher", "(", ")", ",", "new", "NatGatewayAvailable", ".", "IsFailedMatcher", "(", ")", ",", "new", "NatGatewayAvailable", ".", "IsDeletingMatcher", "(", ")", ",", "new", "NatGatewayAvailable", ".", "IsDeletedMatcher", "(", ")", ",", "new", "NatGatewayAvailable", ".", "IsNatGatewayNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a NatGatewayAvailable 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", "NatGatewayAvailable", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L186-L195
20,723
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.vpcExists
public Waiter<DescribeVpcsRequest> vpcExists() { return new WaiterBuilder<DescribeVpcsRequest, DescribeVpcsResult>().withSdkFunction(new DescribeVpcsFunction(client)) .withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new VpcExists.IsInvalidVpcIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(5), new FixedDelayStrategy(1))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeVpcsRequest> vpcExists() { return new WaiterBuilder<DescribeVpcsRequest, DescribeVpcsResult>().withSdkFunction(new DescribeVpcsFunction(client)) .withAcceptors(new HttpSuccessStatusAcceptor(WaiterState.SUCCESS), new VpcExists.IsInvalidVpcIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(5), new FixedDelayStrategy(1))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeVpcsRequest", ">", "vpcExists", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeVpcsRequest", ",", "DescribeVpcsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeVpcsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "HttpSuccessStatusAcceptor", "(", "WaiterState", ".", "SUCCESS", ")", ",", "new", "VpcExists", ".", "IsInvalidVpcIDNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "5", ")", ",", "new", "FixedDelayStrategy", "(", "1", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a VpcExists 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", "VpcExists", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L202-L208
20,724
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.conversionTaskDeleted
public Waiter<DescribeConversionTasksRequest> conversionTaskDeleted() { return new WaiterBuilder<DescribeConversionTasksRequest, DescribeConversionTasksResult>().withSdkFunction(new DescribeConversionTasksFunction(client)) .withAcceptors(new ConversionTaskDeleted.IsDeletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeConversionTasksRequest> conversionTaskDeleted() { return new WaiterBuilder<DescribeConversionTasksRequest, DescribeConversionTasksResult>().withSdkFunction(new DescribeConversionTasksFunction(client)) .withAcceptors(new ConversionTaskDeleted.IsDeletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeConversionTasksRequest", ">", "conversionTaskDeleted", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeConversionTasksRequest", ",", "DescribeConversionTasksResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeConversionTasksFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "ConversionTaskDeleted", ".", "IsDeletedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a ConversionTaskDeleted 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", "ConversionTaskDeleted", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L215-L221
20,725
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.imageExists
public Waiter<DescribeImagesRequest> imageExists() { return new WaiterBuilder<DescribeImagesRequest, DescribeImagesResult>().withSdkFunction(new DescribeImagesFunction(client)) .withAcceptors(new ImageExists.IsTrueMatcher(), new ImageExists.IsInvalidAMIIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeImagesRequest> imageExists() { return new WaiterBuilder<DescribeImagesRequest, DescribeImagesResult>().withSdkFunction(new DescribeImagesFunction(client)) .withAcceptors(new ImageExists.IsTrueMatcher(), new ImageExists.IsInvalidAMIIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeImagesRequest", ">", "imageExists", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeImagesRequest", ",", "DescribeImagesResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeImagesFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "ImageExists", ".", "IsTrueMatcher", "(", ")", ",", "new", "ImageExists", ".", "IsInvalidAMIIDNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a ImageExists 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", "ImageExists", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L228-L234
20,726
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.vpcAvailable
public Waiter<DescribeVpcsRequest> vpcAvailable() { return new WaiterBuilder<DescribeVpcsRequest, DescribeVpcsResult>().withSdkFunction(new DescribeVpcsFunction(client)) .withAcceptors(new VpcAvailable.IsAvailableMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeVpcsRequest> vpcAvailable() { return new WaiterBuilder<DescribeVpcsRequest, DescribeVpcsResult>().withSdkFunction(new DescribeVpcsFunction(client)) .withAcceptors(new VpcAvailable.IsAvailableMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeVpcsRequest", ">", "vpcAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeVpcsRequest", ",", "DescribeVpcsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeVpcsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "VpcAvailable", ".", "IsAvailableMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a VpcAvailable 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", "VpcAvailable", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L241-L247
20,727
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.vpcPeeringConnectionDeleted
public Waiter<DescribeVpcPeeringConnectionsRequest> vpcPeeringConnectionDeleted() { return new WaiterBuilder<DescribeVpcPeeringConnectionsRequest, DescribeVpcPeeringConnectionsResult>() .withSdkFunction(new DescribeVpcPeeringConnectionsFunction(client)) .withAcceptors(new VpcPeeringConnectionDeleted.IsDeletedMatcher(), new VpcPeeringConnectionDeleted.IsInvalidVpcPeeringConnectionIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeVpcPeeringConnectionsRequest> vpcPeeringConnectionDeleted() { return new WaiterBuilder<DescribeVpcPeeringConnectionsRequest, DescribeVpcPeeringConnectionsResult>() .withSdkFunction(new DescribeVpcPeeringConnectionsFunction(client)) .withAcceptors(new VpcPeeringConnectionDeleted.IsDeletedMatcher(), new VpcPeeringConnectionDeleted.IsInvalidVpcPeeringConnectionIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeVpcPeeringConnectionsRequest", ">", "vpcPeeringConnectionDeleted", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeVpcPeeringConnectionsRequest", ",", "DescribeVpcPeeringConnectionsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeVpcPeeringConnectionsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "VpcPeeringConnectionDeleted", ".", "IsDeletedMatcher", "(", ")", ",", "new", "VpcPeeringConnectionDeleted", ".", "IsInvalidVpcPeeringConnectionIDNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a VpcPeeringConnectionDeleted 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", "VpcPeeringConnectionDeleted", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L254-L262
20,728
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.conversionTaskCancelled
public Waiter<DescribeConversionTasksRequest> conversionTaskCancelled() { return new WaiterBuilder<DescribeConversionTasksRequest, DescribeConversionTasksResult>().withSdkFunction(new DescribeConversionTasksFunction(client)) .withAcceptors(new ConversionTaskCancelled.IsCancelledMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeConversionTasksRequest> conversionTaskCancelled() { return new WaiterBuilder<DescribeConversionTasksRequest, DescribeConversionTasksResult>().withSdkFunction(new DescribeConversionTasksFunction(client)) .withAcceptors(new ConversionTaskCancelled.IsCancelledMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeConversionTasksRequest", ">", "conversionTaskCancelled", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeConversionTasksRequest", ",", "DescribeConversionTasksResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeConversionTasksFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "ConversionTaskCancelled", ".", "IsCancelledMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a ConversionTaskCancelled 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", "ConversionTaskCancelled", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L269-L275
20,729
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.instanceExists
public Waiter<DescribeInstancesRequest> instanceExists() { return new WaiterBuilder<DescribeInstancesRequest, DescribeInstancesResult>().withSdkFunction(new DescribeInstancesFunction(client)) .withAcceptors(new InstanceExists.IsTrueMatcher(), new InstanceExists.IsInvalidInstanceIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(5))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeInstancesRequest> instanceExists() { return new WaiterBuilder<DescribeInstancesRequest, DescribeInstancesResult>().withSdkFunction(new DescribeInstancesFunction(client)) .withAcceptors(new InstanceExists.IsTrueMatcher(), new InstanceExists.IsInvalidInstanceIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(5))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeInstancesRequest", ">", "instanceExists", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeInstancesRequest", ",", "DescribeInstancesResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeInstancesFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "InstanceExists", ".", "IsTrueMatcher", "(", ")", ",", "new", "InstanceExists", ".", "IsInvalidInstanceIDNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "5", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a InstanceExists 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", "InstanceExists", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L282-L288
20,730
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.conversionTaskCompleted
public Waiter<DescribeConversionTasksRequest> conversionTaskCompleted() { return new WaiterBuilder<DescribeConversionTasksRequest, DescribeConversionTasksResult>() .withSdkFunction(new DescribeConversionTasksFunction(client)) .withAcceptors(new ConversionTaskCompleted.IsCompletedMatcher(), new ConversionTaskCompleted.IsCancelledMatcher(), new ConversionTaskCompleted.IsCancellingMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeConversionTasksRequest> conversionTaskCompleted() { return new WaiterBuilder<DescribeConversionTasksRequest, DescribeConversionTasksResult>() .withSdkFunction(new DescribeConversionTasksFunction(client)) .withAcceptors(new ConversionTaskCompleted.IsCompletedMatcher(), new ConversionTaskCompleted.IsCancelledMatcher(), new ConversionTaskCompleted.IsCancellingMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeConversionTasksRequest", ">", "conversionTaskCompleted", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeConversionTasksRequest", ",", "DescribeConversionTasksResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeConversionTasksFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "ConversionTaskCompleted", ".", "IsCompletedMatcher", "(", ")", ",", "new", "ConversionTaskCompleted", ".", "IsCancelledMatcher", "(", ")", ",", "new", "ConversionTaskCompleted", ".", "IsCancellingMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a ConversionTaskCompleted 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", "ConversionTaskCompleted", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L310-L318
20,731
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.keyPairExists
public Waiter<DescribeKeyPairsRequest> keyPairExists() { return new WaiterBuilder<DescribeKeyPairsRequest, DescribeKeyPairsResult>().withSdkFunction(new DescribeKeyPairsFunction(client)) .withAcceptors(new KeyPairExists.IsTrueMatcher(), new KeyPairExists.IsInvalidKeyPairNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(6), new FixedDelayStrategy(5))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeKeyPairsRequest> keyPairExists() { return new WaiterBuilder<DescribeKeyPairsRequest, DescribeKeyPairsResult>().withSdkFunction(new DescribeKeyPairsFunction(client)) .withAcceptors(new KeyPairExists.IsTrueMatcher(), new KeyPairExists.IsInvalidKeyPairNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(6), new FixedDelayStrategy(5))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeKeyPairsRequest", ">", "keyPairExists", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeKeyPairsRequest", ",", "DescribeKeyPairsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeKeyPairsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "KeyPairExists", ".", "IsTrueMatcher", "(", ")", ",", "new", "KeyPairExists", ".", "IsInvalidKeyPairNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "6", ")", ",", "new", "FixedDelayStrategy", "(", "5", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a KeyPairExists 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", "KeyPairExists", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L325-L331
20,732
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.spotInstanceRequestFulfilled
public Waiter<DescribeSpotInstanceRequestsRequest> spotInstanceRequestFulfilled() { return new WaiterBuilder<DescribeSpotInstanceRequestsRequest, DescribeSpotInstanceRequestsResult>() .withSdkFunction(new DescribeSpotInstanceRequestsFunction(client)) .withAcceptors(new SpotInstanceRequestFulfilled.IsFulfilledMatcher(), new SpotInstanceRequestFulfilled.IsRequestcanceledandinstancerunningMatcher(), new SpotInstanceRequestFulfilled.IsScheduleexpiredMatcher(), new SpotInstanceRequestFulfilled.IsCanceledbeforefulfillmentMatcher(), new SpotInstanceRequestFulfilled.IsBadparametersMatcher(), new SpotInstanceRequestFulfilled.IsSystemerrorMatcher(), new SpotInstanceRequestFulfilled.IsInvalidSpotInstanceRequestIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeSpotInstanceRequestsRequest> spotInstanceRequestFulfilled() { return new WaiterBuilder<DescribeSpotInstanceRequestsRequest, DescribeSpotInstanceRequestsResult>() .withSdkFunction(new DescribeSpotInstanceRequestsFunction(client)) .withAcceptors(new SpotInstanceRequestFulfilled.IsFulfilledMatcher(), new SpotInstanceRequestFulfilled.IsRequestcanceledandinstancerunningMatcher(), new SpotInstanceRequestFulfilled.IsScheduleexpiredMatcher(), new SpotInstanceRequestFulfilled.IsCanceledbeforefulfillmentMatcher(), new SpotInstanceRequestFulfilled.IsBadparametersMatcher(), new SpotInstanceRequestFulfilled.IsSystemerrorMatcher(), new SpotInstanceRequestFulfilled.IsInvalidSpotInstanceRequestIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeSpotInstanceRequestsRequest", ">", "spotInstanceRequestFulfilled", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeSpotInstanceRequestsRequest", ",", "DescribeSpotInstanceRequestsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeSpotInstanceRequestsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "SpotInstanceRequestFulfilled", ".", "IsFulfilledMatcher", "(", ")", ",", "new", "SpotInstanceRequestFulfilled", ".", "IsRequestcanceledandinstancerunningMatcher", "(", ")", ",", "new", "SpotInstanceRequestFulfilled", ".", "IsScheduleexpiredMatcher", "(", ")", ",", "new", "SpotInstanceRequestFulfilled", ".", "IsCanceledbeforefulfillmentMatcher", "(", ")", ",", "new", "SpotInstanceRequestFulfilled", ".", "IsBadparametersMatcher", "(", ")", ",", "new", "SpotInstanceRequestFulfilled", ".", "IsSystemerrorMatcher", "(", ")", ",", "new", "SpotInstanceRequestFulfilled", ".", "IsInvalidSpotInstanceRequestIDNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a SpotInstanceRequestFulfilled 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", "SpotInstanceRequestFulfilled", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L338-L349
20,733
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.bundleTaskComplete
public Waiter<DescribeBundleTasksRequest> bundleTaskComplete() { return new WaiterBuilder<DescribeBundleTasksRequest, DescribeBundleTasksResult>().withSdkFunction(new DescribeBundleTasksFunction(client)) .withAcceptors(new BundleTaskComplete.IsCompleteMatcher(), new BundleTaskComplete.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeBundleTasksRequest> bundleTaskComplete() { return new WaiterBuilder<DescribeBundleTasksRequest, DescribeBundleTasksResult>().withSdkFunction(new DescribeBundleTasksFunction(client)) .withAcceptors(new BundleTaskComplete.IsCompleteMatcher(), new BundleTaskComplete.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeBundleTasksRequest", ">", "bundleTaskComplete", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeBundleTasksRequest", ",", "DescribeBundleTasksResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeBundleTasksFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "BundleTaskComplete", ".", "IsCompleteMatcher", "(", ")", ",", "new", "BundleTaskComplete", ".", "IsFailedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a BundleTaskComplete 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", "BundleTaskComplete", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L356-L362
20,734
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.instanceRunning
public Waiter<DescribeInstancesRequest> instanceRunning() { return new WaiterBuilder<DescribeInstancesRequest, DescribeInstancesResult>() .withSdkFunction(new DescribeInstancesFunction(client)) .withAcceptors(new InstanceRunning.IsRunningMatcher(), new InstanceRunning.IsShuttingdownMatcher(), new InstanceRunning.IsTerminatedMatcher(), new InstanceRunning.IsStoppingMatcher(), new InstanceRunning.IsInvalidInstanceIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeInstancesRequest> instanceRunning() { return new WaiterBuilder<DescribeInstancesRequest, DescribeInstancesResult>() .withSdkFunction(new DescribeInstancesFunction(client)) .withAcceptors(new InstanceRunning.IsRunningMatcher(), new InstanceRunning.IsShuttingdownMatcher(), new InstanceRunning.IsTerminatedMatcher(), new InstanceRunning.IsStoppingMatcher(), new InstanceRunning.IsInvalidInstanceIDNotFoundMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeInstancesRequest", ">", "instanceRunning", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeInstancesRequest", ",", "DescribeInstancesResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeInstancesFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "InstanceRunning", ".", "IsRunningMatcher", "(", ")", ",", "new", "InstanceRunning", ".", "IsShuttingdownMatcher", "(", ")", ",", "new", "InstanceRunning", ".", "IsTerminatedMatcher", "(", ")", ",", "new", "InstanceRunning", ".", "IsStoppingMatcher", "(", ")", ",", "new", "InstanceRunning", ".", "IsInvalidInstanceIDNotFoundMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a InstanceRunning 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", "InstanceRunning", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L369-L377
20,735
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.exportTaskCompleted
public Waiter<DescribeExportTasksRequest> exportTaskCompleted() { return new WaiterBuilder<DescribeExportTasksRequest, DescribeExportTasksResult>().withSdkFunction(new DescribeExportTasksFunction(client)) .withAcceptors(new ExportTaskCompleted.IsCompletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeExportTasksRequest> exportTaskCompleted() { return new WaiterBuilder<DescribeExportTasksRequest, DescribeExportTasksResult>().withSdkFunction(new DescribeExportTasksFunction(client)) .withAcceptors(new ExportTaskCompleted.IsCompletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeExportTasksRequest", ">", "exportTaskCompleted", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeExportTasksRequest", ",", "DescribeExportTasksResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeExportTasksFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "ExportTaskCompleted", ".", "IsCompletedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a ExportTaskCompleted 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", "ExportTaskCompleted", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L384-L390
20,736
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.snapshotCompleted
public Waiter<DescribeSnapshotsRequest> snapshotCompleted() { return new WaiterBuilder<DescribeSnapshotsRequest, DescribeSnapshotsResult>().withSdkFunction(new DescribeSnapshotsFunction(client)) .withAcceptors(new SnapshotCompleted.IsCompletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeSnapshotsRequest> snapshotCompleted() { return new WaiterBuilder<DescribeSnapshotsRequest, DescribeSnapshotsResult>().withSdkFunction(new DescribeSnapshotsFunction(client)) .withAcceptors(new SnapshotCompleted.IsCompletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeSnapshotsRequest", ">", "snapshotCompleted", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeSnapshotsRequest", ",", "DescribeSnapshotsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeSnapshotsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "SnapshotCompleted", ".", "IsCompletedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a SnapshotCompleted 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", "SnapshotCompleted", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L397-L403
20,737
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.exportTaskCancelled
public Waiter<DescribeExportTasksRequest> exportTaskCancelled() { return new WaiterBuilder<DescribeExportTasksRequest, DescribeExportTasksResult>().withSdkFunction(new DescribeExportTasksFunction(client)) .withAcceptors(new ExportTaskCancelled.IsCancelledMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeExportTasksRequest> exportTaskCancelled() { return new WaiterBuilder<DescribeExportTasksRequest, DescribeExportTasksResult>().withSdkFunction(new DescribeExportTasksFunction(client)) .withAcceptors(new ExportTaskCancelled.IsCancelledMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeExportTasksRequest", ">", "exportTaskCancelled", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeExportTasksRequest", ",", "DescribeExportTasksResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeExportTasksFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "ExportTaskCancelled", ".", "IsCancelledMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a ExportTaskCancelled 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", "ExportTaskCancelled", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L410-L416
20,738
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.vpnConnectionDeleted
public Waiter<DescribeVpnConnectionsRequest> vpnConnectionDeleted() { return new WaiterBuilder<DescribeVpnConnectionsRequest, DescribeVpnConnectionsResult>().withSdkFunction(new DescribeVpnConnectionsFunction(client)) .withAcceptors(new VpnConnectionDeleted.IsDeletedMatcher(), new VpnConnectionDeleted.IsPendingMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeVpnConnectionsRequest> vpnConnectionDeleted() { return new WaiterBuilder<DescribeVpnConnectionsRequest, DescribeVpnConnectionsResult>().withSdkFunction(new DescribeVpnConnectionsFunction(client)) .withAcceptors(new VpnConnectionDeleted.IsDeletedMatcher(), new VpnConnectionDeleted.IsPendingMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeVpnConnectionsRequest", ">", "vpnConnectionDeleted", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeVpnConnectionsRequest", ",", "DescribeVpnConnectionsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeVpnConnectionsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "VpnConnectionDeleted", ".", "IsDeletedMatcher", "(", ")", ",", "new", "VpnConnectionDeleted", ".", "IsPendingMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a VpnConnectionDeleted 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", "VpnConnectionDeleted", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L423-L429
20,739
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.vpnConnectionAvailable
public Waiter<DescribeVpnConnectionsRequest> vpnConnectionAvailable() { return new WaiterBuilder<DescribeVpnConnectionsRequest, DescribeVpnConnectionsResult>() .withSdkFunction(new DescribeVpnConnectionsFunction(client)) .withAcceptors(new VpnConnectionAvailable.IsAvailableMatcher(), new VpnConnectionAvailable.IsDeletingMatcher(), new VpnConnectionAvailable.IsDeletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeVpnConnectionsRequest> vpnConnectionAvailable() { return new WaiterBuilder<DescribeVpnConnectionsRequest, DescribeVpnConnectionsResult>() .withSdkFunction(new DescribeVpnConnectionsFunction(client)) .withAcceptors(new VpnConnectionAvailable.IsAvailableMatcher(), new VpnConnectionAvailable.IsDeletingMatcher(), new VpnConnectionAvailable.IsDeletedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeVpnConnectionsRequest", ">", "vpnConnectionAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeVpnConnectionsRequest", ",", "DescribeVpnConnectionsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeVpnConnectionsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "VpnConnectionAvailable", ".", "IsAvailableMatcher", "(", ")", ",", "new", "VpnConnectionAvailable", ".", "IsDeletingMatcher", "(", ")", ",", "new", "VpnConnectionAvailable", ".", "IsDeletedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a VpnConnectionAvailable 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", "VpnConnectionAvailable", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L436-L444
20,740
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java
AmazonEC2Waiters.subnetAvailable
public Waiter<DescribeSubnetsRequest> subnetAvailable() { return new WaiterBuilder<DescribeSubnetsRequest, DescribeSubnetsResult>().withSdkFunction(new DescribeSubnetsFunction(client)) .withAcceptors(new SubnetAvailable.IsAvailableMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeSubnetsRequest> subnetAvailable() { return new WaiterBuilder<DescribeSubnetsRequest, DescribeSubnetsResult>().withSdkFunction(new DescribeSubnetsFunction(client)) .withAcceptors(new SubnetAvailable.IsAvailableMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(15))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeSubnetsRequest", ">", "subnetAvailable", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeSubnetsRequest", ",", "DescribeSubnetsResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeSubnetsFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "SubnetAvailable", ".", "IsAvailableMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "15", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a SubnetAvailable 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", "SubnetAvailable", "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-ec2/src/main/java/com/amazonaws/services/ec2/waiters/AmazonEC2Waiters.java#L464-L470
20,741
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ExpressionSpecBuilder.java
ExpressionSpecBuilder.buildUpdateExpression
String buildUpdateExpression(SubstitutionContext context) { StringBuilder sb = new StringBuilder(); for (Map.Entry<String, List<UpdateAction>> e: updates.entrySet()) { boolean firstOfUpdateType = true; for (UpdateAction expr: e.getValue()) { if (firstOfUpdateType) { firstOfUpdateType = false; final String operator = e.getKey(); if (sb.length() > 0) sb.append(" "); sb.append(operator).append(" "); } else { sb.append(", "); } sb.append(expr.asSubstituted(context)); } } return sb.toString(); }
java
String buildUpdateExpression(SubstitutionContext context) { StringBuilder sb = new StringBuilder(); for (Map.Entry<String, List<UpdateAction>> e: updates.entrySet()) { boolean firstOfUpdateType = true; for (UpdateAction expr: e.getValue()) { if (firstOfUpdateType) { firstOfUpdateType = false; final String operator = e.getKey(); if (sb.length() > 0) sb.append(" "); sb.append(operator).append(" "); } else { sb.append(", "); } sb.append(expr.asSubstituted(context)); } } return sb.toString(); }
[ "String", "buildUpdateExpression", "(", "SubstitutionContext", "context", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "Map", ".", "Entry", "<", "String", ",", "List", "<", "UpdateAction", ">", ">", "e", ":", "updates", ".", "entrySet", "(", ")", ")", "{", "boolean", "firstOfUpdateType", "=", "true", ";", "for", "(", "UpdateAction", "expr", ":", "e", ".", "getValue", "(", ")", ")", "{", "if", "(", "firstOfUpdateType", ")", "{", "firstOfUpdateType", "=", "false", ";", "final", "String", "operator", "=", "e", ".", "getKey", "(", ")", ";", "if", "(", "sb", ".", "length", "(", ")", ">", "0", ")", "sb", ".", "append", "(", "\" \"", ")", ";", "sb", ".", "append", "(", "operator", ")", ".", "append", "(", "\" \"", ")", ";", "}", "else", "{", "sb", ".", "append", "(", "\", \"", ")", ";", "}", "sb", ".", "append", "(", "expr", ".", "asSubstituted", "(", "context", ")", ")", ";", "}", "}", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
Builds and returns the update expression to be used in a dynamodb request; or null if there is none.
[ "Builds", "and", "returns", "the", "update", "expression", "to", "be", "used", "in", "a", "dynamodb", "request", ";", "or", "null", "if", "there", "is", "none", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ExpressionSpecBuilder.java#L516-L534
20,742
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ExpressionSpecBuilder.java
ExpressionSpecBuilder.buildProjectionExpression
String buildProjectionExpression(SubstitutionContext context) { if (projections.size() == 0) return null; StringBuilder sb = new StringBuilder(); for (PathOperand projection : projections) { if (sb.length() > 0) sb.append(", "); sb.append(projection.asSubstituted(context)); } return sb.toString(); }
java
String buildProjectionExpression(SubstitutionContext context) { if (projections.size() == 0) return null; StringBuilder sb = new StringBuilder(); for (PathOperand projection : projections) { if (sb.length() > 0) sb.append(", "); sb.append(projection.asSubstituted(context)); } return sb.toString(); }
[ "String", "buildProjectionExpression", "(", "SubstitutionContext", "context", ")", "{", "if", "(", "projections", ".", "size", "(", ")", "==", "0", ")", "return", "null", ";", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "PathOperand", "projection", ":", "projections", ")", "{", "if", "(", "sb", ".", "length", "(", ")", ">", "0", ")", "sb", ".", "append", "(", "\", \"", ")", ";", "sb", ".", "append", "(", "projection", ".", "asSubstituted", "(", "context", ")", ")", ";", "}", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
Builds and returns the projection expression to be used in a dynamodb GetItem request; or null if there is none.
[ "Builds", "and", "returns", "the", "projection", "expression", "to", "be", "used", "in", "a", "dynamodb", "GetItem", "request", ";", "or", "null", "if", "there", "is", "none", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ExpressionSpecBuilder.java#L540-L550
20,743
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ExpressionSpecBuilder.java
ExpressionSpecBuilder.buildConditionExpression
String buildConditionExpression(SubstitutionContext context) { return condition == null ? null : condition.asSubstituted(context); }
java
String buildConditionExpression(SubstitutionContext context) { return condition == null ? null : condition.asSubstituted(context); }
[ "String", "buildConditionExpression", "(", "SubstitutionContext", "context", ")", "{", "return", "condition", "==", "null", "?", "null", ":", "condition", ".", "asSubstituted", "(", "context", ")", ";", "}" ]
Builds and returns the condition expression to be used in a dynamodb request; or null if there is none.
[ "Builds", "and", "returns", "the", "condition", "expression", "to", "be", "used", "in", "a", "dynamodb", "request", ";", "or", "null", "if", "there", "is", "none", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ExpressionSpecBuilder.java#L556-L558
20,744
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ExpressionSpecBuilder.java
ExpressionSpecBuilder.buildKeyConditionExpression
String buildKeyConditionExpression(SubstitutionContext context) { return keyCondition == null ? null : keyCondition.asSubstituted(context); }
java
String buildKeyConditionExpression(SubstitutionContext context) { return keyCondition == null ? null : keyCondition.asSubstituted(context); }
[ "String", "buildKeyConditionExpression", "(", "SubstitutionContext", "context", ")", "{", "return", "keyCondition", "==", "null", "?", "null", ":", "keyCondition", ".", "asSubstituted", "(", "context", ")", ";", "}" ]
Builds and returns the key condition expression to be used in a dynamodb query request; or null if there is none.
[ "Builds", "and", "returns", "the", "key", "condition", "expression", "to", "be", "used", "in", "a", "dynamodb", "query", "request", ";", "or", "null", "if", "there", "is", "none", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ExpressionSpecBuilder.java#L564-L566
20,745
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/SdkHttpUtils.java
SdkHttpUtils.urlDecode
public static String urlDecode(final String value) { if (value == null) { return null; } try { return URLDecoder.decode(value, DEFAULT_ENCODING); } catch (UnsupportedEncodingException ex) { throw new RuntimeException(ex); } }
java
public static String urlDecode(final String value) { if (value == null) { return null; } try { return URLDecoder.decode(value, DEFAULT_ENCODING); } catch (UnsupportedEncodingException ex) { throw new RuntimeException(ex); } }
[ "public", "static", "String", "urlDecode", "(", "final", "String", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "return", "null", ";", "}", "try", "{", "return", "URLDecoder", ".", "decode", "(", "value", ",", "DEFAULT_ENCODING", ")", ";", "}", "catch", "(", "UnsupportedEncodingException", "ex", ")", "{", "throw", "new", "RuntimeException", "(", "ex", ")", ";", "}", "}" ]
Decode a string for use in the path of a URL; uses URLDecoder.decode, which decodes a string for use in the query portion of a URL. @param value The value to decode @return The decoded value if parameter is not null, otherwise, null is returned.
[ "Decode", "a", "string", "for", "use", "in", "the", "path", "of", "a", "URL", ";", "uses", "URLDecoder", ".", "decode", "which", "decodes", "a", "string", "for", "use", "in", "the", "query", "portion", "of", "a", "URL", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/SdkHttpUtils.java#L108-L119
20,746
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/SdkHttpUtils.java
SdkHttpUtils.encodeParameters
public static String encodeParameters(SignableRequest<?> request) { final Map<String, List<String>> requestParams = request.getParameters(); if (requestParams.isEmpty()) return null; final List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); for (Entry<String, List<String>> entry : requestParams.entrySet()) { String parameterName = entry.getKey(); for (String value : entry.getValue()) { nameValuePairs .add(new BasicNameValuePair(parameterName, value)); } } return URLEncodedUtils.format(nameValuePairs, DEFAULT_ENCODING); }
java
public static String encodeParameters(SignableRequest<?> request) { final Map<String, List<String>> requestParams = request.getParameters(); if (requestParams.isEmpty()) return null; final List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(); for (Entry<String, List<String>> entry : requestParams.entrySet()) { String parameterName = entry.getKey(); for (String value : entry.getValue()) { nameValuePairs .add(new BasicNameValuePair(parameterName, value)); } } return URLEncodedUtils.format(nameValuePairs, DEFAULT_ENCODING); }
[ "public", "static", "String", "encodeParameters", "(", "SignableRequest", "<", "?", ">", "request", ")", "{", "final", "Map", "<", "String", ",", "List", "<", "String", ">", ">", "requestParams", "=", "request", ".", "getParameters", "(", ")", ";", "if", "(", "requestParams", ".", "isEmpty", "(", ")", ")", "return", "null", ";", "final", "List", "<", "NameValuePair", ">", "nameValuePairs", "=", "new", "ArrayList", "<", "NameValuePair", ">", "(", ")", ";", "for", "(", "Entry", "<", "String", ",", "List", "<", "String", ">", ">", "entry", ":", "requestParams", ".", "entrySet", "(", ")", ")", "{", "String", "parameterName", "=", "entry", ".", "getKey", "(", ")", ";", "for", "(", "String", "value", ":", "entry", ".", "getValue", "(", ")", ")", "{", "nameValuePairs", ".", "add", "(", "new", "BasicNameValuePair", "(", "parameterName", ",", "value", ")", ")", ";", "}", "}", "return", "URLEncodedUtils", ".", "format", "(", "nameValuePairs", ",", "DEFAULT_ENCODING", ")", ";", "}" ]
Creates an encoded query string from all the parameters in the specified request. @param request The request containing the parameters to encode. @return Null if no parameters were present, otherwise the encoded query string for the parameters present in the specified request.
[ "Creates", "an", "encoded", "query", "string", "from", "all", "the", "parameters", "in", "the", "specified", "request", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/SdkHttpUtils.java#L159-L176
20,747
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/SdkHttpUtils.java
SdkHttpUtils.appendUri
public static String appendUri(String baseUri, String path) { return appendUri(baseUri, path, false); }
java
public static String appendUri(String baseUri, String path) { return appendUri(baseUri, path, false); }
[ "public", "static", "String", "appendUri", "(", "String", "baseUri", ",", "String", "path", ")", "{", "return", "appendUri", "(", "baseUri", ",", "path", ",", "false", ")", ";", "}" ]
Append the given path to the given baseUri. By default, all slash characters in path will not be url-encoded.
[ "Append", "the", "given", "path", "to", "the", "given", "baseUri", ".", "By", "default", "all", "slash", "characters", "in", "path", "will", "not", "be", "url", "-", "encoded", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/SdkHttpUtils.java#L182-L184
20,748
aws/aws-sdk-java
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/DescribeBrokerEngineTypesResult.java
DescribeBrokerEngineTypesResult.setBrokerEngineTypes
public void setBrokerEngineTypes(java.util.Collection<BrokerEngineType> brokerEngineTypes) { if (brokerEngineTypes == null) { this.brokerEngineTypes = null; return; } this.brokerEngineTypes = new java.util.ArrayList<BrokerEngineType>(brokerEngineTypes); }
java
public void setBrokerEngineTypes(java.util.Collection<BrokerEngineType> brokerEngineTypes) { if (brokerEngineTypes == null) { this.brokerEngineTypes = null; return; } this.brokerEngineTypes = new java.util.ArrayList<BrokerEngineType>(brokerEngineTypes); }
[ "public", "void", "setBrokerEngineTypes", "(", "java", ".", "util", ".", "Collection", "<", "BrokerEngineType", ">", "brokerEngineTypes", ")", "{", "if", "(", "brokerEngineTypes", "==", "null", ")", "{", "this", ".", "brokerEngineTypes", "=", "null", ";", "return", ";", "}", "this", ".", "brokerEngineTypes", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "BrokerEngineType", ">", "(", "brokerEngineTypes", ")", ";", "}" ]
List of available engine types and versions. @param brokerEngineTypes List of available engine types and versions.
[ "List", "of", "available", "engine", "types", "and", "versions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/DescribeBrokerEngineTypesResult.java#L56-L63
20,749
aws/aws-sdk-java
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/DescribeBrokerInstanceOptionsResult.java
DescribeBrokerInstanceOptionsResult.setBrokerInstanceOptions
public void setBrokerInstanceOptions(java.util.Collection<BrokerInstanceOption> brokerInstanceOptions) { if (brokerInstanceOptions == null) { this.brokerInstanceOptions = null; return; } this.brokerInstanceOptions = new java.util.ArrayList<BrokerInstanceOption>(brokerInstanceOptions); }
java
public void setBrokerInstanceOptions(java.util.Collection<BrokerInstanceOption> brokerInstanceOptions) { if (brokerInstanceOptions == null) { this.brokerInstanceOptions = null; return; } this.brokerInstanceOptions = new java.util.ArrayList<BrokerInstanceOption>(brokerInstanceOptions); }
[ "public", "void", "setBrokerInstanceOptions", "(", "java", ".", "util", ".", "Collection", "<", "BrokerInstanceOption", ">", "brokerInstanceOptions", ")", "{", "if", "(", "brokerInstanceOptions", "==", "null", ")", "{", "this", ".", "brokerInstanceOptions", "=", "null", ";", "return", ";", "}", "this", ".", "brokerInstanceOptions", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "BrokerInstanceOption", ">", "(", "brokerInstanceOptions", ")", ";", "}" ]
List of available broker instance options. @param brokerInstanceOptions List of available broker instance options.
[ "List", "of", "available", "broker", "instance", "options", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/DescribeBrokerInstanceOptionsResult.java#L57-L64
20,750
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ServerSideEncryptionByDefault.java
ServerSideEncryptionByDefault.withSSEAlgorithm
public ServerSideEncryptionByDefault withSSEAlgorithm(SSEAlgorithm sseAlgorithm) { setSSEAlgorithm(sseAlgorithm == null ? null : sseAlgorithm.toString()); return this; }
java
public ServerSideEncryptionByDefault withSSEAlgorithm(SSEAlgorithm sseAlgorithm) { setSSEAlgorithm(sseAlgorithm == null ? null : sseAlgorithm.toString()); return this; }
[ "public", "ServerSideEncryptionByDefault", "withSSEAlgorithm", "(", "SSEAlgorithm", "sseAlgorithm", ")", "{", "setSSEAlgorithm", "(", "sseAlgorithm", "==", "null", "?", "null", ":", "sseAlgorithm", ".", "toString", "(", ")", ")", ";", "return", "this", ";", "}" ]
Sets the server-side encryption algorithm to use for the default encryption. @param sseAlgorithm SSE algorithm to use. @return This object for method chaining.
[ "Sets", "the", "server", "-", "side", "encryption", "algorithm", "to", "use", "for", "the", "default", "encryption", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ServerSideEncryptionByDefault.java#L62-L65
20,751
aws/aws-sdk-java
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ImageInserter.java
ImageInserter.setInsertableImages
public void setInsertableImages(java.util.Collection<InsertableImage> insertableImages) { if (insertableImages == null) { this.insertableImages = null; return; } this.insertableImages = new java.util.ArrayList<InsertableImage>(insertableImages); }
java
public void setInsertableImages(java.util.Collection<InsertableImage> insertableImages) { if (insertableImages == null) { this.insertableImages = null; return; } this.insertableImages = new java.util.ArrayList<InsertableImage>(insertableImages); }
[ "public", "void", "setInsertableImages", "(", "java", ".", "util", ".", "Collection", "<", "InsertableImage", ">", "insertableImages", ")", "{", "if", "(", "insertableImages", "==", "null", ")", "{", "this", ".", "insertableImages", "=", "null", ";", "return", ";", "}", "this", ".", "insertableImages", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "InsertableImage", ">", "(", "insertableImages", ")", ";", "}" ]
Specify the images that you want to overlay on your video. The images must be PNG or TGA files. @param insertableImages Specify the images that you want to overlay on your video. The images must be PNG or TGA files.
[ "Specify", "the", "images", "that", "you", "want", "to", "overlay", "on", "your", "video", ".", "The", "images", "must", "be", "PNG", "or", "TGA", "files", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ImageInserter.java#L50-L57
20,752
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/UriResourcePathUtils.java
UriResourcePathUtils.addStaticQueryParamtersToRequest
public static String addStaticQueryParamtersToRequest(final Request<?> request, final String uriResourcePath) { if (request == null || uriResourcePath == null) { return null; } String resourcePath = uriResourcePath; int index = resourcePath.indexOf("?"); if (index != -1) { String queryString = resourcePath.substring(index + 1); resourcePath = resourcePath.substring(0, index); for (String s : queryString.split("[;&]")) { index = s.indexOf("="); if (index != -1) { request.addParameter(s.substring(0, index), s.substring(index + 1)); } else { request.addParameter(s, (String)null); } } } return resourcePath; }
java
public static String addStaticQueryParamtersToRequest(final Request<?> request, final String uriResourcePath) { if (request == null || uriResourcePath == null) { return null; } String resourcePath = uriResourcePath; int index = resourcePath.indexOf("?"); if (index != -1) { String queryString = resourcePath.substring(index + 1); resourcePath = resourcePath.substring(0, index); for (String s : queryString.split("[;&]")) { index = s.indexOf("="); if (index != -1) { request.addParameter(s.substring(0, index), s.substring(index + 1)); } else { request.addParameter(s, (String)null); } } } return resourcePath; }
[ "public", "static", "String", "addStaticQueryParamtersToRequest", "(", "final", "Request", "<", "?", ">", "request", ",", "final", "String", "uriResourcePath", ")", "{", "if", "(", "request", "==", "null", "||", "uriResourcePath", "==", "null", ")", "{", "return", "null", ";", "}", "String", "resourcePath", "=", "uriResourcePath", ";", "int", "index", "=", "resourcePath", ".", "indexOf", "(", "\"?\"", ")", ";", "if", "(", "index", "!=", "-", "1", ")", "{", "String", "queryString", "=", "resourcePath", ".", "substring", "(", "index", "+", "1", ")", ";", "resourcePath", "=", "resourcePath", ".", "substring", "(", "0", ",", "index", ")", ";", "for", "(", "String", "s", ":", "queryString", ".", "split", "(", "\"[;&]\"", ")", ")", "{", "index", "=", "s", ".", "indexOf", "(", "\"=\"", ")", ";", "if", "(", "index", "!=", "-", "1", ")", "{", "request", ".", "addParameter", "(", "s", ".", "substring", "(", "0", ",", "index", ")", ",", "s", ".", "substring", "(", "index", "+", "1", ")", ")", ";", "}", "else", "{", "request", ".", "addParameter", "(", "s", ",", "(", "String", ")", "null", ")", ";", "}", "}", "}", "return", "resourcePath", ";", "}" ]
Identifies the static query parameters in Uri resource path for and adds it to request. Returns the updated uriResourcePath.
[ "Identifies", "the", "static", "query", "parameters", "in", "Uri", "resource", "path", "for", "and", "adds", "it", "to", "request", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/UriResourcePathUtils.java#L29-L53
20,753
aws/aws-sdk-java
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/StorageGatewayUtils.java
StorageGatewayUtils.getActivationKey
public static String getActivationKey(String gatewayAddress, Region activationRegion) throws AmazonClientException { return getActivationKey(gatewayAddress, activationRegion == null ? null : activationRegion.getName()); }
java
public static String getActivationKey(String gatewayAddress, Region activationRegion) throws AmazonClientException { return getActivationKey(gatewayAddress, activationRegion == null ? null : activationRegion.getName()); }
[ "public", "static", "String", "getActivationKey", "(", "String", "gatewayAddress", ",", "Region", "activationRegion", ")", "throws", "AmazonClientException", "{", "return", "getActivationKey", "(", "gatewayAddress", ",", "activationRegion", "==", "null", "?", "null", ":", "activationRegion", ".", "getName", "(", ")", ")", ";", "}" ]
Sends a request to the AWS Storage Gateway server running at the specified address, and returns the activation key for that server. @param gatewayAddress The DNS name or IP address of a running AWS Storage Gateway @param activationRegionName The region in which the gateway will be activated. @return The activation key required for some API calls to AWS Storage Gateway. @throws AmazonClientException If any problems are encountered while trying to contact the remote AWS Storage Gateway server.
[ "Sends", "a", "request", "to", "the", "AWS", "Storage", "Gateway", "server", "running", "at", "the", "specified", "address", "and", "returns", "the", "activation", "key", "for", "that", "server", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/StorageGatewayUtils.java#L72-L76
20,754
aws/aws-sdk-java
aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/StorageGatewayUtils.java
StorageGatewayUtils.getActivationKey
public static String getActivationKey(String gatewayAddress, String activationRegionName) throws AmazonClientException { try { HttpParams httpClientParams = new BasicHttpParams(); httpClientParams.setBooleanParameter(ClientPNames.HANDLE_REDIRECTS, false); DefaultHttpClient client = new DefaultHttpClient(httpClientParams); String url = "http://" + gatewayAddress; if (activationRegionName != null) { url += "/?activationRegion=" + activationRegionName; } HttpGet method = new HttpGet(url); HttpResponse response = client.execute(method); int statusCode = response.getStatusLine().getStatusCode(); if (statusCode != 302) throw new AmazonClientException("Could not fetch activation key. HTTP status code: " + statusCode); Header[] headers = response.getHeaders("Location"); if (headers.length < 1) throw new AmazonClientException("Could not fetch activation key, no location header found"); String activationUrl = headers[0].getValue(); String[] parts = activationUrl.split("activationKey="); if (parts.length < 2 || null == parts[1]) throw new AmazonClientException("Unable to get activation key from : " + activationUrl); return parts[1]; } catch (IOException ioe) { throw new AmazonClientException("Unable to get activation key", ioe); } }
java
public static String getActivationKey(String gatewayAddress, String activationRegionName) throws AmazonClientException { try { HttpParams httpClientParams = new BasicHttpParams(); httpClientParams.setBooleanParameter(ClientPNames.HANDLE_REDIRECTS, false); DefaultHttpClient client = new DefaultHttpClient(httpClientParams); String url = "http://" + gatewayAddress; if (activationRegionName != null) { url += "/?activationRegion=" + activationRegionName; } HttpGet method = new HttpGet(url); HttpResponse response = client.execute(method); int statusCode = response.getStatusLine().getStatusCode(); if (statusCode != 302) throw new AmazonClientException("Could not fetch activation key. HTTP status code: " + statusCode); Header[] headers = response.getHeaders("Location"); if (headers.length < 1) throw new AmazonClientException("Could not fetch activation key, no location header found"); String activationUrl = headers[0].getValue(); String[] parts = activationUrl.split("activationKey="); if (parts.length < 2 || null == parts[1]) throw new AmazonClientException("Unable to get activation key from : " + activationUrl); return parts[1]; } catch (IOException ioe) { throw new AmazonClientException("Unable to get activation key", ioe); } }
[ "public", "static", "String", "getActivationKey", "(", "String", "gatewayAddress", ",", "String", "activationRegionName", ")", "throws", "AmazonClientException", "{", "try", "{", "HttpParams", "httpClientParams", "=", "new", "BasicHttpParams", "(", ")", ";", "httpClientParams", ".", "setBooleanParameter", "(", "ClientPNames", ".", "HANDLE_REDIRECTS", ",", "false", ")", ";", "DefaultHttpClient", "client", "=", "new", "DefaultHttpClient", "(", "httpClientParams", ")", ";", "String", "url", "=", "\"http://\"", "+", "gatewayAddress", ";", "if", "(", "activationRegionName", "!=", "null", ")", "{", "url", "+=", "\"/?activationRegion=\"", "+", "activationRegionName", ";", "}", "HttpGet", "method", "=", "new", "HttpGet", "(", "url", ")", ";", "HttpResponse", "response", "=", "client", ".", "execute", "(", "method", ")", ";", "int", "statusCode", "=", "response", ".", "getStatusLine", "(", ")", ".", "getStatusCode", "(", ")", ";", "if", "(", "statusCode", "!=", "302", ")", "throw", "new", "AmazonClientException", "(", "\"Could not fetch activation key. HTTP status code: \"", "+", "statusCode", ")", ";", "Header", "[", "]", "headers", "=", "response", ".", "getHeaders", "(", "\"Location\"", ")", ";", "if", "(", "headers", ".", "length", "<", "1", ")", "throw", "new", "AmazonClientException", "(", "\"Could not fetch activation key, no location header found\"", ")", ";", "String", "activationUrl", "=", "headers", "[", "0", "]", ".", "getValue", "(", ")", ";", "String", "[", "]", "parts", "=", "activationUrl", ".", "split", "(", "\"activationKey=\"", ")", ";", "if", "(", "parts", ".", "length", "<", "2", "||", "null", "==", "parts", "[", "1", "]", ")", "throw", "new", "AmazonClientException", "(", "\"Unable to get activation key from : \"", "+", "activationUrl", ")", ";", "return", "parts", "[", "1", "]", ";", "}", "catch", "(", "IOException", "ioe", ")", "{", "throw", "new", "AmazonClientException", "(", "\"Unable to get activation key\"", ",", "ioe", ")", ";", "}", "}" ]
Sends a request to the AWS Storage Gateway server running at the specified address and activation region, and returns the activation key for that server. @param gatewayAddress The DNS name or IP address of a running AWS Storage Gateway @param activationRegionName The name of the region in which the gateway will be activated. @return The activation key required for some API calls to AWS Storage Gateway. @throws AmazonClientException If any problems are encountered while trying to contact the remote AWS Storage Gateway server.
[ "Sends", "a", "request", "to", "the", "AWS", "Storage", "Gateway", "server", "running", "at", "the", "specified", "address", "and", "activation", "region", "and", "returns", "the", "activation", "key", "for", "that", "server", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/StorageGatewayUtils.java#L96-L127
20,755
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/util/SecurityGroupUtils.java
SecurityGroupUtils.doesSecurityGroupExist
public static boolean doesSecurityGroupExist(AmazonEC2 ec2, String securityGroupName) throws AmazonClientException, AmazonServiceException { DescribeSecurityGroupsRequest securityGroupsRequest = new DescribeSecurityGroupsRequest() .withGroupNames(securityGroupName); try { ec2.describeSecurityGroups(securityGroupsRequest); return true; } catch (AmazonServiceException ase) { if (INVALID_GROUP_NOT_FOUND.equals(ase.getErrorCode())) { return false; } throw ase; } }
java
public static boolean doesSecurityGroupExist(AmazonEC2 ec2, String securityGroupName) throws AmazonClientException, AmazonServiceException { DescribeSecurityGroupsRequest securityGroupsRequest = new DescribeSecurityGroupsRequest() .withGroupNames(securityGroupName); try { ec2.describeSecurityGroups(securityGroupsRequest); return true; } catch (AmazonServiceException ase) { if (INVALID_GROUP_NOT_FOUND.equals(ase.getErrorCode())) { return false; } throw ase; } }
[ "public", "static", "boolean", "doesSecurityGroupExist", "(", "AmazonEC2", "ec2", ",", "String", "securityGroupName", ")", "throws", "AmazonClientException", ",", "AmazonServiceException", "{", "DescribeSecurityGroupsRequest", "securityGroupsRequest", "=", "new", "DescribeSecurityGroupsRequest", "(", ")", ".", "withGroupNames", "(", "securityGroupName", ")", ";", "try", "{", "ec2", ".", "describeSecurityGroups", "(", "securityGroupsRequest", ")", ";", "return", "true", ";", "}", "catch", "(", "AmazonServiceException", "ase", ")", "{", "if", "(", "INVALID_GROUP_NOT_FOUND", ".", "equals", "(", "ase", ".", "getErrorCode", "(", ")", ")", ")", "{", "return", "false", ";", "}", "throw", "ase", ";", "}", "}" ]
Provides a quick answer to whether a security group exists. @param ec2 the EC2 client to use for making service requests @param securityGroupName the name of the security group being queried @throws AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available. @throws AmazonServiceException If an error response is returned by AmazonEC2 indicating either a problem with the data in the request, or a server side issue.
[ "Provides", "a", "quick", "answer", "to", "whether", "a", "security", "group", "exists", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/util/SecurityGroupUtils.java#L42-L60
20,756
aws/aws-sdk-java
aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/Configurations.java
Configurations.setHistory
public void setHistory(java.util.Collection<ConfigurationId> history) { if (history == null) { this.history = null; return; } this.history = new java.util.ArrayList<ConfigurationId>(history); }
java
public void setHistory(java.util.Collection<ConfigurationId> history) { if (history == null) { this.history = null; return; } this.history = new java.util.ArrayList<ConfigurationId>(history); }
[ "public", "void", "setHistory", "(", "java", ".", "util", ".", "Collection", "<", "ConfigurationId", ">", "history", ")", "{", "if", "(", "history", "==", "null", ")", "{", "this", ".", "history", "=", "null", ";", "return", ";", "}", "this", ".", "history", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "ConfigurationId", ">", "(", "history", ")", ";", "}" ]
The history of configurations applied to the broker. @param history The history of configurations applied to the broker.
[ "The", "history", "of", "configurations", "applied", "to", "the", "broker", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mq/src/main/java/com/amazonaws/services/mq/model/Configurations.java#L87-L94
20,757
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/VersionInfoUtils.java
VersionInfoUtils.initializeVersion
private static void initializeVersion() { InputStream inputStream = ClassLoaderHelper.getResourceAsStream( VERSION_INFO_FILE, true, VersionInfoUtils.class); Properties versionInfoProperties = new Properties(); try { if (inputStream == null) throw new Exception(VERSION_INFO_FILE + " not found on classpath"); versionInfoProperties.load(inputStream); version = versionInfoProperties.getProperty("version"); platform = versionInfoProperties.getProperty("platform"); } catch (Exception e) { log.info("Unable to load version information for the running SDK: " + e.getMessage()); version = "unknown-version"; platform = "java"; } finally { closeQuietly(inputStream, log); } }
java
private static void initializeVersion() { InputStream inputStream = ClassLoaderHelper.getResourceAsStream( VERSION_INFO_FILE, true, VersionInfoUtils.class); Properties versionInfoProperties = new Properties(); try { if (inputStream == null) throw new Exception(VERSION_INFO_FILE + " not found on classpath"); versionInfoProperties.load(inputStream); version = versionInfoProperties.getProperty("version"); platform = versionInfoProperties.getProperty("platform"); } catch (Exception e) { log.info("Unable to load version information for the running SDK: " + e.getMessage()); version = "unknown-version"; platform = "java"; } finally { closeQuietly(inputStream, log); } }
[ "private", "static", "void", "initializeVersion", "(", ")", "{", "InputStream", "inputStream", "=", "ClassLoaderHelper", ".", "getResourceAsStream", "(", "VERSION_INFO_FILE", ",", "true", ",", "VersionInfoUtils", ".", "class", ")", ";", "Properties", "versionInfoProperties", "=", "new", "Properties", "(", ")", ";", "try", "{", "if", "(", "inputStream", "==", "null", ")", "throw", "new", "Exception", "(", "VERSION_INFO_FILE", "+", "\" not found on classpath\"", ")", ";", "versionInfoProperties", ".", "load", "(", "inputStream", ")", ";", "version", "=", "versionInfoProperties", ".", "getProperty", "(", "\"version\"", ")", ";", "platform", "=", "versionInfoProperties", ".", "getProperty", "(", "\"platform\"", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "log", ".", "info", "(", "\"Unable to load version information for the running SDK: \"", "+", "e", ".", "getMessage", "(", ")", ")", ";", "version", "=", "\"unknown-version\"", ";", "platform", "=", "\"java\"", ";", "}", "finally", "{", "closeQuietly", "(", "inputStream", ",", "log", ")", ";", "}", "}" ]
Loads the versionInfo.properties file from the AWS Java SDK and stores the information so that the file doesn't have to be read the next time the data is needed.
[ "Loads", "the", "versionInfo", ".", "properties", "file", "from", "the", "AWS", "Java", "SDK", "and", "stores", "the", "information", "so", "that", "the", "file", "doesn", "t", "have", "to", "be", "read", "the", "next", "time", "the", "data", "is", "needed", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/VersionInfoUtils.java#L111-L129
20,758
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/VersionInfoUtils.java
VersionInfoUtils.languageVersion
private static String languageVersion(String language, String className, String methodOrFieldName, boolean isMethod) { StringBuilder sb = new StringBuilder(); try { Class<?> clz = Class.forName(className); sb.append(language); String version = isMethod ? (String) clz.getMethod(methodOrFieldName).invoke(null) : (String) clz.getField(methodOrFieldName).get(null); concat(sb, version, "/"); } catch (ClassNotFoundException e) { //Ignore } catch (Exception e) { if (log.isTraceEnabled()){ log.trace("Exception attempting to get " + language + " version.", e); } } return sb.toString(); }
java
private static String languageVersion(String language, String className, String methodOrFieldName, boolean isMethod) { StringBuilder sb = new StringBuilder(); try { Class<?> clz = Class.forName(className); sb.append(language); String version = isMethod ? (String) clz.getMethod(methodOrFieldName).invoke(null) : (String) clz.getField(methodOrFieldName).get(null); concat(sb, version, "/"); } catch (ClassNotFoundException e) { //Ignore } catch (Exception e) { if (log.isTraceEnabled()){ log.trace("Exception attempting to get " + language + " version.", e); } } return sb.toString(); }
[ "private", "static", "String", "languageVersion", "(", "String", "language", ",", "String", "className", ",", "String", "methodOrFieldName", ",", "boolean", "isMethod", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "try", "{", "Class", "<", "?", ">", "clz", "=", "Class", ".", "forName", "(", "className", ")", ";", "sb", ".", "append", "(", "language", ")", ";", "String", "version", "=", "isMethod", "?", "(", "String", ")", "clz", ".", "getMethod", "(", "methodOrFieldName", ")", ".", "invoke", "(", "null", ")", ":", "(", "String", ")", "clz", ".", "getField", "(", "methodOrFieldName", ")", ".", "get", "(", "null", ")", ";", "concat", "(", "sb", ",", "version", ",", "\"/\"", ")", ";", "}", "catch", "(", "ClassNotFoundException", "e", ")", "{", "//Ignore", "}", "catch", "(", "Exception", "e", ")", "{", "if", "(", "log", ".", "isTraceEnabled", "(", ")", ")", "{", "log", ".", "trace", "(", "\"Exception attempting to get \"", "+", "language", "+", "\" version.\"", ",", "e", ")", ";", "}", "}", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
Attempt to determine if this language exists on the classpath and what it's version is @param language the name of the language @param className a class of that lanauge that exposes runtime version information @param methodOrFieldName the static field or method name that holds the version number @param isMethod whether the above is a field or method @return the version number or empty string if the language does not exist on the classpath
[ "Attempt", "to", "determine", "if", "this", "language", "exists", "on", "the", "classpath", "and", "what", "it", "s", "version", "is" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/VersionInfoUtils.java#L278-L293
20,759
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java
StringUtils.join
public static String join(String joiner, String... parts) { StringBuilder builder = new StringBuilder(); for (int i = 0; i < parts.length; i++) { builder.append(parts[i]); if (i < parts.length - 1) { builder.append(joiner); } } return builder.toString(); }
java
public static String join(String joiner, String... parts) { StringBuilder builder = new StringBuilder(); for (int i = 0; i < parts.length; i++) { builder.append(parts[i]); if (i < parts.length - 1) { builder.append(joiner); } } return builder.toString(); }
[ "public", "static", "String", "join", "(", "String", "joiner", ",", "String", "...", "parts", ")", "{", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "parts", ".", "length", ";", "i", "++", ")", "{", "builder", ".", "append", "(", "parts", "[", "i", "]", ")", ";", "if", "(", "i", "<", "parts", ".", "length", "-", "1", ")", "{", "builder", ".", "append", "(", "joiner", ")", ";", "}", "}", "return", "builder", ".", "toString", "(", ")", ";", "}" ]
Joins the strings in parts with joiner between each string @param joiner the string to insert between the strings in parts @param parts the parts to join
[ "Joins", "the", "strings", "in", "parts", "with", "joiner", "between", "each", "string" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java#L191-L200
20,760
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java
StringUtils.lowerCase
public static String lowerCase(String str) { if(isNullOrEmpty(str)) { return str; } return str.toLowerCase(LOCALE_ENGLISH); }
java
public static String lowerCase(String str) { if(isNullOrEmpty(str)) { return str; } return str.toLowerCase(LOCALE_ENGLISH); }
[ "public", "static", "String", "lowerCase", "(", "String", "str", ")", "{", "if", "(", "isNullOrEmpty", "(", "str", ")", ")", "{", "return", "str", ";", "}", "return", "str", ".", "toLowerCase", "(", "LOCALE_ENGLISH", ")", ";", "}" ]
Converts a given String to lower case with Locale.ENGLISH @param str the string to be converted to lower case @return the lower case of string, or itself if string is null/empty
[ "Converts", "a", "given", "String", "to", "lower", "case", "with", "Locale", ".", "ENGLISH" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java#L233-L238
20,761
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java
StringUtils.upperCase
public static String upperCase(String str) { if(isNullOrEmpty(str)) { return str; } return str.toUpperCase(LOCALE_ENGLISH); }
java
public static String upperCase(String str) { if(isNullOrEmpty(str)) { return str; } return str.toUpperCase(LOCALE_ENGLISH); }
[ "public", "static", "String", "upperCase", "(", "String", "str", ")", "{", "if", "(", "isNullOrEmpty", "(", "str", ")", ")", "{", "return", "str", ";", "}", "return", "str", ".", "toUpperCase", "(", "LOCALE_ENGLISH", ")", ";", "}" ]
Converts a given String to upper case with Locale.ENGLISH @param str the string to be converted to upper case @return the upper case of string, or itself if string is null/empty
[ "Converts", "a", "given", "String", "to", "upper", "case", "with", "Locale", ".", "ENGLISH" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java#L246-L251
20,762
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java
StringUtils.isWhiteSpace
private static boolean isWhiteSpace(final char ch) { if (ch == CHAR_SPACE) return true; if (ch == CHAR_TAB) return true; if (ch == CHAR_NEW_LINE) return true; if (ch == CHAR_VERTICAL_TAB) return true; if (ch == CHAR_CARRIAGE_RETURN) return true; if (ch == CHAR_FORM_FEED) return true; return false; }
java
private static boolean isWhiteSpace(final char ch) { if (ch == CHAR_SPACE) return true; if (ch == CHAR_TAB) return true; if (ch == CHAR_NEW_LINE) return true; if (ch == CHAR_VERTICAL_TAB) return true; if (ch == CHAR_CARRIAGE_RETURN) return true; if (ch == CHAR_FORM_FEED) return true; return false; }
[ "private", "static", "boolean", "isWhiteSpace", "(", "final", "char", "ch", ")", "{", "if", "(", "ch", "==", "CHAR_SPACE", ")", "return", "true", ";", "if", "(", "ch", "==", "CHAR_TAB", ")", "return", "true", ";", "if", "(", "ch", "==", "CHAR_NEW_LINE", ")", "return", "true", ";", "if", "(", "ch", "==", "CHAR_VERTICAL_TAB", ")", "return", "true", ";", "if", "(", "ch", "==", "CHAR_CARRIAGE_RETURN", ")", "return", "true", ";", "if", "(", "ch", "==", "CHAR_FORM_FEED", ")", "return", "true", ";", "return", "false", ";", "}" ]
Tests a char to see if is it whitespace. This method considers the same characters to be white space as the Pattern class does when matching \s @param ch the character to be tested @return true if the character is white space, false otherwise.
[ "Tests", "a", "char", "to", "see", "if", "is", "it", "whitespace", ".", "This", "method", "considers", "the", "same", "characters", "to", "be", "white", "space", "as", "the", "Pattern", "class", "does", "when", "matching", "\\", "s" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java#L280-L288
20,763
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java
StringUtils.appendCompactedString
public static void appendCompactedString(final StringBuilder destination, final String source) { boolean previousIsWhiteSpace = false; int length = source.length(); for (int i = 0; i < length; i++) { char ch = source.charAt(i); if (isWhiteSpace(ch)) { if (previousIsWhiteSpace) { continue; } destination.append(CHAR_SPACE); previousIsWhiteSpace = true; } else { destination.append(ch); previousIsWhiteSpace = false; } } }
java
public static void appendCompactedString(final StringBuilder destination, final String source) { boolean previousIsWhiteSpace = false; int length = source.length(); for (int i = 0; i < length; i++) { char ch = source.charAt(i); if (isWhiteSpace(ch)) { if (previousIsWhiteSpace) { continue; } destination.append(CHAR_SPACE); previousIsWhiteSpace = true; } else { destination.append(ch); previousIsWhiteSpace = false; } } }
[ "public", "static", "void", "appendCompactedString", "(", "final", "StringBuilder", "destination", ",", "final", "String", "source", ")", "{", "boolean", "previousIsWhiteSpace", "=", "false", ";", "int", "length", "=", "source", ".", "length", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "char", "ch", "=", "source", ".", "charAt", "(", "i", ")", ";", "if", "(", "isWhiteSpace", "(", "ch", ")", ")", "{", "if", "(", "previousIsWhiteSpace", ")", "{", "continue", ";", "}", "destination", ".", "append", "(", "CHAR_SPACE", ")", ";", "previousIsWhiteSpace", "=", "true", ";", "}", "else", "{", "destination", ".", "append", "(", "ch", ")", ";", "previousIsWhiteSpace", "=", "false", ";", "}", "}", "}" ]
This method appends a string to a string builder and collapses contiguous white space is a single space. This is equivalent to: destination.append(source.replaceAll("\\s+", " ")) but does not create a Pattern object that needs to compile the match string; it also prevents us from having to make a Matcher object as well.
[ "This", "method", "appends", "a", "string", "to", "a", "string", "builder", "and", "collapses", "contiguous", "white", "space", "is", "a", "single", "space", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java#L300-L317
20,764
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java
StringUtils.beginsWithIgnoreCase
public static boolean beginsWithIgnoreCase(final String data, final String seq) { return data.regionMatches(true, 0, seq, 0, seq.length()); }
java
public static boolean beginsWithIgnoreCase(final String data, final String seq) { return data.regionMatches(true, 0, seq, 0, seq.length()); }
[ "public", "static", "boolean", "beginsWithIgnoreCase", "(", "final", "String", "data", ",", "final", "String", "seq", ")", "{", "return", "data", ".", "regionMatches", "(", "true", ",", "0", ",", "seq", ",", "0", ",", "seq", ".", "length", "(", ")", ")", ";", "}" ]
Performs a case insensitive comparison and returns true if the data begins with the given sequence.
[ "Performs", "a", "case", "insensitive", "comparison", "and", "returns", "true", "if", "the", "data", "begins", "with", "the", "given", "sequence", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/StringUtils.java#L323-L325
20,765
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/tasks/WaitersGeneratorTasks.java
WaitersGeneratorTasks.createWaiterOpFunctionClassTasks
private List<GeneratorTask> createWaiterOpFunctionClassTasks() throws IOException { List<GeneratorTask> generatorTasks = new ArrayList<>(); List<String> generatedOperations = new ArrayList<>(); for (Map.Entry<String, WaiterDefinitionModel> entry : model.getWaiters().entrySet()) { final WaiterDefinitionModel waiterModel = entry.getValue(); if (!generatedOperations.contains(waiterModel.getOperationName())) { generatedOperations.add(waiterModel.getOperationName()); Map<String, Object> dataModel = ImmutableMapParameter.of( "fileHeader", model.getFileHeader(), "waiter", waiterModel, "operation", model.getOperation(waiterModel.getOperationName()), "metadata", model.getMetadata()); final String className = waiterModel.getOperationModel().getOperationName() + "Function"; generatorTasks.add(new FreemarkerGeneratorTask(waiterClassDir, className, freemarker.getWaiterSDKFunctionTemplate(), dataModel)); } } return generatorTasks; }
java
private List<GeneratorTask> createWaiterOpFunctionClassTasks() throws IOException { List<GeneratorTask> generatorTasks = new ArrayList<>(); List<String> generatedOperations = new ArrayList<>(); for (Map.Entry<String, WaiterDefinitionModel> entry : model.getWaiters().entrySet()) { final WaiterDefinitionModel waiterModel = entry.getValue(); if (!generatedOperations.contains(waiterModel.getOperationName())) { generatedOperations.add(waiterModel.getOperationName()); Map<String, Object> dataModel = ImmutableMapParameter.of( "fileHeader", model.getFileHeader(), "waiter", waiterModel, "operation", model.getOperation(waiterModel.getOperationName()), "metadata", model.getMetadata()); final String className = waiterModel.getOperationModel().getOperationName() + "Function"; generatorTasks.add(new FreemarkerGeneratorTask(waiterClassDir, className, freemarker.getWaiterSDKFunctionTemplate(), dataModel)); } } return generatorTasks; }
[ "private", "List", "<", "GeneratorTask", ">", "createWaiterOpFunctionClassTasks", "(", ")", "throws", "IOException", "{", "List", "<", "GeneratorTask", ">", "generatorTasks", "=", "new", "ArrayList", "<>", "(", ")", ";", "List", "<", "String", ">", "generatedOperations", "=", "new", "ArrayList", "<>", "(", ")", ";", "for", "(", "Map", ".", "Entry", "<", "String", ",", "WaiterDefinitionModel", ">", "entry", ":", "model", ".", "getWaiters", "(", ")", ".", "entrySet", "(", ")", ")", "{", "final", "WaiterDefinitionModel", "waiterModel", "=", "entry", ".", "getValue", "(", ")", ";", "if", "(", "!", "generatedOperations", ".", "contains", "(", "waiterModel", ".", "getOperationName", "(", ")", ")", ")", "{", "generatedOperations", ".", "add", "(", "waiterModel", ".", "getOperationName", "(", ")", ")", ";", "Map", "<", "String", ",", "Object", ">", "dataModel", "=", "ImmutableMapParameter", ".", "of", "(", "\"fileHeader\"", ",", "model", ".", "getFileHeader", "(", ")", ",", "\"waiter\"", ",", "waiterModel", ",", "\"operation\"", ",", "model", ".", "getOperation", "(", "waiterModel", ".", "getOperationName", "(", ")", ")", ",", "\"metadata\"", ",", "model", ".", "getMetadata", "(", ")", ")", ";", "final", "String", "className", "=", "waiterModel", ".", "getOperationModel", "(", ")", ".", "getOperationName", "(", ")", "+", "\"Function\"", ";", "generatorTasks", ".", "add", "(", "new", "FreemarkerGeneratorTask", "(", "waiterClassDir", ",", "className", ",", "freemarker", ".", "getWaiterSDKFunctionTemplate", "(", ")", ",", "dataModel", ")", ")", ";", "}", "}", "return", "generatorTasks", ";", "}" ]
Constructs the data model and submits tasks for every generating SDKFunction for every unique operation in the waiter intermediate model
[ "Constructs", "the", "data", "model", "and", "submits", "tasks", "for", "every", "generating", "SDKFunction", "for", "every", "unique", "operation", "in", "the", "waiter", "intermediate", "model" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/tasks/WaitersGeneratorTasks.java#L59-L83
20,766
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/tasks/WaitersGeneratorTasks.java
WaitersGeneratorTasks.createWaiterAcceptorClassTasks
private List<GeneratorTask> createWaiterAcceptorClassTasks() throws IOException { List<GeneratorTask> generatorTasks = new ArrayList<>(); for (Map.Entry<String, WaiterDefinitionModel> entry : model.getWaiters().entrySet()) { if (containsAllStatusMatchers(entry)) { continue; } final String waiterName = entry.getKey(); final WaiterDefinitionModel waiterModel = entry.getValue(); Map<String, Object> dataModel = ImmutableMapParameter.of( "fileHeader", model.getFileHeader(), "waiter", waiterModel, "operation", model.getOperation(waiterModel.getOperationName()), "metadata", model.getMetadata()); generatorTasks.add(new FreemarkerGeneratorTask(waiterClassDir, waiterName, freemarker.getWaiterAcceptorTemplate(), dataModel)); } return generatorTasks; }
java
private List<GeneratorTask> createWaiterAcceptorClassTasks() throws IOException { List<GeneratorTask> generatorTasks = new ArrayList<>(); for (Map.Entry<String, WaiterDefinitionModel> entry : model.getWaiters().entrySet()) { if (containsAllStatusMatchers(entry)) { continue; } final String waiterName = entry.getKey(); final WaiterDefinitionModel waiterModel = entry.getValue(); Map<String, Object> dataModel = ImmutableMapParameter.of( "fileHeader", model.getFileHeader(), "waiter", waiterModel, "operation", model.getOperation(waiterModel.getOperationName()), "metadata", model.getMetadata()); generatorTasks.add(new FreemarkerGeneratorTask(waiterClassDir, waiterName, freemarker.getWaiterAcceptorTemplate(), dataModel)); } return generatorTasks; }
[ "private", "List", "<", "GeneratorTask", ">", "createWaiterAcceptorClassTasks", "(", ")", "throws", "IOException", "{", "List", "<", "GeneratorTask", ">", "generatorTasks", "=", "new", "ArrayList", "<>", "(", ")", ";", "for", "(", "Map", ".", "Entry", "<", "String", ",", "WaiterDefinitionModel", ">", "entry", ":", "model", ".", "getWaiters", "(", ")", ".", "entrySet", "(", ")", ")", "{", "if", "(", "containsAllStatusMatchers", "(", "entry", ")", ")", "{", "continue", ";", "}", "final", "String", "waiterName", "=", "entry", ".", "getKey", "(", ")", ";", "final", "WaiterDefinitionModel", "waiterModel", "=", "entry", ".", "getValue", "(", ")", ";", "Map", "<", "String", ",", "Object", ">", "dataModel", "=", "ImmutableMapParameter", ".", "of", "(", "\"fileHeader\"", ",", "model", ".", "getFileHeader", "(", ")", ",", "\"waiter\"", ",", "waiterModel", ",", "\"operation\"", ",", "model", ".", "getOperation", "(", "waiterModel", ".", "getOperationName", "(", ")", ")", ",", "\"metadata\"", ",", "model", ".", "getMetadata", "(", ")", ")", ";", "generatorTasks", ".", "add", "(", "new", "FreemarkerGeneratorTask", "(", "waiterClassDir", ",", "waiterName", ",", "freemarker", ".", "getWaiterAcceptorTemplate", "(", ")", ",", "dataModel", ")", ")", ";", "}", "return", "generatorTasks", ";", "}" ]
Constructs the data model and submits tasks for every generating Acceptor for each waiter definition in the intermediate model
[ "Constructs", "the", "data", "model", "and", "submits", "tasks", "for", "every", "generating", "Acceptor", "for", "each", "waiter", "definition", "in", "the", "intermediate", "model" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/tasks/WaitersGeneratorTasks.java#L89-L112
20,767
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/tasks/WaitersGeneratorTasks.java
WaitersGeneratorTasks.createWaiterClassTasks
private List<GeneratorTask> createWaiterClassTasks() throws IOException { Metadata metadata = model.getMetadata(); final String className = metadata.getSyncInterface() + "Waiters"; Map<String, Object> dataModel = ImmutableMapParameter.of( "fileHeader", model.getFileHeader(), "className", className, "waiters", model.getWaiters(), "operation", model.getOperations(), "metadata", metadata); return Collections.singletonList(new FreemarkerGeneratorTask(waiterClassDir, className, freemarker.getWaiterTemplate(), dataModel)); }
java
private List<GeneratorTask> createWaiterClassTasks() throws IOException { Metadata metadata = model.getMetadata(); final String className = metadata.getSyncInterface() + "Waiters"; Map<String, Object> dataModel = ImmutableMapParameter.of( "fileHeader", model.getFileHeader(), "className", className, "waiters", model.getWaiters(), "operation", model.getOperations(), "metadata", metadata); return Collections.singletonList(new FreemarkerGeneratorTask(waiterClassDir, className, freemarker.getWaiterTemplate(), dataModel)); }
[ "private", "List", "<", "GeneratorTask", ">", "createWaiterClassTasks", "(", ")", "throws", "IOException", "{", "Metadata", "metadata", "=", "model", ".", "getMetadata", "(", ")", ";", "final", "String", "className", "=", "metadata", ".", "getSyncInterface", "(", ")", "+", "\"Waiters\"", ";", "Map", "<", "String", ",", "Object", ">", "dataModel", "=", "ImmutableMapParameter", ".", "of", "(", "\"fileHeader\"", ",", "model", ".", "getFileHeader", "(", ")", ",", "\"className\"", ",", "className", ",", "\"waiters\"", ",", "model", ".", "getWaiters", "(", ")", ",", "\"operation\"", ",", "model", ".", "getOperations", "(", ")", ",", "\"metadata\"", ",", "metadata", ")", ";", "return", "Collections", ".", "singletonList", "(", "new", "FreemarkerGeneratorTask", "(", "waiterClassDir", ",", "className", ",", "freemarker", ".", "getWaiterTemplate", "(", ")", ",", "dataModel", ")", ")", ";", "}" ]
Constructs the data model and submits tasks for every generating synchronous waiter and asynchronous waiter for each waiter in the intermediate model.
[ "Constructs", "the", "data", "model", "and", "submits", "tasks", "for", "every", "generating", "synchronous", "waiter", "and", "asynchronous", "waiter", "for", "each", "waiter", "in", "the", "intermediate", "model", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/emitters/tasks/WaitersGeneratorTasks.java#L123-L137
20,768
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ParenthesizedCondition.java
ParenthesizedCondition.getInstance
public static ParenthesizedCondition getInstance(Condition condition) { return condition instanceof ParenthesizedCondition ? (ParenthesizedCondition) condition : new ParenthesizedCondition(condition); }
java
public static ParenthesizedCondition getInstance(Condition condition) { return condition instanceof ParenthesizedCondition ? (ParenthesizedCondition) condition : new ParenthesizedCondition(condition); }
[ "public", "static", "ParenthesizedCondition", "getInstance", "(", "Condition", "condition", ")", "{", "return", "condition", "instanceof", "ParenthesizedCondition", "?", "(", "ParenthesizedCondition", ")", "condition", ":", "new", "ParenthesizedCondition", "(", "condition", ")", ";", "}" ]
Returns a parenthesized condition for the given condition if the given condition is not already a parenthesized condition; or the original condition otherwise.
[ "Returns", "a", "parenthesized", "condition", "for", "the", "given", "condition", "if", "the", "given", "condition", "is", "not", "already", "a", "parenthesized", "condition", ";", "or", "the", "original", "condition", "otherwise", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ParenthesizedCondition.java#L34-L37
20,769
aws/aws-sdk-java
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ListQueuesResult.java
ListQueuesResult.setQueues
public void setQueues(java.util.Collection<Queue> queues) { if (queues == null) { this.queues = null; return; } this.queues = new java.util.ArrayList<Queue>(queues); }
java
public void setQueues(java.util.Collection<Queue> queues) { if (queues == null) { this.queues = null; return; } this.queues = new java.util.ArrayList<Queue>(queues); }
[ "public", "void", "setQueues", "(", "java", ".", "util", ".", "Collection", "<", "Queue", ">", "queues", ")", "{", "if", "(", "queues", "==", "null", ")", "{", "this", ".", "queues", "=", "null", ";", "return", ";", "}", "this", ".", "queues", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "Queue", ">", "(", "queues", ")", ";", "}" ]
List of queues. @param queues List of queues.
[ "List", "of", "queues", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/ListQueuesResult.java#L82-L89
20,770
aws/aws-sdk-java
aws-java-sdk-sts/src/main/java/com/amazonaws/auth/WebIdentityFederationSessionCredentialsProvider.java
WebIdentityFederationSessionCredentialsProvider.needsNewSession
private boolean needsNewSession() { if (sessionCredentials == null) return true; long timeRemaining = sessionCredentialsExpiration.getTime() - System.currentTimeMillis(); return timeRemaining < (this.refreshThreshold * 1000); }
java
private boolean needsNewSession() { if (sessionCredentials == null) return true; long timeRemaining = sessionCredentialsExpiration.getTime() - System.currentTimeMillis(); return timeRemaining < (this.refreshThreshold * 1000); }
[ "private", "boolean", "needsNewSession", "(", ")", "{", "if", "(", "sessionCredentials", "==", "null", ")", "return", "true", ";", "long", "timeRemaining", "=", "sessionCredentialsExpiration", ".", "getTime", "(", ")", "-", "System", ".", "currentTimeMillis", "(", ")", ";", "return", "timeRemaining", "<", "(", "this", ".", "refreshThreshold", "*", "1000", ")", ";", "}" ]
Returns true if a new STS session needs to be started. A new STS session is needed when no session has been started yet, or if the last session is within the configured refresh threshold. @return True if a new STS session needs to be started.
[ "Returns", "true", "if", "a", "new", "STS", "session", "needs", "to", "be", "started", ".", "A", "new", "STS", "session", "is", "needed", "when", "no", "session", "has", "been", "started", "yet", "or", "if", "the", "last", "session", "is", "within", "the", "configured", "refresh", "threshold", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-sts/src/main/java/com/amazonaws/auth/WebIdentityFederationSessionCredentialsProvider.java#L269-L274
20,771
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/CampaignsResponse.java
CampaignsResponse.setItem
public void setItem(java.util.Collection<CampaignResponse> item) { if (item == null) { this.item = null; return; } this.item = new java.util.ArrayList<CampaignResponse>(item); }
java
public void setItem(java.util.Collection<CampaignResponse> item) { if (item == null) { this.item = null; return; } this.item = new java.util.ArrayList<CampaignResponse>(item); }
[ "public", "void", "setItem", "(", "java", ".", "util", ".", "Collection", "<", "CampaignResponse", ">", "item", ")", "{", "if", "(", "item", "==", "null", ")", "{", "this", ".", "item", "=", "null", ";", "return", ";", "}", "this", ".", "item", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "CampaignResponse", ">", "(", "item", ")", ";", "}" ]
A list of campaigns. @param item A list of campaigns.
[ "A", "list", "of", "campaigns", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/CampaignsResponse.java#L51-L58
20,772
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/UploadMonitor.java
UploadMonitor.create
public static UploadMonitor create( TransferManager manager, UploadImpl transfer, ExecutorService threadPool, UploadCallable multipartUploadCallable, PutObjectRequest putObjectRequest, ProgressListenerChain progressListenerChain) { UploadMonitor uploadMonitor = new UploadMonitor(manager, transfer, threadPool, multipartUploadCallable, putObjectRequest, progressListenerChain); Future<UploadResult> thisFuture = threadPool.submit(uploadMonitor); // Use an atomic compareAndSet to prevent a possible race between the // setting of the UploadMonitor's futureReference, and setting the // CompleteMultipartUpload's futureReference within the call() method. // We only want to set the futureReference to UploadMonitor's futureReference if the // current value is null, otherwise the futureReference that's set is // CompleteMultipartUpload's which is ultimately what we want. uploadMonitor.futureReference.compareAndSet(null, thisFuture); return uploadMonitor; }
java
public static UploadMonitor create( TransferManager manager, UploadImpl transfer, ExecutorService threadPool, UploadCallable multipartUploadCallable, PutObjectRequest putObjectRequest, ProgressListenerChain progressListenerChain) { UploadMonitor uploadMonitor = new UploadMonitor(manager, transfer, threadPool, multipartUploadCallable, putObjectRequest, progressListenerChain); Future<UploadResult> thisFuture = threadPool.submit(uploadMonitor); // Use an atomic compareAndSet to prevent a possible race between the // setting of the UploadMonitor's futureReference, and setting the // CompleteMultipartUpload's futureReference within the call() method. // We only want to set the futureReference to UploadMonitor's futureReference if the // current value is null, otherwise the futureReference that's set is // CompleteMultipartUpload's which is ultimately what we want. uploadMonitor.futureReference.compareAndSet(null, thisFuture); return uploadMonitor; }
[ "public", "static", "UploadMonitor", "create", "(", "TransferManager", "manager", ",", "UploadImpl", "transfer", ",", "ExecutorService", "threadPool", ",", "UploadCallable", "multipartUploadCallable", ",", "PutObjectRequest", "putObjectRequest", ",", "ProgressListenerChain", "progressListenerChain", ")", "{", "UploadMonitor", "uploadMonitor", "=", "new", "UploadMonitor", "(", "manager", ",", "transfer", ",", "threadPool", ",", "multipartUploadCallable", ",", "putObjectRequest", ",", "progressListenerChain", ")", ";", "Future", "<", "UploadResult", ">", "thisFuture", "=", "threadPool", ".", "submit", "(", "uploadMonitor", ")", ";", "// Use an atomic compareAndSet to prevent a possible race between the\r", "// setting of the UploadMonitor's futureReference, and setting the\r", "// CompleteMultipartUpload's futureReference within the call() method.\r", "// We only want to set the futureReference to UploadMonitor's futureReference if the\r", "// current value is null, otherwise the futureReference that's set is\r", "// CompleteMultipartUpload's which is ultimately what we want.\r", "uploadMonitor", ".", "futureReference", ".", "compareAndSet", "(", "null", ",", "thisFuture", ")", ";", "return", "uploadMonitor", ";", "}" ]
Constructs a new upload watcher and then immediately submits it to the thread pool. @param manager The {@link TransferManager} that owns this upload. @param transfer The transfer being processed. @param threadPool The {@link ExecutorService} to which we should submit new tasks. @param multipartUploadCallable The callable responsible for processing the upload asynchronously @param putObjectRequest The original putObject request @param progressListenerChain A chain of listeners that wish to be notified of upload progress
[ "Constructs", "a", "new", "upload", "watcher", "and", "then", "immediately", "submits", "it", "to", "the", "thread", "pool", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/UploadMonitor.java#L106-L126
20,773
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/UploadMonitor.java
UploadMonitor.pause
PauseResult<PersistableUpload> pause(boolean forceCancel) { PersistableUpload persistableUpload = multipartUploadCallable .getPersistableUpload(); if (persistableUpload == null) { PauseStatus pauseStatus = TransferManagerUtils .determinePauseStatus(transfer.getState(), forceCancel); if (forceCancel) { cancelFutures(); multipartUploadCallable.performAbortMultipartUpload(); } return new PauseResult<PersistableUpload>(pauseStatus); } cancelFutures(); return new PauseResult<PersistableUpload>(PauseStatus.SUCCESS, persistableUpload); }
java
PauseResult<PersistableUpload> pause(boolean forceCancel) { PersistableUpload persistableUpload = multipartUploadCallable .getPersistableUpload(); if (persistableUpload == null) { PauseStatus pauseStatus = TransferManagerUtils .determinePauseStatus(transfer.getState(), forceCancel); if (forceCancel) { cancelFutures(); multipartUploadCallable.performAbortMultipartUpload(); } return new PauseResult<PersistableUpload>(pauseStatus); } cancelFutures(); return new PauseResult<PersistableUpload>(PauseStatus.SUCCESS, persistableUpload); }
[ "PauseResult", "<", "PersistableUpload", ">", "pause", "(", "boolean", "forceCancel", ")", "{", "PersistableUpload", "persistableUpload", "=", "multipartUploadCallable", ".", "getPersistableUpload", "(", ")", ";", "if", "(", "persistableUpload", "==", "null", ")", "{", "PauseStatus", "pauseStatus", "=", "TransferManagerUtils", ".", "determinePauseStatus", "(", "transfer", ".", "getState", "(", ")", ",", "forceCancel", ")", ";", "if", "(", "forceCancel", ")", "{", "cancelFutures", "(", ")", ";", "multipartUploadCallable", ".", "performAbortMultipartUpload", "(", ")", ";", "}", "return", "new", "PauseResult", "<", "PersistableUpload", ">", "(", "pauseStatus", ")", ";", "}", "cancelFutures", "(", ")", ";", "return", "new", "PauseResult", "<", "PersistableUpload", ">", "(", "PauseStatus", ".", "SUCCESS", ",", "persistableUpload", ")", ";", "}" ]
Cancels the futures in the following cases - If the user has requested for forcefully aborting the transfers. - If the upload is a multi part parellel upload. - If the upload operation hasn't started. Cancels all the in flight transfers of the upload if applicable. Returns the multi-part upload Id in case of the parallel multi-part uploads. Returns null otherwise.
[ "Cancels", "the", "futures", "in", "the", "following", "cases", "-", "If", "the", "user", "has", "requested", "for", "forcefully", "aborting", "the", "transfers", ".", "-", "If", "the", "upload", "is", "a", "multi", "part", "parellel", "upload", ".", "-", "If", "the", "upload", "operation", "hasn", "t", "started", ".", "Cancels", "all", "the", "in", "flight", "transfers", "of", "the", "upload", "if", "applicable", ".", "Returns", "the", "multi", "-", "part", "upload", "Id", "in", "case", "of", "the", "parallel", "multi", "-", "part", "uploads", ".", "Returns", "null", "otherwise", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/UploadMonitor.java#L196-L212
20,774
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/UploadMonitor.java
UploadMonitor.cancelFutures
private void cancelFutures() { cancelFuture(); for (Future<PartETag> f : futures) { f.cancel(true); } multipartUploadCallable.getFutures().clear(); futures.clear(); }
java
private void cancelFutures() { cancelFuture(); for (Future<PartETag> f : futures) { f.cancel(true); } multipartUploadCallable.getFutures().clear(); futures.clear(); }
[ "private", "void", "cancelFutures", "(", ")", "{", "cancelFuture", "(", ")", ";", "for", "(", "Future", "<", "PartETag", ">", "f", ":", "futures", ")", "{", "f", ".", "cancel", "(", "true", ")", ";", "}", "multipartUploadCallable", ".", "getFutures", "(", ")", ".", "clear", "(", ")", ";", "futures", ".", "clear", "(", ")", ";", "}" ]
Cancels the inflight transfers if they are not completed.
[ "Cancels", "the", "inflight", "transfers", "if", "they", "are", "not", "completed", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/transfer/internal/UploadMonitor.java#L217-L224
20,775
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddShapes.java
AddShapes.getDefaultTimeFormatIfNull
protected String getDefaultTimeFormatIfNull(Member c2jMemberDefinition, Map<String, Shape> allC2jShapes, String protocolString, Shape parentShape) { String timestampFormat = c2jMemberDefinition.getTimestampFormat(); if (!StringUtils.isNullOrEmpty(timestampFormat)) { failIfInCollection(c2jMemberDefinition, parentShape); return TimestampFormat.fromValue(timestampFormat).getFormat(); } String shapeName = c2jMemberDefinition.getShape(); Shape shape = allC2jShapes.get(shapeName); if (!StringUtils.isNullOrEmpty(shape.getTimestampFormat())) { failIfInCollection(c2jMemberDefinition, parentShape); return TimestampFormat.fromValue(shape.getTimestampFormat()).getFormat(); } String location = c2jMemberDefinition.getLocation(); if (Location.HEADER.toString().equals(location)) { return defaultHeaderTimestamp(); } if (Location.QUERY_STRING.toString().equals(location)) { return TimestampFormat.ISO_8601.getFormat(); } Protocol protocol = Protocol.fromValue(protocolString); switch (protocol) { case REST_XML: case QUERY: case EC2: case API_GATEWAY: return TimestampFormat.ISO_8601.getFormat(); case ION: case REST_JSON: case AWS_JSON: return TimestampFormat.UNIX_TIMESTAMP.getFormat(); case CBOR: return TimestampFormat.UNIX_TIMESTAMP_IN_MILLIS.getFormat(); } throw new RuntimeException("Cannot determine timestamp format for protocol " + protocol); }
java
protected String getDefaultTimeFormatIfNull(Member c2jMemberDefinition, Map<String, Shape> allC2jShapes, String protocolString, Shape parentShape) { String timestampFormat = c2jMemberDefinition.getTimestampFormat(); if (!StringUtils.isNullOrEmpty(timestampFormat)) { failIfInCollection(c2jMemberDefinition, parentShape); return TimestampFormat.fromValue(timestampFormat).getFormat(); } String shapeName = c2jMemberDefinition.getShape(); Shape shape = allC2jShapes.get(shapeName); if (!StringUtils.isNullOrEmpty(shape.getTimestampFormat())) { failIfInCollection(c2jMemberDefinition, parentShape); return TimestampFormat.fromValue(shape.getTimestampFormat()).getFormat(); } String location = c2jMemberDefinition.getLocation(); if (Location.HEADER.toString().equals(location)) { return defaultHeaderTimestamp(); } if (Location.QUERY_STRING.toString().equals(location)) { return TimestampFormat.ISO_8601.getFormat(); } Protocol protocol = Protocol.fromValue(protocolString); switch (protocol) { case REST_XML: case QUERY: case EC2: case API_GATEWAY: return TimestampFormat.ISO_8601.getFormat(); case ION: case REST_JSON: case AWS_JSON: return TimestampFormat.UNIX_TIMESTAMP.getFormat(); case CBOR: return TimestampFormat.UNIX_TIMESTAMP_IN_MILLIS.getFormat(); } throw new RuntimeException("Cannot determine timestamp format for protocol " + protocol); }
[ "protected", "String", "getDefaultTimeFormatIfNull", "(", "Member", "c2jMemberDefinition", ",", "Map", "<", "String", ",", "Shape", ">", "allC2jShapes", ",", "String", "protocolString", ",", "Shape", "parentShape", ")", "{", "String", "timestampFormat", "=", "c2jMemberDefinition", ".", "getTimestampFormat", "(", ")", ";", "if", "(", "!", "StringUtils", ".", "isNullOrEmpty", "(", "timestampFormat", ")", ")", "{", "failIfInCollection", "(", "c2jMemberDefinition", ",", "parentShape", ")", ";", "return", "TimestampFormat", ".", "fromValue", "(", "timestampFormat", ")", ".", "getFormat", "(", ")", ";", "}", "String", "shapeName", "=", "c2jMemberDefinition", ".", "getShape", "(", ")", ";", "Shape", "shape", "=", "allC2jShapes", ".", "get", "(", "shapeName", ")", ";", "if", "(", "!", "StringUtils", ".", "isNullOrEmpty", "(", "shape", ".", "getTimestampFormat", "(", ")", ")", ")", "{", "failIfInCollection", "(", "c2jMemberDefinition", ",", "parentShape", ")", ";", "return", "TimestampFormat", ".", "fromValue", "(", "shape", ".", "getTimestampFormat", "(", ")", ")", ".", "getFormat", "(", ")", ";", "}", "String", "location", "=", "c2jMemberDefinition", ".", "getLocation", "(", ")", ";", "if", "(", "Location", ".", "HEADER", ".", "toString", "(", ")", ".", "equals", "(", "location", ")", ")", "{", "return", "defaultHeaderTimestamp", "(", ")", ";", "}", "if", "(", "Location", ".", "QUERY_STRING", ".", "toString", "(", ")", ".", "equals", "(", "location", ")", ")", "{", "return", "TimestampFormat", ".", "ISO_8601", ".", "getFormat", "(", ")", ";", "}", "Protocol", "protocol", "=", "Protocol", ".", "fromValue", "(", "protocolString", ")", ";", "switch", "(", "protocol", ")", "{", "case", "REST_XML", ":", "case", "QUERY", ":", "case", "EC2", ":", "case", "API_GATEWAY", ":", "return", "TimestampFormat", ".", "ISO_8601", ".", "getFormat", "(", ")", ";", "case", "ION", ":", "case", "REST_JSON", ":", "case", "AWS_JSON", ":", "return", "TimestampFormat", ".", "UNIX_TIMESTAMP", ".", "getFormat", "(", ")", ";", "case", "CBOR", ":", "return", "TimestampFormat", ".", "UNIX_TIMESTAMP_IN_MILLIS", ".", "getFormat", "(", ")", ";", "}", "throw", "new", "RuntimeException", "(", "\"Cannot determine timestamp format for protocol \"", "+", "protocol", ")", ";", "}" ]
Get default timestamp format if the provided timestamp format is null or empty. - All timestamp values serialized in HTTP headers are formatted using rfc822 by default. - All timestamp values serialized in query strings are formatted using iso8601 by default. - The default timestamp formats per protocol for structured payload shapes are as follows: rest-json: unixTimestamp jsonrpc: unixTimestamp rest-xml: iso8601 query: iso8601 ec2: iso8601
[ "Get", "default", "timestamp", "format", "if", "the", "provided", "timestamp", "format", "is", "null", "or", "empty", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddShapes.java#L247-L289
20,776
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddShapes.java
AddShapes.findRequestUri
private String findRequestUri(Shape parentShape, Map<String, Shape> allC2jShapes) { return builder.getService().getOperations().values().stream() .filter(o -> o.getInput() != null) .filter(o -> allC2jShapes.get(o.getInput().getShape()).equals(parentShape)) .map(o -> o.getHttp().getRequestUri()) .findFirst().orElseThrow(() -> new RuntimeException("Could not find request URI for input shape")); }
java
private String findRequestUri(Shape parentShape, Map<String, Shape> allC2jShapes) { return builder.getService().getOperations().values().stream() .filter(o -> o.getInput() != null) .filter(o -> allC2jShapes.get(o.getInput().getShape()).equals(parentShape)) .map(o -> o.getHttp().getRequestUri()) .findFirst().orElseThrow(() -> new RuntimeException("Could not find request URI for input shape")); }
[ "private", "String", "findRequestUri", "(", "Shape", "parentShape", ",", "Map", "<", "String", ",", "Shape", ">", "allC2jShapes", ")", "{", "return", "builder", ".", "getService", "(", ")", ".", "getOperations", "(", ")", ".", "values", "(", ")", ".", "stream", "(", ")", ".", "filter", "(", "o", "->", "o", ".", "getInput", "(", ")", "!=", "null", ")", ".", "filter", "(", "o", "->", "allC2jShapes", ".", "get", "(", "o", ".", "getInput", "(", ")", ".", "getShape", "(", ")", ")", ".", "equals", "(", "parentShape", ")", ")", ".", "map", "(", "o", "->", "o", ".", "getHttp", "(", ")", ".", "getRequestUri", "(", ")", ")", ".", "findFirst", "(", ")", ".", "orElseThrow", "(", "(", ")", "->", "new", "RuntimeException", "(", "\"Could not find request URI for input shape\"", ")", ")", ";", "}" ]
Given an input shape, finds the Request URI for the operation that input is referenced from. @param parentShape Input shape to find operation's request URI for. @param allC2jShapes All shapes in the service model. @return Request URI for operation. @throws RuntimeException If operation can't be found.
[ "Given", "an", "input", "shape", "finds", "the", "Request", "URI", "for", "the", "operation", "that", "input", "is", "referenced", "from", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/AddShapes.java#L352-L358
20,777
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/transform/JsonUnmarshallerContext.java
JsonUnmarshallerContext.getUnmarshaller
public <T> Unmarshaller<T, JsonUnmarshallerContext> getUnmarshaller(Class<T> type, UnmarshallerType unmarshallerType) { return null; }
java
public <T> Unmarshaller<T, JsonUnmarshallerContext> getUnmarshaller(Class<T> type, UnmarshallerType unmarshallerType) { return null; }
[ "public", "<", "T", ">", "Unmarshaller", "<", "T", ",", "JsonUnmarshallerContext", ">", "getUnmarshaller", "(", "Class", "<", "T", ">", "type", ",", "UnmarshallerType", "unmarshallerType", ")", "{", "return", "null", ";", "}" ]
Returns the JsonUnmarshaller for requested custom unmarshaller type. Returns null by default.
[ "Returns", "the", "JsonUnmarshaller", "for", "requested", "custom", "unmarshaller", "type", ".", "Returns", "null", "by", "default", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/transform/JsonUnmarshallerContext.java#L228-L230
20,778
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.createCampaign
@Override public CreateCampaignResult createCampaign(CreateCampaignRequest request) { request = beforeClientExecution(request); return executeCreateCampaign(request); }
java
@Override public CreateCampaignResult createCampaign(CreateCampaignRequest request) { request = beforeClientExecution(request); return executeCreateCampaign(request); }
[ "@", "Override", "public", "CreateCampaignResult", "createCampaign", "(", "CreateCampaignRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateCampaign", "(", "request", ")", ";", "}" ]
Creates or updates a campaign. @param createCampaignRequest @return Result of the CreateCampaign operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.CreateCampaign @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateCampaign" target="_top">AWS API Documentation</a>
[ "Creates", "or", "updates", "a", "campaign", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L380-L384
20,779
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.createExportJob
@Override public CreateExportJobResult createExportJob(CreateExportJobRequest request) { request = beforeClientExecution(request); return executeCreateExportJob(request); }
java
@Override public CreateExportJobResult createExportJob(CreateExportJobRequest request) { request = beforeClientExecution(request); return executeCreateExportJob(request); }
[ "@", "Override", "public", "CreateExportJobResult", "createExportJob", "(", "CreateExportJobRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateExportJob", "(", "request", ")", ";", "}" ]
Creates an export job. @param createExportJobRequest @return Result of the CreateExportJob operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.CreateExportJob @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateExportJob" target="_top">AWS API Documentation</a>
[ "Creates", "an", "export", "job", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L442-L446
20,780
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.createImportJob
@Override public CreateImportJobResult createImportJob(CreateImportJobRequest request) { request = beforeClientExecution(request); return executeCreateImportJob(request); }
java
@Override public CreateImportJobResult createImportJob(CreateImportJobRequest request) { request = beforeClientExecution(request); return executeCreateImportJob(request); }
[ "@", "Override", "public", "CreateImportJobResult", "createImportJob", "(", "CreateImportJobRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateImportJob", "(", "request", ")", ";", "}" ]
Creates or updates an import job. @param createImportJobRequest @return Result of the CreateImportJob operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.CreateImportJob @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateImportJob" target="_top">AWS API Documentation</a>
[ "Creates", "or", "updates", "an", "import", "job", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L504-L508
20,781
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.createSegment
@Override public CreateSegmentResult createSegment(CreateSegmentRequest request) { request = beforeClientExecution(request); return executeCreateSegment(request); }
java
@Override public CreateSegmentResult createSegment(CreateSegmentRequest request) { request = beforeClientExecution(request); return executeCreateSegment(request); }
[ "@", "Override", "public", "CreateSegmentResult", "createSegment", "(", "CreateSegmentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateSegment", "(", "request", ")", ";", "}" ]
Used to create or update a segment. @param createSegmentRequest @return Result of the CreateSegment operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.CreateSegment @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateSegment" target="_top">AWS API Documentation</a>
[ "Used", "to", "create", "or", "update", "a", "segment", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L566-L570
20,782
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteAdmChannel
@Override public DeleteAdmChannelResult deleteAdmChannel(DeleteAdmChannelRequest request) { request = beforeClientExecution(request); return executeDeleteAdmChannel(request); }
java
@Override public DeleteAdmChannelResult deleteAdmChannel(DeleteAdmChannelRequest request) { request = beforeClientExecution(request); return executeDeleteAdmChannel(request); }
[ "@", "Override", "public", "DeleteAdmChannelResult", "deleteAdmChannel", "(", "DeleteAdmChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteAdmChannel", "(", "request", ")", ";", "}" ]
Delete an ADM channel. @param deleteAdmChannelRequest @return Result of the DeleteAdmChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteAdmChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteAdmChannel" target="_top">AWS API Documentation</a>
[ "Delete", "an", "ADM", "channel", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L628-L632
20,783
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteApnsChannel
@Override public DeleteApnsChannelResult deleteApnsChannel(DeleteApnsChannelRequest request) { request = beforeClientExecution(request); return executeDeleteApnsChannel(request); }
java
@Override public DeleteApnsChannelResult deleteApnsChannel(DeleteApnsChannelRequest request) { request = beforeClientExecution(request); return executeDeleteApnsChannel(request); }
[ "@", "Override", "public", "DeleteApnsChannelResult", "deleteApnsChannel", "(", "DeleteApnsChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteApnsChannel", "(", "request", ")", ";", "}" ]
Deletes the APNs channel for an app. @param deleteApnsChannelRequest @return Result of the DeleteApnsChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteApnsChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsChannel" target="_top">AWS API Documentation</a>
[ "Deletes", "the", "APNs", "channel", "for", "an", "app", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L690-L694
20,784
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteApnsSandboxChannel
@Override public DeleteApnsSandboxChannelResult deleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest request) { request = beforeClientExecution(request); return executeDeleteApnsSandboxChannel(request); }
java
@Override public DeleteApnsSandboxChannelResult deleteApnsSandboxChannel(DeleteApnsSandboxChannelRequest request) { request = beforeClientExecution(request); return executeDeleteApnsSandboxChannel(request); }
[ "@", "Override", "public", "DeleteApnsSandboxChannelResult", "deleteApnsSandboxChannel", "(", "DeleteApnsSandboxChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteApnsSandboxChannel", "(", "request", ")", ";", "}" ]
Delete an APNS sandbox channel. @param deleteApnsSandboxChannelRequest @return Result of the DeleteApnsSandboxChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteApnsSandboxChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsSandboxChannel" target="_top">AWS API Documentation</a>
[ "Delete", "an", "APNS", "sandbox", "channel", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L752-L756
20,785
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteApnsVoipChannel
@Override public DeleteApnsVoipChannelResult deleteApnsVoipChannel(DeleteApnsVoipChannelRequest request) { request = beforeClientExecution(request); return executeDeleteApnsVoipChannel(request); }
java
@Override public DeleteApnsVoipChannelResult deleteApnsVoipChannel(DeleteApnsVoipChannelRequest request) { request = beforeClientExecution(request); return executeDeleteApnsVoipChannel(request); }
[ "@", "Override", "public", "DeleteApnsVoipChannelResult", "deleteApnsVoipChannel", "(", "DeleteApnsVoipChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteApnsVoipChannel", "(", "request", ")", ";", "}" ]
Delete an APNS VoIP channel @param deleteApnsVoipChannelRequest @return Result of the DeleteApnsVoipChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteApnsVoipChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipChannel" target="_top">AWS API Documentation</a>
[ "Delete", "an", "APNS", "VoIP", "channel" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L816-L820
20,786
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteApnsVoipSandboxChannel
@Override public DeleteApnsVoipSandboxChannelResult deleteApnsVoipSandboxChannel(DeleteApnsVoipSandboxChannelRequest request) { request = beforeClientExecution(request); return executeDeleteApnsVoipSandboxChannel(request); }
java
@Override public DeleteApnsVoipSandboxChannelResult deleteApnsVoipSandboxChannel(DeleteApnsVoipSandboxChannelRequest request) { request = beforeClientExecution(request); return executeDeleteApnsVoipSandboxChannel(request); }
[ "@", "Override", "public", "DeleteApnsVoipSandboxChannelResult", "deleteApnsVoipSandboxChannel", "(", "DeleteApnsVoipSandboxChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteApnsVoipSandboxChannel", "(", "request", ")", ";", "}" ]
Delete an APNS VoIP sandbox channel @param deleteApnsVoipSandboxChannelRequest @return Result of the DeleteApnsVoipSandboxChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteApnsVoipSandboxChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipSandboxChannel" target="_top">AWS API Documentation</a>
[ "Delete", "an", "APNS", "VoIP", "sandbox", "channel" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L879-L883
20,787
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteBaiduChannel
@Override public DeleteBaiduChannelResult deleteBaiduChannel(DeleteBaiduChannelRequest request) { request = beforeClientExecution(request); return executeDeleteBaiduChannel(request); }
java
@Override public DeleteBaiduChannelResult deleteBaiduChannel(DeleteBaiduChannelRequest request) { request = beforeClientExecution(request); return executeDeleteBaiduChannel(request); }
[ "@", "Override", "public", "DeleteBaiduChannelResult", "deleteBaiduChannel", "(", "DeleteBaiduChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteBaiduChannel", "(", "request", ")", ";", "}" ]
Delete a BAIDU GCM channel @param deleteBaiduChannelRequest @return Result of the DeleteBaiduChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteBaiduChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteBaiduChannel" target="_top">AWS API Documentation</a>
[ "Delete", "a", "BAIDU", "GCM", "channel" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1005-L1009
20,788
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteCampaign
@Override public DeleteCampaignResult deleteCampaign(DeleteCampaignRequest request) { request = beforeClientExecution(request); return executeDeleteCampaign(request); }
java
@Override public DeleteCampaignResult deleteCampaign(DeleteCampaignRequest request) { request = beforeClientExecution(request); return executeDeleteCampaign(request); }
[ "@", "Override", "public", "DeleteCampaignResult", "deleteCampaign", "(", "DeleteCampaignRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteCampaign", "(", "request", ")", ";", "}" ]
Deletes a campaign. @param deleteCampaignRequest @return Result of the DeleteCampaign operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteCampaign @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteCampaign" target="_top">AWS API Documentation</a>
[ "Deletes", "a", "campaign", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1067-L1071
20,789
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteEmailChannel
@Override public DeleteEmailChannelResult deleteEmailChannel(DeleteEmailChannelRequest request) { request = beforeClientExecution(request); return executeDeleteEmailChannel(request); }
java
@Override public DeleteEmailChannelResult deleteEmailChannel(DeleteEmailChannelRequest request) { request = beforeClientExecution(request); return executeDeleteEmailChannel(request); }
[ "@", "Override", "public", "DeleteEmailChannelResult", "deleteEmailChannel", "(", "DeleteEmailChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteEmailChannel", "(", "request", ")", ";", "}" ]
Delete an email channel. @param deleteEmailChannelRequest @return Result of the DeleteEmailChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteEmailChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEmailChannel" target="_top">AWS API Documentation</a>
[ "Delete", "an", "email", "channel", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1129-L1133
20,790
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteEventStream
@Override public DeleteEventStreamResult deleteEventStream(DeleteEventStreamRequest request) { request = beforeClientExecution(request); return executeDeleteEventStream(request); }
java
@Override public DeleteEventStreamResult deleteEventStream(DeleteEventStreamRequest request) { request = beforeClientExecution(request); return executeDeleteEventStream(request); }
[ "@", "Override", "public", "DeleteEventStreamResult", "deleteEventStream", "(", "DeleteEventStreamRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteEventStream", "(", "request", ")", ";", "}" ]
Deletes the event stream for an app. @param deleteEventStreamRequest @return Result of the DeleteEventStream operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteEventStream @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEventStream" target="_top">AWS API Documentation</a>
[ "Deletes", "the", "event", "stream", "for", "an", "app", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1253-L1257
20,791
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteGcmChannel
@Override public DeleteGcmChannelResult deleteGcmChannel(DeleteGcmChannelRequest request) { request = beforeClientExecution(request); return executeDeleteGcmChannel(request); }
java
@Override public DeleteGcmChannelResult deleteGcmChannel(DeleteGcmChannelRequest request) { request = beforeClientExecution(request); return executeDeleteGcmChannel(request); }
[ "@", "Override", "public", "DeleteGcmChannelResult", "deleteGcmChannel", "(", "DeleteGcmChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteGcmChannel", "(", "request", ")", ";", "}" ]
Deletes the GCM channel for an app. @param deleteGcmChannelRequest @return Result of the DeleteGcmChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteGcmChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteGcmChannel" target="_top">AWS API Documentation</a>
[ "Deletes", "the", "GCM", "channel", "for", "an", "app", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1315-L1319
20,792
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteSegment
@Override public DeleteSegmentResult deleteSegment(DeleteSegmentRequest request) { request = beforeClientExecution(request); return executeDeleteSegment(request); }
java
@Override public DeleteSegmentResult deleteSegment(DeleteSegmentRequest request) { request = beforeClientExecution(request); return executeDeleteSegment(request); }
[ "@", "Override", "public", "DeleteSegmentResult", "deleteSegment", "(", "DeleteSegmentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteSegment", "(", "request", ")", ";", "}" ]
Deletes a segment. @param deleteSegmentRequest @return Result of the DeleteSegment operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteSegment @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSegment" target="_top">AWS API Documentation</a>
[ "Deletes", "a", "segment", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1377-L1381
20,793
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteSmsChannel
@Override public DeleteSmsChannelResult deleteSmsChannel(DeleteSmsChannelRequest request) { request = beforeClientExecution(request); return executeDeleteSmsChannel(request); }
java
@Override public DeleteSmsChannelResult deleteSmsChannel(DeleteSmsChannelRequest request) { request = beforeClientExecution(request); return executeDeleteSmsChannel(request); }
[ "@", "Override", "public", "DeleteSmsChannelResult", "deleteSmsChannel", "(", "DeleteSmsChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteSmsChannel", "(", "request", ")", ";", "}" ]
Delete an SMS channel. @param deleteSmsChannelRequest @return Result of the DeleteSmsChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteSmsChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSmsChannel" target="_top">AWS API Documentation</a>
[ "Delete", "an", "SMS", "channel", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1439-L1443
20,794
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteUserEndpoints
@Override public DeleteUserEndpointsResult deleteUserEndpoints(DeleteUserEndpointsRequest request) { request = beforeClientExecution(request); return executeDeleteUserEndpoints(request); }
java
@Override public DeleteUserEndpointsResult deleteUserEndpoints(DeleteUserEndpointsRequest request) { request = beforeClientExecution(request); return executeDeleteUserEndpoints(request); }
[ "@", "Override", "public", "DeleteUserEndpointsResult", "deleteUserEndpoints", "(", "DeleteUserEndpointsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteUserEndpoints", "(", "request", ")", ";", "}" ]
Deletes endpoints that are associated with a User ID. @param deleteUserEndpointsRequest @return Result of the DeleteUserEndpoints operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteUserEndpoints @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteUserEndpoints" target="_top">AWS API Documentation</a>
[ "Deletes", "endpoints", "that", "are", "associated", "with", "a", "User", "ID", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1501-L1505
20,795
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.deleteVoiceChannel
@Override public DeleteVoiceChannelResult deleteVoiceChannel(DeleteVoiceChannelRequest request) { request = beforeClientExecution(request); return executeDeleteVoiceChannel(request); }
java
@Override public DeleteVoiceChannelResult deleteVoiceChannel(DeleteVoiceChannelRequest request) { request = beforeClientExecution(request); return executeDeleteVoiceChannel(request); }
[ "@", "Override", "public", "DeleteVoiceChannelResult", "deleteVoiceChannel", "(", "DeleteVoiceChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteVoiceChannel", "(", "request", ")", ";", "}" ]
Delete an Voice channel @param deleteVoiceChannelRequest @return Result of the DeleteVoiceChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.DeleteVoiceChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteVoiceChannel" target="_top">AWS API Documentation</a>
[ "Delete", "an", "Voice", "channel" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1563-L1567
20,796
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.getAdmChannel
@Override public GetAdmChannelResult getAdmChannel(GetAdmChannelRequest request) { request = beforeClientExecution(request); return executeGetAdmChannel(request); }
java
@Override public GetAdmChannelResult getAdmChannel(GetAdmChannelRequest request) { request = beforeClientExecution(request); return executeGetAdmChannel(request); }
[ "@", "Override", "public", "GetAdmChannelResult", "getAdmChannel", "(", "GetAdmChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetAdmChannel", "(", "request", ")", ";", "}" ]
Get an ADM channel. @param getAdmChannelRequest @return Result of the GetAdmChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.GetAdmChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAdmChannel" target="_top">AWS API Documentation</a>
[ "Get", "an", "ADM", "channel", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1625-L1629
20,797
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.getApnsChannel
@Override public GetApnsChannelResult getApnsChannel(GetApnsChannelRequest request) { request = beforeClientExecution(request); return executeGetApnsChannel(request); }
java
@Override public GetApnsChannelResult getApnsChannel(GetApnsChannelRequest request) { request = beforeClientExecution(request); return executeGetApnsChannel(request); }
[ "@", "Override", "public", "GetApnsChannelResult", "getApnsChannel", "(", "GetApnsChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetApnsChannel", "(", "request", ")", ";", "}" ]
Returns information about the APNs channel for an app. @param getApnsChannelRequest @return Result of the GetApnsChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.GetApnsChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsChannel" target="_top">AWS API Documentation</a>
[ "Returns", "information", "about", "the", "APNs", "channel", "for", "an", "app", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1687-L1691
20,798
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.getApnsSandboxChannel
@Override public GetApnsSandboxChannelResult getApnsSandboxChannel(GetApnsSandboxChannelRequest request) { request = beforeClientExecution(request); return executeGetApnsSandboxChannel(request); }
java
@Override public GetApnsSandboxChannelResult getApnsSandboxChannel(GetApnsSandboxChannelRequest request) { request = beforeClientExecution(request); return executeGetApnsSandboxChannel(request); }
[ "@", "Override", "public", "GetApnsSandboxChannelResult", "getApnsSandboxChannel", "(", "GetApnsSandboxChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetApnsSandboxChannel", "(", "request", ")", ";", "}" ]
Get an APNS sandbox channel. @param getApnsSandboxChannelRequest @return Result of the GetApnsSandboxChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.GetApnsSandboxChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsSandboxChannel" target="_top">AWS API Documentation</a>
[ "Get", "an", "APNS", "sandbox", "channel", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1749-L1753
20,799
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java
AmazonPinpointClient.getApnsVoipChannel
@Override public GetApnsVoipChannelResult getApnsVoipChannel(GetApnsVoipChannelRequest request) { request = beforeClientExecution(request); return executeGetApnsVoipChannel(request); }
java
@Override public GetApnsVoipChannelResult getApnsVoipChannel(GetApnsVoipChannelRequest request) { request = beforeClientExecution(request); return executeGetApnsVoipChannel(request); }
[ "@", "Override", "public", "GetApnsVoipChannelResult", "getApnsVoipChannel", "(", "GetApnsVoipChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetApnsVoipChannel", "(", "request", ")", ";", "}" ]
Get an APNS VoIP channel @param getApnsVoipChannelRequest @return Result of the GetApnsVoipChannel operation returned by the service. @throws BadRequestException 400 response @throws InternalServerErrorException 500 response @throws ForbiddenException 403 response @throws NotFoundException 404 response @throws MethodNotAllowedException 405 response @throws TooManyRequestsException 429 response @sample AmazonPinpoint.GetApnsVoipChannel @see <a href="http://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipChannel" target="_top">AWS API Documentation</a>
[ "Get", "an", "APNS", "VoIP", "channel" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/AmazonPinpointClient.java#L1812-L1816