@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceCount extends Object implements Serializable, Cloneable, StructuredPojo
An object that contains the resource type and the number of resources.
| Constructor and Description |
|---|
ResourceCount() |
| Modifier and Type | Method and Description |
|---|---|
ResourceCount |
clone() |
boolean |
equals(Object obj) |
Long |
getCount()
The number of resources.
|
String |
getResourceType()
The resource type (for example,
"AWS::EC2::Instance"). |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCount(Long count)
The number of resources.
|
void |
setResourceType(String resourceType)
The resource type (for example,
"AWS::EC2::Instance"). |
String |
toString()
Returns a string representation of this object.
|
ResourceCount |
withCount(Long count)
The number of resources.
|
ResourceCount |
withResourceType(ResourceType resourceType)
The resource type (for example,
"AWS::EC2::Instance"). |
ResourceCount |
withResourceType(String resourceType)
The resource type (for example,
"AWS::EC2::Instance"). |
public void setResourceType(String resourceType)
The resource type (for example, "AWS::EC2::Instance").
resourceType - The resource type (for example, "AWS::EC2::Instance").ResourceTypepublic String getResourceType()
The resource type (for example, "AWS::EC2::Instance").
"AWS::EC2::Instance").ResourceTypepublic ResourceCount withResourceType(String resourceType)
The resource type (for example, "AWS::EC2::Instance").
resourceType - The resource type (for example, "AWS::EC2::Instance").ResourceTypepublic ResourceCount withResourceType(ResourceType resourceType)
The resource type (for example, "AWS::EC2::Instance").
resourceType - The resource type (for example, "AWS::EC2::Instance").ResourceTypepublic void setCount(Long count)
The number of resources.
count - The number of resources.public Long getCount()
The number of resources.
public ResourceCount withCount(Long count)
The number of resources.
count - The number of resources.public String toString()
toString in class ObjectObject.toString()public ResourceCount clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.