Interface UpdateKeyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateKeyRequest.Builder,UpdateKeyRequest>,LocationRequest.Builder,SdkBuilder<UpdateKeyRequest.Builder,UpdateKeyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- UpdateKeyRequest
public static interface UpdateKeyRequest.Builder extends LocationRequest.Builder, SdkPojo, CopyableBuilder<UpdateKeyRequest.Builder,UpdateKeyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UpdateKeyRequest.Builderdescription(String description)Updates the description for the API key resource.UpdateKeyRequest.BuilderexpireTime(Instant expireTime)Updates the timestamp for when the API key resource will expire in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ.UpdateKeyRequest.BuilderforceUpdate(Boolean forceUpdate)The boolean flag to be included for updatingExpireTimeorRestrictionsdetails.UpdateKeyRequest.BuilderkeyName(String keyName)The name of the API key resource to update.UpdateKeyRequest.BuildernoExpiry(Boolean noExpiry)Whether the API key should expire.UpdateKeyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)UpdateKeyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default UpdateKeyRequest.Builderrestrictions(Consumer<ApiKeyRestrictions.Builder> restrictions)Updates the API key restrictions for the API key resource.UpdateKeyRequest.Builderrestrictions(ApiKeyRestrictions restrictions)Updates the API key restrictions for the API key resource.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.location.model.LocationRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
keyName
UpdateKeyRequest.Builder keyName(String keyName)
The name of the API key resource to update.
- Parameters:
keyName- The name of the API key resource to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
UpdateKeyRequest.Builder description(String description)
Updates the description for the API key resource.
- Parameters:
description- Updates the description for the API key resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expireTime
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.- Parameters:
expireTime- Updates the timestamp for when the API key resource will expire in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
noExpiry
UpdateKeyRequest.Builder noExpiry(Boolean noExpiry)
Whether the API key should expire. Set to
trueto set the API key to have no expiration time.- Parameters:
noExpiry- Whether the API key should expire. Set totrueto set the API key to have no expiration time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
forceUpdate
UpdateKeyRequest.Builder forceUpdate(Boolean forceUpdate)
The boolean flag to be included for updating
ExpireTimeorRestrictionsdetails.Must be set to
trueto update an API key resource that has been used in the past 7 days.Falseif force update is not preferredDefault value:
False- Parameters:
forceUpdate- The boolean flag to be included for updatingExpireTimeorRestrictionsdetails.Must be set to
trueto update an API key resource that has been used in the past 7 days.Falseif force update is not preferredDefault value:
False- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictions
UpdateKeyRequest.Builder restrictions(ApiKeyRestrictions restrictions)
Updates the API key restrictions for the API key resource.
- Parameters:
restrictions- Updates the API key restrictions for the API key resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
restrictions
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.Builderavoiding the need to create one manually viaApiKeyRestrictions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torestrictions(ApiKeyRestrictions).- Parameters:
restrictions- a consumer that will call methods onApiKeyRestrictions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
restrictions(ApiKeyRestrictions)
-
overrideConfiguration
UpdateKeyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
UpdateKeyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-