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,400
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.getLoggerDefinition
@Override public GetLoggerDefinitionResult getLoggerDefinition(GetLoggerDefinitionRequest request) { request = beforeClientExecution(request); return executeGetLoggerDefinition(request); }
java
@Override public GetLoggerDefinitionResult getLoggerDefinition(GetLoggerDefinitionRequest request) { request = beforeClientExecution(request); return executeGetLoggerDefinition(request); }
[ "@", "Override", "public", "GetLoggerDefinitionResult", "getLoggerDefinition", "(", "GetLoggerDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetLoggerDefinition", "(", "request", ")", ";", "}" ]
Retrieves information about a logger definition. @param getLoggerDefinitionRequest @return Result of the GetLoggerDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.GetLoggerDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetLoggerDefinition" target="_top">AWS API Documentation</a>
[ "Retrieves", "information", "about", "a", "logger", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2697-L2701
20,401
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.getLoggerDefinitionVersion
@Override public GetLoggerDefinitionVersionResult getLoggerDefinitionVersion(GetLoggerDefinitionVersionRequest request) { request = beforeClientExecution(request); return executeGetLoggerDefinitionVersion(request); }
java
@Override public GetLoggerDefinitionVersionResult getLoggerDefinitionVersion(GetLoggerDefinitionVersionRequest request) { request = beforeClientExecution(request); return executeGetLoggerDefinitionVersion(request); }
[ "@", "Override", "public", "GetLoggerDefinitionVersionResult", "getLoggerDefinitionVersion", "(", "GetLoggerDefinitionVersionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetLoggerDefinitionVersion", "(", "request", ")", ";", "}" ]
Retrieves information about a logger definition version. @param getLoggerDefinitionVersionRequest @return Result of the GetLoggerDefinitionVersion operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.GetLoggerDefinitionVersion @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetLoggerDefinitionVersion" target="_top">AWS API Documentation</a>
[ "Retrieves", "information", "about", "a", "logger", "definition", "version", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2749-L2753
20,402
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.getResourceDefinition
@Override public GetResourceDefinitionResult getResourceDefinition(GetResourceDefinitionRequest request) { request = beforeClientExecution(request); return executeGetResourceDefinition(request); }
java
@Override public GetResourceDefinitionResult getResourceDefinition(GetResourceDefinitionRequest request) { request = beforeClientExecution(request); return executeGetResourceDefinition(request); }
[ "@", "Override", "public", "GetResourceDefinitionResult", "getResourceDefinition", "(", "GetResourceDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetResourceDefinition", "(", "request", ")", ";", "}" ]
Retrieves information about a resource definition, including its creation time and latest version. @param getResourceDefinitionRequest @return Result of the GetResourceDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.GetResourceDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinition" target="_top">AWS API Documentation</a>
[ "Retrieves", "information", "about", "a", "resource", "definition", "including", "its", "creation", "time", "and", "latest", "version", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2803-L2807
20,403
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.getResourceDefinitionVersion
@Override public GetResourceDefinitionVersionResult getResourceDefinitionVersion(GetResourceDefinitionVersionRequest request) { request = beforeClientExecution(request); return executeGetResourceDefinitionVersion(request); }
java
@Override public GetResourceDefinitionVersionResult getResourceDefinitionVersion(GetResourceDefinitionVersionRequest request) { request = beforeClientExecution(request); return executeGetResourceDefinitionVersion(request); }
[ "@", "Override", "public", "GetResourceDefinitionVersionResult", "getResourceDefinitionVersion", "(", "GetResourceDefinitionVersionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetResourceDefinitionVersion", "(", "request", ")", ";", "}" ]
Retrieves information about a resource definition version, including which resources are included in the version. @param getResourceDefinitionVersionRequest @return Result of the GetResourceDefinitionVersion operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.GetResourceDefinitionVersion @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetResourceDefinitionVersion" target="_top">AWS API Documentation</a>
[ "Retrieves", "information", "about", "a", "resource", "definition", "version", "including", "which", "resources", "are", "included", "in", "the", "version", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2856-L2860
20,404
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.getServiceRoleForAccount
@Override public GetServiceRoleForAccountResult getServiceRoleForAccount(GetServiceRoleForAccountRequest request) { request = beforeClientExecution(request); return executeGetServiceRoleForAccount(request); }
java
@Override public GetServiceRoleForAccountResult getServiceRoleForAccount(GetServiceRoleForAccountRequest request) { request = beforeClientExecution(request); return executeGetServiceRoleForAccount(request); }
[ "@", "Override", "public", "GetServiceRoleForAccountResult", "getServiceRoleForAccount", "(", "GetServiceRoleForAccountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetServiceRoleForAccount", "(", "request", ")", ";", "}" ]
Retrieves the service role that is attached to your account. @param getServiceRoleForAccountRequest @return Result of the GetServiceRoleForAccount operation returned by the service. @throws InternalServerErrorException server error @sample AWSGreengrass.GetServiceRoleForAccount @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetServiceRoleForAccount" target="_top">AWS API Documentation</a>
[ "Retrieves", "the", "service", "role", "that", "is", "attached", "to", "your", "account", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2910-L2914
20,405
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.getSubscriptionDefinition
@Override public GetSubscriptionDefinitionResult getSubscriptionDefinition(GetSubscriptionDefinitionRequest request) { request = beforeClientExecution(request); return executeGetSubscriptionDefinition(request); }
java
@Override public GetSubscriptionDefinitionResult getSubscriptionDefinition(GetSubscriptionDefinitionRequest request) { request = beforeClientExecution(request); return executeGetSubscriptionDefinition(request); }
[ "@", "Override", "public", "GetSubscriptionDefinitionResult", "getSubscriptionDefinition", "(", "GetSubscriptionDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetSubscriptionDefinition", "(", "request", ")", ";", "}" ]
Retrieves information about a subscription definition. @param getSubscriptionDefinitionRequest @return Result of the GetSubscriptionDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.GetSubscriptionDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetSubscriptionDefinition" target="_top">AWS API Documentation</a>
[ "Retrieves", "information", "about", "a", "subscription", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L2964-L2968
20,406
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.getSubscriptionDefinitionVersion
@Override public GetSubscriptionDefinitionVersionResult getSubscriptionDefinitionVersion(GetSubscriptionDefinitionVersionRequest request) { request = beforeClientExecution(request); return executeGetSubscriptionDefinitionVersion(request); }
java
@Override public GetSubscriptionDefinitionVersionResult getSubscriptionDefinitionVersion(GetSubscriptionDefinitionVersionRequest request) { request = beforeClientExecution(request); return executeGetSubscriptionDefinitionVersion(request); }
[ "@", "Override", "public", "GetSubscriptionDefinitionVersionResult", "getSubscriptionDefinitionVersion", "(", "GetSubscriptionDefinitionVersionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetSubscriptionDefinitionVersion", "(", "request", ")", ";", "}" ]
Retrieves information about a subscription definition version. @param getSubscriptionDefinitionVersionRequest @return Result of the GetSubscriptionDefinitionVersion operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.GetSubscriptionDefinitionVersion @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/GetSubscriptionDefinitionVersion" target="_top">AWS API Documentation</a>
[ "Retrieves", "information", "about", "a", "subscription", "definition", "version", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3018-L3022
20,407
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listBulkDeploymentDetailedReports
@Override public ListBulkDeploymentDetailedReportsResult listBulkDeploymentDetailedReports(ListBulkDeploymentDetailedReportsRequest request) { request = beforeClientExecution(request); return executeListBulkDeploymentDetailedReports(request); }
java
@Override public ListBulkDeploymentDetailedReportsResult listBulkDeploymentDetailedReports(ListBulkDeploymentDetailedReportsRequest request) { request = beforeClientExecution(request); return executeListBulkDeploymentDetailedReports(request); }
[ "@", "Override", "public", "ListBulkDeploymentDetailedReportsResult", "listBulkDeploymentDetailedReports", "(", "ListBulkDeploymentDetailedReportsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListBulkDeploymentDetailedReports", "(", "request", ")", ";", "}" ]
Gets a paginated list of the deployments that have been started in a bulk deployment operation, and their current deployment status. @param listBulkDeploymentDetailedReportsRequest @return Result of the ListBulkDeploymentDetailedReports operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListBulkDeploymentDetailedReports @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListBulkDeploymentDetailedReports" target="_top">AWS API Documentation</a>
[ "Gets", "a", "paginated", "list", "of", "the", "deployments", "that", "have", "been", "started", "in", "a", "bulk", "deployment", "operation", "and", "their", "current", "deployment", "status", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3074-L3078
20,408
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listBulkDeployments
@Override public ListBulkDeploymentsResult listBulkDeployments(ListBulkDeploymentsRequest request) { request = beforeClientExecution(request); return executeListBulkDeployments(request); }
java
@Override public ListBulkDeploymentsResult listBulkDeployments(ListBulkDeploymentsRequest request) { request = beforeClientExecution(request); return executeListBulkDeployments(request); }
[ "@", "Override", "public", "ListBulkDeploymentsResult", "listBulkDeployments", "(", "ListBulkDeploymentsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListBulkDeployments", "(", "request", ")", ";", "}" ]
Returns a list of bulk deployments. @param listBulkDeploymentsRequest @return Result of the ListBulkDeployments operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListBulkDeployments @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListBulkDeployments" target="_top">AWS API Documentation</a>
[ "Returns", "a", "list", "of", "bulk", "deployments", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3129-L3133
20,409
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listConnectorDefinitionVersions
@Override public ListConnectorDefinitionVersionsResult listConnectorDefinitionVersions(ListConnectorDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListConnectorDefinitionVersions(request); }
java
@Override public ListConnectorDefinitionVersionsResult listConnectorDefinitionVersions(ListConnectorDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListConnectorDefinitionVersions(request); }
[ "@", "Override", "public", "ListConnectorDefinitionVersionsResult", "listConnectorDefinitionVersions", "(", "ListConnectorDefinitionVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListConnectorDefinitionVersions", "(", "request", ")", ";", "}" ]
Lists the versions of a connector definition, which are containers for connectors. Connectors run on the Greengrass core and contain built-in integration with local infrastructure, device protocols, AWS, and other cloud services. @param listConnectorDefinitionVersionsRequest @return Result of the ListConnectorDefinitionVersions operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListConnectorDefinitionVersions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListConnectorDefinitionVersions" target="_top">AWS API Documentation</a>
[ "Lists", "the", "versions", "of", "a", "connector", "definition", "which", "are", "containers", "for", "connectors", ".", "Connectors", "run", "on", "the", "Greengrass", "core", "and", "contain", "built", "-", "in", "integration", "with", "local", "infrastructure", "device", "protocols", "AWS", "and", "other", "cloud", "services", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3183-L3187
20,410
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listConnectorDefinitions
@Override public ListConnectorDefinitionsResult listConnectorDefinitions(ListConnectorDefinitionsRequest request) { request = beforeClientExecution(request); return executeListConnectorDefinitions(request); }
java
@Override public ListConnectorDefinitionsResult listConnectorDefinitions(ListConnectorDefinitionsRequest request) { request = beforeClientExecution(request); return executeListConnectorDefinitions(request); }
[ "@", "Override", "public", "ListConnectorDefinitionsResult", "listConnectorDefinitions", "(", "ListConnectorDefinitionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListConnectorDefinitions", "(", "request", ")", ";", "}" ]
Retrieves a list of connector definitions. @param listConnectorDefinitionsRequest @return Result of the ListConnectorDefinitions operation returned by the service. @sample AWSGreengrass.ListConnectorDefinitions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListConnectorDefinitions" target="_top">AWS API Documentation</a>
[ "Retrieves", "a", "list", "of", "connector", "definitions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3236-L3240
20,411
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listCoreDefinitionVersions
@Override public ListCoreDefinitionVersionsResult listCoreDefinitionVersions(ListCoreDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListCoreDefinitionVersions(request); }
java
@Override public ListCoreDefinitionVersionsResult listCoreDefinitionVersions(ListCoreDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListCoreDefinitionVersions(request); }
[ "@", "Override", "public", "ListCoreDefinitionVersionsResult", "listCoreDefinitionVersions", "(", "ListCoreDefinitionVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListCoreDefinitionVersions", "(", "request", ")", ";", "}" ]
Lists the versions of a core definition. @param listCoreDefinitionVersionsRequest @return Result of the ListCoreDefinitionVersions operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListCoreDefinitionVersions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitionVersions" target="_top">AWS API Documentation</a>
[ "Lists", "the", "versions", "of", "a", "core", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3290-L3294
20,412
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listCoreDefinitions
@Override public ListCoreDefinitionsResult listCoreDefinitions(ListCoreDefinitionsRequest request) { request = beforeClientExecution(request); return executeListCoreDefinitions(request); }
java
@Override public ListCoreDefinitionsResult listCoreDefinitions(ListCoreDefinitionsRequest request) { request = beforeClientExecution(request); return executeListCoreDefinitions(request); }
[ "@", "Override", "public", "ListCoreDefinitionsResult", "listCoreDefinitions", "(", "ListCoreDefinitionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListCoreDefinitions", "(", "request", ")", ";", "}" ]
Retrieves a list of core definitions. @param listCoreDefinitionsRequest @return Result of the ListCoreDefinitions operation returned by the service. @sample AWSGreengrass.ListCoreDefinitions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListCoreDefinitions" target="_top">AWS API Documentation</a>
[ "Retrieves", "a", "list", "of", "core", "definitions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3342-L3346
20,413
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listDeployments
@Override public ListDeploymentsResult listDeployments(ListDeploymentsRequest request) { request = beforeClientExecution(request); return executeListDeployments(request); }
java
@Override public ListDeploymentsResult listDeployments(ListDeploymentsRequest request) { request = beforeClientExecution(request); return executeListDeployments(request); }
[ "@", "Override", "public", "ListDeploymentsResult", "listDeployments", "(", "ListDeploymentsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListDeployments", "(", "request", ")", ";", "}" ]
Returns a history of deployments for the group. @param listDeploymentsRequest @return Result of the ListDeployments operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListDeployments @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeployments" target="_top">AWS API Documentation</a>
[ "Returns", "a", "history", "of", "deployments", "for", "the", "group", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3394-L3398
20,414
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listDeviceDefinitionVersions
@Override public ListDeviceDefinitionVersionsResult listDeviceDefinitionVersions(ListDeviceDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListDeviceDefinitionVersions(request); }
java
@Override public ListDeviceDefinitionVersionsResult listDeviceDefinitionVersions(ListDeviceDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListDeviceDefinitionVersions(request); }
[ "@", "Override", "public", "ListDeviceDefinitionVersionsResult", "listDeviceDefinitionVersions", "(", "ListDeviceDefinitionVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListDeviceDefinitionVersions", "(", "request", ")", ";", "}" ]
Lists the versions of a device definition. @param listDeviceDefinitionVersionsRequest @return Result of the ListDeviceDefinitionVersions operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListDeviceDefinitionVersions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitionVersions" target="_top">AWS API Documentation</a>
[ "Lists", "the", "versions", "of", "a", "device", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3446-L3450
20,415
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listDeviceDefinitions
@Override public ListDeviceDefinitionsResult listDeviceDefinitions(ListDeviceDefinitionsRequest request) { request = beforeClientExecution(request); return executeListDeviceDefinitions(request); }
java
@Override public ListDeviceDefinitionsResult listDeviceDefinitions(ListDeviceDefinitionsRequest request) { request = beforeClientExecution(request); return executeListDeviceDefinitions(request); }
[ "@", "Override", "public", "ListDeviceDefinitionsResult", "listDeviceDefinitions", "(", "ListDeviceDefinitionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListDeviceDefinitions", "(", "request", ")", ";", "}" ]
Retrieves a list of device definitions. @param listDeviceDefinitionsRequest @return Result of the ListDeviceDefinitions operation returned by the service. @sample AWSGreengrass.ListDeviceDefinitions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListDeviceDefinitions" target="_top">AWS API Documentation</a>
[ "Retrieves", "a", "list", "of", "device", "definitions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3498-L3502
20,416
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listFunctionDefinitionVersions
@Override public ListFunctionDefinitionVersionsResult listFunctionDefinitionVersions(ListFunctionDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListFunctionDefinitionVersions(request); }
java
@Override public ListFunctionDefinitionVersionsResult listFunctionDefinitionVersions(ListFunctionDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListFunctionDefinitionVersions(request); }
[ "@", "Override", "public", "ListFunctionDefinitionVersionsResult", "listFunctionDefinitionVersions", "(", "ListFunctionDefinitionVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListFunctionDefinitionVersions", "(", "request", ")", ";", "}" ]
Lists the versions of a Lambda function definition. @param listFunctionDefinitionVersionsRequest @return Result of the ListFunctionDefinitionVersions operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListFunctionDefinitionVersions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitionVersions" target="_top">AWS API Documentation</a>
[ "Lists", "the", "versions", "of", "a", "Lambda", "function", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3551-L3555
20,417
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listFunctionDefinitions
@Override public ListFunctionDefinitionsResult listFunctionDefinitions(ListFunctionDefinitionsRequest request) { request = beforeClientExecution(request); return executeListFunctionDefinitions(request); }
java
@Override public ListFunctionDefinitionsResult listFunctionDefinitions(ListFunctionDefinitionsRequest request) { request = beforeClientExecution(request); return executeListFunctionDefinitions(request); }
[ "@", "Override", "public", "ListFunctionDefinitionsResult", "listFunctionDefinitions", "(", "ListFunctionDefinitionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListFunctionDefinitions", "(", "request", ")", ";", "}" ]
Retrieves a list of Lambda function definitions. @param listFunctionDefinitionsRequest @return Result of the ListFunctionDefinitions operation returned by the service. @sample AWSGreengrass.ListFunctionDefinitions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListFunctionDefinitions" target="_top">AWS API Documentation</a>
[ "Retrieves", "a", "list", "of", "Lambda", "function", "definitions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3603-L3607
20,418
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listGroupCertificateAuthorities
@Override public ListGroupCertificateAuthoritiesResult listGroupCertificateAuthorities(ListGroupCertificateAuthoritiesRequest request) { request = beforeClientExecution(request); return executeListGroupCertificateAuthorities(request); }
java
@Override public ListGroupCertificateAuthoritiesResult listGroupCertificateAuthorities(ListGroupCertificateAuthoritiesRequest request) { request = beforeClientExecution(request); return executeListGroupCertificateAuthorities(request); }
[ "@", "Override", "public", "ListGroupCertificateAuthoritiesResult", "listGroupCertificateAuthorities", "(", "ListGroupCertificateAuthoritiesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListGroupCertificateAuthorities", "(", "request", ")", ";", "}" ]
Retrieves the current CAs for a group. @param listGroupCertificateAuthoritiesRequest @return Result of the ListGroupCertificateAuthorities operation returned by the service. @throws BadRequestException invalid request @throws InternalServerErrorException server error @sample AWSGreengrass.ListGroupCertificateAuthorities @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupCertificateAuthorities" target="_top">AWS API Documentation</a>
[ "Retrieves", "the", "current", "CAs", "for", "a", "group", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3659-L3663
20,419
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listGroupVersions
@Override public ListGroupVersionsResult listGroupVersions(ListGroupVersionsRequest request) { request = beforeClientExecution(request); return executeListGroupVersions(request); }
java
@Override public ListGroupVersionsResult listGroupVersions(ListGroupVersionsRequest request) { request = beforeClientExecution(request); return executeListGroupVersions(request); }
[ "@", "Override", "public", "ListGroupVersionsResult", "listGroupVersions", "(", "ListGroupVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListGroupVersions", "(", "request", ")", ";", "}" ]
Lists the versions of a group. @param listGroupVersionsRequest @return Result of the ListGroupVersions operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListGroupVersions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListGroupVersions" target="_top">AWS API Documentation</a>
[ "Lists", "the", "versions", "of", "a", "group", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3714-L3718
20,420
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listLoggerDefinitionVersions
@Override public ListLoggerDefinitionVersionsResult listLoggerDefinitionVersions(ListLoggerDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListLoggerDefinitionVersions(request); }
java
@Override public ListLoggerDefinitionVersionsResult listLoggerDefinitionVersions(ListLoggerDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListLoggerDefinitionVersions(request); }
[ "@", "Override", "public", "ListLoggerDefinitionVersionsResult", "listLoggerDefinitionVersions", "(", "ListLoggerDefinitionVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListLoggerDefinitionVersions", "(", "request", ")", ";", "}" ]
Lists the versions of a logger definition. @param listLoggerDefinitionVersionsRequest @return Result of the ListLoggerDefinitionVersions operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListLoggerDefinitionVersions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitionVersions" target="_top">AWS API Documentation</a>
[ "Lists", "the", "versions", "of", "a", "logger", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3816-L3820
20,421
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listLoggerDefinitions
@Override public ListLoggerDefinitionsResult listLoggerDefinitions(ListLoggerDefinitionsRequest request) { request = beforeClientExecution(request); return executeListLoggerDefinitions(request); }
java
@Override public ListLoggerDefinitionsResult listLoggerDefinitions(ListLoggerDefinitionsRequest request) { request = beforeClientExecution(request); return executeListLoggerDefinitions(request); }
[ "@", "Override", "public", "ListLoggerDefinitionsResult", "listLoggerDefinitions", "(", "ListLoggerDefinitionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListLoggerDefinitions", "(", "request", ")", ";", "}" ]
Retrieves a list of logger definitions. @param listLoggerDefinitionsRequest @return Result of the ListLoggerDefinitions operation returned by the service. @sample AWSGreengrass.ListLoggerDefinitions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListLoggerDefinitions" target="_top">AWS API Documentation</a>
[ "Retrieves", "a", "list", "of", "logger", "definitions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3868-L3872
20,422
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listResourceDefinitionVersions
@Override public ListResourceDefinitionVersionsResult listResourceDefinitionVersions(ListResourceDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListResourceDefinitionVersions(request); }
java
@Override public ListResourceDefinitionVersionsResult listResourceDefinitionVersions(ListResourceDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListResourceDefinitionVersions(request); }
[ "@", "Override", "public", "ListResourceDefinitionVersionsResult", "listResourceDefinitionVersions", "(", "ListResourceDefinitionVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListResourceDefinitionVersions", "(", "request", ")", ";", "}" ]
Lists the versions of a resource definition. @param listResourceDefinitionVersionsRequest @return Result of the ListResourceDefinitionVersions operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListResourceDefinitionVersions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitionVersions" target="_top">AWS API Documentation</a>
[ "Lists", "the", "versions", "of", "a", "resource", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3921-L3925
20,423
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listResourceDefinitions
@Override public ListResourceDefinitionsResult listResourceDefinitions(ListResourceDefinitionsRequest request) { request = beforeClientExecution(request); return executeListResourceDefinitions(request); }
java
@Override public ListResourceDefinitionsResult listResourceDefinitions(ListResourceDefinitionsRequest request) { request = beforeClientExecution(request); return executeListResourceDefinitions(request); }
[ "@", "Override", "public", "ListResourceDefinitionsResult", "listResourceDefinitions", "(", "ListResourceDefinitionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListResourceDefinitions", "(", "request", ")", ";", "}" ]
Retrieves a list of resource definitions. @param listResourceDefinitionsRequest @return Result of the ListResourceDefinitions operation returned by the service. @sample AWSGreengrass.ListResourceDefinitions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListResourceDefinitions" target="_top">AWS API Documentation</a>
[ "Retrieves", "a", "list", "of", "resource", "definitions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L3973-L3977
20,424
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listSubscriptionDefinitionVersions
@Override public ListSubscriptionDefinitionVersionsResult listSubscriptionDefinitionVersions(ListSubscriptionDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListSubscriptionDefinitionVersions(request); }
java
@Override public ListSubscriptionDefinitionVersionsResult listSubscriptionDefinitionVersions(ListSubscriptionDefinitionVersionsRequest request) { request = beforeClientExecution(request); return executeListSubscriptionDefinitionVersions(request); }
[ "@", "Override", "public", "ListSubscriptionDefinitionVersionsResult", "listSubscriptionDefinitionVersions", "(", "ListSubscriptionDefinitionVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListSubscriptionDefinitionVersions", "(", "request", ")", ";", "}" ]
Lists the versions of a subscription definition. @param listSubscriptionDefinitionVersionsRequest @return Result of the ListSubscriptionDefinitionVersions operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ListSubscriptionDefinitionVersions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitionVersions" target="_top">AWS API Documentation</a>
[ "Lists", "the", "versions", "of", "a", "subscription", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4027-L4031
20,425
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.listSubscriptionDefinitions
@Override public ListSubscriptionDefinitionsResult listSubscriptionDefinitions(ListSubscriptionDefinitionsRequest request) { request = beforeClientExecution(request); return executeListSubscriptionDefinitions(request); }
java
@Override public ListSubscriptionDefinitionsResult listSubscriptionDefinitions(ListSubscriptionDefinitionsRequest request) { request = beforeClientExecution(request); return executeListSubscriptionDefinitions(request); }
[ "@", "Override", "public", "ListSubscriptionDefinitionsResult", "listSubscriptionDefinitions", "(", "ListSubscriptionDefinitionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListSubscriptionDefinitions", "(", "request", ")", ";", "}" ]
Retrieves a list of subscription definitions. @param listSubscriptionDefinitionsRequest @return Result of the ListSubscriptionDefinitions operation returned by the service. @sample AWSGreengrass.ListSubscriptionDefinitions @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ListSubscriptionDefinitions" target="_top">AWS API Documentation</a>
[ "Retrieves", "a", "list", "of", "subscription", "definitions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4080-L4084
20,426
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.resetDeployments
@Override public ResetDeploymentsResult resetDeployments(ResetDeploymentsRequest request) { request = beforeClientExecution(request); return executeResetDeployments(request); }
java
@Override public ResetDeploymentsResult resetDeployments(ResetDeploymentsRequest request) { request = beforeClientExecution(request); return executeResetDeployments(request); }
[ "@", "Override", "public", "ResetDeploymentsResult", "resetDeployments", "(", "ResetDeploymentsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeResetDeployments", "(", "request", ")", ";", "}" ]
Resets a group's deployments. @param resetDeploymentsRequest Information needed to reset deployments. @return Result of the ResetDeployments operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.ResetDeployments @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/ResetDeployments" target="_top">AWS API Documentation</a>
[ "Resets", "a", "group", "s", "deployments", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4187-L4191
20,427
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.startBulkDeployment
@Override public StartBulkDeploymentResult startBulkDeployment(StartBulkDeploymentRequest request) { request = beforeClientExecution(request); return executeStartBulkDeployment(request); }
java
@Override public StartBulkDeploymentResult startBulkDeployment(StartBulkDeploymentRequest request) { request = beforeClientExecution(request); return executeStartBulkDeployment(request); }
[ "@", "Override", "public", "StartBulkDeploymentResult", "startBulkDeployment", "(", "StartBulkDeploymentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartBulkDeployment", "(", "request", ")", ";", "}" ]
Deploys multiple groups in one operation. This action starts the bulk deployment of a specified set of group versions. Each group version deployment will be triggered with an adaptive rate that has a fixed upper limit. We recommend that you include an ''X-Amzn-Client-Token'' token in every ''StartBulkDeployment'' request. These requests are idempotent with respect to the token and the request parameters. @param startBulkDeploymentRequest @return Result of the StartBulkDeployment operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.StartBulkDeployment @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/StartBulkDeployment" target="_top">AWS API Documentation</a>
[ "Deploys", "multiple", "groups", "in", "one", "operation", ".", "This", "action", "starts", "the", "bulk", "deployment", "of", "a", "specified", "set", "of", "group", "versions", ".", "Each", "group", "version", "deployment", "will", "be", "triggered", "with", "an", "adaptive", "rate", "that", "has", "a", "fixed", "upper", "limit", ".", "We", "recommend", "that", "you", "include", "an", "X", "-", "Amzn", "-", "Client", "-", "Token", "token", "in", "every", "StartBulkDeployment", "request", ".", "These", "requests", "are", "idempotent", "with", "respect", "to", "the", "token", "and", "the", "request", "parameters", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4242-L4246
20,428
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.stopBulkDeployment
@Override public StopBulkDeploymentResult stopBulkDeployment(StopBulkDeploymentRequest request) { request = beforeClientExecution(request); return executeStopBulkDeployment(request); }
java
@Override public StopBulkDeploymentResult stopBulkDeployment(StopBulkDeploymentRequest request) { request = beforeClientExecution(request); return executeStopBulkDeployment(request); }
[ "@", "Override", "public", "StopBulkDeploymentResult", "stopBulkDeployment", "(", "StopBulkDeploymentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopBulkDeployment", "(", "request", ")", ";", "}" ]
Stops the execution of a bulk deployment. This action returns a status of ''Stopping'' until the deployment is stopped. You cannot start a new bulk deployment while a previous deployment is in the ''Stopping'' state. This action doesn't rollback completed deployments or cancel pending deployments. @param stopBulkDeploymentRequest @return Result of the StopBulkDeployment operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.StopBulkDeployment @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/StopBulkDeployment" target="_top">AWS API Documentation</a>
[ "Stops", "the", "execution", "of", "a", "bulk", "deployment", ".", "This", "action", "returns", "a", "status", "of", "Stopping", "until", "the", "deployment", "is", "stopped", ".", "You", "cannot", "start", "a", "new", "bulk", "deployment", "while", "a", "previous", "deployment", "is", "in", "the", "Stopping", "state", ".", "This", "action", "doesn", "t", "rollback", "completed", "deployments", "or", "cancel", "pending", "deployments", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4296-L4300
20,429
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.updateConnectivityInfo
@Override public UpdateConnectivityInfoResult updateConnectivityInfo(UpdateConnectivityInfoRequest request) { request = beforeClientExecution(request); return executeUpdateConnectivityInfo(request); }
java
@Override public UpdateConnectivityInfoResult updateConnectivityInfo(UpdateConnectivityInfoRequest request) { request = beforeClientExecution(request); return executeUpdateConnectivityInfo(request); }
[ "@", "Override", "public", "UpdateConnectivityInfoResult", "updateConnectivityInfo", "(", "UpdateConnectivityInfoRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateConnectivityInfo", "(", "request", ")", ";", "}" ]
Updates the connectivity information for the core. Any devices that belong to the group which has this core will receive this information in order to find the location of the core and connect to it. @param updateConnectivityInfoRequest Connectivity information. @return Result of the UpdateConnectivityInfo operation returned by the service. @throws BadRequestException invalid request @throws InternalServerErrorException server error @sample AWSGreengrass.UpdateConnectivityInfo @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectivityInfo" target="_top">AWS API Documentation</a>
[ "Updates", "the", "connectivity", "information", "for", "the", "core", ".", "Any", "devices", "that", "belong", "to", "the", "group", "which", "has", "this", "core", "will", "receive", "this", "information", "in", "order", "to", "find", "the", "location", "of", "the", "core", "and", "connect", "to", "it", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4456-L4460
20,430
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.updateConnectorDefinition
@Override public UpdateConnectorDefinitionResult updateConnectorDefinition(UpdateConnectorDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateConnectorDefinition(request); }
java
@Override public UpdateConnectorDefinitionResult updateConnectorDefinition(UpdateConnectorDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateConnectorDefinition(request); }
[ "@", "Override", "public", "UpdateConnectorDefinitionResult", "updateConnectorDefinition", "(", "UpdateConnectorDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateConnectorDefinition", "(", "request", ")", ";", "}" ]
Updates a connector definition. @param updateConnectorDefinitionRequest @return Result of the UpdateConnectorDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.UpdateConnectorDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateConnectorDefinition" target="_top">AWS API Documentation</a>
[ "Updates", "a", "connector", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4509-L4513
20,431
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.updateCoreDefinition
@Override public UpdateCoreDefinitionResult updateCoreDefinition(UpdateCoreDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateCoreDefinition(request); }
java
@Override public UpdateCoreDefinitionResult updateCoreDefinition(UpdateCoreDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateCoreDefinition(request); }
[ "@", "Override", "public", "UpdateCoreDefinitionResult", "updateCoreDefinition", "(", "UpdateCoreDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateCoreDefinition", "(", "request", ")", ";", "}" ]
Updates a core definition. @param updateCoreDefinitionRequest @return Result of the UpdateCoreDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.UpdateCoreDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateCoreDefinition" target="_top">AWS API Documentation</a>
[ "Updates", "a", "core", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4563-L4567
20,432
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.updateDeviceDefinition
@Override public UpdateDeviceDefinitionResult updateDeviceDefinition(UpdateDeviceDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateDeviceDefinition(request); }
java
@Override public UpdateDeviceDefinitionResult updateDeviceDefinition(UpdateDeviceDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateDeviceDefinition(request); }
[ "@", "Override", "public", "UpdateDeviceDefinitionResult", "updateDeviceDefinition", "(", "UpdateDeviceDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDeviceDefinition", "(", "request", ")", ";", "}" ]
Updates a device definition. @param updateDeviceDefinitionRequest @return Result of the UpdateDeviceDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.UpdateDeviceDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateDeviceDefinition" target="_top">AWS API Documentation</a>
[ "Updates", "a", "device", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4615-L4619
20,433
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.updateFunctionDefinition
@Override public UpdateFunctionDefinitionResult updateFunctionDefinition(UpdateFunctionDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateFunctionDefinition(request); }
java
@Override public UpdateFunctionDefinitionResult updateFunctionDefinition(UpdateFunctionDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateFunctionDefinition(request); }
[ "@", "Override", "public", "UpdateFunctionDefinitionResult", "updateFunctionDefinition", "(", "UpdateFunctionDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateFunctionDefinition", "(", "request", ")", ";", "}" ]
Updates a Lambda function definition. @param updateFunctionDefinitionRequest @return Result of the UpdateFunctionDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.UpdateFunctionDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateFunctionDefinition" target="_top">AWS API Documentation</a>
[ "Updates", "a", "Lambda", "function", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4668-L4672
20,434
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.updateGroupCertificateConfiguration
@Override public UpdateGroupCertificateConfigurationResult updateGroupCertificateConfiguration(UpdateGroupCertificateConfigurationRequest request) { request = beforeClientExecution(request); return executeUpdateGroupCertificateConfiguration(request); }
java
@Override public UpdateGroupCertificateConfigurationResult updateGroupCertificateConfiguration(UpdateGroupCertificateConfigurationRequest request) { request = beforeClientExecution(request); return executeUpdateGroupCertificateConfiguration(request); }
[ "@", "Override", "public", "UpdateGroupCertificateConfigurationResult", "updateGroupCertificateConfiguration", "(", "UpdateGroupCertificateConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateGroupCertificateConfiguration", "(", "request", ")", ";", "}" ]
Updates the Certificate expiry time for a group. @param updateGroupCertificateConfigurationRequest @return Result of the UpdateGroupCertificateConfiguration operation returned by the service. @throws BadRequestException invalid request @throws InternalServerErrorException server error @sample AWSGreengrass.UpdateGroupCertificateConfiguration @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateGroupCertificateConfiguration" target="_top">AWS API Documentation</a>
[ "Updates", "the", "Certificate", "expiry", "time", "for", "a", "group", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4776-L4780
20,435
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.updateLoggerDefinition
@Override public UpdateLoggerDefinitionResult updateLoggerDefinition(UpdateLoggerDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateLoggerDefinition(request); }
java
@Override public UpdateLoggerDefinitionResult updateLoggerDefinition(UpdateLoggerDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateLoggerDefinition(request); }
[ "@", "Override", "public", "UpdateLoggerDefinitionResult", "updateLoggerDefinition", "(", "UpdateLoggerDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateLoggerDefinition", "(", "request", ")", ";", "}" ]
Updates a logger definition. @param updateLoggerDefinitionRequest @return Result of the UpdateLoggerDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.UpdateLoggerDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateLoggerDefinition" target="_top">AWS API Documentation</a>
[ "Updates", "a", "logger", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4831-L4835
20,436
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.updateResourceDefinition
@Override public UpdateResourceDefinitionResult updateResourceDefinition(UpdateResourceDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateResourceDefinition(request); }
java
@Override public UpdateResourceDefinitionResult updateResourceDefinition(UpdateResourceDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateResourceDefinition(request); }
[ "@", "Override", "public", "UpdateResourceDefinitionResult", "updateResourceDefinition", "(", "UpdateResourceDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateResourceDefinition", "(", "request", ")", ";", "}" ]
Updates a resource definition. @param updateResourceDefinitionRequest @return Result of the UpdateResourceDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.UpdateResourceDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateResourceDefinition" target="_top">AWS API Documentation</a>
[ "Updates", "a", "resource", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4884-L4888
20,437
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java
AWSGreengrassClient.updateSubscriptionDefinition
@Override public UpdateSubscriptionDefinitionResult updateSubscriptionDefinition(UpdateSubscriptionDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateSubscriptionDefinition(request); }
java
@Override public UpdateSubscriptionDefinitionResult updateSubscriptionDefinition(UpdateSubscriptionDefinitionRequest request) { request = beforeClientExecution(request); return executeUpdateSubscriptionDefinition(request); }
[ "@", "Override", "public", "UpdateSubscriptionDefinitionResult", "updateSubscriptionDefinition", "(", "UpdateSubscriptionDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateSubscriptionDefinition", "(", "request", ")", ";", "}" ]
Updates a subscription definition. @param updateSubscriptionDefinitionRequest @return Result of the UpdateSubscriptionDefinition operation returned by the service. @throws BadRequestException invalid request @sample AWSGreengrass.UpdateSubscriptionDefinition @see <a href="http://docs.aws.amazon.com/goto/WebAPI/greengrass-2017-06-07/UpdateSubscriptionDefinition" target="_top">AWS API Documentation</a>
[ "Updates", "a", "subscription", "definition", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/AWSGreengrassClient.java#L4938-L4942
20,438
aws/aws-sdk-java
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/Scte35TimeSignalScheduleActionSettings.java
Scte35TimeSignalScheduleActionSettings.setScte35Descriptors
public void setScte35Descriptors(java.util.Collection<Scte35Descriptor> scte35Descriptors) { if (scte35Descriptors == null) { this.scte35Descriptors = null; return; } this.scte35Descriptors = new java.util.ArrayList<Scte35Descriptor>(scte35Descriptors); }
java
public void setScte35Descriptors(java.util.Collection<Scte35Descriptor> scte35Descriptors) { if (scte35Descriptors == null) { this.scte35Descriptors = null; return; } this.scte35Descriptors = new java.util.ArrayList<Scte35Descriptor>(scte35Descriptors); }
[ "public", "void", "setScte35Descriptors", "(", "java", ".", "util", ".", "Collection", "<", "Scte35Descriptor", ">", "scte35Descriptors", ")", "{", "if", "(", "scte35Descriptors", "==", "null", ")", "{", "this", ".", "scte35Descriptors", "=", "null", ";", "return", ";", "}", "this", ".", "scte35Descriptors", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "Scte35Descriptor", ">", "(", "scte35Descriptors", ")", ";", "}" ]
The list of SCTE-35 descriptors accompanying the SCTE-35 time_signal. @param scte35Descriptors The list of SCTE-35 descriptors accompanying the SCTE-35 time_signal.
[ "The", "list", "of", "SCTE", "-", "35", "descriptors", "accompanying", "the", "SCTE", "-", "35", "time_signal", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/Scte35TimeSignalScheduleActionSettings.java#L49-L56
20,439
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/WriteSegmentRequest.java
WriteSegmentRequest.withTags
public WriteSegmentRequest withTags(java.util.Map<String, String> tags) { setTags(tags); return this; }
java
public WriteSegmentRequest withTags(java.util.Map<String, String> tags) { setTags(tags); return this; }
[ "public", "WriteSegmentRequest", "withTags", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "tags", ")", "{", "setTags", "(", "tags", ")", ";", "return", "this", ";", "}" ]
The Tags for the segments. @param tags The Tags for the segments. @return Returns a reference to this object so that method calls can be chained together.
[ "The", "Tags", "for", "the", "segments", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/WriteSegmentRequest.java#L185-L188
20,440
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/S3CryptoModuleAE.java
S3CryptoModuleAE.decrypt
private S3ObjectWrapper decrypt(S3ObjectWrapper wrapper, ContentCryptoMaterial cekMaterial, long[] range) { S3ObjectInputStream objectContent = wrapper.getObjectContent(); wrapper.setObjectContent(new S3ObjectInputStream( new CipherLiteInputStream(objectContent, cekMaterial.getCipherLite(), DEFAULT_BUFFER_SIZE), objectContent.getHttpRequest())); return wrapper; }
java
private S3ObjectWrapper decrypt(S3ObjectWrapper wrapper, ContentCryptoMaterial cekMaterial, long[] range) { S3ObjectInputStream objectContent = wrapper.getObjectContent(); wrapper.setObjectContent(new S3ObjectInputStream( new CipherLiteInputStream(objectContent, cekMaterial.getCipherLite(), DEFAULT_BUFFER_SIZE), objectContent.getHttpRequest())); return wrapper; }
[ "private", "S3ObjectWrapper", "decrypt", "(", "S3ObjectWrapper", "wrapper", ",", "ContentCryptoMaterial", "cekMaterial", ",", "long", "[", "]", "range", ")", "{", "S3ObjectInputStream", "objectContent", "=", "wrapper", ".", "getObjectContent", "(", ")", ";", "wrapper", ".", "setObjectContent", "(", "new", "S3ObjectInputStream", "(", "new", "CipherLiteInputStream", "(", "objectContent", ",", "cekMaterial", ".", "getCipherLite", "(", ")", ",", "DEFAULT_BUFFER_SIZE", ")", ",", "objectContent", ".", "getHttpRequest", "(", ")", ")", ")", ";", "return", "wrapper", ";", "}" ]
Returns an updated object where the object content input stream contains the decrypted contents. @param wrapper The object whose contents are to be decrypted. @param cekMaterial The instruction that will be used to decrypt the object data. @return The updated object where the object content input stream contains the decrypted contents.
[ "Returns", "an", "updated", "object", "where", "the", "object", "content", "input", "stream", "contains", "the", "decrypted", "contents", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/S3CryptoModuleAE.java#L398-L407
20,441
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBDeleteExpression.java
DynamoDBDeleteExpression.withExpectedEntry
public DynamoDBDeleteExpression withExpectedEntry(String attributeName, ExpectedAttributeValue expected) { if (expectedAttributes == null) { expectedAttributes = new HashMap<String,ExpectedAttributeValue>(); } expectedAttributes.put(attributeName, expected); return this; }
java
public DynamoDBDeleteExpression withExpectedEntry(String attributeName, ExpectedAttributeValue expected) { if (expectedAttributes == null) { expectedAttributes = new HashMap<String,ExpectedAttributeValue>(); } expectedAttributes.put(attributeName, expected); return this; }
[ "public", "DynamoDBDeleteExpression", "withExpectedEntry", "(", "String", "attributeName", ",", "ExpectedAttributeValue", "expected", ")", "{", "if", "(", "expectedAttributes", "==", "null", ")", "{", "expectedAttributes", "=", "new", "HashMap", "<", "String", ",", "ExpectedAttributeValue", ">", "(", ")", ";", "}", "expectedAttributes", ".", "put", "(", "attributeName", ",", "expected", ")", ";", "return", "this", ";", "}" ]
Adds one entry to the expected conditions and returns a pointer to this object for method-chaining. @param attributeName The name of the attribute. @param expected The expected attribute value.
[ "Adds", "one", "entry", "to", "the", "expected", "conditions", "and", "returns", "a", "pointer", "to", "this", "object", "for", "method", "-", "chaining", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBDeleteExpression.java#L98-L104
20,442
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/FunctionConfigurationEnvironment.java
FunctionConfigurationEnvironment.setResourceAccessPolicies
public void setResourceAccessPolicies(java.util.Collection<ResourceAccessPolicy> resourceAccessPolicies) { if (resourceAccessPolicies == null) { this.resourceAccessPolicies = null; return; } this.resourceAccessPolicies = new java.util.ArrayList<ResourceAccessPolicy>(resourceAccessPolicies); }
java
public void setResourceAccessPolicies(java.util.Collection<ResourceAccessPolicy> resourceAccessPolicies) { if (resourceAccessPolicies == null) { this.resourceAccessPolicies = null; return; } this.resourceAccessPolicies = new java.util.ArrayList<ResourceAccessPolicy>(resourceAccessPolicies); }
[ "public", "void", "setResourceAccessPolicies", "(", "java", ".", "util", ".", "Collection", "<", "ResourceAccessPolicy", ">", "resourceAccessPolicies", ")", "{", "if", "(", "resourceAccessPolicies", "==", "null", ")", "{", "this", ".", "resourceAccessPolicies", "=", "null", ";", "return", ";", "}", "this", ".", "resourceAccessPolicies", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "ResourceAccessPolicy", ">", "(", "resourceAccessPolicies", ")", ";", "}" ]
A list of the resources, with their permissions, to which the Lambda function will be granted access. A Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda function in a Greengrass container. @param resourceAccessPolicies A list of the resources, with their permissions, to which the Lambda function will be granted access. A Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the Lambda function in a Greengrass container.
[ "A", "list", "of", "the", "resources", "with", "their", "permissions", "to", "which", "the", "Lambda", "function", "will", "be", "granted", "access", ".", "A", "Lambda", "function", "can", "have", "at", "most", "10", "resources", ".", "ResourceAccessPolicies", "apply", "only", "when", "you", "run", "the", "Lambda", "function", "in", "a", "Greengrass", "container", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/FunctionConfigurationEnvironment.java#L165-L172
20,443
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/FunctionConfigurationEnvironment.java
FunctionConfigurationEnvironment.withVariables
public FunctionConfigurationEnvironment withVariables(java.util.Map<String, String> variables) { setVariables(variables); return this; }
java
public FunctionConfigurationEnvironment withVariables(java.util.Map<String, String> variables) { setVariables(variables); return this; }
[ "public", "FunctionConfigurationEnvironment", "withVariables", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "variables", ")", "{", "setVariables", "(", "variables", ")", ";", "return", "this", ";", "}" ]
Environment variables for the Lambda function's configuration. @param variables Environment variables for the Lambda function's configuration. @return Returns a reference to this object so that method calls can be chained together.
[ "Environment", "variables", "for", "the", "Lambda", "function", "s", "configuration", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/FunctionConfigurationEnvironment.java#L247-L250
20,444
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/AdjustedRangeInputStream.java
AdjustedRangeInputStream.initializeForRead
private void initializeForRead(long rangeBeginning, long rangeEnd) throws IOException { // To get to the left-most byte desired by a user, we must skip over the 16 bytes of the // preliminary cipher block, and then possibly skip a few more bytes into the next block // to where the the left-most byte is located. int numBytesToSkip; if(rangeBeginning < JceEncryptionConstants.SYMMETRIC_CIPHER_BLOCK_SIZE) { numBytesToSkip = (int)rangeBeginning; } else { int offsetIntoBlock = (int)(rangeBeginning % JceEncryptionConstants.SYMMETRIC_CIPHER_BLOCK_SIZE); numBytesToSkip = JceEncryptionConstants.SYMMETRIC_CIPHER_BLOCK_SIZE + offsetIntoBlock; } if(numBytesToSkip != 0) { // Skip to the left-most desired byte. The read() method is used instead of the skip() method // since the skip() method will not block if the underlying input stream is waiting for more input. while(numBytesToSkip > 0) { this.decryptedContents.read(); numBytesToSkip--; } } // The number of bytes the user may read is equal to the number of the bytes in the range. // Note that the range includes the endpoints. this.virtualAvailable = (rangeEnd - rangeBeginning) + 1; }
java
private void initializeForRead(long rangeBeginning, long rangeEnd) throws IOException { // To get to the left-most byte desired by a user, we must skip over the 16 bytes of the // preliminary cipher block, and then possibly skip a few more bytes into the next block // to where the the left-most byte is located. int numBytesToSkip; if(rangeBeginning < JceEncryptionConstants.SYMMETRIC_CIPHER_BLOCK_SIZE) { numBytesToSkip = (int)rangeBeginning; } else { int offsetIntoBlock = (int)(rangeBeginning % JceEncryptionConstants.SYMMETRIC_CIPHER_BLOCK_SIZE); numBytesToSkip = JceEncryptionConstants.SYMMETRIC_CIPHER_BLOCK_SIZE + offsetIntoBlock; } if(numBytesToSkip != 0) { // Skip to the left-most desired byte. The read() method is used instead of the skip() method // since the skip() method will not block if the underlying input stream is waiting for more input. while(numBytesToSkip > 0) { this.decryptedContents.read(); numBytesToSkip--; } } // The number of bytes the user may read is equal to the number of the bytes in the range. // Note that the range includes the endpoints. this.virtualAvailable = (rangeEnd - rangeBeginning) + 1; }
[ "private", "void", "initializeForRead", "(", "long", "rangeBeginning", ",", "long", "rangeEnd", ")", "throws", "IOException", "{", "// To get to the left-most byte desired by a user, we must skip over the 16 bytes of the", "// preliminary cipher block, and then possibly skip a few more bytes into the next block", "// to where the the left-most byte is located.", "int", "numBytesToSkip", ";", "if", "(", "rangeBeginning", "<", "JceEncryptionConstants", ".", "SYMMETRIC_CIPHER_BLOCK_SIZE", ")", "{", "numBytesToSkip", "=", "(", "int", ")", "rangeBeginning", ";", "}", "else", "{", "int", "offsetIntoBlock", "=", "(", "int", ")", "(", "rangeBeginning", "%", "JceEncryptionConstants", ".", "SYMMETRIC_CIPHER_BLOCK_SIZE", ")", ";", "numBytesToSkip", "=", "JceEncryptionConstants", ".", "SYMMETRIC_CIPHER_BLOCK_SIZE", "+", "offsetIntoBlock", ";", "}", "if", "(", "numBytesToSkip", "!=", "0", ")", "{", "// Skip to the left-most desired byte. The read() method is used instead of the skip() method", "// since the skip() method will not block if the underlying input stream is waiting for more input.", "while", "(", "numBytesToSkip", ">", "0", ")", "{", "this", ".", "decryptedContents", ".", "read", "(", ")", ";", "numBytesToSkip", "--", ";", "}", "}", "// The number of bytes the user may read is equal to the number of the bytes in the range.", "// Note that the range includes the endpoints.", "this", ".", "virtualAvailable", "=", "(", "rangeEnd", "-", "rangeBeginning", ")", "+", "1", ";", "}" ]
Skip to the start location of the range of bytes desired by the user.
[ "Skip", "to", "the", "start", "location", "of", "the", "range", "of", "bytes", "desired", "by", "the", "user", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/AdjustedRangeInputStream.java#L52-L74
20,445
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/partitions/PartitionRegionImpl.java
PartitionRegionImpl.getEndpoint
private Endpoint getEndpoint(String serviceName) { Endpoint cachedEndpoint = endpointCache.get(serviceName); if (cachedEndpoint == null) { cachedEndpoint = computeEndpoint(serviceName); if (cachedEndpoint == null) { return null; } } endpointCache.put(serviceName, cachedEndpoint); return cachedEndpoint; }
java
private Endpoint getEndpoint(String serviceName) { Endpoint cachedEndpoint = endpointCache.get(serviceName); if (cachedEndpoint == null) { cachedEndpoint = computeEndpoint(serviceName); if (cachedEndpoint == null) { return null; } } endpointCache.put(serviceName, cachedEndpoint); return cachedEndpoint; }
[ "private", "Endpoint", "getEndpoint", "(", "String", "serviceName", ")", "{", "Endpoint", "cachedEndpoint", "=", "endpointCache", ".", "get", "(", "serviceName", ")", ";", "if", "(", "cachedEndpoint", "==", "null", ")", "{", "cachedEndpoint", "=", "computeEndpoint", "(", "serviceName", ")", ";", "if", "(", "cachedEndpoint", "==", "null", ")", "{", "return", "null", ";", "}", "}", "endpointCache", ".", "put", "(", "serviceName", ",", "cachedEndpoint", ")", ";", "return", "cachedEndpoint", ";", "}" ]
Returns the endpoint configuration for a given service.
[ "Returns", "the", "endpoint", "configuration", "for", "a", "given", "service", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/partitions/PartitionRegionImpl.java#L90-L102
20,446
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/partitions/PartitionRegionImpl.java
PartitionRegionImpl.isServiceSupportedInRegion
private boolean isServiceSupportedInRegion(String serviceName) { return partition.getServices().get(serviceName) != null && partition.getServices().get(serviceName).getEndpoints() .containsKey(region); }
java
private boolean isServiceSupportedInRegion(String serviceName) { return partition.getServices().get(serviceName) != null && partition.getServices().get(serviceName).getEndpoints() .containsKey(region); }
[ "private", "boolean", "isServiceSupportedInRegion", "(", "String", "serviceName", ")", "{", "return", "partition", ".", "getServices", "(", ")", ".", "get", "(", "serviceName", ")", "!=", "null", "&&", "partition", ".", "getServices", "(", ")", ".", "get", "(", "serviceName", ")", ".", "getEndpoints", "(", ")", ".", "containsKey", "(", "region", ")", ";", "}" ]
This method returns true only if the metadata for the service contains the given region in the list of supported regions.
[ "This", "method", "returns", "true", "only", "if", "the", "metadata", "for", "the", "service", "contains", "the", "given", "region", "in", "the", "list", "of", "supported", "regions", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/partitions/PartitionRegionImpl.java#L167-L171
20,447
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/customization/processors/SendEmptyAutoConstructedListAsEmptyListProcessor.java
SendEmptyAutoConstructedListAsEmptyListProcessor.sanityCheck
private void sanityCheck(IntermediateModel intermediateModel) { sendEmptyQueryString.forEach((shapeName, memberNames) -> { ShapeModel shape = intermediateModel.getShapes().get(shapeName); if (shape == null) { throw new IllegalStateException( String.format("Cannot find shape [%s] in the model when processing " + "customization config sendEmptyQueryStringParam.%s", shapeName, shapeName)); } memberNames.forEach(memberName -> { if (shape.getMemberByName(memberName) == null) { throw new IllegalStateException( String.format("Cannot find member [%s] in the model when processing " + "customization config sendEmptyQueryStringParam.%s", memberName, shapeName)); } }); memberNames.stream() .map(shape::getMemberByC2jName) .forEach(member -> assertIsListMember(shapeName, member)); }); }
java
private void sanityCheck(IntermediateModel intermediateModel) { sendEmptyQueryString.forEach((shapeName, memberNames) -> { ShapeModel shape = intermediateModel.getShapes().get(shapeName); if (shape == null) { throw new IllegalStateException( String.format("Cannot find shape [%s] in the model when processing " + "customization config sendEmptyQueryStringParam.%s", shapeName, shapeName)); } memberNames.forEach(memberName -> { if (shape.getMemberByName(memberName) == null) { throw new IllegalStateException( String.format("Cannot find member [%s] in the model when processing " + "customization config sendEmptyQueryStringParam.%s", memberName, shapeName)); } }); memberNames.stream() .map(shape::getMemberByC2jName) .forEach(member -> assertIsListMember(shapeName, member)); }); }
[ "private", "void", "sanityCheck", "(", "IntermediateModel", "intermediateModel", ")", "{", "sendEmptyQueryString", ".", "forEach", "(", "(", "shapeName", ",", "memberNames", ")", "->", "{", "ShapeModel", "shape", "=", "intermediateModel", ".", "getShapes", "(", ")", ".", "get", "(", "shapeName", ")", ";", "if", "(", "shape", "==", "null", ")", "{", "throw", "new", "IllegalStateException", "(", "String", ".", "format", "(", "\"Cannot find shape [%s] in the model when processing \"", "+", "\"customization config sendEmptyQueryStringParam.%s\"", ",", "shapeName", ",", "shapeName", ")", ")", ";", "}", "memberNames", ".", "forEach", "(", "memberName", "->", "{", "if", "(", "shape", ".", "getMemberByName", "(", "memberName", ")", "==", "null", ")", "{", "throw", "new", "IllegalStateException", "(", "String", ".", "format", "(", "\"Cannot find member [%s] in the model when processing \"", "+", "\"customization config sendEmptyQueryStringParam.%s\"", ",", "memberName", ",", "shapeName", ")", ")", ";", "}", "}", ")", ";", "memberNames", ".", "stream", "(", ")", ".", "map", "(", "shape", "::", "getMemberByC2jName", ")", ".", "forEach", "(", "member", "->", "assertIsListMember", "(", "shapeName", ",", "member", ")", ")", ";", "}", ")", ";", "}" ]
Verify the shape exists and the members provided exist and also verify the members are list shapes.
[ "Verify", "the", "shape", "exists", "and", "the", "members", "provided", "exist", "and", "also", "verify", "the", "members", "are", "list", "shapes", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/customization/processors/SendEmptyAutoConstructedListAsEmptyListProcessor.java#L65-L84
20,448
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ImportJobResponse.java
ImportJobResponse.setFailures
public void setFailures(java.util.Collection<String> failures) { if (failures == null) { this.failures = null; return; } this.failures = new java.util.ArrayList<String>(failures); }
java
public void setFailures(java.util.Collection<String> failures) { if (failures == null) { this.failures = null; return; } this.failures = new java.util.ArrayList<String>(failures); }
[ "public", "void", "setFailures", "(", "java", ".", "util", ".", "Collection", "<", "String", ">", "failures", ")", "{", "if", "(", "failures", "==", "null", ")", "{", "this", ".", "failures", "=", "null", ";", "return", ";", "}", "this", ".", "failures", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "String", ">", "(", "failures", ")", ";", "}" ]
Provides up to 100 of the first failed entries for the job, if any exist. @param failures Provides up to 100 of the first failed entries for the job, if any exist.
[ "Provides", "up", "to", "100", "of", "the", "first", "failed", "entries", "for", "the", "job", "if", "any", "exist", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ImportJobResponse.java#L285-L292
20,449
aws/aws-sdk-java
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java
AmazonSageMakerWaiters.notebookInstanceStopped
public Waiter<DescribeNotebookInstanceRequest> notebookInstanceStopped() { return new WaiterBuilder<DescribeNotebookInstanceRequest, DescribeNotebookInstanceResult>() .withSdkFunction(new DescribeNotebookInstanceFunction(client)) .withAcceptors(new NotebookInstanceStopped.IsStoppedMatcher(), new NotebookInstanceStopped.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeNotebookInstanceRequest> notebookInstanceStopped() { return new WaiterBuilder<DescribeNotebookInstanceRequest, DescribeNotebookInstanceResult>() .withSdkFunction(new DescribeNotebookInstanceFunction(client)) .withAcceptors(new NotebookInstanceStopped.IsStoppedMatcher(), new NotebookInstanceStopped.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeNotebookInstanceRequest", ">", "notebookInstanceStopped", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeNotebookInstanceRequest", ",", "DescribeNotebookInstanceResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeNotebookInstanceFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "NotebookInstanceStopped", ".", "IsStoppedMatcher", "(", ")", ",", "new", "NotebookInstanceStopped", ".", "IsFailedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "60", ")", ",", "new", "FixedDelayStrategy", "(", "30", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a NotebookInstanceStopped 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", "NotebookInstanceStopped", "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-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java#L51-L58
20,450
aws/aws-sdk-java
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java
AmazonSageMakerWaiters.notebookInstanceDeleted
public Waiter<DescribeNotebookInstanceRequest> notebookInstanceDeleted() { return new WaiterBuilder<DescribeNotebookInstanceRequest, DescribeNotebookInstanceResult>() .withSdkFunction(new DescribeNotebookInstanceFunction(client)) .withAcceptors(new NotebookInstanceDeleted.IsValidationExceptionMatcher(), new NotebookInstanceDeleted.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeNotebookInstanceRequest> notebookInstanceDeleted() { return new WaiterBuilder<DescribeNotebookInstanceRequest, DescribeNotebookInstanceResult>() .withSdkFunction(new DescribeNotebookInstanceFunction(client)) .withAcceptors(new NotebookInstanceDeleted.IsValidationExceptionMatcher(), new NotebookInstanceDeleted.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeNotebookInstanceRequest", ">", "notebookInstanceDeleted", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeNotebookInstanceRequest", ",", "DescribeNotebookInstanceResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeNotebookInstanceFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "NotebookInstanceDeleted", ".", "IsValidationExceptionMatcher", "(", ")", ",", "new", "NotebookInstanceDeleted", ".", "IsFailedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "60", ")", ",", "new", "FixedDelayStrategy", "(", "30", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a NotebookInstanceDeleted 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", "NotebookInstanceDeleted", "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-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java#L65-L72
20,451
aws/aws-sdk-java
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java
AmazonSageMakerWaiters.endpointInService
public Waiter<DescribeEndpointRequest> endpointInService() { return new WaiterBuilder<DescribeEndpointRequest, DescribeEndpointResult>() .withSdkFunction(new DescribeEndpointFunction(client)) .withAcceptors(new EndpointInService.IsInServiceMatcher(), new EndpointInService.IsFailedMatcher(), new EndpointInService.IsValidationExceptionMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeEndpointRequest> endpointInService() { return new WaiterBuilder<DescribeEndpointRequest, DescribeEndpointResult>() .withSdkFunction(new DescribeEndpointFunction(client)) .withAcceptors(new EndpointInService.IsInServiceMatcher(), new EndpointInService.IsFailedMatcher(), new EndpointInService.IsValidationExceptionMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(120), new FixedDelayStrategy(30))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeEndpointRequest", ">", "endpointInService", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeEndpointRequest", ",", "DescribeEndpointResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeEndpointFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "EndpointInService", ".", "IsInServiceMatcher", "(", ")", ",", "new", "EndpointInService", ".", "IsFailedMatcher", "(", ")", ",", "new", "EndpointInService", ".", "IsValidationExceptionMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "120", ")", ",", "new", "FixedDelayStrategy", "(", "30", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a EndpointInService 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", "EndpointInService", "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-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java#L79-L87
20,452
aws/aws-sdk-java
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java
AmazonSageMakerWaiters.notebookInstanceInService
public Waiter<DescribeNotebookInstanceRequest> notebookInstanceInService() { return new WaiterBuilder<DescribeNotebookInstanceRequest, DescribeNotebookInstanceResult>() .withSdkFunction(new DescribeNotebookInstanceFunction(client)) .withAcceptors(new NotebookInstanceInService.IsInServiceMatcher(), new NotebookInstanceInService.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeNotebookInstanceRequest> notebookInstanceInService() { return new WaiterBuilder<DescribeNotebookInstanceRequest, DescribeNotebookInstanceResult>() .withSdkFunction(new DescribeNotebookInstanceFunction(client)) .withAcceptors(new NotebookInstanceInService.IsInServiceMatcher(), new NotebookInstanceInService.IsFailedMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(30))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeNotebookInstanceRequest", ">", "notebookInstanceInService", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeNotebookInstanceRequest", ",", "DescribeNotebookInstanceResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeNotebookInstanceFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "NotebookInstanceInService", ".", "IsInServiceMatcher", "(", ")", ",", "new", "NotebookInstanceInService", ".", "IsFailedMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "60", ")", ",", "new", "FixedDelayStrategy", "(", "30", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a NotebookInstanceInService 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", "NotebookInstanceInService", "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-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java#L107-L114
20,453
aws/aws-sdk-java
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java
AmazonSageMakerWaiters.transformJobCompletedOrStopped
public Waiter<DescribeTransformJobRequest> transformJobCompletedOrStopped() { return new WaiterBuilder<DescribeTransformJobRequest, DescribeTransformJobResult>() .withSdkFunction(new DescribeTransformJobFunction(client)) .withAcceptors(new TransformJobCompletedOrStopped.IsCompletedMatcher(), new TransformJobCompletedOrStopped.IsStoppedMatcher(), new TransformJobCompletedOrStopped.IsFailedMatcher(), new TransformJobCompletedOrStopped.IsValidationExceptionMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(60))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeTransformJobRequest> transformJobCompletedOrStopped() { return new WaiterBuilder<DescribeTransformJobRequest, DescribeTransformJobResult>() .withSdkFunction(new DescribeTransformJobFunction(client)) .withAcceptors(new TransformJobCompletedOrStopped.IsCompletedMatcher(), new TransformJobCompletedOrStopped.IsStoppedMatcher(), new TransformJobCompletedOrStopped.IsFailedMatcher(), new TransformJobCompletedOrStopped.IsValidationExceptionMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(60), new FixedDelayStrategy(60))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeTransformJobRequest", ">", "transformJobCompletedOrStopped", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeTransformJobRequest", ",", "DescribeTransformJobResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeTransformJobFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "TransformJobCompletedOrStopped", ".", "IsCompletedMatcher", "(", ")", ",", "new", "TransformJobCompletedOrStopped", ".", "IsStoppedMatcher", "(", ")", ",", "new", "TransformJobCompletedOrStopped", ".", "IsFailedMatcher", "(", ")", ",", "new", "TransformJobCompletedOrStopped", ".", "IsValidationExceptionMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "60", ")", ",", "new", "FixedDelayStrategy", "(", "60", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a TransformJobCompletedOrStopped 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", "TransformJobCompletedOrStopped", "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-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java#L121-L129
20,454
aws/aws-sdk-java
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java
AmazonSageMakerWaiters.trainingJobCompletedOrStopped
public Waiter<DescribeTrainingJobRequest> trainingJobCompletedOrStopped() { return new WaiterBuilder<DescribeTrainingJobRequest, DescribeTrainingJobResult>() .withSdkFunction(new DescribeTrainingJobFunction(client)) .withAcceptors(new TrainingJobCompletedOrStopped.IsCompletedMatcher(), new TrainingJobCompletedOrStopped.IsStoppedMatcher(), new TrainingJobCompletedOrStopped.IsFailedMatcher(), new TrainingJobCompletedOrStopped.IsValidationExceptionMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(180), new FixedDelayStrategy(120))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeTrainingJobRequest> trainingJobCompletedOrStopped() { return new WaiterBuilder<DescribeTrainingJobRequest, DescribeTrainingJobResult>() .withSdkFunction(new DescribeTrainingJobFunction(client)) .withAcceptors(new TrainingJobCompletedOrStopped.IsCompletedMatcher(), new TrainingJobCompletedOrStopped.IsStoppedMatcher(), new TrainingJobCompletedOrStopped.IsFailedMatcher(), new TrainingJobCompletedOrStopped.IsValidationExceptionMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(180), new FixedDelayStrategy(120))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeTrainingJobRequest", ">", "trainingJobCompletedOrStopped", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeTrainingJobRequest", ",", "DescribeTrainingJobResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeTrainingJobFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "TrainingJobCompletedOrStopped", ".", "IsCompletedMatcher", "(", ")", ",", "new", "TrainingJobCompletedOrStopped", ".", "IsStoppedMatcher", "(", ")", ",", "new", "TrainingJobCompletedOrStopped", ".", "IsFailedMatcher", "(", ")", ",", "new", "TrainingJobCompletedOrStopped", ".", "IsValidationExceptionMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "180", ")", ",", "new", "FixedDelayStrategy", "(", "120", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a TrainingJobCompletedOrStopped 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", "TrainingJobCompletedOrStopped", "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-sagemaker/src/main/java/com/amazonaws/services/sagemaker/waiters/AmazonSageMakerWaiters.java#L136-L144
20,455
aws/aws-sdk-java
aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/ListGroupsResult.java
ListGroupsResult.setGroups
public void setGroups(java.util.Collection<GroupInformation> groups) { if (groups == null) { this.groups = null; return; } this.groups = new java.util.ArrayList<GroupInformation>(groups); }
java
public void setGroups(java.util.Collection<GroupInformation> groups) { if (groups == null) { this.groups = null; return; } this.groups = new java.util.ArrayList<GroupInformation>(groups); }
[ "public", "void", "setGroups", "(", "java", ".", "util", ".", "Collection", "<", "GroupInformation", ">", "groups", ")", "{", "if", "(", "groups", "==", "null", ")", "{", "this", ".", "groups", "=", "null", ";", "return", ";", "}", "this", ".", "groups", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "GroupInformation", ">", "(", "groups", ")", ";", "}" ]
Information about a group. @param groups Information about a group.
[ "Information", "about", "a", "group", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-greengrass/src/main/java/com/amazonaws/services/greengrass/model/ListGroupsResult.java#L48-L55
20,456
aws/aws-sdk-java
src/samples/AmazonEC2SpotInstances-Advanced/Requests.java
Requests.tagResources
private void tagResources(List<String> resources, List<Tag> tags) { // Create a tag request. CreateTagsRequest createTagsRequest = new CreateTagsRequest(); createTagsRequest.setResources(resources); createTagsRequest.setTags(tags); // Try to tag the Spot request submitted. try { ec2.createTags(createTagsRequest); } catch (AmazonServiceException e) { // Write out any exceptions that may have occurred. System.out.println("Error terminating instances"); System.out.println("Caught Exception: " + e.getMessage()); System.out.println("Reponse Status Code: " + e.getStatusCode()); System.out.println("Error Code: " + e.getErrorCode()); System.out.println("Request ID: " + e.getRequestId()); } }
java
private void tagResources(List<String> resources, List<Tag> tags) { // Create a tag request. CreateTagsRequest createTagsRequest = new CreateTagsRequest(); createTagsRequest.setResources(resources); createTagsRequest.setTags(tags); // Try to tag the Spot request submitted. try { ec2.createTags(createTagsRequest); } catch (AmazonServiceException e) { // Write out any exceptions that may have occurred. System.out.println("Error terminating instances"); System.out.println("Caught Exception: " + e.getMessage()); System.out.println("Reponse Status Code: " + e.getStatusCode()); System.out.println("Error Code: " + e.getErrorCode()); System.out.println("Request ID: " + e.getRequestId()); } }
[ "private", "void", "tagResources", "(", "List", "<", "String", ">", "resources", ",", "List", "<", "Tag", ">", "tags", ")", "{", "// Create a tag request.\r", "CreateTagsRequest", "createTagsRequest", "=", "new", "CreateTagsRequest", "(", ")", ";", "createTagsRequest", ".", "setResources", "(", "resources", ")", ";", "createTagsRequest", ".", "setTags", "(", "tags", ")", ";", "// Try to tag the Spot request submitted.\r", "try", "{", "ec2", ".", "createTags", "(", "createTagsRequest", ")", ";", "}", "catch", "(", "AmazonServiceException", "e", ")", "{", "// Write out any exceptions that may have occurred.\r", "System", ".", "out", ".", "println", "(", "\"Error terminating instances\"", ")", ";", "System", ".", "out", ".", "println", "(", "\"Caught Exception: \"", "+", "e", ".", "getMessage", "(", ")", ")", ";", "System", ".", "out", ".", "println", "(", "\"Reponse Status Code: \"", "+", "e", ".", "getStatusCode", "(", ")", ")", ";", "System", ".", "out", ".", "println", "(", "\"Error Code: \"", "+", "e", ".", "getErrorCode", "(", ")", ")", ";", "System", ".", "out", ".", "println", "(", "\"Request ID: \"", "+", "e", ".", "getRequestId", "(", ")", ")", ";", "}", "}" ]
Tag any of the resources we specify. @param resources @param tags
[ "Tag", "any", "of", "the", "resources", "we", "specify", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/src/samples/AmazonEC2SpotInstances-Advanced/Requests.java#L320-L338
20,457
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AWSS3V4Signer.java
AWSS3V4Signer.processRequestPayload
@Override protected void processRequestPayload(SignableRequest<?> request, byte[] signature, byte[] signingKey, AWS4SignerRequestParams signerRequestParams) { if (useChunkEncoding(request)) { AwsChunkedEncodingInputStream chunkEncodededStream = new AwsChunkedEncodingInputStream( request.getContent(), signingKey, signerRequestParams.getFormattedSigningDateTime(), signerRequestParams.getScope(), BinaryUtils.toHex(signature), this); request.setContent(chunkEncodededStream); } }
java
@Override protected void processRequestPayload(SignableRequest<?> request, byte[] signature, byte[] signingKey, AWS4SignerRequestParams signerRequestParams) { if (useChunkEncoding(request)) { AwsChunkedEncodingInputStream chunkEncodededStream = new AwsChunkedEncodingInputStream( request.getContent(), signingKey, signerRequestParams.getFormattedSigningDateTime(), signerRequestParams.getScope(), BinaryUtils.toHex(signature), this); request.setContent(chunkEncodededStream); } }
[ "@", "Override", "protected", "void", "processRequestPayload", "(", "SignableRequest", "<", "?", ">", "request", ",", "byte", "[", "]", "signature", ",", "byte", "[", "]", "signingKey", ",", "AWS4SignerRequestParams", "signerRequestParams", ")", "{", "if", "(", "useChunkEncoding", "(", "request", ")", ")", "{", "AwsChunkedEncodingInputStream", "chunkEncodededStream", "=", "new", "AwsChunkedEncodingInputStream", "(", "request", ".", "getContent", "(", ")", ",", "signingKey", ",", "signerRequestParams", ".", "getFormattedSigningDateTime", "(", ")", ",", "signerRequestParams", ".", "getScope", "(", ")", ",", "BinaryUtils", ".", "toHex", "(", "signature", ")", ",", "this", ")", ";", "request", ".", "setContent", "(", "chunkEncodededStream", ")", ";", "}", "}" ]
If necessary, creates a chunk-encoding wrapper on the request payload.
[ "If", "necessary", "creates", "a", "chunk", "-", "encoding", "wrapper", "on", "the", "request", "payload", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AWSS3V4Signer.java#L56-L67
20,458
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AWSS3V4Signer.java
AWSS3V4Signer.calculateContentHash
@Override protected String calculateContentHash(SignableRequest<?> request) { // To be consistent with other service clients using sig-v4, // we just set the header as "required", and AWS4Signer.sign() will be // notified to pick up the header value returned by this method. request.addHeader(X_AMZ_CONTENT_SHA256, "required"); if (isPayloadSigningEnabled(request)) { if (useChunkEncoding(request)) { final String contentLength = request.getHeaders().get(Headers.CONTENT_LENGTH); final long originalContentLength; if (contentLength != null) { originalContentLength = Long.parseLong(contentLength); } else { /** * "Content-Length" header could be missing if the caller is * uploading a stream without setting Content-Length in * ObjectMetadata. Before using sigv4, we rely on HttpClient to * add this header by using BufferedHttpEntity when creating the * HttpRequest object. But now, we need this information * immediately for the signing process, so we have to cache the * stream here. */ try { originalContentLength = getContentLength(request); } catch (IOException e) { throw new SdkClientException( "Cannot get the content-length of the request content.", e); } } request.addHeader("x-amz-decoded-content-length", Long.toString(originalContentLength)); // Make sure "Content-Length" header is not empty so that HttpClient // won't cache the stream again to recover Content-Length request.addHeader(Headers.CONTENT_LENGTH, Long.toString( AwsChunkedEncodingInputStream .calculateStreamContentLength(originalContentLength))); return CONTENT_SHA_256; } else { return super.calculateContentHash(request); } } return UNSIGNED_PAYLOAD; }
java
@Override protected String calculateContentHash(SignableRequest<?> request) { // To be consistent with other service clients using sig-v4, // we just set the header as "required", and AWS4Signer.sign() will be // notified to pick up the header value returned by this method. request.addHeader(X_AMZ_CONTENT_SHA256, "required"); if (isPayloadSigningEnabled(request)) { if (useChunkEncoding(request)) { final String contentLength = request.getHeaders().get(Headers.CONTENT_LENGTH); final long originalContentLength; if (contentLength != null) { originalContentLength = Long.parseLong(contentLength); } else { /** * "Content-Length" header could be missing if the caller is * uploading a stream without setting Content-Length in * ObjectMetadata. Before using sigv4, we rely on HttpClient to * add this header by using BufferedHttpEntity when creating the * HttpRequest object. But now, we need this information * immediately for the signing process, so we have to cache the * stream here. */ try { originalContentLength = getContentLength(request); } catch (IOException e) { throw new SdkClientException( "Cannot get the content-length of the request content.", e); } } request.addHeader("x-amz-decoded-content-length", Long.toString(originalContentLength)); // Make sure "Content-Length" header is not empty so that HttpClient // won't cache the stream again to recover Content-Length request.addHeader(Headers.CONTENT_LENGTH, Long.toString( AwsChunkedEncodingInputStream .calculateStreamContentLength(originalContentLength))); return CONTENT_SHA_256; } else { return super.calculateContentHash(request); } } return UNSIGNED_PAYLOAD; }
[ "@", "Override", "protected", "String", "calculateContentHash", "(", "SignableRequest", "<", "?", ">", "request", ")", "{", "// To be consistent with other service clients using sig-v4,", "// we just set the header as \"required\", and AWS4Signer.sign() will be", "// notified to pick up the header value returned by this method.", "request", ".", "addHeader", "(", "X_AMZ_CONTENT_SHA256", ",", "\"required\"", ")", ";", "if", "(", "isPayloadSigningEnabled", "(", "request", ")", ")", "{", "if", "(", "useChunkEncoding", "(", "request", ")", ")", "{", "final", "String", "contentLength", "=", "request", ".", "getHeaders", "(", ")", ".", "get", "(", "Headers", ".", "CONTENT_LENGTH", ")", ";", "final", "long", "originalContentLength", ";", "if", "(", "contentLength", "!=", "null", ")", "{", "originalContentLength", "=", "Long", ".", "parseLong", "(", "contentLength", ")", ";", "}", "else", "{", "/**\n * \"Content-Length\" header could be missing if the caller is\n * uploading a stream without setting Content-Length in\n * ObjectMetadata. Before using sigv4, we rely on HttpClient to\n * add this header by using BufferedHttpEntity when creating the\n * HttpRequest object. But now, we need this information\n * immediately for the signing process, so we have to cache the\n * stream here.\n */", "try", "{", "originalContentLength", "=", "getContentLength", "(", "request", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "SdkClientException", "(", "\"Cannot get the content-length of the request content.\"", ",", "e", ")", ";", "}", "}", "request", ".", "addHeader", "(", "\"x-amz-decoded-content-length\"", ",", "Long", ".", "toString", "(", "originalContentLength", ")", ")", ";", "// Make sure \"Content-Length\" header is not empty so that HttpClient", "// won't cache the stream again to recover Content-Length", "request", ".", "addHeader", "(", "Headers", ".", "CONTENT_LENGTH", ",", "Long", ".", "toString", "(", "AwsChunkedEncodingInputStream", ".", "calculateStreamContentLength", "(", "originalContentLength", ")", ")", ")", ";", "return", "CONTENT_SHA_256", ";", "}", "else", "{", "return", "super", ".", "calculateContentHash", "(", "request", ")", ";", "}", "}", "return", "UNSIGNED_PAYLOAD", ";", "}" ]
Returns the pre-defined header value and set other necessary headers if the request needs to be chunk-encoded. Otherwise calls the superclass method which calculates the hash of the whole content for signing.
[ "Returns", "the", "pre", "-", "defined", "header", "value", "and", "set", "other", "necessary", "headers", "if", "the", "request", "needs", "to", "be", "chunk", "-", "encoded", ".", "Otherwise", "calls", "the", "superclass", "method", "which", "calculates", "the", "hash", "of", "the", "whole", "content", "for", "signing", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AWSS3V4Signer.java#L79-L123
20,459
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AWSS3V4Signer.java
AWSS3V4Signer.useChunkEncoding
private boolean useChunkEncoding(SignableRequest<?> request) { // If chunked encoding is explicitly disabled through client options return right here. // Chunked encoding only makes sense to do when the payload is signed if (!isPayloadSigningEnabled(request) || isChunkedEncodingDisabled(request)) { return false; } if (request.getOriginalRequestObject() instanceof PutObjectRequest || request.getOriginalRequestObject() instanceof UploadPartRequest) { return true; } return false; }
java
private boolean useChunkEncoding(SignableRequest<?> request) { // If chunked encoding is explicitly disabled through client options return right here. // Chunked encoding only makes sense to do when the payload is signed if (!isPayloadSigningEnabled(request) || isChunkedEncodingDisabled(request)) { return false; } if (request.getOriginalRequestObject() instanceof PutObjectRequest || request.getOriginalRequestObject() instanceof UploadPartRequest) { return true; } return false; }
[ "private", "boolean", "useChunkEncoding", "(", "SignableRequest", "<", "?", ">", "request", ")", "{", "// If chunked encoding is explicitly disabled through client options return right here.", "// Chunked encoding only makes sense to do when the payload is signed", "if", "(", "!", "isPayloadSigningEnabled", "(", "request", ")", "||", "isChunkedEncodingDisabled", "(", "request", ")", ")", "{", "return", "false", ";", "}", "if", "(", "request", ".", "getOriginalRequestObject", "(", ")", "instanceof", "PutObjectRequest", "||", "request", ".", "getOriginalRequestObject", "(", ")", "instanceof", "UploadPartRequest", ")", "{", "return", "true", ";", "}", "return", "false", ";", "}" ]
Determine whether to use aws-chunked for signing
[ "Determine", "whether", "to", "use", "aws", "-", "chunked", "for", "signing" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AWSS3V4Signer.java#L128-L139
20,460
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AWSS3V4Signer.java
AWSS3V4Signer.getContentLength
static long getContentLength(SignableRequest<?> request) throws IOException { final InputStream content = request.getContent(); if (!content.markSupported()) throw new IllegalStateException("Bug: request input stream must have been made mark-and-resettable at this point"); ReadLimitInfo info = request.getReadLimitInfo(); final int readLimit = info.getReadLimit(); long contentLength = 0; byte[] tmp = new byte[4096]; int read; content.mark(readLimit); while ((read = content.read(tmp)) != -1) { contentLength += read; } try { content.reset(); } catch(IOException ex) { throw new ResetException("Failed to reset the input stream", ex); } return contentLength; }
java
static long getContentLength(SignableRequest<?> request) throws IOException { final InputStream content = request.getContent(); if (!content.markSupported()) throw new IllegalStateException("Bug: request input stream must have been made mark-and-resettable at this point"); ReadLimitInfo info = request.getReadLimitInfo(); final int readLimit = info.getReadLimit(); long contentLength = 0; byte[] tmp = new byte[4096]; int read; content.mark(readLimit); while ((read = content.read(tmp)) != -1) { contentLength += read; } try { content.reset(); } catch(IOException ex) { throw new ResetException("Failed to reset the input stream", ex); } return contentLength; }
[ "static", "long", "getContentLength", "(", "SignableRequest", "<", "?", ">", "request", ")", "throws", "IOException", "{", "final", "InputStream", "content", "=", "request", ".", "getContent", "(", ")", ";", "if", "(", "!", "content", ".", "markSupported", "(", ")", ")", "throw", "new", "IllegalStateException", "(", "\"Bug: request input stream must have been made mark-and-resettable at this point\"", ")", ";", "ReadLimitInfo", "info", "=", "request", ".", "getReadLimitInfo", "(", ")", ";", "final", "int", "readLimit", "=", "info", ".", "getReadLimit", "(", ")", ";", "long", "contentLength", "=", "0", ";", "byte", "[", "]", "tmp", "=", "new", "byte", "[", "4096", "]", ";", "int", "read", ";", "content", ".", "mark", "(", "readLimit", ")", ";", "while", "(", "(", "read", "=", "content", ".", "read", "(", "tmp", ")", ")", "!=", "-", "1", ")", "{", "contentLength", "+=", "read", ";", "}", "try", "{", "content", ".", "reset", "(", ")", ";", "}", "catch", "(", "IOException", "ex", ")", "{", "throw", "new", "ResetException", "(", "\"Failed to reset the input stream\"", ",", "ex", ")", ";", "}", "return", "contentLength", ";", "}" ]
Read the content of the request to get the length of the stream. This method will wrap the stream by SdkBufferedInputStream if it is not mark-supported.
[ "Read", "the", "content", "of", "the", "request", "to", "get", "the", "length", "of", "the", "stream", ".", "This", "method", "will", "wrap", "the", "stream", "by", "SdkBufferedInputStream", "if", "it", "is", "not", "mark", "-", "supported", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/AWSS3V4Signer.java#L180-L199
20,461
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/RemoveUnusedShapes.java
RemoveUnusedShapes.addShapeAndMembers
private static void addShapeAndMembers(String shapeName, Map<String, ShapeModel> in, Map<String, ShapeModel> out) { if (shapeName == null) return; final ShapeModel shape = in.get(shapeName); if (shape == null) return; if (!out.containsKey(shapeName)) { out.put(shapeName, in.get(shapeName)); List<MemberModel> members = shape.getMembers(); if (members != null) { for (MemberModel member : members) { List<String> memberShapes = resolveMemberShapes(member); if (memberShapes == null) continue; for (String memberShape : memberShapes) { addShapeAndMembers(memberShape, in, out); } } } } }
java
private static void addShapeAndMembers(String shapeName, Map<String, ShapeModel> in, Map<String, ShapeModel> out) { if (shapeName == null) return; final ShapeModel shape = in.get(shapeName); if (shape == null) return; if (!out.containsKey(shapeName)) { out.put(shapeName, in.get(shapeName)); List<MemberModel> members = shape.getMembers(); if (members != null) { for (MemberModel member : members) { List<String> memberShapes = resolveMemberShapes(member); if (memberShapes == null) continue; for (String memberShape : memberShapes) { addShapeAndMembers(memberShape, in, out); } } } } }
[ "private", "static", "void", "addShapeAndMembers", "(", "String", "shapeName", ",", "Map", "<", "String", ",", "ShapeModel", ">", "in", ",", "Map", "<", "String", ",", "ShapeModel", ">", "out", ")", "{", "if", "(", "shapeName", "==", "null", ")", "return", ";", "final", "ShapeModel", "shape", "=", "in", ".", "get", "(", "shapeName", ")", ";", "if", "(", "shape", "==", "null", ")", "return", ";", "if", "(", "!", "out", ".", "containsKey", "(", "shapeName", ")", ")", "{", "out", ".", "put", "(", "shapeName", ",", "in", ".", "get", "(", "shapeName", ")", ")", ";", "List", "<", "MemberModel", ">", "members", "=", "shape", ".", "getMembers", "(", ")", ";", "if", "(", "members", "!=", "null", ")", "{", "for", "(", "MemberModel", "member", ":", "members", ")", "{", "List", "<", "String", ">", "memberShapes", "=", "resolveMemberShapes", "(", "member", ")", ";", "if", "(", "memberShapes", "==", "null", ")", "continue", ";", "for", "(", "String", "memberShape", ":", "memberShapes", ")", "{", "addShapeAndMembers", "(", "memberShape", ",", "in", ",", "out", ")", ";", "}", "}", "}", "}", "}" ]
Adds the shape. Recursively adds the shapes represented by its members.
[ "Adds", "the", "shape", ".", "Recursively", "adds", "the", "shapes", "represented", "by", "its", "members", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/RemoveUnusedShapes.java#L76-L99
20,462
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/RemoveUnusedShapes.java
RemoveUnusedShapes.resolveMemberShapes
private static List<String> resolveMemberShapes(MemberModel member) { if (member == null) return new LinkedList<String>(); if (member.getEnumType() != null) { return Collections.singletonList(member.getEnumType()); } else if (member.isList()) { return resolveMemberShapes(member.getListModel().getListMemberModel()); } else if (member.isMap()) { List<String> memberShapes = new LinkedList<String>(); memberShapes.addAll(resolveMemberShapes(member.getMapModel().getKeyModel())); memberShapes.addAll(resolveMemberShapes(member.getMapModel().getValueModel())); return memberShapes; } else if (member.isSimple()) { // member is scalar, do nothing return new LinkedList<String>(); } else { // member is a structure. return Collections.singletonList(member.getVariable().getSimpleType()); } }
java
private static List<String> resolveMemberShapes(MemberModel member) { if (member == null) return new LinkedList<String>(); if (member.getEnumType() != null) { return Collections.singletonList(member.getEnumType()); } else if (member.isList()) { return resolveMemberShapes(member.getListModel().getListMemberModel()); } else if (member.isMap()) { List<String> memberShapes = new LinkedList<String>(); memberShapes.addAll(resolveMemberShapes(member.getMapModel().getKeyModel())); memberShapes.addAll(resolveMemberShapes(member.getMapModel().getValueModel())); return memberShapes; } else if (member.isSimple()) { // member is scalar, do nothing return new LinkedList<String>(); } else { // member is a structure. return Collections.singletonList(member.getVariable().getSimpleType()); } }
[ "private", "static", "List", "<", "String", ">", "resolveMemberShapes", "(", "MemberModel", "member", ")", "{", "if", "(", "member", "==", "null", ")", "return", "new", "LinkedList", "<", "String", ">", "(", ")", ";", "if", "(", "member", ".", "getEnumType", "(", ")", "!=", "null", ")", "{", "return", "Collections", ".", "singletonList", "(", "member", ".", "getEnumType", "(", ")", ")", ";", "}", "else", "if", "(", "member", ".", "isList", "(", ")", ")", "{", "return", "resolveMemberShapes", "(", "member", ".", "getListModel", "(", ")", ".", "getListMemberModel", "(", ")", ")", ";", "}", "else", "if", "(", "member", ".", "isMap", "(", ")", ")", "{", "List", "<", "String", ">", "memberShapes", "=", "new", "LinkedList", "<", "String", ">", "(", ")", ";", "memberShapes", ".", "addAll", "(", "resolveMemberShapes", "(", "member", ".", "getMapModel", "(", ")", ".", "getKeyModel", "(", ")", ")", ")", ";", "memberShapes", ".", "addAll", "(", "resolveMemberShapes", "(", "member", ".", "getMapModel", "(", ")", ".", "getValueModel", "(", ")", ")", ")", ";", "return", "memberShapes", ";", "}", "else", "if", "(", "member", ".", "isSimple", "(", ")", ")", "{", "// member is scalar, do nothing", "return", "new", "LinkedList", "<", "String", ">", "(", ")", ";", "}", "else", "{", "// member is a structure.", "return", "Collections", ".", "singletonList", "(", "member", ".", "getVariable", "(", ")", ".", "getSimpleType", "(", ")", ")", ";", "}", "}" ]
Recursively resolves the shapes represented by the member. When the member is a map, both the key shape and the value shape of the map will be resolved, so that the returning list could have more than one elements.
[ "Recursively", "resolves", "the", "shapes", "represented", "by", "the", "member", ".", "When", "the", "member", "is", "a", "map", "both", "the", "key", "shape", "and", "the", "value", "shape", "of", "the", "map", "will", "be", "resolved", "so", "that", "the", "returning", "list", "could", "have", "more", "than", "one", "elements", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/RemoveUnusedShapes.java#L106-L125
20,463
aws/aws-sdk-java
aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/IntermediateModelBuilder.java
IntermediateModelBuilder.createShapeProcessors
private List<IntermediateModelShapeProcessor> createShapeProcessors() { final List<IntermediateModelShapeProcessor> processors = new ArrayList<>(); processors.add(new AddInputShapes(this)); processors.add(new AddOutputShapes(this)); processors.add(new AddExceptionShapes(this)); processors.add(new AddModelShapes(this)); processors.add(new AddEmptyInputShape(this)); processors.add(new AddEmptyOutputShape(this)); return processors; }
java
private List<IntermediateModelShapeProcessor> createShapeProcessors() { final List<IntermediateModelShapeProcessor> processors = new ArrayList<>(); processors.add(new AddInputShapes(this)); processors.add(new AddOutputShapes(this)); processors.add(new AddExceptionShapes(this)); processors.add(new AddModelShapes(this)); processors.add(new AddEmptyInputShape(this)); processors.add(new AddEmptyOutputShape(this)); return processors; }
[ "private", "List", "<", "IntermediateModelShapeProcessor", ">", "createShapeProcessors", "(", ")", "{", "final", "List", "<", "IntermediateModelShapeProcessor", ">", "processors", "=", "new", "ArrayList", "<>", "(", ")", ";", "processors", ".", "add", "(", "new", "AddInputShapes", "(", "this", ")", ")", ";", "processors", ".", "add", "(", "new", "AddOutputShapes", "(", "this", ")", ")", ";", "processors", ".", "add", "(", "new", "AddExceptionShapes", "(", "this", ")", ")", ";", "processors", ".", "add", "(", "new", "AddModelShapes", "(", "this", ")", ")", ";", "processors", ".", "add", "(", "new", "AddEmptyInputShape", "(", "this", ")", ")", ";", "processors", ".", "add", "(", "new", "AddEmptyOutputShape", "(", "this", ")", ")", ";", "return", "processors", ";", "}" ]
Create default shape processors.
[ "Create", "default", "shape", "processors", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/IntermediateModelBuilder.java#L86-L95
20,464
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/internal/JsonPolicyWriter.java
JsonPolicyWriter.writePolicyToString
public String writePolicyToString(Policy policy) { if(!isNotNull(policy)) throw new IllegalArgumentException("Policy cannot be null"); try { return jsonStringOf(policy); } catch (Exception e) { String message = "Unable to serialize policy to JSON string: " + e.getMessage(); throw new IllegalArgumentException(message, e); } finally { try { writer.close(); } catch (Exception e) { } } }
java
public String writePolicyToString(Policy policy) { if(!isNotNull(policy)) throw new IllegalArgumentException("Policy cannot be null"); try { return jsonStringOf(policy); } catch (Exception e) { String message = "Unable to serialize policy to JSON string: " + e.getMessage(); throw new IllegalArgumentException(message, e); } finally { try { writer.close(); } catch (Exception e) { } } }
[ "public", "String", "writePolicyToString", "(", "Policy", "policy", ")", "{", "if", "(", "!", "isNotNull", "(", "policy", ")", ")", "throw", "new", "IllegalArgumentException", "(", "\"Policy cannot be null\"", ")", ";", "try", "{", "return", "jsonStringOf", "(", "policy", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "String", "message", "=", "\"Unable to serialize policy to JSON string: \"", "+", "e", ".", "getMessage", "(", ")", ";", "throw", "new", "IllegalArgumentException", "(", "message", ",", "e", ")", ";", "}", "finally", "{", "try", "{", "writer", ".", "close", "(", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "}", "}", "}" ]
Converts the specified AWS policy object to a JSON string, suitable for passing to an AWS service. @param policy The AWS policy object to convert to a JSON string. @return The JSON string representation of the specified policy object. @throws IllegalArgumentException If the specified policy is null or invalid and cannot be serialized to a JSON string.
[ "Converts", "the", "specified", "AWS", "policy", "object", "to", "a", "JSON", "string", "suitable", "for", "passing", "to", "an", "AWS", "service", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/internal/JsonPolicyWriter.java#L83-L97
20,465
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/internal/JsonPolicyWriter.java
JsonPolicyWriter.writeConditions
private void writeConditions(List<Condition> conditions) throws JsonGenerationException, IOException { Map<String, ConditionsByKey> conditionsByType = groupConditionsByTypeAndKey(conditions); writeJsonObjectStart(JsonDocumentFields.CONDITION); ConditionsByKey conditionsByKey; for (Map.Entry<String, ConditionsByKey> entry : conditionsByType .entrySet()) { conditionsByKey = conditionsByType.get(entry.getKey()); writeJsonObjectStart(entry.getKey()); for (String key : conditionsByKey.keySet()) { writeJsonArray(key, conditionsByKey.getConditionsByKey(key)); } writeJsonObjectEnd(); } writeJsonObjectEnd(); }
java
private void writeConditions(List<Condition> conditions) throws JsonGenerationException, IOException { Map<String, ConditionsByKey> conditionsByType = groupConditionsByTypeAndKey(conditions); writeJsonObjectStart(JsonDocumentFields.CONDITION); ConditionsByKey conditionsByKey; for (Map.Entry<String, ConditionsByKey> entry : conditionsByType .entrySet()) { conditionsByKey = conditionsByType.get(entry.getKey()); writeJsonObjectStart(entry.getKey()); for (String key : conditionsByKey.keySet()) { writeJsonArray(key, conditionsByKey.getConditionsByKey(key)); } writeJsonObjectEnd(); } writeJsonObjectEnd(); }
[ "private", "void", "writeConditions", "(", "List", "<", "Condition", ">", "conditions", ")", "throws", "JsonGenerationException", ",", "IOException", "{", "Map", "<", "String", ",", "ConditionsByKey", ">", "conditionsByType", "=", "groupConditionsByTypeAndKey", "(", "conditions", ")", ";", "writeJsonObjectStart", "(", "JsonDocumentFields", ".", "CONDITION", ")", ";", "ConditionsByKey", "conditionsByKey", ";", "for", "(", "Map", ".", "Entry", "<", "String", ",", "ConditionsByKey", ">", "entry", ":", "conditionsByType", ".", "entrySet", "(", ")", ")", "{", "conditionsByKey", "=", "conditionsByType", ".", "get", "(", "entry", ".", "getKey", "(", ")", ")", ";", "writeJsonObjectStart", "(", "entry", ".", "getKey", "(", ")", ")", ";", "for", "(", "String", "key", ":", "conditionsByKey", ".", "keySet", "(", ")", ")", "{", "writeJsonArray", "(", "key", ",", "conditionsByKey", ".", "getConditionsByKey", "(", "key", ")", ")", ";", "}", "writeJsonObjectEnd", "(", ")", ";", "}", "writeJsonObjectEnd", "(", ")", ";", "}" ]
Writes the list of conditions to the JSONGenerator. @param conditions the conditions to be written.
[ "Writes", "the", "list", "of", "conditions", "to", "the", "JSONGenerator", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/internal/JsonPolicyWriter.java#L161-L179
20,466
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/internal/JsonPolicyWriter.java
JsonPolicyWriter.writeJsonArray
private void writeJsonArray(String arrayName, List<String> values) throws JsonGenerationException, IOException { writeJsonArrayStart(arrayName); for (String value : values) generator.writeString(value); writeJsonArrayEnd(); }
java
private void writeJsonArray(String arrayName, List<String> values) throws JsonGenerationException, IOException { writeJsonArrayStart(arrayName); for (String value : values) generator.writeString(value); writeJsonArrayEnd(); }
[ "private", "void", "writeJsonArray", "(", "String", "arrayName", ",", "List", "<", "String", ">", "values", ")", "throws", "JsonGenerationException", ",", "IOException", "{", "writeJsonArrayStart", "(", "arrayName", ")", ";", "for", "(", "String", "value", ":", "values", ")", "generator", ".", "writeString", "(", "value", ")", ";", "writeJsonArrayEnd", "(", ")", ";", "}" ]
Writes an array along with its values to the JSONGenerator. @param arrayName name of the JSON array. @param values values of the JSON array.
[ "Writes", "an", "array", "along", "with", "its", "values", "to", "the", "JSONGenerator", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/internal/JsonPolicyWriter.java#L353-L359
20,467
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/internal/JsonPolicyWriter.java
JsonPolicyWriter.writeJsonKeyValue
private void writeJsonKeyValue(String fieldName, String value) throws JsonGenerationException, IOException { generator.writeStringField(fieldName, value); }
java
private void writeJsonKeyValue(String fieldName, String value) throws JsonGenerationException, IOException { generator.writeStringField(fieldName, value); }
[ "private", "void", "writeJsonKeyValue", "(", "String", "fieldName", ",", "String", "value", ")", "throws", "JsonGenerationException", ",", "IOException", "{", "generator", ".", "writeStringField", "(", "fieldName", ",", "value", ")", ";", "}" ]
Writes the given field and the value to the JsonGenerator @param fieldName the JSON field name @param value value for the field
[ "Writes", "the", "given", "field", "and", "the", "value", "to", "the", "JsonGenerator" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/auth/policy/internal/JsonPolicyWriter.java#L407-L410
20,468
aws/aws-sdk-java
aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/AbstractAmazonElasticTranscoderAsync.java
AbstractAmazonElasticTranscoderAsync.listPipelinesAsync
@Override public java.util.concurrent.Future<ListPipelinesResult> listPipelinesAsync( com.amazonaws.handlers.AsyncHandler<ListPipelinesRequest, ListPipelinesResult> asyncHandler) { return listPipelinesAsync(new ListPipelinesRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<ListPipelinesResult> listPipelinesAsync( com.amazonaws.handlers.AsyncHandler<ListPipelinesRequest, ListPipelinesResult> asyncHandler) { return listPipelinesAsync(new ListPipelinesRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "ListPipelinesResult", ">", "listPipelinesAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "ListPipelinesRequest", ",", "ListPipelinesResult", ">", "asyncHandler", ")", "{", "return", "listPipelinesAsync", "(", "new", "ListPipelinesRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the ListPipelines operation with an AsyncHandler. @see #listPipelinesAsync(ListPipelinesRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "ListPipelines", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/AbstractAmazonElasticTranscoderAsync.java#L163-L168
20,469
aws/aws-sdk-java
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/EncryptedGetObjectRequest.java
EncryptedGetObjectRequest.withExtraMaterialsDescription
public EncryptedGetObjectRequest withExtraMaterialsDescription( Map<String, String> supplemental) { setExtraMaterialDescription(supplemental == null ? null : new ExtraMaterialsDescription(supplemental)); return this; }
java
public EncryptedGetObjectRequest withExtraMaterialsDescription( Map<String, String> supplemental) { setExtraMaterialDescription(supplemental == null ? null : new ExtraMaterialsDescription(supplemental)); return this; }
[ "public", "EncryptedGetObjectRequest", "withExtraMaterialsDescription", "(", "Map", "<", "String", ",", "String", ">", "supplemental", ")", "{", "setExtraMaterialDescription", "(", "supplemental", "==", "null", "?", "null", ":", "new", "ExtraMaterialsDescription", "(", "supplemental", ")", ")", ";", "return", "this", ";", "}" ]
Fluent API to set the supplemental materials description for the encryption materials to be used with the current request. @param supplemental the materialsDescription to set; must not conflict with the existing one saved in S3 or else will cause the get request to fail fast later on
[ "Fluent", "API", "to", "set", "the", "supplemental", "materials", "description", "for", "the", "encryption", "materials", "to", "be", "used", "with", "the", "current", "request", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/EncryptedGetObjectRequest.java#L129-L134
20,470
aws/aws-sdk-java
aws-java-sdk-rdsdata/src/main/java/com/amazonaws/services/rdsdata/AWSRDSDataClient.java
AWSRDSDataClient.executeSql
@Override public ExecuteSqlResult executeSql(ExecuteSqlRequest request) { request = beforeClientExecution(request); return executeExecuteSql(request); }
java
@Override public ExecuteSqlResult executeSql(ExecuteSqlRequest request) { request = beforeClientExecution(request); return executeExecuteSql(request); }
[ "@", "Override", "public", "ExecuteSqlResult", "executeSql", "(", "ExecuteSqlRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeExecuteSql", "(", "request", ")", ";", "}" ]
Executes any SQL statement on the target database synchronously @param executeSqlRequest Execute SQL Request @return Result of the ExecuteSql operation returned by the service. @throws BadRequestException Invalid Request exception @throws ForbiddenException Access denied exception @throws InternalServerErrorException Internal service error @throws ServiceUnavailableErrorException Internal service unavailable error @sample AWSRDSData.ExecuteSql @see <a href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSql" target="_top">AWS API Documentation</a>
[ "Executes", "any", "SQL", "statement", "on", "the", "target", "database", "synchronously" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-rdsdata/src/main/java/com/amazonaws/services/rdsdata/AWSRDSDataClient.java#L156-L160
20,471
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/Event.java
Event.withAttributes
public Event withAttributes(java.util.Map<String, String> attributes) { setAttributes(attributes); return this; }
java
public Event withAttributes(java.util.Map<String, String> attributes) { setAttributes(attributes); return this; }
[ "public", "Event", "withAttributes", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "attributes", ")", "{", "setAttributes", "(", "attributes", ")", ";", "return", "this", ";", "}" ]
Custom attributes that are associated with the event you're adding or updating. @param attributes Custom attributes that are associated with the event you're adding or updating. @return Returns a reference to this object so that method calls can be chained together.
[ "Custom", "attributes", "that", "are", "associated", "with", "the", "event", "you", "re", "adding", "or", "updating", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/Event.java#L181-L184
20,472
aws/aws-sdk-java
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/TimedMetadataInsertion.java
TimedMetadataInsertion.setId3Insertions
public void setId3Insertions(java.util.Collection<Id3Insertion> id3Insertions) { if (id3Insertions == null) { this.id3Insertions = null; return; } this.id3Insertions = new java.util.ArrayList<Id3Insertion>(id3Insertions); }
java
public void setId3Insertions(java.util.Collection<Id3Insertion> id3Insertions) { if (id3Insertions == null) { this.id3Insertions = null; return; } this.id3Insertions = new java.util.ArrayList<Id3Insertion>(id3Insertions); }
[ "public", "void", "setId3Insertions", "(", "java", ".", "util", ".", "Collection", "<", "Id3Insertion", ">", "id3Insertions", ")", "{", "if", "(", "id3Insertions", "==", "null", ")", "{", "this", ".", "id3Insertions", "=", "null", ";", "return", ";", "}", "this", ".", "id3Insertions", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "Id3Insertion", ">", "(", "id3Insertions", ")", ";", "}" ]
Id3Insertions contains the array of Id3Insertion instances. @param id3Insertions Id3Insertions contains the array of Id3Insertion instances.
[ "Id3Insertions", "contains", "the", "array", "of", "Id3Insertion", "instances", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/TimedMetadataInsertion.java#L51-L58
20,473
aws/aws-sdk-java
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ApplicationResponse.java
ApplicationResponse.withTags
public ApplicationResponse withTags(java.util.Map<String, String> tags) { setTags(tags); return this; }
java
public ApplicationResponse withTags(java.util.Map<String, String> tags) { setTags(tags); return this; }
[ "public", "ApplicationResponse", "withTags", "(", "java", ".", "util", ".", "Map", "<", "String", ",", "String", ">", "tags", ")", "{", "setTags", "(", "tags", ")", ";", "return", "this", ";", "}" ]
The Tags for the application. @param tags The Tags for the application. @return Returns a reference to this object so that method calls can be chained together.
[ "The", "Tags", "for", "the", "application", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/ApplicationResponse.java#L169-L172
20,474
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/AbstractSpecWithPrimaryKey.java
AbstractSpecWithPrimaryKey.withPrimaryKey
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(KeyAttribute ... components) { if (components == null) this.keyComponents = null; else this.keyComponents = Arrays.asList(components); return this; }
java
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(KeyAttribute ... components) { if (components == null) this.keyComponents = null; else this.keyComponents = Arrays.asList(components); return this; }
[ "public", "AbstractSpecWithPrimaryKey", "<", "T", ">", "withPrimaryKey", "(", "KeyAttribute", "...", "components", ")", "{", "if", "(", "components", "==", "null", ")", "this", ".", "keyComponents", "=", "null", ";", "else", "this", ".", "keyComponents", "=", "Arrays", ".", "asList", "(", "components", ")", ";", "return", "this", ";", "}" ]
Sets the primary key with the specified key components.
[ "Sets", "the", "primary", "key", "with", "the", "specified", "key", "components", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/AbstractSpecWithPrimaryKey.java#L45-L51
20,475
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/AbstractSpecWithPrimaryKey.java
AbstractSpecWithPrimaryKey.withPrimaryKey
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(PrimaryKey primaryKey) { if (primaryKey == null) this.keyComponents = null; else { this.keyComponents = primaryKey.getComponents(); } return this; }
java
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(PrimaryKey primaryKey) { if (primaryKey == null) this.keyComponents = null; else { this.keyComponents = primaryKey.getComponents(); } return this; }
[ "public", "AbstractSpecWithPrimaryKey", "<", "T", ">", "withPrimaryKey", "(", "PrimaryKey", "primaryKey", ")", "{", "if", "(", "primaryKey", "==", "null", ")", "this", ".", "keyComponents", "=", "null", ";", "else", "{", "this", ".", "keyComponents", "=", "primaryKey", ".", "getComponents", "(", ")", ";", "}", "return", "this", ";", "}" ]
Sets the primary key.
[ "Sets", "the", "primary", "key", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/AbstractSpecWithPrimaryKey.java#L56-L63
20,476
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/AbstractSpecWithPrimaryKey.java
AbstractSpecWithPrimaryKey.withPrimaryKey
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue) { if (hashKeyName == null) throw new IllegalArgumentException(); withPrimaryKey(new PrimaryKey(hashKeyName, hashKeyValue)); return this; }
java
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue) { if (hashKeyName == null) throw new IllegalArgumentException(); withPrimaryKey(new PrimaryKey(hashKeyName, hashKeyValue)); return this; }
[ "public", "AbstractSpecWithPrimaryKey", "<", "T", ">", "withPrimaryKey", "(", "String", "hashKeyName", ",", "Object", "hashKeyValue", ")", "{", "if", "(", "hashKeyName", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", ")", ";", "withPrimaryKey", "(", "new", "PrimaryKey", "(", "hashKeyName", ",", "hashKeyValue", ")", ")", ";", "return", "this", ";", "}" ]
Sets the primary key with the specified hash-only key name and value.
[ "Sets", "the", "primary", "key", "with", "the", "specified", "hash", "-", "only", "key", "name", "and", "value", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/AbstractSpecWithPrimaryKey.java#L68-L73
20,477
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/AbstractSpecWithPrimaryKey.java
AbstractSpecWithPrimaryKey.withPrimaryKey
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue) { if (hashKeyName == null) throw new IllegalArgumentException("Invalid hash key name"); if (rangeKeyName == null) throw new IllegalArgumentException("Invalid range key name"); if (hashKeyName.equals(rangeKeyName)) throw new IllegalArgumentException("Names of hash and range keys must not be the same"); withPrimaryKey(new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue)); return this; }
java
public AbstractSpecWithPrimaryKey<T> withPrimaryKey(String hashKeyName, Object hashKeyValue, String rangeKeyName, Object rangeKeyValue) { if (hashKeyName == null) throw new IllegalArgumentException("Invalid hash key name"); if (rangeKeyName == null) throw new IllegalArgumentException("Invalid range key name"); if (hashKeyName.equals(rangeKeyName)) throw new IllegalArgumentException("Names of hash and range keys must not be the same"); withPrimaryKey(new PrimaryKey(hashKeyName, hashKeyValue, rangeKeyName, rangeKeyValue)); return this; }
[ "public", "AbstractSpecWithPrimaryKey", "<", "T", ">", "withPrimaryKey", "(", "String", "hashKeyName", ",", "Object", "hashKeyValue", ",", "String", "rangeKeyName", ",", "Object", "rangeKeyValue", ")", "{", "if", "(", "hashKeyName", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", "\"Invalid hash key name\"", ")", ";", "if", "(", "rangeKeyName", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", "\"Invalid range key name\"", ")", ";", "if", "(", "hashKeyName", ".", "equals", "(", "rangeKeyName", ")", ")", "throw", "new", "IllegalArgumentException", "(", "\"Names of hash and range keys must not be the same\"", ")", ";", "withPrimaryKey", "(", "new", "PrimaryKey", "(", "hashKeyName", ",", "hashKeyValue", ",", "rangeKeyName", ",", "rangeKeyValue", ")", ")", ";", "return", "this", ";", "}" ]
Sets the primary key with the specified hash key and range key.
[ "Sets", "the", "primary", "key", "with", "the", "specified", "hash", "key", "and", "range", "key", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/AbstractSpecWithPrimaryKey.java#L78-L89
20,478
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/ScanSpec.java
ScanSpec.withNameMap
public ScanSpec withNameMap(Map<String, String> nameMap) { if (nameMap == null) this.nameMap = null; else this.nameMap = Collections.unmodifiableMap(new LinkedHashMap<String, String>(nameMap)); return this; }
java
public ScanSpec withNameMap(Map<String, String> nameMap) { if (nameMap == null) this.nameMap = null; else this.nameMap = Collections.unmodifiableMap(new LinkedHashMap<String, String>(nameMap)); return this; }
[ "public", "ScanSpec", "withNameMap", "(", "Map", "<", "String", ",", "String", ">", "nameMap", ")", "{", "if", "(", "nameMap", "==", "null", ")", "this", ".", "nameMap", "=", "null", ";", "else", "this", ".", "nameMap", "=", "Collections", ".", "unmodifiableMap", "(", "new", "LinkedHashMap", "<", "String", ",", "String", ">", "(", "nameMap", ")", ")", ";", "return", "this", ";", "}" ]
Applicable only when an expression has been specified. Used to specify the actual values for the attribute-name placeholders, where the value in the map can either be string for simple attribute name, or a JSON path expression. @see ScanRequest#withExpressionAttributeNames(Map)
[ "Applicable", "only", "when", "an", "expression", "has", "been", "specified", ".", "Used", "to", "specify", "the", "actual", "values", "for", "the", "attribute", "-", "name", "placeholders", "where", "the", "value", "in", "the", "map", "can", "either", "be", "string", "for", "simple", "attribute", "name", "or", "a", "JSON", "path", "expression", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/ScanSpec.java#L163-L169
20,479
aws/aws-sdk-java
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/ScanSpec.java
ScanSpec.withValueMap
public ScanSpec withValueMap(Map<String, Object> valueMap) { if (valueMap == null) this.valueMap = null; else this.valueMap = Collections.unmodifiableMap(new LinkedHashMap<String, Object>(valueMap)); return this; }
java
public ScanSpec withValueMap(Map<String, Object> valueMap) { if (valueMap == null) this.valueMap = null; else this.valueMap = Collections.unmodifiableMap(new LinkedHashMap<String, Object>(valueMap)); return this; }
[ "public", "ScanSpec", "withValueMap", "(", "Map", "<", "String", ",", "Object", ">", "valueMap", ")", "{", "if", "(", "valueMap", "==", "null", ")", "this", ".", "valueMap", "=", "null", ";", "else", "this", ".", "valueMap", "=", "Collections", ".", "unmodifiableMap", "(", "new", "LinkedHashMap", "<", "String", ",", "Object", ">", "(", "valueMap", ")", ")", ";", "return", "this", ";", "}" ]
Applicable only when an expression has been specified. Used to specify the actual values for the attribute-value placeholders. @see ScanRequest#withExpressionAttributeValues(Map)
[ "Applicable", "only", "when", "an", "expression", "has", "been", "specified", ".", "Used", "to", "specify", "the", "actual", "values", "for", "the", "attribute", "-", "value", "placeholders", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/spec/ScanSpec.java#L184-L190
20,480
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/monitoring/internal/ClientSideMonitoringRequestHandler.java
ClientSideMonitoringRequestHandler.trimValueIfExceedsMaxLength
private String trimValueIfExceedsMaxLength(String entry, String value) { if (value == null) { return null; } String result = value; Integer maximumSize = ENTRY_TO_MAX_SIZE.get(entry); if (maximumSize != null && value.length() > maximumSize) { result = value.substring(0, maximumSize); } return result; }
java
private String trimValueIfExceedsMaxLength(String entry, String value) { if (value == null) { return null; } String result = value; Integer maximumSize = ENTRY_TO_MAX_SIZE.get(entry); if (maximumSize != null && value.length() > maximumSize) { result = value.substring(0, maximumSize); } return result; }
[ "private", "String", "trimValueIfExceedsMaxLength", "(", "String", "entry", ",", "String", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "return", "null", ";", "}", "String", "result", "=", "value", ";", "Integer", "maximumSize", "=", "ENTRY_TO_MAX_SIZE", ".", "get", "(", "entry", ")", ";", "if", "(", "maximumSize", "!=", "null", "&&", "value", ".", "length", "(", ")", ">", "maximumSize", ")", "{", "result", "=", "value", ".", "substring", "(", "0", ",", "maximumSize", ")", ";", "}", "return", "result", ";", "}" ]
If the entry exceeds the maximum length limit associated with the entry, its value will be trimmed to meet its limit.
[ "If", "the", "entry", "exceeds", "the", "maximum", "length", "limit", "associated", "with", "the", "entry", "its", "value", "will", "be", "trimmed", "to", "meet", "its", "limit", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/monitoring/internal/ClientSideMonitoringRequestHandler.java#L285-L296
20,481
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/monitoring/internal/ClientSideMonitoringRequestHandler.java
ClientSideMonitoringRequestHandler.getDefaultUserAgent
private String getDefaultUserAgent(Request<?> request) { String userAgentMarker = request.getOriginalRequest().getRequestClientOptions().getClientMarker(RequestClientOptions .Marker.USER_AGENT); String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; if (StringUtils.hasValue(userAgentMarker)) { userAgent += " " + userAgentMarker; } return userAgent; }
java
private String getDefaultUserAgent(Request<?> request) { String userAgentMarker = request.getOriginalRequest().getRequestClientOptions().getClientMarker(RequestClientOptions .Marker.USER_AGENT); String userAgent = ClientConfiguration.DEFAULT_USER_AGENT; if (StringUtils.hasValue(userAgentMarker)) { userAgent += " " + userAgentMarker; } return userAgent; }
[ "private", "String", "getDefaultUserAgent", "(", "Request", "<", "?", ">", "request", ")", "{", "String", "userAgentMarker", "=", "request", ".", "getOriginalRequest", "(", ")", ".", "getRequestClientOptions", "(", ")", ".", "getClientMarker", "(", "RequestClientOptions", ".", "Marker", ".", "USER_AGENT", ")", ";", "String", "userAgent", "=", "ClientConfiguration", ".", "DEFAULT_USER_AGENT", ";", "if", "(", "StringUtils", ".", "hasValue", "(", "userAgentMarker", ")", ")", "{", "userAgent", "+=", "\" \"", "+", "userAgentMarker", ";", "}", "return", "userAgent", ";", "}" ]
Get the default user agent and append the user agent marker if there are any.
[ "Get", "the", "default", "user", "agent", "and", "append", "the", "user", "agent", "marker", "if", "there", "are", "any", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/monitoring/internal/ClientSideMonitoringRequestHandler.java#L301-L309
20,482
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/monitoring/internal/ClientSideMonitoringRequestHandler.java
ClientSideMonitoringRequestHandler.calculateRequestLatency
private Long calculateRequestLatency(TimingInfo timingInfo) { if (timingInfo == null) { return null; } TimingInfo httpClientSendRequestTime = timingInfo.getLastSubMeasurement(AWSRequestMetrics.Field.HttpClientSendRequestTime .name()); TimingInfo httpClientReceiveResponseTime = timingInfo.getLastSubMeasurement(AWSRequestMetrics.Field .HttpClientReceiveResponseTime.name()); if (httpClientSendRequestTime != null && httpClientSendRequestTime.getTimeTakenMillisIfKnown() != null && httpClientReceiveResponseTime != null && httpClientReceiveResponseTime.getTimeTakenMillisIfKnown() != null) { return httpClientSendRequestTime.getTimeTakenMillisIfKnown().longValue() + httpClientReceiveResponseTime.getTimeTakenMillisIfKnown().longValue(); } return null; }
java
private Long calculateRequestLatency(TimingInfo timingInfo) { if (timingInfo == null) { return null; } TimingInfo httpClientSendRequestTime = timingInfo.getLastSubMeasurement(AWSRequestMetrics.Field.HttpClientSendRequestTime .name()); TimingInfo httpClientReceiveResponseTime = timingInfo.getLastSubMeasurement(AWSRequestMetrics.Field .HttpClientReceiveResponseTime.name()); if (httpClientSendRequestTime != null && httpClientSendRequestTime.getTimeTakenMillisIfKnown() != null && httpClientReceiveResponseTime != null && httpClientReceiveResponseTime.getTimeTakenMillisIfKnown() != null) { return httpClientSendRequestTime.getTimeTakenMillisIfKnown().longValue() + httpClientReceiveResponseTime.getTimeTakenMillisIfKnown().longValue(); } return null; }
[ "private", "Long", "calculateRequestLatency", "(", "TimingInfo", "timingInfo", ")", "{", "if", "(", "timingInfo", "==", "null", ")", "{", "return", "null", ";", "}", "TimingInfo", "httpClientSendRequestTime", "=", "timingInfo", ".", "getLastSubMeasurement", "(", "AWSRequestMetrics", ".", "Field", ".", "HttpClientSendRequestTime", ".", "name", "(", ")", ")", ";", "TimingInfo", "httpClientReceiveResponseTime", "=", "timingInfo", ".", "getLastSubMeasurement", "(", "AWSRequestMetrics", ".", "Field", ".", "HttpClientReceiveResponseTime", ".", "name", "(", ")", ")", ";", "if", "(", "httpClientSendRequestTime", "!=", "null", "&&", "httpClientSendRequestTime", ".", "getTimeTakenMillisIfKnown", "(", ")", "!=", "null", "&&", "httpClientReceiveResponseTime", "!=", "null", "&&", "httpClientReceiveResponseTime", ".", "getTimeTakenMillisIfKnown", "(", ")", "!=", "null", ")", "{", "return", "httpClientSendRequestTime", ".", "getTimeTakenMillisIfKnown", "(", ")", ".", "longValue", "(", ")", "+", "httpClientReceiveResponseTime", ".", "getTimeTakenMillisIfKnown", "(", ")", ".", "longValue", "(", ")", ";", "}", "return", "null", ";", "}" ]
Calculate the request latency. RequestLatency = httpClientSendRequestTime + HttpClientReceiveResponseTime
[ "Calculate", "the", "request", "latency", ".", "RequestLatency", "=", "httpClientSendRequestTime", "+", "HttpClientReceiveResponseTime" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/monitoring/internal/ClientSideMonitoringRequestHandler.java#L331-L346
20,483
aws/aws-sdk-java
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/DescribeInputSecurityGroupResult.java
DescribeInputSecurityGroupResult.setInputs
public void setInputs(java.util.Collection<String> inputs) { if (inputs == null) { this.inputs = null; return; } this.inputs = new java.util.ArrayList<String>(inputs); }
java
public void setInputs(java.util.Collection<String> inputs) { if (inputs == null) { this.inputs = null; return; } this.inputs = new java.util.ArrayList<String>(inputs); }
[ "public", "void", "setInputs", "(", "java", ".", "util", ".", "Collection", "<", "String", ">", "inputs", ")", "{", "if", "(", "inputs", "==", "null", ")", "{", "this", ".", "inputs", "=", "null", ";", "return", ";", "}", "this", ".", "inputs", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "String", ">", "(", "inputs", ")", ";", "}" ]
The list of inputs currently using this Input Security Group. @param inputs The list of inputs currently using this Input Security Group.
[ "The", "list", "of", "inputs", "currently", "using", "this", "Input", "Security", "Group", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/DescribeInputSecurityGroupResult.java#L125-L132
20,484
aws/aws-sdk-java
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/DescribeInputSecurityGroupResult.java
DescribeInputSecurityGroupResult.setWhitelistRules
public void setWhitelistRules(java.util.Collection<InputWhitelistRule> whitelistRules) { if (whitelistRules == null) { this.whitelistRules = null; return; } this.whitelistRules = new java.util.ArrayList<InputWhitelistRule>(whitelistRules); }
java
public void setWhitelistRules(java.util.Collection<InputWhitelistRule> whitelistRules) { if (whitelistRules == null) { this.whitelistRules = null; return; } this.whitelistRules = new java.util.ArrayList<InputWhitelistRule>(whitelistRules); }
[ "public", "void", "setWhitelistRules", "(", "java", ".", "util", ".", "Collection", "<", "InputWhitelistRule", ">", "whitelistRules", ")", "{", "if", "(", "whitelistRules", "==", "null", ")", "{", "this", ".", "whitelistRules", "=", "null", ";", "return", ";", "}", "this", ".", "whitelistRules", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "InputWhitelistRule", ">", "(", "whitelistRules", ")", ";", "}" ]
Whitelist rules and their sync status @param whitelistRules Whitelist rules and their sync status
[ "Whitelist", "rules", "and", "their", "sync", "status" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/DescribeInputSecurityGroupResult.java#L293-L300
20,485
aws/aws-sdk-java
aws-java-sdk-acm/src/main/java/com/amazonaws/services/certificatemanager/waiters/AWSCertificateManagerWaiters.java
AWSCertificateManagerWaiters.certificateValidated
public Waiter<DescribeCertificateRequest> certificateValidated() { return new WaiterBuilder<DescribeCertificateRequest, DescribeCertificateResult>() .withSdkFunction(new DescribeCertificateFunction(client)) .withAcceptors(new CertificateValidated.IsSUCCESSMatcher(), new CertificateValidated.IsPENDING_VALIDATIONMatcher(), new CertificateValidated.IsFAILEDMatcher(), new CertificateValidated.IsResourceNotFoundExceptionMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(60))) .withExecutorService(executorService).build(); }
java
public Waiter<DescribeCertificateRequest> certificateValidated() { return new WaiterBuilder<DescribeCertificateRequest, DescribeCertificateResult>() .withSdkFunction(new DescribeCertificateFunction(client)) .withAcceptors(new CertificateValidated.IsSUCCESSMatcher(), new CertificateValidated.IsPENDING_VALIDATIONMatcher(), new CertificateValidated.IsFAILEDMatcher(), new CertificateValidated.IsResourceNotFoundExceptionMatcher()) .withDefaultPollingStrategy(new PollingStrategy(new MaxAttemptsRetryStrategy(40), new FixedDelayStrategy(60))) .withExecutorService(executorService).build(); }
[ "public", "Waiter", "<", "DescribeCertificateRequest", ">", "certificateValidated", "(", ")", "{", "return", "new", "WaiterBuilder", "<", "DescribeCertificateRequest", ",", "DescribeCertificateResult", ">", "(", ")", ".", "withSdkFunction", "(", "new", "DescribeCertificateFunction", "(", "client", ")", ")", ".", "withAcceptors", "(", "new", "CertificateValidated", ".", "IsSUCCESSMatcher", "(", ")", ",", "new", "CertificateValidated", ".", "IsPENDING_VALIDATIONMatcher", "(", ")", ",", "new", "CertificateValidated", ".", "IsFAILEDMatcher", "(", ")", ",", "new", "CertificateValidated", ".", "IsResourceNotFoundExceptionMatcher", "(", ")", ")", ".", "withDefaultPollingStrategy", "(", "new", "PollingStrategy", "(", "new", "MaxAttemptsRetryStrategy", "(", "40", ")", ",", "new", "FixedDelayStrategy", "(", "60", ")", ")", ")", ".", "withExecutorService", "(", "executorService", ")", ".", "build", "(", ")", ";", "}" ]
Builds a CertificateValidated 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", "CertificateValidated", "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-acm/src/main/java/com/amazonaws/services/certificatemanager/waiters/AWSCertificateManagerWaiters.java#L51-L59
20,486
aws/aws-sdk-java
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StepFactory.java
StepFactory.newScriptRunnerStep
public HadoopJarStepConfig newScriptRunnerStep(String script, String... args) { List<String> argsList = new ArrayList<String>(); argsList.add(script); for (String arg : args) { argsList.add(arg); } return new HadoopJarStepConfig() .withJar("s3://" + bucket + "/libs/script-runner/script-runner.jar") .withArgs(argsList); }
java
public HadoopJarStepConfig newScriptRunnerStep(String script, String... args) { List<String> argsList = new ArrayList<String>(); argsList.add(script); for (String arg : args) { argsList.add(arg); } return new HadoopJarStepConfig() .withJar("s3://" + bucket + "/libs/script-runner/script-runner.jar") .withArgs(argsList); }
[ "public", "HadoopJarStepConfig", "newScriptRunnerStep", "(", "String", "script", ",", "String", "...", "args", ")", "{", "List", "<", "String", ">", "argsList", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "argsList", ".", "add", "(", "script", ")", ";", "for", "(", "String", "arg", ":", "args", ")", "{", "argsList", ".", "add", "(", "arg", ")", ";", "}", "return", "new", "HadoopJarStepConfig", "(", ")", ".", "withJar", "(", "\"s3://\"", "+", "bucket", "+", "\"/libs/script-runner/script-runner.jar\"", ")", ".", "withArgs", "(", "argsList", ")", ";", "}" ]
Runs a specified script on the master node of your cluster. @param script The script to run. @param args Arguments that get passed to the script. @return HadoopJarStepConfig that can be passed to your job flow.
[ "Runs", "a", "specified", "script", "on", "the", "master", "node", "of", "your", "cluster", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StepFactory.java#L132-L141
20,487
aws/aws-sdk-java
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StepFactory.java
StepFactory.newRunHiveScriptStepVersioned
public HadoopJarStepConfig newRunHiveScriptStepVersioned(String script, String hiveVersion, String... scriptArgs) { List<String> hiveArgs = new ArrayList<String>(); hiveArgs.add("--hive-versions"); hiveArgs.add(hiveVersion); hiveArgs.add("--run-hive-script"); hiveArgs.add("--args"); hiveArgs.add("-f"); hiveArgs.add(script); hiveArgs.addAll(Arrays.asList(scriptArgs)); return newHivePigStep("hive", hiveArgs.toArray(new String[0])); }
java
public HadoopJarStepConfig newRunHiveScriptStepVersioned(String script, String hiveVersion, String... scriptArgs) { List<String> hiveArgs = new ArrayList<String>(); hiveArgs.add("--hive-versions"); hiveArgs.add(hiveVersion); hiveArgs.add("--run-hive-script"); hiveArgs.add("--args"); hiveArgs.add("-f"); hiveArgs.add(script); hiveArgs.addAll(Arrays.asList(scriptArgs)); return newHivePigStep("hive", hiveArgs.toArray(new String[0])); }
[ "public", "HadoopJarStepConfig", "newRunHiveScriptStepVersioned", "(", "String", "script", ",", "String", "hiveVersion", ",", "String", "...", "scriptArgs", ")", "{", "List", "<", "String", ">", "hiveArgs", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "hiveArgs", ".", "add", "(", "\"--hive-versions\"", ")", ";", "hiveArgs", ".", "add", "(", "hiveVersion", ")", ";", "hiveArgs", ".", "add", "(", "\"--run-hive-script\"", ")", ";", "hiveArgs", ".", "add", "(", "\"--args\"", ")", ";", "hiveArgs", ".", "add", "(", "\"-f\"", ")", ";", "hiveArgs", ".", "add", "(", "script", ")", ";", "hiveArgs", ".", "addAll", "(", "Arrays", ".", "asList", "(", "scriptArgs", ")", ")", ";", "return", "newHivePigStep", "(", "\"hive\"", ",", "hiveArgs", ".", "toArray", "(", "new", "String", "[", "0", "]", ")", ")", ";", "}" ]
Step that runs a Hive script on your job flow using the specified Hive version. @param script The script to run. @param hiveVersion The Hive version to use. @param scriptArgs Arguments that get passed to the script. @return HadoopJarStepConfig that can be passed to your job flow.
[ "Step", "that", "runs", "a", "Hive", "script", "on", "your", "job", "flow", "using", "the", "specified", "Hive", "version", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StepFactory.java#L205-L216
20,488
aws/aws-sdk-java
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StepFactory.java
StepFactory.newInstallPigStep
public HadoopJarStepConfig newInstallPigStep(String... pigVersions) { if (pigVersions != null && pigVersions.length > 0) { return newHivePigStep("pig", "--install-pig", "--pig-versions", StringUtils.join(",", pigVersions)); } return newHivePigStep("pig", "--install-pig", "--pig-versions", "latest"); }
java
public HadoopJarStepConfig newInstallPigStep(String... pigVersions) { if (pigVersions != null && pigVersions.length > 0) { return newHivePigStep("pig", "--install-pig", "--pig-versions", StringUtils.join(",", pigVersions)); } return newHivePigStep("pig", "--install-pig", "--pig-versions", "latest"); }
[ "public", "HadoopJarStepConfig", "newInstallPigStep", "(", "String", "...", "pigVersions", ")", "{", "if", "(", "pigVersions", "!=", "null", "&&", "pigVersions", ".", "length", ">", "0", ")", "{", "return", "newHivePigStep", "(", "\"pig\"", ",", "\"--install-pig\"", ",", "\"--pig-versions\"", ",", "StringUtils", ".", "join", "(", "\",\"", ",", "pigVersions", ")", ")", ";", "}", "return", "newHivePigStep", "(", "\"pig\"", ",", "\"--install-pig\"", ",", "\"--pig-versions\"", ",", "\"latest\"", ")", ";", "}" ]
Step that installs Pig on your job flow. @param pigVersions the versions of Pig to install. @return HadoopJarStepConfig that can be passed to your job flow.
[ "Step", "that", "installs", "Pig", "on", "your", "job", "flow", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StepFactory.java#L247-L253
20,489
aws/aws-sdk-java
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StepFactory.java
StepFactory.newRunPigScriptStep
public HadoopJarStepConfig newRunPigScriptStep(String script, String pigVersion, String... scriptArgs) { List<String> pigArgs = new ArrayList<String>(); pigArgs.add("--pig-versions"); pigArgs.add(pigVersion); pigArgs.add("--run-pig-script"); pigArgs.add("--args"); pigArgs.add("-f"); pigArgs.add(script); pigArgs.addAll(Arrays.asList(scriptArgs)); return newHivePigStep("pig", pigArgs.toArray(new String[0])); }
java
public HadoopJarStepConfig newRunPigScriptStep(String script, String pigVersion, String... scriptArgs) { List<String> pigArgs = new ArrayList<String>(); pigArgs.add("--pig-versions"); pigArgs.add(pigVersion); pigArgs.add("--run-pig-script"); pigArgs.add("--args"); pigArgs.add("-f"); pigArgs.add(script); pigArgs.addAll(Arrays.asList(scriptArgs)); return newHivePigStep("pig", pigArgs.toArray(new String[0])); }
[ "public", "HadoopJarStepConfig", "newRunPigScriptStep", "(", "String", "script", ",", "String", "pigVersion", ",", "String", "...", "scriptArgs", ")", "{", "List", "<", "String", ">", "pigArgs", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "pigArgs", ".", "add", "(", "\"--pig-versions\"", ")", ";", "pigArgs", ".", "add", "(", "pigVersion", ")", ";", "pigArgs", ".", "add", "(", "\"--run-pig-script\"", ")", ";", "pigArgs", ".", "add", "(", "\"--args\"", ")", ";", "pigArgs", ".", "add", "(", "\"-f\"", ")", ";", "pigArgs", ".", "add", "(", "script", ")", ";", "pigArgs", ".", "addAll", "(", "Arrays", ".", "asList", "(", "scriptArgs", ")", ")", ";", "return", "newHivePigStep", "(", "\"pig\"", ",", "pigArgs", ".", "toArray", "(", "new", "String", "[", "0", "]", ")", ")", ";", "}" ]
Step that runs a Pig script on your job flow using the specified Pig version. @param script The script to run. @param pigVersion The Pig version to use. @param scriptArgs Arguments that get passed to the script. @return HadoopJarStepConfig that can be passed to your job flow.
[ "Step", "that", "runs", "a", "Pig", "script", "on", "your", "job", "flow", "using", "the", "specified", "Pig", "version", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StepFactory.java#L266-L277
20,490
aws/aws-sdk-java
aws-java-sdk-rdsdata/src/main/java/com/amazonaws/services/rdsdata/model/ResultSetMetadata.java
ResultSetMetadata.setColumnMetadata
public void setColumnMetadata(java.util.Collection<ColumnMetadata> columnMetadata) { if (columnMetadata == null) { this.columnMetadata = null; return; } this.columnMetadata = new java.util.ArrayList<ColumnMetadata>(columnMetadata); }
java
public void setColumnMetadata(java.util.Collection<ColumnMetadata> columnMetadata) { if (columnMetadata == null) { this.columnMetadata = null; return; } this.columnMetadata = new java.util.ArrayList<ColumnMetadata>(columnMetadata); }
[ "public", "void", "setColumnMetadata", "(", "java", ".", "util", ".", "Collection", "<", "ColumnMetadata", ">", "columnMetadata", ")", "{", "if", "(", "columnMetadata", "==", "null", ")", "{", "this", ".", "columnMetadata", "=", "null", ";", "return", ";", "}", "this", ".", "columnMetadata", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "ColumnMetadata", ">", "(", "columnMetadata", ")", ";", "}" ]
List of columns and their types @param columnMetadata List of columns and their types
[ "List", "of", "columns", "and", "their", "types" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-rdsdata/src/main/java/com/amazonaws/services/rdsdata/model/ResultSetMetadata.java#L85-L92
20,491
aws/aws-sdk-java
aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/Job.java
Job.setOutputGroupDetails
public void setOutputGroupDetails(java.util.Collection<OutputGroupDetail> outputGroupDetails) { if (outputGroupDetails == null) { this.outputGroupDetails = null; return; } this.outputGroupDetails = new java.util.ArrayList<OutputGroupDetail>(outputGroupDetails); }
java
public void setOutputGroupDetails(java.util.Collection<OutputGroupDetail> outputGroupDetails) { if (outputGroupDetails == null) { this.outputGroupDetails = null; return; } this.outputGroupDetails = new java.util.ArrayList<OutputGroupDetail>(outputGroupDetails); }
[ "public", "void", "setOutputGroupDetails", "(", "java", ".", "util", ".", "Collection", "<", "OutputGroupDetail", ">", "outputGroupDetails", ")", "{", "if", "(", "outputGroupDetails", "==", "null", ")", "{", "this", ".", "outputGroupDetails", "=", "null", ";", "return", ";", "}", "this", ".", "outputGroupDetails", "=", "new", "java", ".", "util", ".", "ArrayList", "<", "OutputGroupDetail", ">", "(", "outputGroupDetails", ")", ";", "}" ]
List of output group details @param outputGroupDetails List of output group details
[ "List", "of", "output", "group", "details" ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-mediaconvert/src/main/java/com/amazonaws/services/mediaconvert/model/Job.java#L543-L550
20,492
aws/aws-sdk-java
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StreamingStep.java
StreamingStep.setInputs
public void setInputs(Collection<String> inputs) { List<String> newInputs = new ArrayList<String>(); if (inputs != null) { newInputs.addAll(inputs); } this.inputs = newInputs; }
java
public void setInputs(Collection<String> inputs) { List<String> newInputs = new ArrayList<String>(); if (inputs != null) { newInputs.addAll(inputs); } this.inputs = newInputs; }
[ "public", "void", "setInputs", "(", "Collection", "<", "String", ">", "inputs", ")", "{", "List", "<", "String", ">", "newInputs", "=", "new", "ArrayList", "<", "String", ">", "(", ")", ";", "if", "(", "inputs", "!=", "null", ")", "{", "newInputs", ".", "addAll", "(", "inputs", ")", ";", "}", "this", ".", "inputs", "=", "newInputs", ";", "}" ]
Set the list of step input paths. @param inputs List of step inputs.
[ "Set", "the", "list", "of", "step", "input", "paths", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StreamingStep.java#L88-L94
20,493
aws/aws-sdk-java
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StreamingStep.java
StreamingStep.withInputs
public StreamingStep withInputs(String ... inputs) { for (String input : inputs) { this.inputs.add(input); } return this; }
java
public StreamingStep withInputs(String ... inputs) { for (String input : inputs) { this.inputs.add(input); } return this; }
[ "public", "StreamingStep", "withInputs", "(", "String", "...", "inputs", ")", "{", "for", "(", "String", "input", ":", "inputs", ")", "{", "this", ".", "inputs", ".", "add", "(", "input", ")", ";", "}", "return", "this", ";", "}" ]
Add more input paths to this step. @param inputs A list of inputs to this step. @return A reference to this updated object so that method calls can be chained together.
[ "Add", "more", "input", "paths", "to", "this", "step", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/util/StreamingStep.java#L102-L107
20,494
aws/aws-sdk-java
aws-java-sdk-core/src/main/java/com/amazonaws/util/RuntimeHttpUtils.java
RuntimeHttpUtils.fetchFile
@SuppressWarnings("deprecation") public static InputStream fetchFile( final URI uri, final ClientConfiguration config) throws IOException { HttpParams httpClientParams = new BasicHttpParams(); HttpProtocolParams.setUserAgent( httpClientParams, getUserAgent(config, null)); HttpConnectionParams.setConnectionTimeout( httpClientParams, getConnectionTimeout(config)); HttpConnectionParams.setSoTimeout( httpClientParams, getSocketTimeout(config)); DefaultHttpClient httpclient = new DefaultHttpClient(httpClientParams); if (config != null) { String proxyHost = config.getProxyHost(); int proxyPort = config.getProxyPort(); if (proxyHost != null && proxyPort > 0) { HttpHost proxy = new HttpHost(proxyHost, proxyPort); httpclient.getParams().setParameter( ConnRoutePNames.DEFAULT_PROXY, proxy); if (config.getProxyUsername() != null && config.getProxyPassword() != null) { httpclient.getCredentialsProvider().setCredentials( new AuthScope(proxyHost, proxyPort), new NTCredentials(config.getProxyUsername(), config.getProxyPassword(), config.getProxyWorkstation(), config.getProxyDomain())); } } } HttpResponse response = httpclient.execute(new HttpGet(uri)); if (response.getStatusLine().getStatusCode() != 200) { throw new IOException("Error fetching file from " + uri + ": " + response); } return new HttpClientWrappingInputStream( httpclient, response.getEntity().getContent()); }
java
@SuppressWarnings("deprecation") public static InputStream fetchFile( final URI uri, final ClientConfiguration config) throws IOException { HttpParams httpClientParams = new BasicHttpParams(); HttpProtocolParams.setUserAgent( httpClientParams, getUserAgent(config, null)); HttpConnectionParams.setConnectionTimeout( httpClientParams, getConnectionTimeout(config)); HttpConnectionParams.setSoTimeout( httpClientParams, getSocketTimeout(config)); DefaultHttpClient httpclient = new DefaultHttpClient(httpClientParams); if (config != null) { String proxyHost = config.getProxyHost(); int proxyPort = config.getProxyPort(); if (proxyHost != null && proxyPort > 0) { HttpHost proxy = new HttpHost(proxyHost, proxyPort); httpclient.getParams().setParameter( ConnRoutePNames.DEFAULT_PROXY, proxy); if (config.getProxyUsername() != null && config.getProxyPassword() != null) { httpclient.getCredentialsProvider().setCredentials( new AuthScope(proxyHost, proxyPort), new NTCredentials(config.getProxyUsername(), config.getProxyPassword(), config.getProxyWorkstation(), config.getProxyDomain())); } } } HttpResponse response = httpclient.execute(new HttpGet(uri)); if (response.getStatusLine().getStatusCode() != 200) { throw new IOException("Error fetching file from " + uri + ": " + response); } return new HttpClientWrappingInputStream( httpclient, response.getEntity().getContent()); }
[ "@", "SuppressWarnings", "(", "\"deprecation\"", ")", "public", "static", "InputStream", "fetchFile", "(", "final", "URI", "uri", ",", "final", "ClientConfiguration", "config", ")", "throws", "IOException", "{", "HttpParams", "httpClientParams", "=", "new", "BasicHttpParams", "(", ")", ";", "HttpProtocolParams", ".", "setUserAgent", "(", "httpClientParams", ",", "getUserAgent", "(", "config", ",", "null", ")", ")", ";", "HttpConnectionParams", ".", "setConnectionTimeout", "(", "httpClientParams", ",", "getConnectionTimeout", "(", "config", ")", ")", ";", "HttpConnectionParams", ".", "setSoTimeout", "(", "httpClientParams", ",", "getSocketTimeout", "(", "config", ")", ")", ";", "DefaultHttpClient", "httpclient", "=", "new", "DefaultHttpClient", "(", "httpClientParams", ")", ";", "if", "(", "config", "!=", "null", ")", "{", "String", "proxyHost", "=", "config", ".", "getProxyHost", "(", ")", ";", "int", "proxyPort", "=", "config", ".", "getProxyPort", "(", ")", ";", "if", "(", "proxyHost", "!=", "null", "&&", "proxyPort", ">", "0", ")", "{", "HttpHost", "proxy", "=", "new", "HttpHost", "(", "proxyHost", ",", "proxyPort", ")", ";", "httpclient", ".", "getParams", "(", ")", ".", "setParameter", "(", "ConnRoutePNames", ".", "DEFAULT_PROXY", ",", "proxy", ")", ";", "if", "(", "config", ".", "getProxyUsername", "(", ")", "!=", "null", "&&", "config", ".", "getProxyPassword", "(", ")", "!=", "null", ")", "{", "httpclient", ".", "getCredentialsProvider", "(", ")", ".", "setCredentials", "(", "new", "AuthScope", "(", "proxyHost", ",", "proxyPort", ")", ",", "new", "NTCredentials", "(", "config", ".", "getProxyUsername", "(", ")", ",", "config", ".", "getProxyPassword", "(", ")", ",", "config", ".", "getProxyWorkstation", "(", ")", ",", "config", ".", "getProxyDomain", "(", ")", ")", ")", ";", "}", "}", "}", "HttpResponse", "response", "=", "httpclient", ".", "execute", "(", "new", "HttpGet", "(", "uri", ")", ")", ";", "if", "(", "response", ".", "getStatusLine", "(", ")", ".", "getStatusCode", "(", ")", "!=", "200", ")", "{", "throw", "new", "IOException", "(", "\"Error fetching file from \"", "+", "uri", "+", "\": \"", "+", "response", ")", ";", "}", "return", "new", "HttpClientWrappingInputStream", "(", "httpclient", ",", "response", ".", "getEntity", "(", ")", ".", "getContent", "(", ")", ")", ";", "}" ]
Fetches a file from the URI given and returns an input stream to it. @param uri the uri of the file to fetch @param config optional configuration overrides @return an InputStream containing the retrieved data @throws IOException on error
[ "Fetches", "a", "file", "from", "the", "URI", "given", "and", "returns", "an", "input", "stream", "to", "it", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-core/src/main/java/com/amazonaws/util/RuntimeHttpUtils.java#L60-L109
20,495
aws/aws-sdk-java
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/TreeHashGenerator.java
TreeHashGenerator.calculateTreeHash
public static String calculateTreeHash(File file) throws AmazonClientException { ResettableInputStream is = null; try { is = new ResettableInputStream(file); return calculateTreeHash(is); } catch (IOException e) { throw new AmazonClientException("Unable to compute hash for file: " + file.getAbsolutePath(), e); } finally { if (is != null) is.release(); } }
java
public static String calculateTreeHash(File file) throws AmazonClientException { ResettableInputStream is = null; try { is = new ResettableInputStream(file); return calculateTreeHash(is); } catch (IOException e) { throw new AmazonClientException("Unable to compute hash for file: " + file.getAbsolutePath(), e); } finally { if (is != null) is.release(); } }
[ "public", "static", "String", "calculateTreeHash", "(", "File", "file", ")", "throws", "AmazonClientException", "{", "ResettableInputStream", "is", "=", "null", ";", "try", "{", "is", "=", "new", "ResettableInputStream", "(", "file", ")", ";", "return", "calculateTreeHash", "(", "is", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "AmazonClientException", "(", "\"Unable to compute hash for file: \"", "+", "file", ".", "getAbsolutePath", "(", ")", ",", "e", ")", ";", "}", "finally", "{", "if", "(", "is", "!=", "null", ")", "is", ".", "release", "(", ")", ";", "}", "}" ]
Calculates a hex encoded binary hash using a tree hashing algorithm for the data in the specified file. @param file The file containing the data to hash. @return The hex encoded binary tree hash for the data in the specified file. @throws AmazonClientException If any problems were encountered reading the data or computing the hash.
[ "Calculates", "a", "hex", "encoded", "binary", "hash", "using", "a", "tree", "hashing", "algorithm", "for", "the", "data", "in", "the", "specified", "file", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/TreeHashGenerator.java#L54-L67
20,496
aws/aws-sdk-java
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/TreeHashGenerator.java
TreeHashGenerator.calculateTreeHash
public static String calculateTreeHash(InputStream input) throws AmazonClientException { try { TreeHashInputStream treeHashInputStream = new TreeHashInputStream(input); byte[] buffer = new byte[1024]; while (treeHashInputStream.read(buffer, 0, buffer.length) != -1); // closing is currently required to compute the checksum treeHashInputStream.close(); return calculateTreeHash(treeHashInputStream.getChecksums()); } catch (Exception e) { throw new AmazonClientException("Unable to compute hash", e); } }
java
public static String calculateTreeHash(InputStream input) throws AmazonClientException { try { TreeHashInputStream treeHashInputStream = new TreeHashInputStream(input); byte[] buffer = new byte[1024]; while (treeHashInputStream.read(buffer, 0, buffer.length) != -1); // closing is currently required to compute the checksum treeHashInputStream.close(); return calculateTreeHash(treeHashInputStream.getChecksums()); } catch (Exception e) { throw new AmazonClientException("Unable to compute hash", e); } }
[ "public", "static", "String", "calculateTreeHash", "(", "InputStream", "input", ")", "throws", "AmazonClientException", "{", "try", "{", "TreeHashInputStream", "treeHashInputStream", "=", "new", "TreeHashInputStream", "(", "input", ")", ";", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "1024", "]", ";", "while", "(", "treeHashInputStream", ".", "read", "(", "buffer", ",", "0", ",", "buffer", ".", "length", ")", "!=", "-", "1", ")", ";", "// closing is currently required to compute the checksum \r", "treeHashInputStream", ".", "close", "(", ")", ";", "return", "calculateTreeHash", "(", "treeHashInputStream", ".", "getChecksums", "(", ")", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "AmazonClientException", "(", "\"Unable to compute hash\"", ",", "e", ")", ";", "}", "}" ]
Calculates a hex encoded binary hash using a tree hashing algorithm for the data in the specified input stream. The method will consume all the inputStream and close it when returned. @param input The input stream containing the data to hash. @return The hex encoded binary tree hash for the data in the specified input stream. @throws AmazonClientException If problems were encountered reading the data or calculating the hash.
[ "Calculates", "a", "hex", "encoded", "binary", "hash", "using", "a", "tree", "hashing", "algorithm", "for", "the", "data", "in", "the", "specified", "input", "stream", ".", "The", "method", "will", "consume", "all", "the", "inputStream", "and", "close", "it", "when", "returned", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/TreeHashGenerator.java#L84-L97
20,497
aws/aws-sdk-java
aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/TreeHashGenerator.java
TreeHashGenerator.calculateTreeHash
public static String calculateTreeHash(List<byte[]> checksums) throws AmazonClientException { /* * The tree hash algorithm involves concatenating adjacent pairs of * individual checksums, then taking the checksum of the resulting bytes * and storing it, then recursing on this new list until there is only * one element. Any final odd-numbered parts at each step are carried * over to the next iteration as-is. */ List<byte[]> hashes = new ArrayList<byte[]>(); hashes.addAll(checksums); while ( hashes.size() > 1 ) { List<byte[]> treeHashes = new ArrayList<byte[]>(); for ( int i = 0; i < hashes.size() / 2; i++ ) { byte[] firstPart = hashes.get(2 * i); byte[] secondPart = hashes.get(2 * i + 1); byte[] concatenation = new byte[firstPart.length + secondPart.length]; System.arraycopy(firstPart, 0, concatenation, 0, firstPart.length); System.arraycopy(secondPart, 0, concatenation, firstPart.length, secondPart.length); try { treeHashes.add(computeSHA256Hash(concatenation)); } catch (Exception e) { throw new AmazonClientException("Unable to compute hash", e); } } if ( hashes.size() % 2 == 1 ) { treeHashes.add(hashes.get(hashes.size() - 1)); } hashes = treeHashes; } return BinaryUtils.toHex(hashes.get(0)); }
java
public static String calculateTreeHash(List<byte[]> checksums) throws AmazonClientException { /* * The tree hash algorithm involves concatenating adjacent pairs of * individual checksums, then taking the checksum of the resulting bytes * and storing it, then recursing on this new list until there is only * one element. Any final odd-numbered parts at each step are carried * over to the next iteration as-is. */ List<byte[]> hashes = new ArrayList<byte[]>(); hashes.addAll(checksums); while ( hashes.size() > 1 ) { List<byte[]> treeHashes = new ArrayList<byte[]>(); for ( int i = 0; i < hashes.size() / 2; i++ ) { byte[] firstPart = hashes.get(2 * i); byte[] secondPart = hashes.get(2 * i + 1); byte[] concatenation = new byte[firstPart.length + secondPart.length]; System.arraycopy(firstPart, 0, concatenation, 0, firstPart.length); System.arraycopy(secondPart, 0, concatenation, firstPart.length, secondPart.length); try { treeHashes.add(computeSHA256Hash(concatenation)); } catch (Exception e) { throw new AmazonClientException("Unable to compute hash", e); } } if ( hashes.size() % 2 == 1 ) { treeHashes.add(hashes.get(hashes.size() - 1)); } hashes = treeHashes; } return BinaryUtils.toHex(hashes.get(0)); }
[ "public", "static", "String", "calculateTreeHash", "(", "List", "<", "byte", "[", "]", ">", "checksums", ")", "throws", "AmazonClientException", "{", "/*\r\n * The tree hash algorithm involves concatenating adjacent pairs of\r\n * individual checksums, then taking the checksum of the resulting bytes\r\n * and storing it, then recursing on this new list until there is only\r\n * one element. Any final odd-numbered parts at each step are carried\r\n * over to the next iteration as-is.\r\n */", "List", "<", "byte", "[", "]", ">", "hashes", "=", "new", "ArrayList", "<", "byte", "[", "]", ">", "(", ")", ";", "hashes", ".", "addAll", "(", "checksums", ")", ";", "while", "(", "hashes", ".", "size", "(", ")", ">", "1", ")", "{", "List", "<", "byte", "[", "]", ">", "treeHashes", "=", "new", "ArrayList", "<", "byte", "[", "]", ">", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "hashes", ".", "size", "(", ")", "/", "2", ";", "i", "++", ")", "{", "byte", "[", "]", "firstPart", "=", "hashes", ".", "get", "(", "2", "*", "i", ")", ";", "byte", "[", "]", "secondPart", "=", "hashes", ".", "get", "(", "2", "*", "i", "+", "1", ")", ";", "byte", "[", "]", "concatenation", "=", "new", "byte", "[", "firstPart", ".", "length", "+", "secondPart", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "firstPart", ",", "0", ",", "concatenation", ",", "0", ",", "firstPart", ".", "length", ")", ";", "System", ".", "arraycopy", "(", "secondPart", ",", "0", ",", "concatenation", ",", "firstPart", ".", "length", ",", "secondPart", ".", "length", ")", ";", "try", "{", "treeHashes", ".", "add", "(", "computeSHA256Hash", "(", "concatenation", ")", ")", ";", "}", "catch", "(", "Exception", "e", ")", "{", "throw", "new", "AmazonClientException", "(", "\"Unable to compute hash\"", ",", "e", ")", ";", "}", "}", "if", "(", "hashes", ".", "size", "(", ")", "%", "2", "==", "1", ")", "{", "treeHashes", ".", "add", "(", "hashes", ".", "get", "(", "hashes", ".", "size", "(", ")", "-", "1", ")", ")", ";", "}", "hashes", "=", "treeHashes", ";", "}", "return", "BinaryUtils", ".", "toHex", "(", "hashes", ".", "get", "(", "0", ")", ")", ";", "}" ]
Returns the hex encoded binary tree hash for the individual checksums given. The sums are assumed to have been generated from sequential 1MB portions of a larger file, with the possible exception of the last part, which may be less than a full MB. @return The combined hex encoded binary tree hash for the individual checksums specified. @throws AmazonClientException If problems were encountered reading the data or calculating the hash.
[ "Returns", "the", "hex", "encoded", "binary", "tree", "hash", "for", "the", "individual", "checksums", "given", ".", "The", "sums", "are", "assumed", "to", "have", "been", "generated", "from", "sequential", "1MB", "portions", "of", "a", "larger", "file", "with", "the", "possible", "exception", "of", "the", "last", "part", "which", "may", "be", "less", "than", "a", "full", "MB", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-glacier/src/main/java/com/amazonaws/services/glacier/TreeHashGenerator.java#L112-L144
20,498
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/AbstractAmazonElasticLoadBalancingAsync.java
AbstractAmazonElasticLoadBalancingAsync.describeLoadBalancerPolicyTypesAsync
@Override public java.util.concurrent.Future<DescribeLoadBalancerPolicyTypesResult> describeLoadBalancerPolicyTypesAsync( com.amazonaws.handlers.AsyncHandler<DescribeLoadBalancerPolicyTypesRequest, DescribeLoadBalancerPolicyTypesResult> asyncHandler) { return describeLoadBalancerPolicyTypesAsync(new DescribeLoadBalancerPolicyTypesRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<DescribeLoadBalancerPolicyTypesResult> describeLoadBalancerPolicyTypesAsync( com.amazonaws.handlers.AsyncHandler<DescribeLoadBalancerPolicyTypesRequest, DescribeLoadBalancerPolicyTypesResult> asyncHandler) { return describeLoadBalancerPolicyTypesAsync(new DescribeLoadBalancerPolicyTypesRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DescribeLoadBalancerPolicyTypesResult", ">", "describeLoadBalancerPolicyTypesAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "DescribeLoadBalancerPolicyTypesRequest", ",", "DescribeLoadBalancerPolicyTypesResult", ">", "asyncHandler", ")", "{", "return", "describeLoadBalancerPolicyTypesAsync", "(", "new", "DescribeLoadBalancerPolicyTypesRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the DescribeLoadBalancerPolicyTypes operation with an AsyncHandler. @see #describeLoadBalancerPolicyTypesAsync(DescribeLoadBalancerPolicyTypesRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "DescribeLoadBalancerPolicyTypes", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/AbstractAmazonElasticLoadBalancingAsync.java#L312-L317
20,499
aws/aws-sdk-java
aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/AbstractAmazonElasticLoadBalancingAsync.java
AbstractAmazonElasticLoadBalancingAsync.describeLoadBalancersAsync
@Override public java.util.concurrent.Future<DescribeLoadBalancersResult> describeLoadBalancersAsync( com.amazonaws.handlers.AsyncHandler<DescribeLoadBalancersRequest, DescribeLoadBalancersResult> asyncHandler) { return describeLoadBalancersAsync(new DescribeLoadBalancersRequest(), asyncHandler); }
java
@Override public java.util.concurrent.Future<DescribeLoadBalancersResult> describeLoadBalancersAsync( com.amazonaws.handlers.AsyncHandler<DescribeLoadBalancersRequest, DescribeLoadBalancersResult> asyncHandler) { return describeLoadBalancersAsync(new DescribeLoadBalancersRequest(), asyncHandler); }
[ "@", "Override", "public", "java", ".", "util", ".", "concurrent", ".", "Future", "<", "DescribeLoadBalancersResult", ">", "describeLoadBalancersAsync", "(", "com", ".", "amazonaws", ".", "handlers", ".", "AsyncHandler", "<", "DescribeLoadBalancersRequest", ",", "DescribeLoadBalancersResult", ">", "asyncHandler", ")", "{", "return", "describeLoadBalancersAsync", "(", "new", "DescribeLoadBalancersRequest", "(", ")", ",", "asyncHandler", ")", ";", "}" ]
Simplified method form for invoking the DescribeLoadBalancers operation with an AsyncHandler. @see #describeLoadBalancersAsync(DescribeLoadBalancersRequest, com.amazonaws.handlers.AsyncHandler)
[ "Simplified", "method", "form", "for", "invoking", "the", "DescribeLoadBalancers", "operation", "with", "an", "AsyncHandler", "." ]
aa38502458969b2d13a1c3665a56aba600e4dbd0
https://github.com/aws/aws-sdk-java/blob/aa38502458969b2d13a1c3665a56aba600e4dbd0/aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/AbstractAmazonElasticLoadBalancingAsync.java#L348-L353