/* * 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 sdb-2009-04-15.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.SimpleDB.Model { /// /// /// public partial class ReplaceableAttribute { private string _name; private bool? _replace; private string _value; /// /// Empty constructor used to set properties independently even when a simple constructor is available /// public ReplaceableAttribute() { } /// /// Instantiates ReplaceableAttribute with the parameterized properties /// /// The name of the replaceable attribute. /// The value of the replaceable attribute. /// A flag specifying whether or not to replace the attribute/value pair or to add a new attribute/value pair. The default setting is false. public ReplaceableAttribute(string name, string value, bool replace) { _name = name; _value = value; _replace = replace; } /// /// Gets and sets the property Name. The name of the replaceable attribute. /// [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Replace. A flag specifying whether or not to replace the /// attribute/value pair or to add a new attribute/value pair. The default setting is /// false. /// public bool Replace { get { return this._replace.GetValueOrDefault(); } set { this._replace = value; } } // Check to see if Replace property is set internal bool IsSetReplace() { return this._replace.HasValue; } /// /// Gets and sets the property Value. The value of the replaceable attribute. /// [AWSProperty(Required=true)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }