@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Information about a resource, such as an Amazon S3 bucket or AWS Lambda function, that contains a finding.
| Constructor and Description | 
|---|
| Resource() | 
| Modifier and Type | Method and Description | 
|---|---|
| Resource | clone() | 
| boolean | equals(Object obj) | 
| String | getId()
 The identifier for the resource. | 
| String | getSubResourceId()
 The identifier for a section of the resource, such as an AWS Lambda layer. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setId(String id)
 The identifier for the resource. | 
| void | setSubResourceId(String subResourceId)
 The identifier for a section of the resource, such as an AWS Lambda layer. | 
| String | toString()Returns a string representation of this object. | 
| Resource | withId(String id)
 The identifier for the resource. | 
| Resource | withSubResourceId(String subResourceId)
 The identifier for a section of the resource, such as an AWS Lambda layer. | 
public void setId(String id)
The identifier for the resource.
id - The identifier for the resource.public String getId()
The identifier for the resource.
public Resource withId(String id)
The identifier for the resource.
id - The identifier for the resource.public void setSubResourceId(String subResourceId)
The identifier for a section of the resource, such as an AWS Lambda layer.
subResourceId - The identifier for a section of the resource, such as an AWS Lambda layer.public String getSubResourceId()
The identifier for a section of the resource, such as an AWS Lambda layer.
public Resource withSubResourceId(String subResourceId)
The identifier for a section of the resource, such as an AWS Lambda layer.
subResourceId - The identifier for a section of the resource, such as an AWS Lambda layer.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.