@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceLimit extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a current quota for an Amazon Macie account.
Constructor and Description |
---|
ServiceLimit() |
Modifier and Type | Method and Description |
---|---|
ServiceLimit |
clone() |
boolean |
equals(Object obj) |
Boolean |
getIsServiceLimited()
Specifies whether the account has met the quota that corresponds to the metric specified by the
UsageByAccount.type field in the response.
|
String |
getUnit()
The unit of measurement for the value specified by the value field.
|
Long |
getValue()
The value for the metric specified by the UsageByAccount.type field in the response.
|
int |
hashCode() |
Boolean |
isServiceLimited()
Specifies whether the account has met the quota that corresponds to the metric specified by the
UsageByAccount.type field in the response.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIsServiceLimited(Boolean isServiceLimited)
Specifies whether the account has met the quota that corresponds to the metric specified by the
UsageByAccount.type field in the response.
|
void |
setUnit(String unit)
The unit of measurement for the value specified by the value field.
|
void |
setValue(Long value)
The value for the metric specified by the UsageByAccount.type field in the response.
|
String |
toString()
Returns a string representation of this object.
|
ServiceLimit |
withIsServiceLimited(Boolean isServiceLimited)
Specifies whether the account has met the quota that corresponds to the metric specified by the
UsageByAccount.type field in the response.
|
ServiceLimit |
withUnit(String unit)
The unit of measurement for the value specified by the value field.
|
ServiceLimit |
withUnit(Unit unit)
The unit of measurement for the value specified by the value field.
|
ServiceLimit |
withValue(Long value)
The value for the metric specified by the UsageByAccount.type field in the response.
|
public void setIsServiceLimited(Boolean isServiceLimited)
Specifies whether the account has met the quota that corresponds to the metric specified by the UsageByAccount.type field in the response.
isServiceLimited
- Specifies whether the account has met the quota that corresponds to the metric specified by the
UsageByAccount.type field in the response.public Boolean getIsServiceLimited()
Specifies whether the account has met the quota that corresponds to the metric specified by the UsageByAccount.type field in the response.
public ServiceLimit withIsServiceLimited(Boolean isServiceLimited)
Specifies whether the account has met the quota that corresponds to the metric specified by the UsageByAccount.type field in the response.
isServiceLimited
- Specifies whether the account has met the quota that corresponds to the metric specified by the
UsageByAccount.type field in the response.public Boolean isServiceLimited()
Specifies whether the account has met the quota that corresponds to the metric specified by the UsageByAccount.type field in the response.
public void setUnit(String unit)
The unit of measurement for the value specified by the value field.
unit
- The unit of measurement for the value specified by the value field.Unit
public String getUnit()
The unit of measurement for the value specified by the value field.
Unit
public ServiceLimit withUnit(String unit)
The unit of measurement for the value specified by the value field.
unit
- The unit of measurement for the value specified by the value field.Unit
public ServiceLimit withUnit(Unit unit)
The unit of measurement for the value specified by the value field.
unit
- The unit of measurement for the value specified by the value field.Unit
public void setValue(Long value)
The value for the metric specified by the UsageByAccount.type field in the response.
value
- The value for the metric specified by the UsageByAccount.type field in the response.public Long getValue()
The value for the metric specified by the UsageByAccount.type field in the response.
public ServiceLimit withValue(Long value)
The value for the metric specified by the UsageByAccount.type field in the response.
value
- The value for the metric specified by the UsageByAccount.type field in the response.public String toString()
toString
in class Object
Object.toString()
public ServiceLimit clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.