/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.ram.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* A structure that represents the background work that RAM performs when you invoke the * ReplacePermissionAssociations operation. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ReplacePermissionAssociationsWork implements Serializable, Cloneable, StructuredPojo { /** *

* The unique identifier for the background task associated with one ReplacePermissionAssociations request. *

*/ private String id; /** *

* The Amazon Resource Name * (ARN) of the managed permission that this background task is replacing. *

*/ private String fromPermissionArn; /** *

* The version of the managed permission that this background task is replacing. *

*/ private String fromPermissionVersion; /** *

* 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 fromPermissionArn and * fromPermissionVersion. *

*/ private String toPermissionArn; /** *

* 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. *

*/ private String toPermissionVersion; /** *

* Specifies the current status of the background tasks for the specified ID. The output is one of the following * strings: *

* */ private String status; /** *

* Specifies the reason for a FAILED status. This field is present only when there status * is FAILED. *

*/ private String statusMessage; /** *

* The date and time when this asynchronous background task was created. *

*/ private java.util.Date creationTime; /** *

* The date and time when the status of this background task was last updated. *

*/ private java.util.Date lastUpdatedTime; /** *

* The unique identifier for the background task associated with one ReplacePermissionAssociations request. *

* * @param id * The unique identifier for the background task associated with one ReplacePermissionAssociations * request. */ public void setId(String id) { this.id = id; } /** *

* The unique identifier for the background task associated with one ReplacePermissionAssociations request. *

* * @return The unique identifier for the background task associated with one ReplacePermissionAssociations * request. */ public String getId() { return this.id; } /** *

* The unique identifier for the background task associated with one ReplacePermissionAssociations request. *

* * @param id * The unique identifier for the background task associated with one ReplacePermissionAssociations * request. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplacePermissionAssociationsWork withId(String id) { setId(id); return this; } /** *

* The Amazon Resource Name * (ARN) of the managed permission that this background task is replacing. *

* * @param fromPermissionArn * The Amazon Resource * Name (ARN) of the managed permission that this background task is replacing. */ public void setFromPermissionArn(String fromPermissionArn) { this.fromPermissionArn = fromPermissionArn; } /** *

* The Amazon Resource Name * (ARN) of the managed permission that this background task is replacing. *

* * @return The Amazon Resource * Name (ARN) of the managed permission that this background task is replacing. */ public String getFromPermissionArn() { return this.fromPermissionArn; } /** *

* The Amazon Resource Name * (ARN) of the managed permission that this background task is replacing. *

* * @param fromPermissionArn * The Amazon Resource * Name (ARN) of the managed permission that this background task is replacing. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplacePermissionAssociationsWork withFromPermissionArn(String fromPermissionArn) { setFromPermissionArn(fromPermissionArn); return this; } /** *

* The version of the managed permission that this background task is replacing. *

* * @param fromPermissionVersion * The version of the managed permission that this background task is replacing. */ public void setFromPermissionVersion(String fromPermissionVersion) { this.fromPermissionVersion = fromPermissionVersion; } /** *

* The version of the managed permission that this background task is replacing. *

* * @return The version of the managed permission that this background task is replacing. */ public String getFromPermissionVersion() { return this.fromPermissionVersion; } /** *

* The version of the managed permission that this background task is replacing. *

* * @param fromPermissionVersion * The version of the managed permission that this background task is replacing. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplacePermissionAssociationsWork withFromPermissionVersion(String fromPermissionVersion) { setFromPermissionVersion(fromPermissionVersion); return this; } /** *

* 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 fromPermissionArn and * fromPermissionVersion. *

* * @param 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 fromPermissionArn and * fromPermissionVersion. */ public void setToPermissionArn(String toPermissionArn) { this.toPermissionArn = 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 fromPermissionArn and * fromPermissionVersion. *

* * @return 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 fromPermissionArn and * fromPermissionVersion. */ public String getToPermissionArn() { return this.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 fromPermissionArn and * fromPermissionVersion. *

* * @param 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 fromPermissionArn and * fromPermissionVersion. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplacePermissionAssociationsWork withToPermissionArn(String toPermissionArn) { setToPermissionArn(toPermissionArn); return this; } /** *

* 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. *

* * @param 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. */ public void setToPermissionVersion(String toPermissionVersion) { this.toPermissionVersion = 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. *

* * @return 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. */ public String getToPermissionVersion() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public ReplacePermissionAssociationsWork withToPermissionVersion(String toPermissionVersion) { setToPermissionVersion(toPermissionVersion); return this; } /** *

* Specifies the current status of the background tasks for the specified ID. The output is one of the following * strings: *

* * * @param status * Specifies the current status of the background tasks for the specified ID. The output is one of the * following strings:

*