@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
A resource data type that describes a resource to which the finding refers.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
addTagsEntry(String key,
String value) |
Resource |
clearTagsEntries()
Removes all the entries added into Tags.
|
Resource |
clone() |
boolean |
equals(Object obj) |
ResourceDetails |
getDetails()
Provides additional details about the resource.
|
String |
getId()
The canonical identifier for the given resource type.
|
String |
getPartition()
The canonical AWS partition name to which the region is assigned.
|
String |
getRegion()
The canonical AWS external region name where this resource is located.
|
Map<String,String> |
getTags()
A list of AWS tags associated with a resource at the time the finding was processed.
|
String |
getType()
Specifies the type of the resource for which details are provided.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDetails(ResourceDetails details)
Provides additional details about the resource.
|
void |
setId(String id)
The canonical identifier for the given resource type.
|
void |
setPartition(String partition)
The canonical AWS partition name to which the region is assigned.
|
void |
setRegion(String region)
The canonical AWS external region name where this resource is located.
|
void |
setTags(Map<String,String> tags)
A list of AWS tags associated with a resource at the time the finding was processed.
|
void |
setType(String type)
Specifies the type of the resource for which details are provided.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withDetails(ResourceDetails details)
Provides additional details about the resource.
|
Resource |
withId(String id)
The canonical identifier for the given resource type.
|
Resource |
withPartition(Partition partition)
The canonical AWS partition name to which the region is assigned.
|
Resource |
withPartition(String partition)
The canonical AWS partition name to which the region is assigned.
|
Resource |
withRegion(String region)
The canonical AWS external region name where this resource is located.
|
Resource |
withTags(Map<String,String> tags)
A list of AWS tags associated with a resource at the time the finding was processed.
|
Resource |
withType(String type)
Specifies the type of the resource for which details are provided.
|
public void setType(String type)
Specifies the type of the resource for which details are provided.
type
- Specifies the type of the resource for which details are provided.public String getType()
Specifies the type of the resource for which details are provided.
public Resource withType(String type)
Specifies the type of the resource for which details are provided.
type
- Specifies the type of the resource for which details are provided.public void setId(String id)
The canonical identifier for the given resource type.
id
- The canonical identifier for the given resource type.public String getId()
The canonical identifier for the given resource type.
public Resource withId(String id)
The canonical identifier for the given resource type.
id
- The canonical identifier for the given resource type.public void setPartition(String partition)
The canonical AWS partition name to which the region is assigned.
partition
- The canonical AWS partition name to which the region is assigned.Partition
public String getPartition()
The canonical AWS partition name to which the region is assigned.
Partition
public Resource withPartition(String partition)
The canonical AWS partition name to which the region is assigned.
partition
- The canonical AWS partition name to which the region is assigned.Partition
public Resource withPartition(Partition partition)
The canonical AWS partition name to which the region is assigned.
partition
- The canonical AWS partition name to which the region is assigned.Partition
public void setRegion(String region)
The canonical AWS external region name where this resource is located.
region
- The canonical AWS external region name where this resource is located.public String getRegion()
The canonical AWS external region name where this resource is located.
public Resource withRegion(String region)
The canonical AWS external region name where this resource is located.
region
- The canonical AWS external region name where this resource is located.public Map<String,String> getTags()
A list of AWS tags associated with a resource at the time the finding was processed.
public void setTags(Map<String,String> tags)
A list of AWS tags associated with a resource at the time the finding was processed.
tags
- A list of AWS tags associated with a resource at the time the finding was processed.public Resource withTags(Map<String,String> tags)
A list of AWS tags associated with a resource at the time the finding was processed.
tags
- A list of AWS tags associated with a resource at the time the finding was processed.public Resource clearTagsEntries()
public void setDetails(ResourceDetails details)
Provides additional details about the resource.
details
- Provides additional details about the resource.public ResourceDetails getDetails()
Provides additional details about the resource.
public Resource withDetails(ResourceDetails details)
Provides additional details about the resource.
details
- Provides additional details about the resource.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.