@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. 
 | 
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 | 
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 | 
withTags(Map<String,String> tags)
 The tags attached to the 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 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.public String getType()
The type of resource.
public Resource withType(String type)
The type of resource.
type - The type of resource.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.