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