@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the AWS resource associated with the activity that prompted GuardDuty to generate a finding.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
AccessKeyDetails |
getAccessKeyDetails()
The IAM access key details (IAM user information) of a user that engaged in the activity that prompted GuardDuty
to generate a finding.
|
InstanceDetails |
getInstanceDetails()
The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a
finding.
|
String |
getResourceType()
The type of AWS resource.
|
List<S3BucketDetail> |
getS3BucketDetails()
Contains information on the S3 bucket.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessKeyDetails(AccessKeyDetails accessKeyDetails)
The IAM access key details (IAM user information) of a user that engaged in the activity that prompted GuardDuty
to generate a finding.
|
void |
setInstanceDetails(InstanceDetails instanceDetails)
The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a
finding.
|
void |
setResourceType(String resourceType)
The type of AWS resource.
|
void |
setS3BucketDetails(Collection<S3BucketDetail> s3BucketDetails)
Contains information on the S3 bucket.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withAccessKeyDetails(AccessKeyDetails accessKeyDetails)
The IAM access key details (IAM user information) of a user that engaged in the activity that prompted GuardDuty
to generate a finding.
|
Resource |
withInstanceDetails(InstanceDetails instanceDetails)
The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a
finding.
|
Resource |
withResourceType(String resourceType)
The type of AWS resource.
|
Resource |
withS3BucketDetails(Collection<S3BucketDetail> s3BucketDetails)
Contains information on the S3 bucket.
|
Resource |
withS3BucketDetails(S3BucketDetail... s3BucketDetails)
Contains information on the S3 bucket.
|
public void setAccessKeyDetails(AccessKeyDetails accessKeyDetails)
The IAM access key details (IAM user information) of a user that engaged in the activity that prompted GuardDuty to generate a finding.
accessKeyDetails
- The IAM access key details (IAM user information) of a user that engaged in the activity that prompted
GuardDuty to generate a finding.public AccessKeyDetails getAccessKeyDetails()
The IAM access key details (IAM user information) of a user that engaged in the activity that prompted GuardDuty to generate a finding.
public Resource withAccessKeyDetails(AccessKeyDetails accessKeyDetails)
The IAM access key details (IAM user information) of a user that engaged in the activity that prompted GuardDuty to generate a finding.
accessKeyDetails
- The IAM access key details (IAM user information) of a user that engaged in the activity that prompted
GuardDuty to generate a finding.public List<S3BucketDetail> getS3BucketDetails()
Contains information on the S3 bucket.
public void setS3BucketDetails(Collection<S3BucketDetail> s3BucketDetails)
Contains information on the S3 bucket.
s3BucketDetails
- Contains information on the S3 bucket.public Resource withS3BucketDetails(S3BucketDetail... s3BucketDetails)
Contains information on the S3 bucket.
NOTE: This method appends the values to the existing list (if any). Use
setS3BucketDetails(java.util.Collection)
or withS3BucketDetails(java.util.Collection)
if you
want to override the existing values.
s3BucketDetails
- Contains information on the S3 bucket.public Resource withS3BucketDetails(Collection<S3BucketDetail> s3BucketDetails)
Contains information on the S3 bucket.
s3BucketDetails
- Contains information on the S3 bucket.public void setInstanceDetails(InstanceDetails instanceDetails)
The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a finding.
instanceDetails
- The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a
finding.public InstanceDetails getInstanceDetails()
The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a finding.
public Resource withInstanceDetails(InstanceDetails instanceDetails)
The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a finding.
instanceDetails
- The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a
finding.public void setResourceType(String resourceType)
The type of AWS resource.
resourceType
- The type of AWS resource.public String getResourceType()
The type of AWS resource.
public Resource withResourceType(String resourceType)
The type of AWS resource.
resourceType
- The type of AWS 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.