@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Details about the resource involved in 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()
An object that contains details about the resource involved in a finding.
|
String |
getId()
The ID of the resource.
|
String |
getPartition()
The partition of the resource.
|
String |
getRegion()
The Amazon Web Services Region the impacted resource is located in.
|
Map<String,String> |
getTags()
The tags attached to the resource.
|
String |
getType()
The type of resource.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDetails(ResourceDetails details)
An object that contains details about the resource involved in a finding.
|
void |
setId(String id)
The ID of the resource.
|
void |
setPartition(String partition)
The partition of the resource.
|
void |
setRegion(String region)
The Amazon Web Services Region the impacted resource is located in.
|
void |
setTags(Map<String,String> tags)
The tags attached to the resource.
|
void |
setType(String type)
The type of resource.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withDetails(ResourceDetails details)
An object that contains details about the resource involved in a finding.
|
Resource |
withId(String id)
The ID of the resource.
|
Resource |
withPartition(String partition)
The partition of the resource.
|
Resource |
withRegion(String region)
The Amazon Web Services Region the impacted resource is located in.
|
Resource |
withTags(Map<String,String> tags)
The tags attached to the resource.
|
Resource |
withType(ResourceType type)
The type of resource.
|
Resource |
withType(String type)
The type of resource.
|
public void setDetails(ResourceDetails details)
An object that contains details about the resource involved in a finding.
details
- An object that contains details about the resource involved in a finding.public ResourceDetails getDetails()
An object that contains details about the resource involved in a finding.
public Resource withDetails(ResourceDetails details)
An object that contains details about the resource involved in a finding.
details
- An object that contains details about the resource involved in a finding.public void setId(String id)
The ID of the resource.
id
- The ID of the resource.public String getId()
The ID of the resource.
public Resource withId(String id)
The ID of the resource.
id
- The ID of the resource.public void setPartition(String partition)
The partition of the resource.
partition
- The partition of the resource.public String getPartition()
The partition of the resource.
public Resource withPartition(String partition)
The partition of the resource.
partition
- The partition of the resource.public void setRegion(String region)
The Amazon Web Services Region the impacted resource is located in.
region
- The Amazon Web Services Region the impacted resource is located in.public String getRegion()
The Amazon Web Services Region the impacted resource is located in.
public Resource withRegion(String region)
The Amazon Web Services Region the impacted resource is located in.
region
- The Amazon Web Services Region the impacted resource is located in.public Map<String,String> getTags()
The tags attached to the resource.
public void setTags(Map<String,String> tags)
The tags attached to the resource.
tags
- The tags attached to the resource.public Resource withTags(Map<String,String> tags)
The tags attached to the resource.
tags
- The tags attached to the resource.public Resource clearTagsEntries()
public void setType(String type)
The type of resource.
type
- The type of resource.ResourceType
public String getType()
The type of resource.
ResourceType
public Resource withType(String type)
The type of resource.
type
- The type of resource.ResourceType
public Resource withType(ResourceType type)
The type of resource.
type
- The type of resource.ResourceType
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.