@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
A resource in Amazon Web Services that Amazon Web Services Resource Explorer has discovered, and for which it has stored information in the index of the Amazon Web Services Region that contains the resource.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon resource name
(ARN) of the resource.
|
Date |
getLastReportedAt()
The date and time that Resource Explorer last queried this resource and updated the index with the latest
information about the resource.
|
String |
getOwningAccountId()
The Amazon Web Services account that owns the resource.
|
List<ResourceProperty> |
getProperties()
A structure with additional type-specific details about the resource.
|
String |
getRegion()
The Amazon Web Services Region in which the resource was created and exists.
|
String |
getResourceType()
The type of the resource.
|
String |
getService()
The Amazon Web Service that owns the resource and is responsible for creating and updating it.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon resource name
(ARN) of the resource.
|
void |
setLastReportedAt(Date lastReportedAt)
The date and time that Resource Explorer last queried this resource and updated the index with the latest
information about the resource.
|
void |
setOwningAccountId(String owningAccountId)
The Amazon Web Services account that owns the resource.
|
void |
setProperties(Collection<ResourceProperty> properties)
A structure with additional type-specific details about the resource.
|
void |
setRegion(String region)
The Amazon Web Services Region in which the resource was created and exists.
|
void |
setResourceType(String resourceType)
The type of the resource.
|
void |
setService(String service)
The Amazon Web Service that owns the resource and is responsible for creating and updating it.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withArn(String arn)
The Amazon resource name
(ARN) of the resource.
|
Resource |
withLastReportedAt(Date lastReportedAt)
The date and time that Resource Explorer last queried this resource and updated the index with the latest
information about the resource.
|
Resource |
withOwningAccountId(String owningAccountId)
The Amazon Web Services account that owns the resource.
|
Resource |
withProperties(Collection<ResourceProperty> properties)
A structure with additional type-specific details about the resource.
|
Resource |
withProperties(ResourceProperty... properties)
A structure with additional type-specific details about the resource.
|
Resource |
withRegion(String region)
The Amazon Web Services Region in which the resource was created and exists.
|
Resource |
withResourceType(String resourceType)
The type of the resource.
|
Resource |
withService(String service)
The Amazon Web Service that owns the resource and is responsible for creating and updating it.
|
public void setArn(String arn)
The Amazon resource name (ARN) of the resource.
arn
- The Amazon resource
name (ARN) of the resource.public String getArn()
The Amazon resource name (ARN) of the resource.
public Resource withArn(String arn)
The Amazon resource name (ARN) of the resource.
arn
- The Amazon resource
name (ARN) of the resource.public void setLastReportedAt(Date lastReportedAt)
The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.
lastReportedAt
- The date and time that Resource Explorer last queried this resource and updated the index with the latest
information about the resource.public Date getLastReportedAt()
The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.
public Resource withLastReportedAt(Date lastReportedAt)
The date and time that Resource Explorer last queried this resource and updated the index with the latest information about the resource.
lastReportedAt
- The date and time that Resource Explorer last queried this resource and updated the index with the latest
information about the resource.public void setOwningAccountId(String owningAccountId)
The Amazon Web Services account that owns the resource.
owningAccountId
- The Amazon Web Services account that owns the resource.public String getOwningAccountId()
The Amazon Web Services account that owns the resource.
public Resource withOwningAccountId(String owningAccountId)
The Amazon Web Services account that owns the resource.
owningAccountId
- The Amazon Web Services account that owns the resource.public List<ResourceProperty> getProperties()
A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
public void setProperties(Collection<ResourceProperty> properties)
A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
properties
- A structure with additional type-specific details about the resource. These properties can be added by
turning on integration between Resource Explorer and other Amazon Web Services services.public Resource withProperties(ResourceProperty... properties)
A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
NOTE: This method appends the values to the existing list (if any). Use
setProperties(java.util.Collection)
or withProperties(java.util.Collection)
if you want to
override the existing values.
properties
- A structure with additional type-specific details about the resource. These properties can be added by
turning on integration between Resource Explorer and other Amazon Web Services services.public Resource withProperties(Collection<ResourceProperty> properties)
A structure with additional type-specific details about the resource. These properties can be added by turning on integration between Resource Explorer and other Amazon Web Services services.
properties
- A structure with additional type-specific details about the resource. These properties can be added by
turning on integration between Resource Explorer and other Amazon Web Services services.public void setRegion(String region)
The Amazon Web Services Region in which the resource was created and exists.
region
- The Amazon Web Services Region in which the resource was created and exists.public String getRegion()
The Amazon Web Services Region in which the resource was created and exists.
public Resource withRegion(String region)
The Amazon Web Services Region in which the resource was created and exists.
region
- The Amazon Web Services Region in which the resource was created and exists.public void setResourceType(String resourceType)
The type of the resource.
resourceType
- The type of the resource.public String getResourceType()
The type of the resource.
public Resource withResourceType(String resourceType)
The type of the resource.
resourceType
- The type of the resource.public void setService(String service)
The Amazon Web Service that owns the resource and is responsible for creating and updating it.
service
- The Amazon Web Service that owns the resource and is responsible for creating and updating it.public String getService()
The Amazon Web Service that owns the resource and is responsible for creating and updating it.
public Resource withService(String service)
The Amazon Web Service that owns the resource and is responsible for creating and updating it.
service
- The Amazon Web Service that owns the resource and is responsible for creating and updating it.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.