@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddOnRequest extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
AddOnRequest() |
Modifier and Type | Method and Description |
---|---|
AddOnRequest |
clone() |
boolean |
equals(Object obj) |
String |
getAddOnType()
The add-on type.
|
AutoSnapshotAddOnRequest |
getAutoSnapshotAddOnRequest()
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAddOnType(String addOnType)
The add-on type.
|
void |
setAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest autoSnapshotAddOnRequest)
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
|
String |
toString()
Returns a string representation of this object.
|
AddOnRequest |
withAddOnType(AddOnType addOnType)
The add-on type.
|
AddOnRequest |
withAddOnType(String addOnType)
The add-on type.
|
AddOnRequest |
withAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest autoSnapshotAddOnRequest)
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
|
public void setAddOnType(String addOnType)
The add-on type.
addOnType
- The add-on type.AddOnType
public String getAddOnType()
The add-on type.
AddOnType
public AddOnRequest withAddOnType(String addOnType)
The add-on type.
addOnType
- The add-on type.AddOnType
public AddOnRequest withAddOnType(AddOnType addOnType)
The add-on type.
addOnType
- The add-on type.AddOnType
public void setAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest autoSnapshotAddOnRequest)
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
autoSnapshotAddOnRequest
- An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.public AutoSnapshotAddOnRequest getAutoSnapshotAddOnRequest()
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
public AddOnRequest withAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest autoSnapshotAddOnRequest)
An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.
autoSnapshotAddOnRequest
- An object that represents additional parameters when enabling or modifying the automatic snapshot add-on.public String toString()
toString
in class Object
Object.toString()
public AddOnRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.