@Generated(value="software.amazon.awssdk:codegen") public final class AssessmentMetadataItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AssessmentMetadataItem.Builder,AssessmentMetadataItem>
A metadata object that's associated with an assessment in Audit Manager.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AssessmentMetadataItem.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AssessmentMetadataItem.Builder |
builder() |
String |
complianceType()
The name of the compliance standard that's related to the assessment, such as PCI-DSS.
|
Instant |
creationTime()
Specifies when the assessment was created.
|
List<Delegation> |
delegations()
The delegations that are associated with the assessment.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasDelegations()
For responses, this returns true if the service returned a value for the Delegations property.
|
int |
hashCode() |
boolean |
hasRoles()
For responses, this returns true if the service returned a value for the Roles property.
|
String |
id()
The unique identifier for the assessment.
|
Instant |
lastUpdated()
The time of the most recent update.
|
String |
name()
The name of the assessment.
|
List<Role> |
roles()
The roles that are associated with the assessment.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AssessmentMetadataItem.Builder> |
serializableBuilderClass() |
AssessmentStatus |
status()
The current status of the assessment.
|
String |
statusAsString()
The current status of the assessment.
|
AssessmentMetadataItem.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the assessment.
public final String id()
The unique identifier for the assessment.
public final String complianceType()
The name of the compliance standard that's related to the assessment, such as PCI-DSS.
public final AssessmentStatus status()
The current status of the assessment.
If the service returns an enum value that is not available in the current SDK version, status will
return AssessmentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
AssessmentStatuspublic final String statusAsString()
The current status of the assessment.
If the service returns an enum value that is not available in the current SDK version, status will
return AssessmentStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
AssessmentStatuspublic final boolean hasRoles()
isEmpty() 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.public final List<Role> roles()
The roles that are associated with the assessment.
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 hasRoles() method.
public final boolean hasDelegations()
isEmpty() 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.public final List<Delegation> delegations()
The delegations that are associated with the assessment.
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 hasDelegations() method.
public final Instant creationTime()
Specifies when the assessment was created.
public final Instant lastUpdated()
The time of the most recent update.
public AssessmentMetadataItem.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AssessmentMetadataItem.Builder,AssessmentMetadataItem>public static AssessmentMetadataItem.Builder builder()
public static Class<? extends AssessmentMetadataItem.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.