@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
A resource related to a finding.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Resource |
clearTagsEntries()
Removes all the entries added into Tags.
|
Resource |
clone() |
boolean |
equals(Object obj) |
ResourceDetails |
getDetails()
Additional details about the resource related to a finding.
|
String |
getId()
The canonical identifier for the given resource type.
|
String |
getPartition()
The canonical AWS partition name that the Region is assigned to.
|
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()
The type of the resource that details are provided for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDetails(ResourceDetails details)
Additional details about the resource related to a finding.
|
void |
setId(String id)
The canonical identifier for the given resource type.
|
void |
setPartition(String partition)
The canonical AWS partition name that the Region is assigned to.
|
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)
The type of the resource that details are provided for.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withDetails(ResourceDetails details)
Additional details about the resource related to a finding.
|
Resource |
withId(String id)
The canonical identifier for the given resource type.
|
Resource |
withPartition(Partition partition)
The canonical AWS partition name that the Region is assigned to.
|
Resource |
withPartition(String partition)
The canonical AWS partition name that the Region is assigned to.
|
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)
The type of the resource that details are provided for.
|
public void setType(String type)
The type of the resource that details are provided for. If possible, set Type
to one of the
supported resource types. For example, if the resource is an EC2 instance, then set Type
to
AwsEc2Instance
.
If the resource does not match any of the provided types, then set Type
to Other
.
type
- The type of the resource that details are provided for. If possible, set Type
to one of the
supported resource types. For example, if the resource is an EC2 instance, then set Type
to
AwsEc2Instance
.
If the resource does not match any of the provided types, then set Type
to Other
.
public String getType()
The type of the resource that details are provided for. If possible, set Type
to one of the
supported resource types. For example, if the resource is an EC2 instance, then set Type
to
AwsEc2Instance
.
If the resource does not match any of the provided types, then set Type
to Other
.
Type
to one of the
supported resource types. For example, if the resource is an EC2 instance, then set Type
to
AwsEc2Instance
.
If the resource does not match any of the provided types, then set Type
to
Other
.
public Resource withType(String type)
The type of the resource that details are provided for. If possible, set Type
to one of the
supported resource types. For example, if the resource is an EC2 instance, then set Type
to
AwsEc2Instance
.
If the resource does not match any of the provided types, then set Type
to Other
.
type
- The type of the resource that details are provided for. If possible, set Type
to one of the
supported resource types. For example, if the resource is an EC2 instance, then set Type
to
AwsEc2Instance
.
If the resource does not match any of the provided types, then set Type
to Other
.
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 that the Region is assigned to.
partition
- The canonical AWS partition name that the Region is assigned to.Partition
public String getPartition()
The canonical AWS partition name that the Region is assigned to.
Partition
public Resource withPartition(String partition)
The canonical AWS partition name that the Region is assigned to.
partition
- The canonical AWS partition name that the Region is assigned to.Partition
public Resource withPartition(Partition partition)
The canonical AWS partition name that the Region is assigned to.
partition
- The canonical AWS partition name that the Region is assigned to.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)
Additional details about the resource related to a finding.
details
- Additional details about the resource related to a finding.public ResourceDetails getDetails()
Additional details about the resource related to a finding.
public Resource withDetails(ResourceDetails details)
Additional details about the resource related to a finding.
details
- Additional details about the resource related to a finding.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.