/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the rds-2014-10-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.RDS.Model
{
///
/// Container for the parameters to the ApplyPendingMaintenanceAction operation.
/// Applies a pending maintenance action to a resource (for example, to a DB instance).
///
public partial class ApplyPendingMaintenanceActionRequest : AmazonRDSRequest
{
private string _applyAction;
private string _optInType;
private string _resourceIdentifier;
///
/// Gets and sets the property ApplyAction.
///
/// The pending maintenance action to apply to this resource.
///
///
///
/// Valid values: system-update
, db-upgrade
, hardware-maintenance
,
/// ca-certificate-rotation
///
///
[AWSProperty(Required=true)]
public string ApplyAction
{
get { return this._applyAction; }
set { this._applyAction = value; }
}
// Check to see if ApplyAction property is set
internal bool IsSetApplyAction()
{
return this._applyAction != null;
}
///
/// Gets and sets the property OptInType.
///
/// A value that specifies the type of opt-in request, or undoes an opt-in request. An
/// opt-in request of type immediate
can't be undone.
///
///
///
/// 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.
///
///
///
[AWSProperty(Required=true)]
public string OptInType
{
get { return this._optInType; }
set { this._optInType = value; }
}
// Check to see if OptInType property is set
internal bool IsSetOptInType()
{
return this._optInType != null;
}
///
/// Gets and sets the property ResourceIdentifier.
///
/// The RDS Amazon Resource Name (ARN) of the resource that the pending maintenance action
/// applies to. For information about creating an ARN, see
/// Constructing an RDS Amazon Resource Name (ARN).
///
///
[AWSProperty(Required=true)]
public string ResourceIdentifier
{
get { return this._resourceIdentifier; }
set { this._resourceIdentifier = value; }
}
// Check to see if ResourceIdentifier property is set
internal bool IsSetResourceIdentifier()
{
return this._resourceIdentifier != null;
}
}
}