Class ControlOperation
- java.lang.Object
-
- software.amazon.awssdk.services.controltower.model.ControlOperation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ControlOperation.Builder,ControlOperation>
@Generated("software.amazon.awssdk:codegen") public final class ControlOperation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ControlOperation.Builder,ControlOperation>
An operation performed by the control.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceControlOperation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ControlOperation.Builderbuilder()InstantendTime()The time that the operation finished.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ControlOperationTypeoperationType()One ofENABLE_CONTROLorDISABLE_CONTROL.StringoperationTypeAsString()One ofENABLE_CONTROLorDISABLE_CONTROL.List<SdkField<?>>sdkFields()static Class<? extends ControlOperation.Builder>serializableBuilderClass()InstantstartTime()The time that the operation began.ControlOperationStatusstatus()One ofIN_PROGRESS,SUCEEDED, orFAILED.StringstatusAsString()One ofIN_PROGRESS,SUCEEDED, orFAILED.StringstatusMessage()If the operation result isFAILED, this string contains a message explaining why the operation failed.ControlOperation.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
-
endTime
public final Instant endTime()
The time that the operation finished.
- Returns:
- The time that the operation finished.
-
operationType
public final ControlOperationType operationType()
One of
ENABLE_CONTROLorDISABLE_CONTROL.If the service returns an enum value that is not available in the current SDK version,
operationTypewill returnControlOperationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperationTypeAsString().- Returns:
- One of
ENABLE_CONTROLorDISABLE_CONTROL. - See Also:
ControlOperationType
-
operationTypeAsString
public final String operationTypeAsString()
One of
ENABLE_CONTROLorDISABLE_CONTROL.If the service returns an enum value that is not available in the current SDK version,
operationTypewill returnControlOperationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperationTypeAsString().- Returns:
- One of
ENABLE_CONTROLorDISABLE_CONTROL. - See Also:
ControlOperationType
-
startTime
public final Instant startTime()
The time that the operation began.
- Returns:
- The time that the operation began.
-
status
public final ControlOperationStatus status()
One of
IN_PROGRESS,SUCEEDED, orFAILED.If the service returns an enum value that is not available in the current SDK version,
statuswill returnControlOperationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- One of
IN_PROGRESS,SUCEEDED, orFAILED. - See Also:
ControlOperationStatus
-
statusAsString
public final String statusAsString()
One of
IN_PROGRESS,SUCEEDED, orFAILED.If the service returns an enum value that is not available in the current SDK version,
statuswill returnControlOperationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- One of
IN_PROGRESS,SUCEEDED, orFAILED. - See Also:
ControlOperationStatus
-
statusMessage
public final String statusMessage()
If the operation result is
FAILED, this string contains a message explaining why the operation failed.- Returns:
- If the operation result is
FAILED, this string contains a message explaining why the operation failed.
-
toBuilder
public ControlOperation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ControlOperation.Builder,ControlOperation>
-
builder
public static ControlOperation.Builder builder()
-
serializableBuilderClass
public static Class<? extends ControlOperation.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.
-
-