@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Limit extends Object implements Serializable, Cloneable, StructuredPojo
Specifies how many protections of a given type you can create.
| Constructor and Description |
|---|
Limit() |
| Modifier and Type | Method and Description |
|---|---|
Limit |
clone() |
boolean |
equals(Object obj) |
Long |
getMax()
The maximum number of protections that can be created for the specified
Type. |
String |
getType()
The type of protection.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMax(Long max)
The maximum number of protections that can be created for the specified
Type. |
void |
setType(String type)
The type of protection.
|
String |
toString()
Returns a string representation of this object.
|
Limit |
withMax(Long max)
The maximum number of protections that can be created for the specified
Type. |
Limit |
withType(String type)
The type of protection.
|
public void setType(String type)
The type of protection.
type - The type of protection.public String getType()
The type of protection.
public Limit withType(String type)
The type of protection.
type - The type of protection.public void setMax(Long max)
The maximum number of protections that can be created for the specified Type.
max - The maximum number of protections that can be created for the specified Type.public Long getMax()
The maximum number of protections that can be created for the specified Type.
Type.public Limit withMax(Long max)
The maximum number of protections that can be created for the specified Type.
max - The maximum number of protections that can be created for the specified Type.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.