/* * 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 { /// /// Specifies the dimension settings for a segment. /// public partial class SegmentDimensions { private Dictionary _attributes = new Dictionary(); private SegmentBehaviors _behavior; private SegmentDemographics _demographic; private SegmentLocation _location; private Dictionary _metrics = new Dictionary(); private Dictionary _userAttributes = new Dictionary(); /// /// Gets and sets the property Attributes. /// /// One or more custom attributes to use as criteria for the segment. /// /// public Dictionary Attributes { get { return this._attributes; } set { this._attributes = value; } } // Check to see if Attributes property is set internal bool IsSetAttributes() { return this._attributes != null && this._attributes.Count > 0; } /// /// Gets and sets the property Behavior. /// /// The behavior-based criteria, such as how recently users have used your app, for the /// segment. /// /// public SegmentBehaviors Behavior { get { return this._behavior; } set { this._behavior = value; } } // Check to see if Behavior property is set internal bool IsSetBehavior() { return this._behavior != null; } /// /// Gets and sets the property Demographic. /// /// The demographic-based criteria, such as device platform, for the segment. /// /// public SegmentDemographics Demographic { get { return this._demographic; } set { this._demographic = value; } } // Check to see if Demographic property is set internal bool IsSetDemographic() { return this._demographic != null; } /// /// Gets and sets the property Location. /// /// The location-based criteria, such as region or GPS coordinates, for the segment. /// /// public SegmentLocation Location { get { return this._location; } set { this._location = value; } } // Check to see if Location property is set internal bool IsSetLocation() { return this._location != null; } /// /// Gets and sets the property Metrics. /// /// One or more custom metrics to use as criteria for the segment. /// /// public Dictionary Metrics { get { return this._metrics; } set { this._metrics = value; } } // Check to see if Metrics property is set internal bool IsSetMetrics() { return this._metrics != null && this._metrics.Count > 0; } /// /// Gets and sets the property UserAttributes. /// /// One or more custom user attributes to use as criteria for the segment. /// /// public Dictionary UserAttributes { get { return this._userAttributes; } set { this._userAttributes = value; } } // Check to see if UserAttributes property is set internal bool IsSetUserAttributes() { return this._userAttributes != null && this._userAttributes.Count > 0; } } }