@Generated(value="software.amazon.awssdk:codegen") public final class Resource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Resource.Builder,Resource>
Contains information about the AWS resource associated with the activity that prompted GuardDuty to generate a finding.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Resource.Builder |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static Resource.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasS3BucketDetails()
Returns true if the S3BucketDetails property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
InstanceDetails |
instanceDetails()
The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a
finding.
|
String |
resourceType()
The type of AWS resource.
|
List<S3BucketDetail> |
s3BucketDetails()
Contains information on the S3 bucket.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Resource.Builder> |
serializableBuilderClass() |
Resource.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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.
public boolean hasS3BucketDetails()
public List<S3BucketDetail> s3BucketDetails()
Contains information on the S3 bucket.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasS3BucketDetails() to see if a value was sent in this field.
public InstanceDetails instanceDetails()
The information about the EC2 instance associated with the activity that prompted GuardDuty to generate a finding.
public String resourceType()
The type of AWS resource.
public Resource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Resource.Builder,Resource>public static Resource.Builder builder()
public static Class<? extends Resource.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.