/* * 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 pinpoint-2016-12-01.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.Pinpoint.Model { /// /// Default button configuration. /// public partial class DefaultButtonConfiguration { private string _backgroundColor; private int? _borderRadius; private ButtonAction _buttonAction; private string _link; private string _text; private string _textColor; /// /// Gets and sets the property BackgroundColor. /// /// The background color of the button. /// /// public string BackgroundColor { get { return this._backgroundColor; } set { this._backgroundColor = value; } } // Check to see if BackgroundColor property is set internal bool IsSetBackgroundColor() { return this._backgroundColor != null; } /// /// Gets and sets the property BorderRadius. /// /// The border radius of the button. /// /// public int BorderRadius { get { return this._borderRadius.GetValueOrDefault(); } set { this._borderRadius = value; } } // Check to see if BorderRadius property is set internal bool IsSetBorderRadius() { return this._borderRadius.HasValue; } /// /// Gets and sets the property ButtonAction. /// /// Action triggered by the button. /// /// [AWSProperty(Required=true)] public ButtonAction ButtonAction { get { return this._buttonAction; } set { this._buttonAction = value; } } // Check to see if ButtonAction property is set internal bool IsSetButtonAction() { return this._buttonAction != null; } /// /// Gets and sets the property Link. /// /// Button destination. /// /// public string Link { get { return this._link; } set { this._link = value; } } // Check to see if Link property is set internal bool IsSetLink() { return this._link != null; } /// /// Gets and sets the property Text. /// /// Button text. /// /// [AWSProperty(Required=true)] public string Text { get { return this._text; } set { this._text = value; } } // Check to see if Text property is set internal bool IsSetText() { return this._text != null; } /// /// Gets and sets the property TextColor. /// /// The text color of the button. /// /// public string TextColor { get { return this._textColor; } set { this._textColor = value; } } // Check to see if TextColor property is set internal bool IsSetTextColor() { return this._textColor != null; } } }