Class UpdateZonalShiftRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.arczonalshift.model.ArcZonalShiftRequest
-
- software.amazon.awssdk.services.arczonalshift.model.UpdateZonalShiftRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateZonalShiftRequest.Builder,UpdateZonalShiftRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateZonalShiftRequest extends ArcZonalShiftRequest implements ToCopyableBuilder<UpdateZonalShiftRequest.Builder,UpdateZonalShiftRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateZonalShiftRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateZonalShiftRequest.Builderbuilder()Stringcomment()A comment that you enter about the zonal shift.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringexpiresIn()The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time).<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends UpdateZonalShiftRequest.Builder>serializableBuilderClass()UpdateZonalShiftRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringzonalShiftId()The identifier of a zonal shift.-
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
-
comment
public final String comment()
A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
- Returns:
- A comment that you enter about the zonal shift. Only the latest comment is retained; no comment history is maintained. A new comment overwrites any existing comment string.
-
expiresIn
public final String expiresIn()
The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for up to three days (72 hours).
If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.
To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
-
A lowercase letter m: To specify that the value is in minutes.
-
A lowercase letter h: To specify that the value is in hours.
For example:
20hmeans the zonal shift expires in 20 hours.120mmeans the zonal shift expires in 120 minutes (2 hours).- Returns:
- The length of time that you want a zonal shift to be active, which Route 53 ARC converts to an expiry
time (expiration time). Zonal shifts are temporary. You can set a zonal shift to be active initially for
up to three days (72 hours).
If you want to still keep traffic away from an Availability Zone, you can update the zonal shift and set a new expiration. You can also cancel a zonal shift, before it expires, for example, if you're ready to restore traffic to the Availability Zone.
To set a length of time for a zonal shift to be active, specify a whole number, and then one of the following, with no space:
-
A lowercase letter m: To specify that the value is in minutes.
-
A lowercase letter h: To specify that the value is in hours.
For example:
20hmeans the zonal shift expires in 20 hours.120mmeans the zonal shift expires in 120 minutes (2 hours). -
-
-
zonalShiftId
public final String zonalShiftId()
The identifier of a zonal shift.
- Returns:
- The identifier of a zonal shift.
-
toBuilder
public UpdateZonalShiftRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateZonalShiftRequest.Builder,UpdateZonalShiftRequest>- Specified by:
toBuilderin classArcZonalShiftRequest
-
builder
public static UpdateZonalShiftRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateZonalShiftRequest.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
-
-