Class AuditMitigationActionExecutionMetadata
- java.lang.Object
-
- software.amazon.awssdk.services.iot.model.AuditMitigationActionExecutionMetadata
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AuditMitigationActionExecutionMetadata.Builder,AuditMitigationActionExecutionMetadata>
@Generated("software.amazon.awssdk:codegen") public final class AuditMitigationActionExecutionMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AuditMitigationActionExecutionMetadata.Builder,AuditMitigationActionExecutionMetadata>
Returned by ListAuditMitigationActionsTask, this object contains information that describes a mitigation action that has been started.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAuditMitigationActionExecutionMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringactionId()The unique identifier for the mitigation action being applied by the task.StringactionName()The friendly name of the mitigation action being applied by the task.static AuditMitigationActionExecutionMetadata.Builderbuilder()InstantendTime()The date and time when the task was completed or canceled.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringerrorCode()If an error occurred, the code that indicates which type of error occurred.StringfindingId()The unique identifier for the findings to which the task and associated mitigation action are applied.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()If an error occurred, a message that describes the error.List<SdkField<?>>sdkFields()static Class<? extends AuditMitigationActionExecutionMetadata.Builder>serializableBuilderClass()InstantstartTime()The date and time when the task was started.AuditMitigationActionsExecutionStatusstatus()The current status of the task being executed.StringstatusAsString()The current status of the task being executed.StringtaskId()The unique identifier for the task that applies the mitigation action.AuditMitigationActionExecutionMetadata.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
taskId
public final String taskId()
The unique identifier for the task that applies the mitigation action.
- Returns:
- The unique identifier for the task that applies the mitigation action.
-
findingId
public final String findingId()
The unique identifier for the findings to which the task and associated mitigation action are applied.
- Returns:
- The unique identifier for the findings to which the task and associated mitigation action are applied.
-
actionName
public final String actionName()
The friendly name of the mitigation action being applied by the task.
- Returns:
- The friendly name of the mitigation action being applied by the task.
-
actionId
public final String actionId()
The unique identifier for the mitigation action being applied by the task.
- Returns:
- The unique identifier for the mitigation action being applied by the task.
-
status
public final AuditMitigationActionsExecutionStatus status()
The current status of the task being executed.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnAuditMitigationActionsExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the task being executed.
- See Also:
AuditMitigationActionsExecutionStatus
-
statusAsString
public final String statusAsString()
The current status of the task being executed.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnAuditMitigationActionsExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the task being executed.
- See Also:
AuditMitigationActionsExecutionStatus
-
startTime
public final Instant startTime()
The date and time when the task was started.
- Returns:
- The date and time when the task was started.
-
endTime
public final Instant endTime()
The date and time when the task was completed or canceled. Blank if the task is still running.
- Returns:
- The date and time when the task was completed or canceled. Blank if the task is still running.
-
errorCode
public final String errorCode()
If an error occurred, the code that indicates which type of error occurred.
- Returns:
- If an error occurred, the code that indicates which type of error occurred.
-
message
public final String message()
If an error occurred, a message that describes the error.
- Returns:
- If an error occurred, a message that describes the error.
-
toBuilder
public AuditMitigationActionExecutionMetadata.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AuditMitigationActionExecutionMetadata.Builder,AuditMitigationActionExecutionMetadata>
-
builder
public static AuditMitigationActionExecutionMetadata.Builder builder()
-
serializableBuilderClass
public static Class<? extends AuditMitigationActionExecutionMetadata.Builder> serializableBuilderClass()
-
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.
-
-