/*
* 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 CopyOptionGroup operation.
/// Copies the specified option group.
///
public partial class CopyOptionGroupRequest : AmazonRDSRequest
{
private string _sourceOptionGroupIdentifier;
private List _tags = new List();
private string _targetOptionGroupDescription;
private string _targetOptionGroupIdentifier;
///
/// Gets and sets the property SourceOptionGroupIdentifier.
///
/// The identifier for the source option group.
///
///
///
/// Constraints:
///
/// -
///
/// Must specify a valid option group.
///
///
///
[AWSProperty(Required=true)]
public string SourceOptionGroupIdentifier
{
get { return this._sourceOptionGroupIdentifier; }
set { this._sourceOptionGroupIdentifier = value; }
}
// Check to see if SourceOptionGroupIdentifier property is set
internal bool IsSetSourceOptionGroupIdentifier()
{
return this._sourceOptionGroupIdentifier != null;
}
///
/// Gets and sets the property Tags.
///
public List Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
///
/// Gets and sets the property TargetOptionGroupDescription.
///
/// The description for the copied option group.
///
///
[AWSProperty(Required=true)]
public string TargetOptionGroupDescription
{
get { return this._targetOptionGroupDescription; }
set { this._targetOptionGroupDescription = value; }
}
// Check to see if TargetOptionGroupDescription property is set
internal bool IsSetTargetOptionGroupDescription()
{
return this._targetOptionGroupDescription != null;
}
///
/// Gets and sets the property TargetOptionGroupIdentifier.
///
/// The identifier for the copied option group.
///
///
///
/// Constraints:
///
/// -
///
/// Can't be null, empty, or blank
///
///
-
///
/// Must contain from 1 to 255 letters, numbers, or hyphens
///
///
-
///
/// First character must be a letter
///
///
-
///
/// Can't end with a hyphen or contain two consecutive hyphens
///
///
///
/// Example: my-option-group
///
///
[AWSProperty(Required=true)]
public string TargetOptionGroupIdentifier
{
get { return this._targetOptionGroupIdentifier; }
set { this._targetOptionGroupIdentifier = value; }
}
// Check to see if TargetOptionGroupIdentifier property is set
internal bool IsSetTargetOptionGroupIdentifier()
{
return this._targetOptionGroupIdentifier != null;
}
}
}