/* * 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.databasemigrationservice.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ApplyPendingMaintenanceActionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** ** The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. *
*/ private String replicationInstanceArn; /** ** The pending maintenance action to apply to this resource. *
*
* Valid values: os-upgrade
, system-update
, db-upgrade
*
* A value that specifies the type of opt-in request, or undoes an opt-in request. You can't undo an opt-in request
* of type immediate
.
*
* Valid values: *
*
* immediate
- Apply the maintenance action immediately.
*
* next-maintenance
- Apply the maintenance action during the next maintenance window for the resource.
*
* undo-opt-in
- Cancel any existing next-maintenance
opt-in requests.
*
* The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. *
* * @param replicationInstanceArn * The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. */ public void setReplicationInstanceArn(String replicationInstanceArn) { this.replicationInstanceArn = replicationInstanceArn; } /** ** The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. *
* * @return The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. */ public String getReplicationInstanceArn() { return this.replicationInstanceArn; } /** ** The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. *
* * @param replicationInstanceArn * The Amazon Resource Name (ARN) of the DMS resource that the pending maintenance action applies to. * @return Returns a reference to this object so that method calls can be chained together. */ public ApplyPendingMaintenanceActionRequest withReplicationInstanceArn(String replicationInstanceArn) { setReplicationInstanceArn(replicationInstanceArn); return this; } /** ** The pending maintenance action to apply to this resource. *
*
* Valid values: os-upgrade
, system-update
, db-upgrade
*
* Valid values: os-upgrade
, system-update
, db-upgrade
*/
public void setApplyAction(String applyAction) {
this.applyAction = applyAction;
}
/**
*
* The pending maintenance action to apply to this resource. *
*
* Valid values: os-upgrade
, system-update
, db-upgrade
*
* Valid values: os-upgrade
, system-update
, db-upgrade
*/
public String getApplyAction() {
return this.applyAction;
}
/**
*
* The pending maintenance action to apply to this resource. *
*
* Valid values: os-upgrade
, system-update
, db-upgrade
*
* Valid values: os-upgrade
, system-update
, db-upgrade
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplyPendingMaintenanceActionRequest withApplyAction(String applyAction) {
setApplyAction(applyAction);
return this;
}
/**
*
* A value that specifies the type of opt-in request, or undoes an opt-in request. You can't undo an opt-in request
* of type immediate
.
*
* Valid values: *
*
* immediate
- Apply the maintenance action immediately.
*
* next-maintenance
- Apply the maintenance action during the next maintenance window for the resource.
*
* undo-opt-in
- Cancel any existing next-maintenance
opt-in requests.
*
immediate
.
* * Valid values: *
*
* immediate
- Apply the maintenance action immediately.
*
* next-maintenance
- Apply the maintenance action during the next maintenance window for the
* resource.
*
* undo-opt-in
- Cancel any existing next-maintenance
opt-in requests.
*
* A value that specifies the type of opt-in request, or undoes an opt-in request. You can't undo an opt-in request
* of type immediate
.
*
* Valid values: *
*
* immediate
- Apply the maintenance action immediately.
*
* next-maintenance
- Apply the maintenance action during the next maintenance window for the resource.
*
* undo-opt-in
- Cancel any existing next-maintenance
opt-in requests.
*
immediate
.
* * Valid values: *
*
* immediate
- Apply the maintenance action immediately.
*
* next-maintenance
- Apply the maintenance action during the next maintenance window for the
* resource.
*
* undo-opt-in
- Cancel any existing next-maintenance
opt-in requests.
*
* A value that specifies the type of opt-in request, or undoes an opt-in request. You can't undo an opt-in request
* of type immediate
.
*
* Valid values: *
*
* immediate
- Apply the maintenance action immediately.
*
* next-maintenance
- Apply the maintenance action during the next maintenance window for the resource.
*
* undo-opt-in
- Cancel any existing next-maintenance
opt-in requests.
*
immediate
.
* * Valid values: *
*
* immediate
- Apply the maintenance action immediately.
*
* next-maintenance
- Apply the maintenance action during the next maintenance window for the
* resource.
*
* undo-opt-in
- Cancel any existing next-maintenance
opt-in requests.
*