Class ReplacePermissionAssociationsWork
- java.lang.Object
-
- software.amazon.awssdk.services.ram.model.ReplacePermissionAssociationsWork
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReplacePermissionAssociationsWork.Builder,ReplacePermissionAssociationsWork>
@Generated("software.amazon.awssdk:codegen") public final class ReplacePermissionAssociationsWork extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReplacePermissionAssociationsWork.Builder,ReplacePermissionAssociationsWork>
A structure that represents the background work that RAM performs when you invoke the ReplacePermissionAssociations operation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReplacePermissionAssociationsWork.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReplacePermissionAssociationsWork.Builderbuilder()InstantcreationTime()The date and time when this asynchronous background task was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfromPermissionArn()The Amazon Resource Name (ARN) of the managed permission that this background task is replacing.StringfromPermissionVersion()The version of the managed permission that this background task is replacing.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The unique identifier for the background task associated with one ReplacePermissionAssociations request.InstantlastUpdatedTime()The date and time when the status of this background task was last updated.List<SdkField<?>>sdkFields()static Class<? extends ReplacePermissionAssociationsWork.Builder>serializableBuilderClass()ReplacePermissionAssociationsWorkStatusstatus()Specifies the current status of the background tasks for the specified ID.StringstatusAsString()Specifies the current status of the background tasks for the specified ID.StringstatusMessage()Specifies the reason for aFAILEDstatus.ReplacePermissionAssociationsWork.BuildertoBuilder()StringtoPermissionArn()The ARN of the managed permission that this background task is associating with the resource shares in place of the managed permission and version specified infromPermissionArnandfromPermissionVersion.StringtoPermissionVersion()The version of the managed permission that this background task is associating with the resource shares.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
-
id
public final String id()
The unique identifier for the background task associated with one ReplacePermissionAssociations request.
- Returns:
- The unique identifier for the background task associated with one ReplacePermissionAssociations request.
-
fromPermissionArn
public final String fromPermissionArn()
The Amazon Resource Name (ARN) of the managed permission that this background task is replacing.
- Returns:
- The Amazon Resource Name (ARN) of the managed permission that this background task is replacing.
-
fromPermissionVersion
public final String fromPermissionVersion()
The version of the managed permission that this background task is replacing.
- Returns:
- The version of the managed permission that this background task is replacing.
-
toPermissionArn
public final String toPermissionArn()
The ARN of the managed permission that this background task is associating with the resource shares in place of the managed permission and version specified in
fromPermissionArnandfromPermissionVersion.- Returns:
- The ARN of the managed permission that this background task is associating with the resource shares in
place of the managed permission and version specified in
fromPermissionArnandfromPermissionVersion.
-
toPermissionVersion
public final String toPermissionVersion()
The version of the managed permission that this background task is associating with the resource shares. This is always the version that is currently the default for this managed permission.
- Returns:
- The version of the managed permission that this background task is associating with the resource shares. This is always the version that is currently the default for this managed permission.
-
status
public final ReplacePermissionAssociationsWorkStatus status()
Specifies the current status of the background tasks for the specified ID. The output is one of the following strings:
-
IN_PROGRESS -
COMPLETED -
FAILED
If the service returns an enum value that is not available in the current SDK version,
statuswill returnReplacePermissionAssociationsWorkStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- Specifies the current status of the background tasks for the specified ID. The output is one of the
following strings:
-
IN_PROGRESS -
COMPLETED -
FAILED
-
- See Also:
ReplacePermissionAssociationsWorkStatus
-
-
statusAsString
public final String statusAsString()
Specifies the current status of the background tasks for the specified ID. The output is one of the following strings:
-
IN_PROGRESS -
COMPLETED -
FAILED
If the service returns an enum value that is not available in the current SDK version,
statuswill returnReplacePermissionAssociationsWorkStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- Specifies the current status of the background tasks for the specified ID. The output is one of the
following strings:
-
IN_PROGRESS -
COMPLETED -
FAILED
-
- See Also:
ReplacePermissionAssociationsWorkStatus
-
-
statusMessage
public final String statusMessage()
Specifies the reason for a
FAILEDstatus. This field is present only when therestatusisFAILED.- Returns:
- Specifies the reason for a
FAILEDstatus. This field is present only when therestatusisFAILED.
-
creationTime
public final Instant creationTime()
The date and time when this asynchronous background task was created.
- Returns:
- The date and time when this asynchronous background task was created.
-
lastUpdatedTime
public final Instant lastUpdatedTime()
The date and time when the status of this background task was last updated.
- Returns:
- The date and time when the status of this background task was last updated.
-
toBuilder
public ReplacePermissionAssociationsWork.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReplacePermissionAssociationsWork.Builder,ReplacePermissionAssociationsWork>
-
builder
public static ReplacePermissionAssociationsWork.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReplacePermissionAssociationsWork.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.
-
-