Class UpdateKeyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.location.model.LocationRequest
-
- software.amazon.awssdk.services.location.model.UpdateKeyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateKeyRequest.Builder,UpdateKeyRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateKeyRequest extends LocationRequest implements ToCopyableBuilder<UpdateKeyRequest.Builder,UpdateKeyRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateKeyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateKeyRequest.Builderbuilder()Stringdescription()Updates the description for the API key resource.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)InstantexpireTime()Updates the timestamp for when the API key resource will expire in ISO 8601 format:YYYY-MM-DDThh:mm:ss.sssZ.BooleanforceUpdate()The boolean flag to be included for updatingExpireTimeorRestrictionsdetails.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkeyName()The name of the API key resource to update.BooleannoExpiry()Whether the API key should expire.ApiKeyRestrictionsrestrictions()Updates the API key restrictions for the API key resource.List<SdkField<?>>sdkFields()static Class<? extends UpdateKeyRequest.Builder>serializableBuilderClass()UpdateKeyRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
keyName
public final String keyName()
The name of the API key resource to update.
- Returns:
- The name of the API key resource to update.
-
description
public final String description()
Updates the description for the API key resource.
- Returns:
- Updates the description for the API key resource.
-
expireTime
public final Instant expireTime()
Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.- Returns:
- Updates the timestamp for when the API key resource will expire in ISO 8601 format:
YYYY-MM-DDThh:mm:ss.sssZ.
-
noExpiry
public final Boolean noExpiry()
Whether the API key should expire. Set to
trueto set the API key to have no expiration time.- Returns:
- Whether the API key should expire. Set to
trueto set the API key to have no expiration time.
-
forceUpdate
public final 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- Returns:
- 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
-
restrictions
public final ApiKeyRestrictions restrictions()
Updates the API key restrictions for the API key resource.
- Returns:
- Updates the API key restrictions for the API key resource.
-
toBuilder
public UpdateKeyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateKeyRequest.Builder,UpdateKeyRequest>- Specified by:
toBuilderin classLocationRequest
-
builder
public static UpdateKeyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateKeyRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-