Class GetFindingV2Response
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.accessanalyzer.model.AccessAnalyzerResponse
-
- software.amazon.awssdk.services.accessanalyzer.model.GetFindingV2Response
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<GetFindingV2Response.Builder,GetFindingV2Response>
@Generated("software.amazon.awssdk:codegen") public final class GetFindingV2Response extends AccessAnalyzerResponse implements ToCopyableBuilder<GetFindingV2Response.Builder,GetFindingV2Response>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGetFindingV2Response.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantanalyzedAt()The time at which the resource-based policy or IAM entity that generated the finding was analyzed.static GetFindingV2Response.Builderbuilder()InstantcreatedAt()The time at which the finding was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringerror()An error.List<FindingDetails>findingDetails()A localized message that explains the finding and provides guidance on how to address it.FindingTypefindingType()The type of the finding.StringfindingTypeAsString()The type of the finding.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasFindingDetails()For responses, this returns true if the service returned a value for the FindingDetails property.inthashCode()Stringid()The ID of the finding to retrieve.StringnextToken()A token used for pagination of results returned.Stringresource()The resource that generated the finding.StringresourceOwnerAccount()Tye Amazon Web Services account ID that owns the resource.ResourceTyperesourceType()The type of the resource identified in the finding.StringresourceTypeAsString()The type of the resource identified in the finding.List<SdkField<?>>sdkFields()static Class<? extends GetFindingV2Response.Builder>serializableBuilderClass()FindingStatusstatus()The status of the finding.StringstatusAsString()The status of the finding.GetFindingV2Response.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The time at which the finding was updated.-
Methods inherited from class software.amazon.awssdk.services.accessanalyzer.model.AccessAnalyzerResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
analyzedAt
public final Instant analyzedAt()
The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
- Returns:
- The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
-
createdAt
public final Instant createdAt()
The time at which the finding was created.
- Returns:
- The time at which the finding was created.
-
error
public final String error()
An error.
- Returns:
- An error.
-
id
public final String id()
The ID of the finding to retrieve.
- Returns:
- The ID of the finding to retrieve.
-
nextToken
public final String nextToken()
A token used for pagination of results returned.
- Returns:
- A token used for pagination of results returned.
-
resource
public final String resource()
The resource that generated the finding.
- Returns:
- The resource that generated the finding.
-
resourceType
public final ResourceType resourceType()
The type of the resource identified in the finding.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The type of the resource identified in the finding.
- See Also:
ResourceType
-
resourceTypeAsString
public final String resourceTypeAsString()
The type of the resource identified in the finding.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- The type of the resource identified in the finding.
- See Also:
ResourceType
-
resourceOwnerAccount
public final String resourceOwnerAccount()
Tye Amazon Web Services account ID that owns the resource.
- Returns:
- Tye Amazon Web Services account ID that owns the resource.
-
status
public final FindingStatus status()
The status of the finding.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnFindingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the finding.
- See Also:
FindingStatus
-
statusAsString
public final String statusAsString()
The status of the finding.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnFindingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the finding.
- See Also:
FindingStatus
-
updatedAt
public final Instant updatedAt()
The time at which the finding was updated.
- Returns:
- The time at which the finding was updated.
-
hasFindingDetails
public final boolean hasFindingDetails()
For responses, this returns true if the service returned a value for the FindingDetails property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
findingDetails
public final List<FindingDetails> findingDetails()
A localized message that explains the finding and provides guidance on how to address it.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasFindingDetails()method.- Returns:
- A localized message that explains the finding and provides guidance on how to address it.
-
findingType
public final FindingType findingType()
The type of the finding. For external access analyzers, the type is
ExternalAccess. For unused access analyzers, the type can beUnusedIAMRole,UnusedIAMUserAccessKey,UnusedIAMUserPassword, orUnusedPermission.If the service returns an enum value that is not available in the current SDK version,
findingTypewill returnFindingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfindingTypeAsString().- Returns:
- The type of the finding. For external access analyzers, the type is
ExternalAccess. For unused access analyzers, the type can beUnusedIAMRole,UnusedIAMUserAccessKey,UnusedIAMUserPassword, orUnusedPermission. - See Also:
FindingType
-
findingTypeAsString
public final String findingTypeAsString()
The type of the finding. For external access analyzers, the type is
ExternalAccess. For unused access analyzers, the type can beUnusedIAMRole,UnusedIAMUserAccessKey,UnusedIAMUserPassword, orUnusedPermission.If the service returns an enum value that is not available in the current SDK version,
findingTypewill returnFindingType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfindingTypeAsString().- Returns:
- The type of the finding. For external access analyzers, the type is
ExternalAccess. For unused access analyzers, the type can beUnusedIAMRole,UnusedIAMUserAccessKey,UnusedIAMUserPassword, orUnusedPermission. - See Also:
FindingType
-
toBuilder
public GetFindingV2Response.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GetFindingV2Response.Builder,GetFindingV2Response>- Specified by:
toBuilderin classAwsResponse
-
builder
public static GetFindingV2Response.Builder builder()
-
serializableBuilderClass
public static Class<? extends GetFindingV2Response.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-