public static interface UpdateKeyRequest.Builder extends LocationRequest.Builder, SdkPojo, CopyableBuilder<UpdateKeyRequest.Builder,UpdateKeyRequest>
| Modifier and Type | Method and Description |
|---|---|
UpdateKeyRequest.Builder |
description(String description)
Updates the description for the API key resource.
|
UpdateKeyRequest.Builder |
expireTime(Instant expireTime)
Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ. |
UpdateKeyRequest.Builder |
forceUpdate(Boolean forceUpdate)
The boolean flag to be included for updating
ExpireTime or Restrictions details. |
UpdateKeyRequest.Builder |
keyName(String keyName)
The name of the API key resource to update.
|
UpdateKeyRequest.Builder |
noExpiry(Boolean noExpiry)
Whether the API key should expire.
|
UpdateKeyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
UpdateKeyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
UpdateKeyRequest.Builder |
restrictions(ApiKeyRestrictions restrictions)
Updates the API key restrictions for the API key resource.
|
default UpdateKeyRequest.Builder |
restrictions(Consumer<ApiKeyRestrictions.Builder> restrictions)
Updates the API key restrictions for the API key resource.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildUpdateKeyRequest.Builder description(String description)
Updates the description for the API key resource.
description - Updates the description for the API key resource.UpdateKeyRequest.Builder expireTime(Instant expireTime)
Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
expireTime - Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.UpdateKeyRequest.Builder forceUpdate(Boolean forceUpdate)
The boolean flag to be included for updating ExpireTime or Restrictions details.
Must be set to true to update an API key resource that has been used in the past 7 days.
False if force update is not preferred
Default value: False
forceUpdate - The boolean flag to be included for updating ExpireTime or Restrictions
details.
Must be set to true to update an API key resource that has been used in the past 7 days.
False if force update is not preferred
Default value: False
UpdateKeyRequest.Builder keyName(String keyName)
The name of the API key resource to update.
keyName - The name of the API key resource to update.UpdateKeyRequest.Builder noExpiry(Boolean noExpiry)
Whether the API key should expire. Set to true to set the API key to have no expiration time.
noExpiry - Whether the API key should expire. Set to true to set the API key to have no expiration
time.UpdateKeyRequest.Builder restrictions(ApiKeyRestrictions restrictions)
Updates the API key restrictions for the API key resource.
restrictions - Updates the API key restrictions for the API key resource.default UpdateKeyRequest.Builder restrictions(Consumer<ApiKeyRestrictions.Builder> restrictions)
Updates the API key restrictions for the API key resource.
This is a convenience method that creates an instance of theApiKeyRestrictions.Builder avoiding the
need to create one manually via ApiKeyRestrictions.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to restrictions(ApiKeyRestrictions).
restrictions - a consumer that will call methods on ApiKeyRestrictions.Builderrestrictions(ApiKeyRestrictions)UpdateKeyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderUpdateKeyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.