Class DiscoveredResource
java.lang.Object
software.amazon.awssdk.services.assurance.model.DiscoveredResource
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DiscoveredResource.Builder,DiscoveredResource>
@Generated("software.amazon.awssdk:codegen")
public final class DiscoveredResource
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<DiscoveredResource.Builder,DiscoveredResource>
A resource that is in scope for an environment, project, or control, as returned by
ListDiscoveredResources and ListControlResources.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe AWS account the resource belongs to.static DiscoveredResource.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringregion()The AWS Region that the resource is in.final StringThe identifier (typically the ARN) of the resource.final StringThe resource type, in lowercaseservice:typeform (for example,s3:bucket).static Class<? extends DiscoveredResource.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
resourceIdentifier
The identifier (typically the ARN) of the resource.
- Returns:
- The identifier (typically the ARN) of the resource.
-
resourceType
The resource type, in lowercase
service:typeform (for example,s3:bucket). This is the form thatresourcetype:filters use.- Returns:
- The resource type, in lowercase
service:typeform (for example,s3:bucket). This is the form thatresourcetype:filters use.
-
accountId
The AWS account the resource belongs to.
- Returns:
- The AWS account the resource belongs to.
-
region
The AWS Region that the resource is in. The value is
globalfor global resources such as IAM.- Returns:
- The AWS Region that the resource is in. The value is
globalfor global resources such as IAM.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<DiscoveredResource.Builder,DiscoveredResource> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-