Class AddOnRequest
- java.lang.Object
-
- software.amazon.awssdk.services.lightsail.model.AddOnRequest
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AddOnRequest.Builder,AddOnRequest>
@Generated("software.amazon.awssdk:codegen") public final class AddOnRequest extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AddOnRequest.Builder,AddOnRequest>
Describes a request to enable, modify, or disable an add-on for an Amazon Lightsail resource.
An additional cost may be associated with enabling add-ons. For more information, see the Lightsail pricing page.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAddOnRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AddOnTypeaddOnType()The add-on type.StringaddOnTypeAsString()The add-on type.AutoSnapshotAddOnRequestautoSnapshotAddOnRequest()An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.static AddOnRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends AddOnRequest.Builder>serializableBuilderClass()StopInstanceOnIdleRequeststopInstanceOnIdleRequest()An object that represents additional parameters when enabling or modifying theStopInstanceOnIdleadd-on.AddOnRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
addOnType
public final AddOnType addOnType()
The add-on type.
If the service returns an enum value that is not available in the current SDK version,
addOnTypewill returnAddOnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaddOnTypeAsString().- Returns:
- The add-on type.
- See Also:
AddOnType
-
addOnTypeAsString
public final String addOnTypeAsString()
The add-on type.
If the service returns an enum value that is not available in the current SDK version,
addOnTypewill returnAddOnType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromaddOnTypeAsString().- Returns:
- The add-on type.
- See Also:
AddOnType
-
autoSnapshotAddOnRequest
public final AutoSnapshotAddOnRequest autoSnapshotAddOnRequest()
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
- Returns:
- An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
-
stopInstanceOnIdleRequest
public final StopInstanceOnIdleRequest stopInstanceOnIdleRequest()
An object that represents additional parameters when enabling or modifying the
StopInstanceOnIdleadd-on.This object only applies to Lightsail for Research resources.
- Returns:
- An object that represents additional parameters when enabling or modifying the
StopInstanceOnIdleadd-on.This object only applies to Lightsail for Research resources.
-
toBuilder
public AddOnRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AddOnRequest.Builder,AddOnRequest>
-
builder
public static AddOnRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends AddOnRequest.Builder> serializableBuilderClass()
-
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.
-
-