repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the ListLaunches operation. /// </summary> public partial class ListLaunchesResponse : AmazonWebServiceResponse { private List<Launch> _launches = new List<Launch>(); private string _nextToken; /// <summary> /// Gets and sets the property Launches. /// <para> /// An array of structures that contain the configuration details of the launches in the /// specified project. /// </para> /// </summary> public List<Launch> Launches { get { return this._launches; } set { this._launches = value; } } // Check to see if Launches property is set internal bool IsSetLaunches() { return this._launches != null && this._launches.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token to use in a subsequent <code>ListLaunches</code> operation to return the /// next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=8192)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the ListProjects operation. /// Returns configuration details about all the projects in the current Region in your /// account. /// </summary> public partial class ListProjectsRequest : AmazonCloudWatchEvidentlyRequest { private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in the response. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token to use when requesting the next set of results. You received this token /// from a previous <code>ListProjects</code> operation. /// </para> /// </summary> [AWSProperty(Min=1, Max=8192)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
81
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the ListProjects operation. /// </summary> public partial class ListProjectsResponse : AmazonWebServiceResponse { private string _nextToken; private List<ProjectSummary> _projects = new List<ProjectSummary>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token to use in a subsequent <code>ListProjects</code> operation to return the /// next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=8192)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property Projects. /// <para> /// An array of structures that contain the configuration details of the projects in the /// Region. /// </para> /// </summary> public List<ProjectSummary> Projects { get { return this._projects; } set { this._projects = value; } } // Check to see if Projects property is set internal bool IsSetProjects() { return this._projects != null && this._projects.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the ListSegmentReferences operation. /// Use this operation to find which experiments or launches are using a specified segment. /// </summary> public partial class ListSegmentReferencesRequest : AmazonCloudWatchEvidentlyRequest { private int? _maxResults; private string _nextToken; private string _segment; private SegmentReferenceResourceType _type; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in the response. If you omit this, the default /// of 50 is used. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token to use when requesting the next set of results. You received this token /// from a previous <code>ListSegmentReferences</code> operation. /// </para> /// </summary> [AWSProperty(Min=1, Max=8192)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property Segment. /// <para> /// The ARN of the segment that you want to view information for. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Segment { get { return this._segment; } set { this._segment = value; } } // Check to see if Segment property is set internal bool IsSetSegment() { return this._segment != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// Specifies whether to return information about launches or experiments that use this /// segment. /// </para> /// </summary> [AWSProperty(Required=true)] public SegmentReferenceResourceType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
122
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the ListSegmentReferences operation. /// </summary> public partial class ListSegmentReferencesResponse : AmazonWebServiceResponse { private string _nextToken; private List<RefResource> _referencedBy = new List<RefResource>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token to use in a subsequent <code>ListSegmentReferences</code> operation to return /// the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=8192)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ReferencedBy. /// <para> /// An array of structures, where each structure contains information about one experiment /// or launch that uses this segment. /// </para> /// </summary> public List<RefResource> ReferencedBy { get { return this._referencedBy; } set { this._referencedBy = value; } } // Check to see if ReferencedBy property is set internal bool IsSetReferencedBy() { return this._referencedBy != null && this._referencedBy.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the ListSegments operation. /// Returns a list of audience segments that you have created in your account in this /// Region. /// </summary> public partial class ListSegmentsRequest : AmazonCloudWatchEvidentlyRequest { private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of results to include in the response. If you omit this, the default /// of 50 is used. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token to use when requesting the next set of results. You received this token /// from a previous <code>ListSegments</code> operation. /// </para> /// </summary> [AWSProperty(Min=1, Max=8192)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
82
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the ListSegments operation. /// </summary> public partial class ListSegmentsResponse : AmazonWebServiceResponse { private string _nextToken; private List<Segment> _segments = new List<Segment>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token to use in a subsequent <code>ListSegments</code> operation to return the /// next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=8192)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property Segments. /// <para> /// An array of structures that contain information about the segments in this Region. /// </para> /// </summary> public List<Segment> Segments { get { return this._segments; } set { this._segments = value; } } // Check to see if Segments property is set internal bool IsSetSegments() { return this._segments != null && this._segments.Count > 0; } } }
78
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the ListTagsForResource operation. /// Displays the tags associated with an Evidently resource. /// </summary> public partial class ListTagsForResourceRequest : AmazonCloudWatchEvidentlyRequest { private string _resourceArn; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The ARN of the resource that you want to see the tags of. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }
59
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the ListTagsForResource operation. /// </summary> public partial class ListTagsForResourceResponse : AmazonWebServiceResponse { private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Tags. /// <para> /// The list of tag keys and values associated with the resource you specified. /// </para> /// </summary> public Dictionary<string, string> 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; } } }
57
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This structure defines a metric that is being used to evaluate the variations during /// a launch or experiment. /// </summary> public partial class MetricDefinition { private string _entityIdKey; private string _eventPattern; private string _name; private string _unitLabel; private string _valueKey; /// <summary> /// Gets and sets the property EntityIdKey. /// <para> /// The entity, such as a user or session, that does an action that causes a metric value /// to be recorded. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string EntityIdKey { get { return this._entityIdKey; } set { this._entityIdKey = value; } } // Check to see if EntityIdKey property is set internal bool IsSetEntityIdKey() { return this._entityIdKey != null; } /// <summary> /// Gets and sets the property EventPattern. /// <para> /// The EventBridge event pattern that defines how the metric is recorded. /// </para> /// /// <para> /// For more information about EventBridge event patterns, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html">Amazon /// EventBridge event patterns</a>. /// </para> /// </summary> public string EventPattern { get { return this._eventPattern; } set { this._eventPattern = value; } } // Check to see if EventPattern property is set internal bool IsSetEventPattern() { return this._eventPattern != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the metric. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] 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; } /// <summary> /// Gets and sets the property UnitLabel. /// <para> /// The label for the units that the metric is measuring. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string UnitLabel { get { return this._unitLabel; } set { this._unitLabel = value; } } // Check to see if UnitLabel property is set internal bool IsSetUnitLabel() { return this._unitLabel != null; } /// <summary> /// Gets and sets the property ValueKey. /// <para> /// The value that is tracked to produce the metric. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string ValueKey { get { return this._valueKey; } set { this._valueKey = value; } } // Check to see if ValueKey property is set internal bool IsSetValueKey() { return this._valueKey != null; } } }
144
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This structure defines a metric that you want to use to evaluate the variations during /// a launch or experiment. /// </summary> public partial class MetricDefinitionConfig { private string _entityIdKey; private string _eventPattern; private string _name; private string _unitLabel; private string _valueKey; /// <summary> /// Gets and sets the property EntityIdKey. /// <para> /// The entity, such as a user or session, that does an action that causes a metric value /// to be recorded. An example is <code>userDetails.userID</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string EntityIdKey { get { return this._entityIdKey; } set { this._entityIdKey = value; } } // Check to see if EntityIdKey property is set internal bool IsSetEntityIdKey() { return this._entityIdKey != null; } /// <summary> /// Gets and sets the property EventPattern. /// <para> /// The EventBridge event pattern that defines how the metric is recorded. /// </para> /// /// <para> /// For more information about EventBridge event patterns, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html">Amazon /// EventBridge event patterns</a>. /// </para> /// </summary> [AWSProperty(Min=0, Max=1024)] public string EventPattern { get { return this._eventPattern; } set { this._eventPattern = value; } } // Check to see if EventPattern property is set internal bool IsSetEventPattern() { return this._eventPattern != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// A name for the metric. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=255)] 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; } /// <summary> /// Gets and sets the property UnitLabel. /// <para> /// A label for the units that the metric is measuring. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string UnitLabel { get { return this._unitLabel; } set { this._unitLabel = value; } } // Check to see if UnitLabel property is set internal bool IsSetUnitLabel() { return this._unitLabel != null; } /// <summary> /// Gets and sets the property ValueKey. /// <para> /// The value that is tracked to produce the metric. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string ValueKey { get { return this._valueKey; } set { this._valueKey = value; } } // Check to see if ValueKey property is set internal bool IsSetValueKey() { return this._valueKey != null; } } }
145
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that tells Evidently whether higher or lower values are desired for a /// metric that is used in an experiment. /// </summary> public partial class MetricGoal { private ChangeDirectionEnum _desiredChange; private MetricDefinition _metricDefinition; /// <summary> /// Gets and sets the property DesiredChange. /// <para> /// <code>INCREASE</code> means that a variation with a higher number for this metric /// is performing better. /// </para> /// /// <para> /// <code>DECREASE</code> means that a variation with a lower number for this metric /// is performing better. /// </para> /// </summary> public ChangeDirectionEnum DesiredChange { get { return this._desiredChange; } set { this._desiredChange = value; } } // Check to see if DesiredChange property is set internal bool IsSetDesiredChange() { return this._desiredChange != null; } /// <summary> /// Gets and sets the property MetricDefinition. /// <para> /// A structure that contains details about the metric. /// </para> /// </summary> [AWSProperty(Required=true)] public MetricDefinition MetricDefinition { get { return this._metricDefinition; } set { this._metricDefinition = value; } } // Check to see if MetricDefinition property is set internal bool IsSetMetricDefinition() { return this._metricDefinition != null; } } }
84
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Use this structure to tell Evidently whether higher or lower values are desired for /// a metric that is used in an experiment. /// </summary> public partial class MetricGoalConfig { private ChangeDirectionEnum _desiredChange; private MetricDefinitionConfig _metricDefinition; /// <summary> /// Gets and sets the property DesiredChange. /// <para> /// <code>INCREASE</code> means that a variation with a higher number for this metric /// is performing better. /// </para> /// /// <para> /// <code>DECREASE</code> means that a variation with a lower number for this metric /// is performing better. /// </para> /// </summary> public ChangeDirectionEnum DesiredChange { get { return this._desiredChange; } set { this._desiredChange = value; } } // Check to see if DesiredChange property is set internal bool IsSetDesiredChange() { return this._desiredChange != null; } /// <summary> /// Gets and sets the property MetricDefinition. /// <para> /// A structure that contains details about the metric. /// </para> /// </summary> [AWSProperty(Required=true)] public MetricDefinitionConfig MetricDefinition { get { return this._metricDefinition; } set { this._metricDefinition = value; } } // Check to see if MetricDefinition property is set internal bool IsSetMetricDefinition() { return this._metricDefinition != null; } } }
84
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that defines a metric to be used to monitor performance of the variations /// during a launch. /// </summary> public partial class MetricMonitor { private MetricDefinition _metricDefinition; /// <summary> /// Gets and sets the property MetricDefinition. /// <para> /// A structure that defines the metric. /// </para> /// </summary> [AWSProperty(Required=true)] public MetricDefinition MetricDefinition { get { return this._metricDefinition; } set { this._metricDefinition = value; } } // Check to see if MetricDefinition property is set internal bool IsSetMetricDefinition() { return this._metricDefinition != null; } } }
59
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that defines a metric to be used to monitor performance of the variations /// during a launch. /// </summary> public partial class MetricMonitorConfig { private MetricDefinitionConfig _metricDefinition; /// <summary> /// Gets and sets the property MetricDefinition. /// <para> /// A structure that defines the metric. /// </para> /// </summary> [AWSProperty(Required=true)] public MetricDefinitionConfig MetricDefinition { get { return this._metricDefinition; } set { this._metricDefinition = value; } } // Check to see if MetricDefinition property is set internal bool IsSetMetricDefinition() { return this._metricDefinition != null; } } }
59
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that contains the configuration of which variation to use as the "control" /// version. The "control" version is used for comparison with other variations. This /// structure also specifies how much experiment traffic is allocated to each variation. /// </summary> public partial class OnlineAbConfig { private string _controlTreatmentName; private Dictionary<string, long> _treatmentWeights = new Dictionary<string, long>(); /// <summary> /// Gets and sets the property ControlTreatmentName. /// <para> /// The name of the variation that is to be the default variation that the other variations /// are compared to. /// </para> /// </summary> [AWSProperty(Min=1, Max=127)] public string ControlTreatmentName { get { return this._controlTreatmentName; } set { this._controlTreatmentName = value; } } // Check to see if ControlTreatmentName property is set internal bool IsSetControlTreatmentName() { return this._controlTreatmentName != null; } /// <summary> /// Gets and sets the property TreatmentWeights. /// <para> /// A set of key-value pairs. The keys are variation names, and the values are the portion /// of experiment traffic to be assigned to that variation. Specify the traffic portion /// in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment /// traffic to that variation. /// </para> /// </summary> public Dictionary<string, long> TreatmentWeights { get { return this._treatmentWeights; } set { this._treatmentWeights = value; } } // Check to see if TreatmentWeights property is set internal bool IsSetTreatmentWeights() { return this._treatmentWeights != null && this._treatmentWeights.Count > 0; } } }
83
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that contains the configuration of which variation to use as the "control" /// version. The "control" version is used for comparison with other variations. This /// structure also specifies how much experiment traffic is allocated to each variation. /// </summary> public partial class OnlineAbDefinition { private string _controlTreatmentName; private Dictionary<string, long> _treatmentWeights = new Dictionary<string, long>(); /// <summary> /// Gets and sets the property ControlTreatmentName. /// <para> /// The name of the variation that is the default variation that the other variations /// are compared to. /// </para> /// </summary> [AWSProperty(Min=1, Max=127)] public string ControlTreatmentName { get { return this._controlTreatmentName; } set { this._controlTreatmentName = value; } } // Check to see if ControlTreatmentName property is set internal bool IsSetControlTreatmentName() { return this._controlTreatmentName != null; } /// <summary> /// Gets and sets the property TreatmentWeights. /// <para> /// A set of key-value pairs. The keys are variation names, and the values are the portion /// of experiment traffic to be assigned to that variation. The traffic portion is specified /// in thousandths of a percent, so 20,000 for a variation would allocate 20% of the experiment /// traffic to that variation. /// </para> /// </summary> public Dictionary<string, long> TreatmentWeights { get { return this._treatmentWeights; } set { this._treatmentWeights = value; } } // Check to see if TreatmentWeights property is set internal bool IsSetTreatmentWeights() { return this._treatmentWeights != null && this._treatmentWeights.Count > 0; } } }
83
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This structure defines a project, which is the logical object in Evidently that can /// contain features, launches, and experiments. Use projects to group similar features /// together. /// </summary> public partial class Project { private long? _activeExperimentCount; private long? _activeLaunchCount; private ProjectAppConfigResource _appConfigResource; private string _arn; private DateTime? _createdTime; private ProjectDataDelivery _dataDelivery; private string _description; private long? _experimentCount; private long? _featureCount; private DateTime? _lastUpdatedTime; private long? _launchCount; private string _name; private ProjectStatus _status; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property ActiveExperimentCount. /// <para> /// The number of ongoing experiments currently in the project. /// </para> /// </summary> public long ActiveExperimentCount { get { return this._activeExperimentCount.GetValueOrDefault(); } set { this._activeExperimentCount = value; } } // Check to see if ActiveExperimentCount property is set internal bool IsSetActiveExperimentCount() { return this._activeExperimentCount.HasValue; } /// <summary> /// Gets and sets the property ActiveLaunchCount. /// <para> /// The number of ongoing launches currently in the project. /// </para> /// </summary> public long ActiveLaunchCount { get { return this._activeLaunchCount.GetValueOrDefault(); } set { this._activeLaunchCount = value; } } // Check to see if ActiveLaunchCount property is set internal bool IsSetActiveLaunchCount() { return this._activeLaunchCount.HasValue; } /// <summary> /// Gets and sets the property AppConfigResource. /// <para> /// This structure defines the configuration of how your application integrates with AppConfig /// to run client-side evaluation. /// </para> /// </summary> public ProjectAppConfigResource AppConfigResource { get { return this._appConfigResource; } set { this._appConfigResource = value; } } // Check to see if AppConfigResource property is set internal bool IsSetAppConfigResource() { return this._appConfigResource != null; } /// <summary> /// Gets and sets the property Arn. /// <para> /// The name or ARN of the project. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property CreatedTime. /// <para> /// The date and time that the project is created. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedTime { get { return this._createdTime.GetValueOrDefault(); } set { this._createdTime = value; } } // Check to see if CreatedTime property is set internal bool IsSetCreatedTime() { return this._createdTime.HasValue; } /// <summary> /// Gets and sets the property DataDelivery. /// <para> /// A structure that contains information about where Evidently is to store evaluation /// events for longer term storage. /// </para> /// </summary> public ProjectDataDelivery DataDelivery { get { return this._dataDelivery; } set { this._dataDelivery = value; } } // Check to see if DataDelivery property is set internal bool IsSetDataDelivery() { return this._dataDelivery != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The user-entered description of the project. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property ExperimentCount. /// <para> /// The number of experiments currently in the project. This includes all experiments /// that have been created and not deleted, whether they are ongoing or not. /// </para> /// </summary> public long ExperimentCount { get { return this._experimentCount.GetValueOrDefault(); } set { this._experimentCount = value; } } // Check to see if ExperimentCount property is set internal bool IsSetExperimentCount() { return this._experimentCount.HasValue; } /// <summary> /// Gets and sets the property FeatureCount. /// <para> /// The number of features currently in the project. /// </para> /// </summary> public long FeatureCount { get { return this._featureCount.GetValueOrDefault(); } set { this._featureCount = value; } } // Check to see if FeatureCount property is set internal bool IsSetFeatureCount() { return this._featureCount.HasValue; } /// <summary> /// Gets and sets the property LastUpdatedTime. /// <para> /// The date and time that the project was most recently updated. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// <summary> /// Gets and sets the property LaunchCount. /// <para> /// The number of launches currently in the project. This includes all launches that have /// been created and not deleted, whether they are ongoing or not. /// </para> /// </summary> public long LaunchCount { get { return this._launchCount.GetValueOrDefault(); } set { this._launchCount = value; } } // Check to see if LaunchCount property is set internal bool IsSetLaunchCount() { return this._launchCount.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the project. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] 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; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current state of the project. /// </para> /// </summary> [AWSProperty(Required=true)] public ProjectStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The list of tag keys and values associated with this project. /// </para> /// </summary> public Dictionary<string, string> 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; } } }
316
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is a structure that defines the configuration of how your application integrates /// with AppConfig to run client-side evaluation. /// </summary> public partial class ProjectAppConfigResource { private string _applicationId; private string _configurationProfileId; private string _environmentId; /// <summary> /// Gets and sets the property ApplicationId. /// <para> /// The ID of the AppConfig application to use for client-side evaluation. /// </para> /// </summary> [AWSProperty(Required=true)] public string ApplicationId { get { return this._applicationId; } set { this._applicationId = value; } } // Check to see if ApplicationId property is set internal bool IsSetApplicationId() { return this._applicationId != null; } /// <summary> /// Gets and sets the property ConfigurationProfileId. /// <para> /// The ID of the AppConfig profile to use for client-side evaluation. /// </para> /// </summary> [AWSProperty(Required=true)] public string ConfigurationProfileId { get { return this._configurationProfileId; } set { this._configurationProfileId = value; } } // Check to see if ConfigurationProfileId property is set internal bool IsSetConfigurationProfileId() { return this._configurationProfileId != null; } /// <summary> /// Gets and sets the property EnvironmentId. /// <para> /// The ID of the AppConfig environment to use for client-side evaluation. This must be /// an environment that is within the application that you specify for <code>applicationId</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public string EnvironmentId { get { return this._environmentId; } set { this._environmentId = value; } } // Check to see if EnvironmentId property is set internal bool IsSetEnvironmentId() { return this._environmentId != null; } } }
100
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Use this parameter to configure client-side evaluation for your project. Client-side /// evaluation allows your application to assign variations to user sessions locally instead /// of by calling the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a> /// operation to assign the variations. This mitigates the latency and availability risks /// that come with an API call. /// /// /// <para> /// <code>ProjectAppConfigResource</code> is a structure that defines the configuration /// of how your application integrates with AppConfig to run client-side evaluation. /// </para> /// </summary> public partial class ProjectAppConfigResourceConfig { private string _applicationId; private string _environmentId; /// <summary> /// Gets and sets the property ApplicationId. /// <para> /// The ID of the AppConfig application to use for client-side evaluation. /// </para> /// </summary> public string ApplicationId { get { return this._applicationId; } set { this._applicationId = value; } } // Check to see if ApplicationId property is set internal bool IsSetApplicationId() { return this._applicationId != null; } /// <summary> /// Gets and sets the property EnvironmentId. /// <para> /// The ID of the AppConfig environment to use for client-side evaluation. This must be /// an environment that is within the application that you specify for <code>applicationId</code>. /// </para> /// </summary> public string EnvironmentId { get { return this._environmentId; } set { this._environmentId = value; } } // Check to see if EnvironmentId property is set internal bool IsSetEnvironmentId() { return this._environmentId != null; } } }
87
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that contains information about where Evidently is to store evaluation /// events for longer term storage. /// </summary> public partial class ProjectDataDelivery { private CloudWatchLogsDestination _cloudWatchLogs; private S3Destination _s3Destination; /// <summary> /// Gets and sets the property CloudWatchLogs. /// <para> /// If the project stores evaluation events in CloudWatch Logs, this structure stores /// the log group name. /// </para> /// </summary> public CloudWatchLogsDestination CloudWatchLogs { get { return this._cloudWatchLogs; } set { this._cloudWatchLogs = value; } } // Check to see if CloudWatchLogs property is set internal bool IsSetCloudWatchLogs() { return this._cloudWatchLogs != null; } /// <summary> /// Gets and sets the property S3Destination. /// <para> /// If the project stores evaluation events in an Amazon S3 bucket, this structure stores /// the bucket name and bucket prefix. /// </para> /// </summary> public S3Destination S3Destination { get { return this._s3Destination; } set { this._s3Destination = value; } } // Check to see if S3Destination property is set internal bool IsSetS3Destination() { return this._s3Destination != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that contains information about where Evidently is to store evaluation /// events for longer term storage. /// </summary> public partial class ProjectDataDeliveryConfig { private CloudWatchLogsDestinationConfig _cloudWatchLogs; private S3DestinationConfig _s3Destination; /// <summary> /// Gets and sets the property CloudWatchLogs. /// <para> /// If the project stores evaluation events in CloudWatch Logs, this structure stores /// the log group name. /// </para> /// </summary> public CloudWatchLogsDestinationConfig CloudWatchLogs { get { return this._cloudWatchLogs; } set { this._cloudWatchLogs = value; } } // Check to see if CloudWatchLogs property is set internal bool IsSetCloudWatchLogs() { return this._cloudWatchLogs != null; } /// <summary> /// Gets and sets the property S3Destination. /// <para> /// If the project stores evaluation events in an Amazon S3 bucket, this structure stores /// the bucket name and bucket prefix. /// </para> /// </summary> public S3DestinationConfig S3Destination { get { return this._s3Destination; } set { this._s3Destination = value; } } // Check to see if S3Destination property is set internal bool IsSetS3Destination() { return this._s3Destination != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that contains configuration information about an Evidently project. /// </summary> public partial class ProjectSummary { private long? _activeExperimentCount; private long? _activeLaunchCount; private string _arn; private DateTime? _createdTime; private string _description; private long? _experimentCount; private long? _featureCount; private DateTime? _lastUpdatedTime; private long? _launchCount; private string _name; private ProjectStatus _status; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property ActiveExperimentCount. /// <para> /// The number of experiments currently in the project. /// </para> /// </summary> public long ActiveExperimentCount { get { return this._activeExperimentCount.GetValueOrDefault(); } set { this._activeExperimentCount = value; } } // Check to see if ActiveExperimentCount property is set internal bool IsSetActiveExperimentCount() { return this._activeExperimentCount.HasValue; } /// <summary> /// Gets and sets the property ActiveLaunchCount. /// <para> /// The number of ongoing launches currently in the project. /// </para> /// </summary> public long ActiveLaunchCount { get { return this._activeLaunchCount.GetValueOrDefault(); } set { this._activeLaunchCount = value; } } // Check to see if ActiveLaunchCount property is set internal bool IsSetActiveLaunchCount() { return this._activeLaunchCount.HasValue; } /// <summary> /// Gets and sets the property Arn. /// <para> /// The name or ARN of the project. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property CreatedTime. /// <para> /// The date and time that the project is created. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedTime { get { return this._createdTime.GetValueOrDefault(); } set { this._createdTime = value; } } // Check to see if CreatedTime property is set internal bool IsSetCreatedTime() { return this._createdTime.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the project. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property ExperimentCount. /// <para> /// The number of experiments currently in the project. /// </para> /// </summary> public long ExperimentCount { get { return this._experimentCount.GetValueOrDefault(); } set { this._experimentCount = value; } } // Check to see if ExperimentCount property is set internal bool IsSetExperimentCount() { return this._experimentCount.HasValue; } /// <summary> /// Gets and sets the property FeatureCount. /// <para> /// The number of features currently in the project. /// </para> /// </summary> public long FeatureCount { get { return this._featureCount.GetValueOrDefault(); } set { this._featureCount = value; } } // Check to see if FeatureCount property is set internal bool IsSetFeatureCount() { return this._featureCount.HasValue; } /// <summary> /// Gets and sets the property LastUpdatedTime. /// <para> /// The date and time that the project was most recently updated. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// <summary> /// Gets and sets the property LaunchCount. /// <para> /// The number of launches currently in the project, including launches that are ongoing, /// completed, and not started yet. /// </para> /// </summary> public long LaunchCount { get { return this._launchCount.GetValueOrDefault(); } set { this._launchCount = value; } } // Check to see if LaunchCount property is set internal bool IsSetLaunchCount() { return this._launchCount.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the project. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] 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; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current state of the project. /// </para> /// </summary> [AWSProperty(Required=true)] public ProjectStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The list of tag keys and values associated with this project. /// </para> /// </summary> public Dictionary<string, string> 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; } } }
273
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the PutProjectEvents operation. /// Sends performance events to Evidently. These events can be used to evaluate a launch /// or an experiment. /// </summary> public partial class PutProjectEventsRequest : AmazonCloudWatchEvidentlyRequest { private List<Event> _events = new List<Event>(); private string _project; /// <summary> /// Gets and sets the property Events. /// <para> /// An array of event structures that contain the performance data that is being sent /// to Evidently. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=50)] public List<Event> Events { get { return this._events; } set { this._events = value; } } // Check to see if Events property is set internal bool IsSetEvents() { return this._events != null && this._events.Count > 0; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project to write the events to. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } } }
81
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the PutProjectEvents operation. /// </summary> public partial class PutProjectEventsResponse : AmazonWebServiceResponse { private List<PutProjectEventsResultEntry> _eventResults = new List<PutProjectEventsResultEntry>(); private int? _failedEventCount; /// <summary> /// Gets and sets the property EventResults. /// <para> /// A structure that contains Evidently's response to the sent events, including an event /// ID and error codes, if any. /// </para> /// </summary> public List<PutProjectEventsResultEntry> EventResults { get { return this._eventResults; } set { this._eventResults = value; } } // Check to see if EventResults property is set internal bool IsSetEventResults() { return this._eventResults != null && this._eventResults.Count > 0; } /// <summary> /// Gets and sets the property FailedEventCount. /// <para> /// The number of events in the operation that could not be used by Evidently. /// </para> /// </summary> public int FailedEventCount { get { return this._failedEventCount.GetValueOrDefault(); } set { this._failedEventCount = value; } } // Check to see if FailedEventCount property is set internal bool IsSetFailedEventCount() { return this._failedEventCount.HasValue; } } }
77
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that contains Evidently's response to the sent events, including an event /// ID and error codes, if any. /// </summary> public partial class PutProjectEventsResultEntry { private string _errorCode; private string _errorMessage; private string _eventId; /// <summary> /// Gets and sets the property ErrorCode. /// <para> /// If the <code>PutProjectEvents</code> operation has an error, the error code is returned /// here. /// </para> /// </summary> [AWSProperty(Min=1, Max=64)] public string ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// If the <code>PutProjectEvents</code> operation has an error, the error message is /// returned here. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// <summary> /// Gets and sets the property EventId. /// <para> /// A unique ID assigned to this <code>PutProjectEvents</code> operation. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string EventId { get { return this._eventId; } set { this._eventId = value; } } // Check to see if EventId property is set internal bool IsSetEventId() { return this._eventId != null; } } }
101
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that contains information about one experiment or launch that uses the /// specified segment. /// </summary> public partial class RefResource { private string _arn; private string _endTime; private string _lastUpdatedOn; private string _name; private string _startTime; private string _status; private string _type; /// <summary> /// Gets and sets the property Arn. /// <para> /// The ARN of the experiment or launch. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property EndTime. /// <para> /// The day and time that this experiment or launch ended. /// </para> /// </summary> public string EndTime { get { return this._endTime; } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime != null; } /// <summary> /// Gets and sets the property LastUpdatedOn. /// <para> /// The day and time that this experiment or launch was most recently updated. /// </para> /// </summary> public string LastUpdatedOn { get { return this._lastUpdatedOn; } set { this._lastUpdatedOn = value; } } // Check to see if LastUpdatedOn property is set internal bool IsSetLastUpdatedOn() { return this._lastUpdatedOn != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the experiment or launch. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The day and time that this experiment or launch started. /// </para> /// </summary> public string StartTime { get { return this._startTime; } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the experiment or launch. /// </para> /// </summary> public string Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// Specifies whether the resource that this structure contains information about is an /// experiment or a launch. /// </para> /// </summary> [AWSProperty(Required=true)] public string Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }
175
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// The request references a resource that does not exist. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonCloudWatchEvidentlyException { private string _resourceId; private string _resourceType; /// <summary> /// Constructs a new ResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="innerException"></param> public ResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ResourceNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.ResourceId = (string)info.GetValue("ResourceId", typeof(string)); this.ResourceType = (string)info.GetValue("ResourceType", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("ResourceId", this.ResourceId); info.AddValue("ResourceType", this.ResourceType); } #endif /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The ID of the resource that caused the exception. /// </para> /// </summary> public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property ResourceType. /// <para> /// The type of the resource that is associated with the error. /// </para> /// </summary> public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } } }
166
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// If the project stores evaluation events in an Amazon S3 bucket, this structure stores /// the bucket name and bucket prefix. /// </summary> public partial class S3Destination { private string _bucket; private string _prefix; /// <summary> /// Gets and sets the property Bucket. /// <para> /// The name of the bucket in which Evidently stores evaluation events. /// </para> /// </summary> [AWSProperty(Min=3, Max=63)] public string Bucket { get { return this._bucket; } set { this._bucket = value; } } // Check to see if Bucket property is set internal bool IsSetBucket() { return this._bucket != null; } /// <summary> /// Gets and sets the property Prefix. /// <para> /// The bucket prefix in which Evidently stores evaluation events. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] public string Prefix { get { return this._prefix; } set { this._prefix = value; } } // Check to see if Prefix property is set internal bool IsSetPrefix() { return this._prefix != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// If the project stores evaluation events in an Amazon S3 bucket, this structure stores /// the bucket name and bucket prefix. /// </summary> public partial class S3DestinationConfig { private string _bucket; private string _prefix; /// <summary> /// Gets and sets the property Bucket. /// <para> /// The name of the bucket in which Evidently stores evaluation events. /// </para> /// </summary> [AWSProperty(Min=3, Max=63)] public string Bucket { get { return this._bucket; } set { this._bucket = value; } } // Check to see if Bucket property is set internal bool IsSetBucket() { return this._bucket != null; } /// <summary> /// Gets and sets the property Prefix. /// <para> /// The bucket prefix in which Evidently stores evaluation events. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] public string Prefix { get { return this._prefix; } set { this._prefix = value; } } // Check to see if Prefix property is set internal bool IsSetPrefix() { return this._prefix != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This structure defines the traffic allocation percentages among the feature variations /// during one step of a launch, and the start time of that step. /// </summary> public partial class ScheduledSplit { private Dictionary<string, long> _groupWeights = new Dictionary<string, long>(); private List<SegmentOverride> _segmentOverrides = new List<SegmentOverride>(); private DateTime? _startTime; /// <summary> /// Gets and sets the property GroupWeights. /// <para> /// The traffic allocation percentages among the feature variations during one step of /// a launch. This is a set of key-value pairs. The keys are variation names. The values /// represent the percentage of traffic to allocate to that variation during this step. /// </para> /// /// <para> /// The values is expressed in thousandths of a percent, so assigning a weight of 50000 /// assigns 50% of traffic to that variation. /// </para> /// /// <para> /// If the sum of the weights for all the variations in a segment override does not add /// up to 100,000, then the remaining traffic that matches this segment is not assigned /// by this segment override, and instead moves on to the next segment override or the /// default traffic split. /// </para> /// </summary> [AWSProperty(Min=0, Max=5)] public Dictionary<string, long> GroupWeights { get { return this._groupWeights; } set { this._groupWeights = value; } } // Check to see if GroupWeights property is set internal bool IsSetGroupWeights() { return this._groupWeights != null && this._groupWeights.Count > 0; } /// <summary> /// Gets and sets the property SegmentOverrides. /// <para> /// Use this parameter to specify different traffic splits for one or more audience <i>segments</i>. /// A segment is a portion of your audience that share one or more characteristics. Examples /// could be Chrome browser users, users in Europe, or Firefox browser users in Europe /// who also fit other criteria that your application collects, such as age. /// </para> /// /// <para> /// This parameter is an array of up to six segment override objects. Each of these objects /// specifies a segment that you have already created, and defines the traffic split for /// that segment. /// </para> /// </summary> [AWSProperty(Min=0, Max=6)] public List<SegmentOverride> SegmentOverrides { get { return this._segmentOverrides; } set { this._segmentOverrides = value; } } // Check to see if SegmentOverrides property is set internal bool IsSetSegmentOverrides() { return this._segmentOverrides != null && this._segmentOverrides.Count > 0; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The date and time that this step of the launch starts. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } } }
122
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This structure defines the traffic allocation percentages among the feature variations /// during one step of a launch, and the start time of that step. /// </summary> public partial class ScheduledSplitConfig { private Dictionary<string, long> _groupWeights = new Dictionary<string, long>(); private List<SegmentOverride> _segmentOverrides = new List<SegmentOverride>(); private DateTime? _startTime; /// <summary> /// Gets and sets the property GroupWeights. /// <para> /// The traffic allocation percentages among the feature variations during one step of /// a launch. This is a set of key-value pairs. The keys are variation names. The values /// represent the percentage of traffic to allocate to that variation during this step. /// </para> /// /// <para> /// The values is expressed in thousandths of a percent, so assigning a weight of 50000 /// assigns 50% of traffic to that variation. /// </para> /// /// <para> /// If the sum of the weights for all the variations in a segment override does not add /// up to 100,000, then the remaining traffic that matches this segment is not assigned /// by this segment override, and instead moves on to the next segment override or the /// default traffic split. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=5)] public Dictionary<string, long> GroupWeights { get { return this._groupWeights; } set { this._groupWeights = value; } } // Check to see if GroupWeights property is set internal bool IsSetGroupWeights() { return this._groupWeights != null && this._groupWeights.Count > 0; } /// <summary> /// Gets and sets the property SegmentOverrides. /// <para> /// Use this parameter to specify different traffic splits for one or more audience <i>segments</i>. /// A segment is a portion of your audience that share one or more characteristics. Examples /// could be Chrome browser users, users in Europe, or Firefox browser users in Europe /// who also fit other criteria that your application collects, such as age. /// </para> /// /// <para> /// This parameter is an array of up to six segment override objects. Each of these objects /// specifies a segment that you have already created, and defines the traffic split for /// that segment. /// </para> /// </summary> [AWSProperty(Min=0, Max=6)] public List<SegmentOverride> SegmentOverrides { get { return this._segmentOverrides; } set { this._segmentOverrides = value; } } // Check to see if SegmentOverrides property is set internal bool IsSetSegmentOverrides() { return this._segmentOverrides != null && this._segmentOverrides.Count > 0; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The date and time that this step of the launch starts. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } } }
122
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// An array of structures that define the traffic allocation percentages among the feature /// variations during each step of a launch. This also defines the start time of each /// step. /// </summary> public partial class ScheduledSplitsLaunchConfig { private List<ScheduledSplitConfig> _steps = new List<ScheduledSplitConfig>(); /// <summary> /// Gets and sets the property Steps. /// <para> /// An array of structures that define the traffic allocation percentages among the feature /// variations during each step of the launch. This also defines the start time of each /// step. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=6)] public List<ScheduledSplitConfig> Steps { get { return this._steps; } set { this._steps = value; } } // Check to see if Steps property is set internal bool IsSetSteps() { return this._steps != null && this._steps.Count > 0; } } }
62
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// An array of structures that define the traffic allocation percentages among the feature /// variations during each step of a launch. This also defines the start time of each /// step. /// </summary> public partial class ScheduledSplitsLaunchDefinition { private List<ScheduledSplit> _steps = new List<ScheduledSplit>(); /// <summary> /// Gets and sets the property Steps. /// <para> /// An array of structures that define the traffic allocation percentages among the feature /// variations during each step of the launch. This also defines the start time of each /// step. /// </para> /// </summary> [AWSProperty(Min=1, Max=6)] public List<ScheduledSplit> Steps { get { return this._steps; } set { this._steps = value; } } // Check to see if Steps property is set internal bool IsSetSteps() { return this._steps != null && this._steps.Count > 0; } } }
62
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This structure contains information about one audience <i>segment</i>. You can use /// segments in your experiments and launches to narrow the user sessions used for experiment /// or launch to only the user sessions that match one or more criteria. /// </summary> public partial class Segment { private string _arn; private DateTime? _createdTime; private string _description; private long? _experimentCount; private DateTime? _lastUpdatedTime; private long? _launchCount; private string _name; private string _pattern; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Arn. /// <para> /// The ARN of the segment. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property CreatedTime. /// <para> /// The date and time that this segment was created. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime CreatedTime { get { return this._createdTime.GetValueOrDefault(); } set { this._createdTime = value; } } // Check to see if CreatedTime property is set internal bool IsSetCreatedTime() { return this._createdTime.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The customer-created description for this segment. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property ExperimentCount. /// <para> /// The number of experiments that this segment is used in. This count includes all current /// experiments, not just those that are currently running. /// </para> /// </summary> public long ExperimentCount { get { return this._experimentCount.GetValueOrDefault(); } set { this._experimentCount = value; } } // Check to see if ExperimentCount property is set internal bool IsSetExperimentCount() { return this._experimentCount.HasValue; } /// <summary> /// Gets and sets the property LastUpdatedTime. /// <para> /// The date and time that this segment was most recently updated. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// <summary> /// Gets and sets the property LaunchCount. /// <para> /// The number of launches that this segment is used in. This count includes all current /// launches, not just those that are currently running. /// </para> /// </summary> public long LaunchCount { get { return this._launchCount.GetValueOrDefault(); } set { this._launchCount = value; } } // Check to see if LaunchCount property is set internal bool IsSetLaunchCount() { return this._launchCount.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the segment. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=64)] 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; } /// <summary> /// Gets and sets the property Pattern. /// <para> /// The pattern that defines the attributes to use to evalute whether a user session will /// be in the segment. For more information about the pattern syntax, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Evidently-segments.html">Segment /// rule pattern syntax</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1024)] public string Pattern { get { return this._pattern; } set { this._pattern = value; } } // Check to see if Pattern property is set internal bool IsSetPattern() { return this._pattern != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The list of tag keys and values associated with this launch. /// </para> /// </summary> public Dictionary<string, string> 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; } } }
221
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This structure specifies a segment that you have already created, and defines the /// traffic split for that segment to be used in a launch. /// </summary> public partial class SegmentOverride { private long? _evaluationOrder; private string _segment; private Dictionary<string, long> _weights = new Dictionary<string, long>(); /// <summary> /// Gets and sets the property EvaluationOrder. /// <para> /// A number indicating the order to use to evaluate segment overrides, if there are more /// than one. Segment overrides with lower numbers are evaluated first. /// </para> /// </summary> [AWSProperty(Required=true)] public long EvaluationOrder { get { return this._evaluationOrder.GetValueOrDefault(); } set { this._evaluationOrder = value; } } // Check to see if EvaluationOrder property is set internal bool IsSetEvaluationOrder() { return this._evaluationOrder.HasValue; } /// <summary> /// Gets and sets the property Segment. /// <para> /// The ARN of the segment to use. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Segment { get { return this._segment; } set { this._segment = value; } } // Check to see if Segment property is set internal bool IsSetSegment() { return this._segment != null; } /// <summary> /// Gets and sets the property Weights. /// <para> /// The traffic allocation percentages among the feature variations to assign to this /// segment. This is a set of key-value pairs. The keys are variation names. The values /// represent the amount of traffic to allocate to that variation for this segment. This /// is expressed in thousandths of a percent, so a weight of 50000 represents 50% of traffic. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=5)] public Dictionary<string, long> Weights { get { return this._weights; } set { this._weights = value; } } // Check to see if Weights property is set internal bool IsSetWeights() { return this._weights != null && this._weights.Count > 0; } } }
103
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// The request would cause a service quota to be exceeded. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceQuotaExceededException : AmazonCloudWatchEvidentlyException { private string _quotaCode; private string _resourceId; private string _resourceType; private string _serviceCode; /// <summary> /// Constructs a new ServiceQuotaExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceQuotaExceededException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceQuotaExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="innerException"></param> public ServiceQuotaExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceQuotaExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceQuotaExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceQuotaExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceQuotaExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.QuotaCode = (string)info.GetValue("QuotaCode", typeof(string)); this.ResourceId = (string)info.GetValue("ResourceId", typeof(string)); this.ResourceType = (string)info.GetValue("ResourceType", typeof(string)); this.ServiceCode = (string)info.GetValue("ServiceCode", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("QuotaCode", this.QuotaCode); info.AddValue("ResourceId", this.ResourceId); info.AddValue("ResourceType", this.ResourceType); info.AddValue("ServiceCode", this.ServiceCode); } #endif /// <summary> /// Gets and sets the property QuotaCode. /// <para> /// The ID of the service quota that was exceeded. /// </para> /// </summary> public string QuotaCode { get { return this._quotaCode; } set { this._quotaCode = value; } } // Check to see if QuotaCode property is set internal bool IsSetQuotaCode() { return this._quotaCode != null; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The ID of the resource that caused the exception. /// </para> /// </summary> public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property ResourceType. /// <para> /// The type of the resource that is associated with the error. /// </para> /// </summary> public string ResourceType { get { return this._resourceType; } set { this._resourceType = value; } } // Check to see if ResourceType property is set internal bool IsSetResourceType() { return this._resourceType != null; } /// <summary> /// Gets and sets the property ServiceCode. /// <para> /// The ID of the service that is associated with the error. /// </para> /// </summary> public string ServiceCode { get { return this._serviceCode; } set { this._serviceCode = value; } } // Check to see if ServiceCode property is set internal bool IsSetServiceCode() { return this._serviceCode != null; } } }
208
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// The service was unavailable. Retry the request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceUnavailableException : AmazonCloudWatchEvidentlyException { /// <summary> /// Constructs a new ServiceUnavailableException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceUnavailableException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceUnavailableException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="innerException"></param> public ServiceUnavailableException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceUnavailableException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceUnavailableException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ServiceUnavailableException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ServiceUnavailableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the StartExperiment operation. /// Starts an existing experiment. To create an experiment, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_CreateExperiment.html">CreateExperiment</a>. /// </summary> public partial class StartExperimentRequest : AmazonCloudWatchEvidentlyRequest { private DateTime? _analysisCompleteTime; private string _experiment; private string _project; /// <summary> /// Gets and sets the property AnalysisCompleteTime. /// <para> /// The date and time to end the experiment. This must be no more than 30 days after the /// experiment starts. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime AnalysisCompleteTime { get { return this._analysisCompleteTime.GetValueOrDefault(); } set { this._analysisCompleteTime = value; } } // Check to see if AnalysisCompleteTime property is set internal bool IsSetAnalysisCompleteTime() { return this._analysisCompleteTime.HasValue; } /// <summary> /// Gets and sets the property Experiment. /// <para> /// The name of the experiment to start. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] public string Experiment { get { return this._experiment; } set { this._experiment = value; } } // Check to see if Experiment property is set internal bool IsSetExperiment() { return this._experiment != null; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project that contains the experiment to start. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } } }
100
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the StartExperiment operation. /// </summary> public partial class StartExperimentResponse : AmazonWebServiceResponse { private DateTime? _startedTime; /// <summary> /// Gets and sets the property StartedTime. /// <para> /// A timestamp that indicates when the experiment started. /// </para> /// </summary> public DateTime StartedTime { get { return this._startedTime.GetValueOrDefault(); } set { this._startedTime = value; } } // Check to see if StartedTime property is set internal bool IsSetStartedTime() { return this._startedTime.HasValue; } } }
57
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the StartLaunch operation. /// Starts an existing launch. To create a launch, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_CreateLaunch.html">CreateLaunch</a>. /// </summary> public partial class StartLaunchRequest : AmazonCloudWatchEvidentlyRequest { private string _launch; private string _project; /// <summary> /// Gets and sets the property Launch. /// <para> /// The name of the launch to start. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] public string Launch { get { return this._launch; } set { this._launch = value; } } // Check to see if Launch property is set internal bool IsSetLaunch() { return this._launch != null; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project that contains the launch to start. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the StartLaunch operation. /// </summary> public partial class StartLaunchResponse : AmazonWebServiceResponse { private Launch _launch; /// <summary> /// Gets and sets the property Launch. /// <para> /// A structure that contains information about the launch that was started. /// </para> /// </summary> [AWSProperty(Required=true)] public Launch Launch { get { return this._launch; } set { this._launch = value; } } // Check to see if Launch property is set internal bool IsSetLaunch() { return this._launch != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the StopExperiment operation. /// Stops an experiment that is currently running. If you stop an experiment, you can't /// resume it or restart it. /// </summary> public partial class StopExperimentRequest : AmazonCloudWatchEvidentlyRequest { private ExperimentStopDesiredState _desiredState; private string _experiment; private string _project; private string _reason; /// <summary> /// Gets and sets the property DesiredState. /// <para> /// Specify whether the experiment is to be considered <code>COMPLETED</code> or <code>CANCELLED</code> /// after it stops. /// </para> /// </summary> public ExperimentStopDesiredState DesiredState { get { return this._desiredState; } set { this._desiredState = value; } } // Check to see if DesiredState property is set internal bool IsSetDesiredState() { return this._desiredState != null; } /// <summary> /// Gets and sets the property Experiment. /// <para> /// The name of the experiment to stop. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] public string Experiment { get { return this._experiment; } set { this._experiment = value; } } // Check to see if Experiment property is set internal bool IsSetExperiment() { return this._experiment != null; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project that contains the experiment to stop. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } /// <summary> /// Gets and sets the property Reason. /// <para> /// A string that describes why you are stopping the experiment. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } } }
120
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the StopExperiment operation. /// </summary> public partial class StopExperimentResponse : AmazonWebServiceResponse { private DateTime? _endedTime; /// <summary> /// Gets and sets the property EndedTime. /// <para> /// The date and time that the experiment stopped. /// </para> /// </summary> public DateTime EndedTime { get { return this._endedTime.GetValueOrDefault(); } set { this._endedTime = value; } } // Check to see if EndedTime property is set internal bool IsSetEndedTime() { return this._endedTime.HasValue; } } }
57
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the StopLaunch operation. /// Stops a launch that is currently running. After you stop a launch, you will not be /// able to resume it or restart it. Also, it will not be evaluated as a rule for traffic /// allocation, and the traffic that was allocated to the launch will instead be available /// to the feature's experiment, if there is one. Otherwise, all traffic will be served /// the default variation after the launch is stopped. /// </summary> public partial class StopLaunchRequest : AmazonCloudWatchEvidentlyRequest { private LaunchStopDesiredState _desiredState; private string _launch; private string _project; private string _reason; /// <summary> /// Gets and sets the property DesiredState. /// <para> /// Specify whether to consider the launch as <code>COMPLETED</code> or <code>CANCELLED</code> /// after it stops. /// </para> /// </summary> public LaunchStopDesiredState DesiredState { get { return this._desiredState; } set { this._desiredState = value; } } // Check to see if DesiredState property is set internal bool IsSetDesiredState() { return this._desiredState != null; } /// <summary> /// Gets and sets the property Launch. /// <para> /// The name of the launch to stop. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] public string Launch { get { return this._launch; } set { this._launch = value; } } // Check to see if Launch property is set internal bool IsSetLaunch() { return this._launch != null; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project that contains the launch that you want to stop. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } /// <summary> /// Gets and sets the property Reason. /// <para> /// A string that describes why you are stopping the launch. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } } }
123
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the StopLaunch operation. /// </summary> public partial class StopLaunchResponse : AmazonWebServiceResponse { private DateTime? _endedTime; /// <summary> /// Gets and sets the property EndedTime. /// <para> /// The date and time that the launch stopped. /// </para> /// </summary> public DateTime EndedTime { get { return this._endedTime.GetValueOrDefault(); } set { this._endedTime = value; } } // Check to see if EndedTime property is set internal bool IsSetEndedTime() { return this._endedTime.HasValue; } } }
57
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the TagResource operation. /// Assigns one or more tags (key-value pairs) to the specified CloudWatch Evidently resource. /// Projects, features, launches, and experiments can be tagged. /// /// /// <para> /// Tags can help you organize and categorize your resources. You can also use them to /// scope user permissions by granting a user permission to access or change only resources /// with certain tag values. /// </para> /// /// <para> /// Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly /// as strings of characters. /// </para> /// /// <para> /// You can use the <code>TagResource</code> action with a resource that already has tags. /// If you specify a new tag key for the resource, this tag is appended to the list of /// tags associated with the alarm. If you specify a tag key that is already associated /// with the resource, the new tag value that you specify replaces the previous value /// for that tag. /// </para> /// /// <para> /// You can associate as many as 50 tags with a resource. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging /// Amazon Web Services resources</a>. /// </para> /// </summary> public partial class TagResourceRequest : AmazonCloudWatchEvidentlyRequest { private string _resourceArn; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The ARN of the CloudWatch Evidently resource that you're adding tags to. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The list of key-value pairs to associate with the resource. /// </para> /// </summary> [AWSProperty(Required=true)] public Dictionary<string, string> 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; } } }
109
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the TagResource operation. /// </summary> public partial class TagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the TestSegmentPattern operation. /// Use this operation to test a rules pattern that you plan to use to create an audience /// segment. For more information about segments, see <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_CreateSegment.html">CreateSegment</a>. /// </summary> public partial class TestSegmentPatternRequest : AmazonCloudWatchEvidentlyRequest { private string _pattern; private string _payload; /// <summary> /// Gets and sets the property Pattern. /// <para> /// The pattern to test. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1024)] public string Pattern { get { return this._pattern; } set { this._pattern = value; } } // Check to see if Pattern property is set internal bool IsSetPattern() { return this._pattern != null; } /// <summary> /// Gets and sets the property Payload. /// <para> /// A sample <code>evaluationContext</code> JSON block to test against the specified pattern. /// </para> /// </summary> [AWSProperty(Required=true)] public string Payload { get { return this._payload; } set { this._payload = value; } } // Check to see if Payload property is set internal bool IsSetPayload() { return this._payload != null; } } }
80
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the TestSegmentPattern operation. /// </summary> public partial class TestSegmentPatternResponse : AmazonWebServiceResponse { private bool? _match; /// <summary> /// Gets and sets the property Match. /// <para> /// Returns <code>true</code> if the pattern matches the payload. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Match { get { return this._match.GetValueOrDefault(); } set { this._match = value; } } // Check to see if Match property is set internal bool IsSetMatch() { return this._match.HasValue; } } }
58
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// The request was denied because of request throttling. Retry the request. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonCloudWatchEvidentlyException { private string _quotaCode; private string _serviceCode; /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ThrottlingException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.QuotaCode = (string)info.GetValue("QuotaCode", typeof(string)); this.ServiceCode = (string)info.GetValue("ServiceCode", typeof(string)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("QuotaCode", this.QuotaCode); info.AddValue("ServiceCode", this.ServiceCode); } #endif /// <summary> /// Gets and sets the property QuotaCode. /// <para> /// The ID of the service quota that was exceeded. /// </para> /// </summary> public string QuotaCode { get { return this._quotaCode; } set { this._quotaCode = value; } } // Check to see if QuotaCode property is set internal bool IsSetQuotaCode() { return this._quotaCode != null; } /// <summary> /// Gets and sets the property ServiceCode. /// <para> /// The ID of the service that is associated with the error. /// </para> /// </summary> public string ServiceCode { get { return this._serviceCode; } set { this._serviceCode = value; } } // Check to see if ServiceCode property is set internal bool IsSetServiceCode() { return this._serviceCode != null; } } }
166
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that defines one treatment in an experiment. A treatment is a variation /// of the feature that you are including in the experiment. /// </summary> public partial class Treatment { private string _description; private Dictionary<string, string> _featureVariations = new Dictionary<string, string>(); private string _name; /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the treatment. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property FeatureVariations. /// <para> /// The feature variation used for this treatment. This is a key-value pair. The key is /// the feature name, and the value is the variation name. /// </para> /// </summary> public Dictionary<string, string> FeatureVariations { get { return this._featureVariations; } set { this._featureVariations = value; } } // Check to see if FeatureVariations property is set internal bool IsSetFeatureVariations() { return this._featureVariations != null && this._featureVariations.Count > 0; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of this treatment. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] 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; } } }
99
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure that defines one treatment in an experiment. A treatment is a variation /// of the feature that you are including in the experiment. /// </summary> public partial class TreatmentConfig { private string _description; private string _feature; private string _name; private string _variation; /// <summary> /// Gets and sets the property Description. /// <para> /// A description for this treatment. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Feature. /// <para> /// The feature that this experiment is testing. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] public string Feature { get { return this._feature; } set { this._feature = value; } } // Check to see if Feature property is set internal bool IsSetFeature() { return this._feature != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// A name for this treatment. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] 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; } /// <summary> /// Gets and sets the property Variation. /// <para> /// The name of the variation to use as this treatment in the experiment. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] public string Variation { get { return this._variation; } set { this._variation = value; } } // Check to see if Variation property is set internal bool IsSetVariation() { return this._variation != null; } } }
119
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the UntagResource operation. /// Removes one or more tags from the specified resource. /// </summary> public partial class UntagResourceRequest : AmazonCloudWatchEvidentlyRequest { private string _resourceArn; private List<string> _tagKeys = new List<string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The ARN of the CloudWatch Evidently resource that you're removing tags from. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } /// <summary> /// Gets and sets the property TagKeys. /// <para> /// The list of tag keys to remove from the resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=50)] public List<string> TagKeys { get { return this._tagKeys; } set { this._tagKeys = value; } } // Check to see if TagKeys property is set internal bool IsSetTagKeys() { return this._tagKeys != null && this._tagKeys.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the UntagResource operation. /// </summary> public partial class UntagResourceResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the UpdateExperiment operation. /// Updates an Evidently experiment. /// /// /// <para> /// Don't use this operation to update an experiment's tag. Instead, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_TagResource.html">TagResource</a>. /// /// </para> /// </summary> public partial class UpdateExperimentRequest : AmazonCloudWatchEvidentlyRequest { private string _description; private string _experiment; private List<MetricGoalConfig> _metricGoals = new List<MetricGoalConfig>(); private OnlineAbConfig _onlineAbConfig; private string _project; private string _randomizationSalt; private bool? _removeSegment; private long? _samplingRate; private string _segment; private List<TreatmentConfig> _treatments = new List<TreatmentConfig>(); /// <summary> /// Gets and sets the property Description. /// <para> /// An optional description of the experiment. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Experiment. /// <para> /// The name of the experiment to update. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] public string Experiment { get { return this._experiment; } set { this._experiment = value; } } // Check to see if Experiment property is set internal bool IsSetExperiment() { return this._experiment != null; } /// <summary> /// Gets and sets the property MetricGoals. /// <para> /// An array of structures that defines the metrics used for the experiment, and whether /// a higher or lower value for each metric is the goal. /// </para> /// </summary> [AWSProperty(Min=1, Max=3)] public List<MetricGoalConfig> MetricGoals { get { return this._metricGoals; } set { this._metricGoals = value; } } // Check to see if MetricGoals property is set internal bool IsSetMetricGoals() { return this._metricGoals != null && this._metricGoals.Count > 0; } /// <summary> /// Gets and sets the property OnlineAbConfig. /// <para> /// A structure that contains the configuration of which variation o use as the "control" /// version. The "control" version is used for comparison with other variations. This /// structure also specifies how much experiment traffic is allocated to each variation. /// </para> /// </summary> public OnlineAbConfig OnlineAbConfig { get { return this._onlineAbConfig; } set { this._onlineAbConfig = value; } } // Check to see if OnlineAbConfig property is set internal bool IsSetOnlineAbConfig() { return this._onlineAbConfig != null; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project that contains the experiment that you want to update. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } /// <summary> /// Gets and sets the property RandomizationSalt. /// <para> /// When Evidently assigns a particular user session to an experiment, it must use a randomization /// ID to determine which variation the user session is served. This randomization ID /// is a combination of the entity ID and <code>randomizationSalt</code>. If you omit /// <code>randomizationSalt</code>, Evidently uses the experiment name as the <code>randomizationSalt</code>. /// </para> /// </summary> [AWSProperty(Min=0, Max=127)] public string RandomizationSalt { get { return this._randomizationSalt; } set { this._randomizationSalt = value; } } // Check to see if RandomizationSalt property is set internal bool IsSetRandomizationSalt() { return this._randomizationSalt != null; } /// <summary> /// Gets and sets the property RemoveSegment. /// <para> /// Removes a segment from being used in an experiment. You can't use this parameter if /// the experiment is currently running. /// </para> /// </summary> public bool RemoveSegment { get { return this._removeSegment.GetValueOrDefault(); } set { this._removeSegment = value; } } // Check to see if RemoveSegment property is set internal bool IsSetRemoveSegment() { return this._removeSegment.HasValue; } /// <summary> /// Gets and sets the property SamplingRate. /// <para> /// The portion of the available audience that you want to allocate to this experiment, /// in thousandths of a percent. The available audience is the total audience minus the /// audience that you have allocated to overrides or current launches of this feature. /// </para> /// /// <para> /// This is represented in thousandths of a percent. For example, specify 20,000 to allocate /// 20% of the available audience. /// </para> /// </summary> [AWSProperty(Min=0, Max=100000)] public long SamplingRate { get { return this._samplingRate.GetValueOrDefault(); } set { this._samplingRate = value; } } // Check to see if SamplingRate property is set internal bool IsSetSamplingRate() { return this._samplingRate.HasValue; } /// <summary> /// Gets and sets the property Segment. /// <para> /// Adds an audience <i>segment</i> to an experiment. When a segment is used in an experiment, /// only user sessions that match the segment pattern are used in the experiment. You /// can't use this parameter if the experiment is currently running. /// </para> /// </summary> [AWSProperty(Min=0, Max=2048)] public string Segment { get { return this._segment; } set { this._segment = value; } } // Check to see if Segment property is set internal bool IsSetSegment() { return this._segment != null; } /// <summary> /// Gets and sets the property Treatments. /// <para> /// An array of structures that define the variations being tested in the experiment. /// </para> /// </summary> [AWSProperty(Min=0, Max=5)] public List<TreatmentConfig> Treatments { get { return this._treatments; } set { this._treatments = value; } } // Check to see if Treatments property is set internal bool IsSetTreatments() { return this._treatments != null && this._treatments.Count > 0; } } }
259
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the UpdateExperiment operation. /// </summary> public partial class UpdateExperimentResponse : AmazonWebServiceResponse { private Experiment _experiment; /// <summary> /// Gets and sets the property Experiment. /// <para> /// A structure containing the configuration details of the experiment that was updated. /// </para> /// </summary> [AWSProperty(Required=true)] public Experiment Experiment { get { return this._experiment; } set { this._experiment = value; } } // Check to see if Experiment property is set internal bool IsSetExperiment() { return this._experiment != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the UpdateFeature operation. /// Updates an existing feature. /// /// /// <para> /// You can't use this operation to update the tags of an existing feature. Instead, use /// <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_TagResource.html">TagResource</a>. /// /// </para> /// </summary> public partial class UpdateFeatureRequest : AmazonCloudWatchEvidentlyRequest { private List<VariationConfig> _addOrUpdateVariations = new List<VariationConfig>(); private string _defaultVariation; private string _description; private Dictionary<string, string> _entityOverrides = new Dictionary<string, string>(); private FeatureEvaluationStrategy _evaluationStrategy; private string _feature; private string _project; private List<string> _removeVariations = new List<string>(); /// <summary> /// Gets and sets the property AddOrUpdateVariations. /// <para> /// To update variation configurations for this feature, or add new ones, specify this /// structure. In this array, include any variations that you want to add or update. If /// the array includes a variation name that already exists for this feature, it is updated. /// If it includes a new variation name, it is added as a new variation. /// </para> /// </summary> [AWSProperty(Min=1, Max=5)] public List<VariationConfig> AddOrUpdateVariations { get { return this._addOrUpdateVariations; } set { this._addOrUpdateVariations = value; } } // Check to see if AddOrUpdateVariations property is set internal bool IsSetAddOrUpdateVariations() { return this._addOrUpdateVariations != null && this._addOrUpdateVariations.Count > 0; } /// <summary> /// Gets and sets the property DefaultVariation. /// <para> /// The name of the variation to use as the default variation. The default variation is /// served to users who are not allocated to any ongoing launches or experiments of this /// feature. /// </para> /// </summary> [AWSProperty(Min=1, Max=127)] public string DefaultVariation { get { return this._defaultVariation; } set { this._defaultVariation = value; } } // Check to see if DefaultVariation property is set internal bool IsSetDefaultVariation() { return this._defaultVariation != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// An optional description of the feature. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property EntityOverrides. /// <para> /// Specified users that should always be served a specific variation of a feature. Each /// user is specified by a key-value pair . For each key, specify a user by entering their /// user ID, account ID, or some other identifier. For the value, specify the name of /// the variation that they are to be served. /// </para> /// /// <para> /// This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes /// an overhead of 6 bytes per override. /// </para> /// </summary> [AWSProperty(Min=0, Max=2500)] public Dictionary<string, string> EntityOverrides { get { return this._entityOverrides; } set { this._entityOverrides = value; } } // Check to see if EntityOverrides property is set internal bool IsSetEntityOverrides() { return this._entityOverrides != null && this._entityOverrides.Count > 0; } /// <summary> /// Gets and sets the property EvaluationStrategy. /// <para> /// Specify <code>ALL_RULES</code> to activate the traffic allocation specified by any /// ongoing launches or experiments. Specify <code>DEFAULT_VARIATION</code> to serve the /// default variation to all users instead. /// </para> /// </summary> public FeatureEvaluationStrategy EvaluationStrategy { get { return this._evaluationStrategy; } set { this._evaluationStrategy = value; } } // Check to see if EvaluationStrategy property is set internal bool IsSetEvaluationStrategy() { return this._evaluationStrategy != null; } /// <summary> /// Gets and sets the property Feature. /// <para> /// The name of the feature to be updated. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] public string Feature { get { return this._feature; } set { this._feature = value; } } // Check to see if Feature property is set internal bool IsSetFeature() { return this._feature != null; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project that contains the feature to be updated. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } /// <summary> /// Gets and sets the property RemoveVariations. /// <para> /// Removes a variation from the feature. If the variation you specify doesn't exist, /// then this makes no change and does not report an error. /// </para> /// /// <para> /// This operation fails if you try to remove a variation that is part of an ongoing launch /// or experiment. /// </para> /// </summary> [AWSProperty(Min=0, Max=5)] public List<string> RemoveVariations { get { return this._removeVariations; } set { this._removeVariations = value; } } // Check to see if RemoveVariations property is set internal bool IsSetRemoveVariations() { return this._removeVariations != null && this._removeVariations.Count > 0; } } }
226
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the UpdateFeature operation. /// </summary> public partial class UpdateFeatureResponse : AmazonWebServiceResponse { private Feature _feature; /// <summary> /// Gets and sets the property Feature. /// <para> /// A structure that contains information about the updated feature. /// </para> /// </summary> [AWSProperty(Required=true)] public Feature Feature { get { return this._feature; } set { this._feature = value; } } // Check to see if Feature property is set internal bool IsSetFeature() { return this._feature != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the UpdateLaunch operation. /// Updates a launch of a given feature. /// /// /// <para> /// Don't use this operation to update the tags of an existing launch. Instead, use <a /// href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_TagResource.html">TagResource</a>. /// /// </para> /// </summary> public partial class UpdateLaunchRequest : AmazonCloudWatchEvidentlyRequest { private string _description; private List<LaunchGroupConfig> _groups = new List<LaunchGroupConfig>(); private string _launch; private List<MetricMonitorConfig> _metricMonitors = new List<MetricMonitorConfig>(); private string _project; private string _randomizationSalt; private ScheduledSplitsLaunchConfig _scheduledSplitsConfig; /// <summary> /// Gets and sets the property Description. /// <para> /// An optional description for the launch. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Groups. /// <para> /// An array of structures that contains the feature and variations that are to be used /// for the launch. /// </para> /// </summary> [AWSProperty(Min=1, Max=5)] public List<LaunchGroupConfig> Groups { get { return this._groups; } set { this._groups = value; } } // Check to see if Groups property is set internal bool IsSetGroups() { return this._groups != null && this._groups.Count > 0; } /// <summary> /// Gets and sets the property Launch. /// <para> /// The name of the launch that is to be updated. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] public string Launch { get { return this._launch; } set { this._launch = value; } } // Check to see if Launch property is set internal bool IsSetLaunch() { return this._launch != null; } /// <summary> /// Gets and sets the property MetricMonitors. /// <para> /// An array of structures that define the metrics that will be used to monitor the launch /// performance. /// </para> /// </summary> [AWSProperty(Min=0, Max=3)] public List<MetricMonitorConfig> MetricMonitors { get { return this._metricMonitors; } set { this._metricMonitors = value; } } // Check to see if MetricMonitors property is set internal bool IsSetMetricMonitors() { return this._metricMonitors != null && this._metricMonitors.Count > 0; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project that contains the launch that you want to update. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } /// <summary> /// Gets and sets the property RandomizationSalt. /// <para> /// When Evidently assigns a particular user session to a launch, it must use a randomization /// ID to determine which variation the user session is served. This randomization ID /// is a combination of the entity ID and <code>randomizationSalt</code>. If you omit /// <code>randomizationSalt</code>, Evidently uses the launch name as the <code>randomizationSalt</code>. /// </para> /// </summary> [AWSProperty(Min=0, Max=127)] public string RandomizationSalt { get { return this._randomizationSalt; } set { this._randomizationSalt = value; } } // Check to see if RandomizationSalt property is set internal bool IsSetRandomizationSalt() { return this._randomizationSalt != null; } /// <summary> /// Gets and sets the property ScheduledSplitsConfig. /// <para> /// An array of structures that define the traffic allocation percentages among the feature /// variations during each step of the launch. /// </para> /// </summary> public ScheduledSplitsLaunchConfig ScheduledSplitsConfig { get { return this._scheduledSplitsConfig; } set { this._scheduledSplitsConfig = value; } } // Check to see if ScheduledSplitsConfig property is set internal bool IsSetScheduledSplitsConfig() { return this._scheduledSplitsConfig != null; } } }
191
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the UpdateLaunch operation. /// </summary> public partial class UpdateLaunchResponse : AmazonWebServiceResponse { private Launch _launch; /// <summary> /// Gets and sets the property Launch. /// <para> /// A structure that contains the new configuration of the launch that was updated. /// </para> /// </summary> [AWSProperty(Required=true)] public Launch Launch { get { return this._launch; } set { this._launch = value; } } // Check to see if Launch property is set internal bool IsSetLaunch() { return this._launch != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the UpdateProjectDataDelivery operation. /// Updates the data storage options for this project. If you store evaluation events, /// you an keep them and analyze them on your own. If you choose not to store evaluation /// events, Evidently deletes them after using them to produce metrics and other experiment /// results that you can view. /// /// /// <para> /// You can't specify both <code>cloudWatchLogs</code> and <code>s3Destination</code> /// in the same operation. /// </para> /// </summary> public partial class UpdateProjectDataDeliveryRequest : AmazonCloudWatchEvidentlyRequest { private CloudWatchLogsDestinationConfig _cloudWatchLogs; private string _project; private S3DestinationConfig _s3Destination; /// <summary> /// Gets and sets the property CloudWatchLogs. /// <para> /// A structure containing the CloudWatch Logs log group where you want to store evaluation /// events. /// </para> /// </summary> public CloudWatchLogsDestinationConfig CloudWatchLogs { get { return this._cloudWatchLogs; } set { this._cloudWatchLogs = value; } } // Check to see if CloudWatchLogs property is set internal bool IsSetCloudWatchLogs() { return this._cloudWatchLogs != null; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project that you want to modify the data storage options for. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } /// <summary> /// Gets and sets the property S3Destination. /// <para> /// A structure containing the S3 bucket name and bucket prefix where you want to store /// evaluation events. /// </para> /// </summary> public S3DestinationConfig S3Destination { get { return this._s3Destination; } set { this._s3Destination = value; } } // Check to see if S3Destination property is set internal bool IsSetS3Destination() { return this._s3Destination != null; } } }
108
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the UpdateProjectDataDelivery operation. /// </summary> public partial class UpdateProjectDataDeliveryResponse : AmazonWebServiceResponse { private Project _project; /// <summary> /// Gets and sets the property Project. /// <para> /// A structure containing details about the project that you updated. /// </para> /// </summary> [AWSProperty(Required=true)] public Project Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// Container for the parameters to the UpdateProject operation. /// Updates the description of an existing project. /// /// /// <para> /// To create a new project, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_CreateProject.html">CreateProject</a>. /// </para> /// /// <para> /// Don't use this operation to update the data storage options of a project. Instead, /// use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_UpdateProjectDataDelivery.html">UpdateProjectDataDelivery</a>. /// /// </para> /// /// <para> /// Don't use this operation to update the tags of a project. Instead, use <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_TagResource.html">TagResource</a>. /// /// </para> /// </summary> public partial class UpdateProjectRequest : AmazonCloudWatchEvidentlyRequest { private ProjectAppConfigResourceConfig _appConfigResource; private string _description; private string _project; /// <summary> /// Gets and sets the property AppConfigResource. /// <para> /// Use this parameter if the project will use client-side evaluation powered by AppConfig. /// Client-side evaluation allows your application to assign variations to user sessions /// locally instead of by calling the <a href="https://docs.aws.amazon.com/cloudwatchevidently/latest/APIReference/API_EvaluateFeature.html">EvaluateFeature</a> /// operation. This mitigates the latency and availability risks that come with an API /// call. allows you to /// </para> /// /// <para> /// This parameter is a structure that contains information about the AppConfig application /// that will be used for client-side evaluation. /// </para> /// </summary> public ProjectAppConfigResourceConfig AppConfigResource { get { return this._appConfigResource; } set { this._appConfigResource = value; } } // Check to see if AppConfigResource property is set internal bool IsSetAppConfigResource() { return this._appConfigResource != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// An optional description of the project. /// </para> /// </summary> [AWSProperty(Min=0, Max=160)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Project. /// <para> /// The name or ARN of the project to update. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } } }
123
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This is the response object from the UpdateProject operation. /// </summary> public partial class UpdateProjectResponse : AmazonWebServiceResponse { private Project _project; /// <summary> /// Gets and sets the property Project. /// <para> /// A structure containing information about the updated project. /// </para> /// </summary> [AWSProperty(Required=true)] public Project Project { get { return this._project; } set { this._project = value; } } // Check to see if Project property is set internal bool IsSetProject() { return this._project != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// The value of a parameter in the request caused an error. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ValidationException : AmazonCloudWatchEvidentlyException { private List<ValidationExceptionField> _fieldList = new List<ValidationExceptionField>(); private ValidationExceptionReason _reason; /// <summary> /// Constructs a new ValidationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ValidationException(string message) : base(message) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ValidationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="innerException"></param> public ValidationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ValidationException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.FieldList = (List<ValidationExceptionField>)info.GetValue("FieldList", typeof(List<ValidationExceptionField>)); this.Reason = (ValidationExceptionReason)info.GetValue("Reason", typeof(ValidationExceptionReason)); } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); info.AddValue("FieldList", this.FieldList); info.AddValue("Reason", this.Reason); } #endif /// <summary> /// Gets and sets the property FieldList. /// <para> /// The parameter that caused the exception. /// </para> /// </summary> public List<ValidationExceptionField> FieldList { get { return this._fieldList; } set { this._fieldList = value; } } // Check to see if FieldList property is set internal bool IsSetFieldList() { return this._fieldList != null && this._fieldList.Count > 0; } /// <summary> /// Gets and sets the property Reason. /// <para> /// A reason for the error. /// </para> /// </summary> public ValidationExceptionReason Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } } }
166
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// A structure containing an error name and message. /// </summary> public partial class ValidationExceptionField { private string _message; private string _name; /// <summary> /// Gets and sets the property Message. /// <para> /// The error message. /// </para> /// </summary> [AWSProperty(Required=true)] public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The error name. /// </para> /// </summary> [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; } } }
78
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// The value assigned to a feature variation. This structure must contain exactly one /// field. It can be <code>boolValue</code>, <code>doubleValue</code>, <code>longValue</code>, /// or <code>stringValue</code>. /// </summary> public partial class VariableValue { private bool? _boolValue; private double? _doubleValue; private long? _longValue; private string _stringValue; /// <summary> /// Gets and sets the property BoolValue. /// <para> /// If this feature uses the Boolean variation type, this field contains the Boolean value /// of this variation. /// </para> /// </summary> public bool BoolValue { get { return this._boolValue.GetValueOrDefault(); } set { this._boolValue = value; } } // Check to see if BoolValue property is set internal bool IsSetBoolValue() { return this._boolValue.HasValue; } /// <summary> /// Gets and sets the property DoubleValue. /// <para> /// If this feature uses the double integer variation type, this field contains the double /// integer value of this variation. /// </para> /// </summary> public double DoubleValue { get { return this._doubleValue.GetValueOrDefault(); } set { this._doubleValue = value; } } // Check to see if DoubleValue property is set internal bool IsSetDoubleValue() { return this._doubleValue.HasValue; } /// <summary> /// Gets and sets the property LongValue. /// <para> /// If this feature uses the long variation type, this field contains the long value of /// this variation. /// </para> /// </summary> [AWSProperty(Min=-9007199254740991, Max=9007199254740991)] public long LongValue { get { return this._longValue.GetValueOrDefault(); } set { this._longValue = value; } } // Check to see if LongValue property is set internal bool IsSetLongValue() { return this._longValue.HasValue; } /// <summary> /// Gets and sets the property StringValue. /// <para> /// If this feature uses the string variation type, this field contains the string value /// of this variation. /// </para> /// </summary> [AWSProperty(Min=0, Max=512)] public string StringValue { get { return this._stringValue; } set { this._stringValue = value; } } // Check to see if StringValue property is set internal bool IsSetStringValue() { return this._stringValue != null; } } }
122
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This structure contains the name and variation value of one variation of a feature. /// </summary> public partial class Variation { private string _name; private VariableValue _value; /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the variation. /// </para> /// </summary> [AWSProperty(Min=1, Max=127)] 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; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value assigned to this variation. /// </para> /// </summary> public VariableValue Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
77
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-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.CloudWatchEvidently.Model { /// <summary> /// This structure contains the name and variation value of one variation of a feature. /// </summary> public partial class VariationConfig { private string _name; private VariableValue _value; /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the variation. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=127)] 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; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value assigned to this variation. /// </para> /// </summary> [AWSProperty(Required=true)] public VariableValue Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccessDeniedException Object /// </summary> public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccessDeniedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// BatchEvaluateFeature Request Marshaller /// </summary> public class BatchEvaluateFeatureRequestMarshaller : IMarshaller<IRequest, BatchEvaluateFeatureRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((BatchEvaluateFeatureRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchEvaluateFeatureRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "POST"; if (!publicRequest.IsSetProject()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Project set"); request.AddPathResource("{project}", StringUtils.FromString(publicRequest.Project)); request.ResourcePath = "/projects/{project}/evaluations"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetRequests()) { context.Writer.WritePropertyName("requests"); context.Writer.WriteArrayStart(); foreach(var publicRequestRequestsListValue in publicRequest.Requests) { context.Writer.WriteObjectStart(); var marshaller = EvaluationRequestMarshaller.Instance; marshaller.Marshall(publicRequestRequestsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.HostPrefix = $"dataplane."; return request; } private static BatchEvaluateFeatureRequestMarshaller _instance = new BatchEvaluateFeatureRequestMarshaller(); internal static BatchEvaluateFeatureRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchEvaluateFeatureRequestMarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchEvaluateFeature operation /// </summary> public class BatchEvaluateFeatureResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { BatchEvaluateFeatureResponse response = new BatchEvaluateFeatureResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("results", targetDepth)) { var unmarshaller = new ListUnmarshaller<EvaluationResult, EvaluationResultUnmarshaller>(EvaluationResultUnmarshaller.Instance); response.Results = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchEvaluateFeatureResponseUnmarshaller _instance = new BatchEvaluateFeatureResponseUnmarshaller(); internal static BatchEvaluateFeatureResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchEvaluateFeatureResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// CloudWatchLogsDestinationConfig Marshaller /// </summary> public class CloudWatchLogsDestinationConfigMarshaller : IRequestMarshaller<CloudWatchLogsDestinationConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CloudWatchLogsDestinationConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLogGroup()) { context.Writer.WritePropertyName("logGroup"); context.Writer.Write(requestObject.LogGroup); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CloudWatchLogsDestinationConfigMarshaller Instance = new CloudWatchLogsDestinationConfigMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CloudWatchLogsDestination Object /// </summary> public class CloudWatchLogsDestinationUnmarshaller : IUnmarshaller<CloudWatchLogsDestination, XmlUnmarshallerContext>, IUnmarshaller<CloudWatchLogsDestination, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CloudWatchLogsDestination IUnmarshaller<CloudWatchLogsDestination, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CloudWatchLogsDestination Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CloudWatchLogsDestination unmarshalledObject = new CloudWatchLogsDestination(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("logGroup", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LogGroup = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CloudWatchLogsDestinationUnmarshaller _instance = new CloudWatchLogsDestinationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CloudWatchLogsDestinationUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConflictException Object /// </summary> public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("resourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("resourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
97
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// CreateExperiment Request Marshaller /// </summary> public class CreateExperimentRequestMarshaller : IMarshaller<IRequest, CreateExperimentRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateExperimentRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateExperimentRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "POST"; if (!publicRequest.IsSetProject()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Project set"); request.AddPathResource("{project}", StringUtils.FromString(publicRequest.Project)); request.ResourcePath = "/projects/{project}/experiments"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetMetricGoals()) { context.Writer.WritePropertyName("metricGoals"); context.Writer.WriteArrayStart(); foreach(var publicRequestMetricGoalsListValue in publicRequest.MetricGoals) { context.Writer.WriteObjectStart(); var marshaller = MetricGoalConfigMarshaller.Instance; marshaller.Marshall(publicRequestMetricGoalsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetOnlineAbConfig()) { context.Writer.WritePropertyName("onlineAbConfig"); context.Writer.WriteObjectStart(); var marshaller = OnlineAbConfigMarshaller.Instance; marshaller.Marshall(publicRequest.OnlineAbConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetRandomizationSalt()) { context.Writer.WritePropertyName("randomizationSalt"); context.Writer.Write(publicRequest.RandomizationSalt); } if(publicRequest.IsSetSamplingRate()) { context.Writer.WritePropertyName("samplingRate"); context.Writer.Write(publicRequest.SamplingRate); } if(publicRequest.IsSetSegment()) { context.Writer.WritePropertyName("segment"); context.Writer.Write(publicRequest.Segment); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTreatments()) { context.Writer.WritePropertyName("treatments"); context.Writer.WriteArrayStart(); foreach(var publicRequestTreatmentsListValue in publicRequest.Treatments) { context.Writer.WriteObjectStart(); var marshaller = TreatmentConfigMarshaller.Instance; marshaller.Marshall(publicRequestTreatmentsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateExperimentRequestMarshaller _instance = new CreateExperimentRequestMarshaller(); internal static CreateExperimentRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateExperimentRequestMarshaller Instance { get { return _instance; } } } }
185
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateExperiment operation /// </summary> public class CreateExperimentResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateExperimentResponse response = new CreateExperimentResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("experiment", targetDepth)) { var unmarshaller = ExperimentUnmarshaller.Instance; response.Experiment = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateExperimentResponseUnmarshaller _instance = new CreateExperimentResponseUnmarshaller(); internal static CreateExperimentResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateExperimentResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// CreateFeature Request Marshaller /// </summary> public class CreateFeatureRequestMarshaller : IMarshaller<IRequest, CreateFeatureRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateFeatureRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateFeatureRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "POST"; if (!publicRequest.IsSetProject()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Project set"); request.AddPathResource("{project}", StringUtils.FromString(publicRequest.Project)); request.ResourcePath = "/projects/{project}/features"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDefaultVariation()) { context.Writer.WritePropertyName("defaultVariation"); context.Writer.Write(publicRequest.DefaultVariation); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetEntityOverrides()) { context.Writer.WritePropertyName("entityOverrides"); context.Writer.WriteObjectStart(); foreach (var publicRequestEntityOverridesKvp in publicRequest.EntityOverrides) { context.Writer.WritePropertyName(publicRequestEntityOverridesKvp.Key); var publicRequestEntityOverridesValue = publicRequestEntityOverridesKvp.Value; context.Writer.Write(publicRequestEntityOverridesValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetEvaluationStrategy()) { context.Writer.WritePropertyName("evaluationStrategy"); context.Writer.Write(publicRequest.EvaluationStrategy); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetVariations()) { context.Writer.WritePropertyName("variations"); context.Writer.WriteArrayStart(); foreach(var publicRequestVariationsListValue in publicRequest.Variations) { context.Writer.WriteObjectStart(); var marshaller = VariationConfigMarshaller.Instance; marshaller.Marshall(publicRequestVariationsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateFeatureRequestMarshaller _instance = new CreateFeatureRequestMarshaller(); internal static CreateFeatureRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateFeatureRequestMarshaller Instance { get { return _instance; } } } }
166
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateFeature operation /// </summary> public class CreateFeatureResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateFeatureResponse response = new CreateFeatureResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("feature", targetDepth)) { var unmarshaller = FeatureUnmarshaller.Instance; response.Feature = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateFeatureResponseUnmarshaller _instance = new CreateFeatureResponseUnmarshaller(); internal static CreateFeatureResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateFeatureResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// CreateLaunch Request Marshaller /// </summary> public class CreateLaunchRequestMarshaller : IMarshaller<IRequest, CreateLaunchRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateLaunchRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateLaunchRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "POST"; if (!publicRequest.IsSetProject()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Project set"); request.AddPathResource("{project}", StringUtils.FromString(publicRequest.Project)); request.ResourcePath = "/projects/{project}/launches"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetGroups()) { context.Writer.WritePropertyName("groups"); context.Writer.WriteArrayStart(); foreach(var publicRequestGroupsListValue in publicRequest.Groups) { context.Writer.WriteObjectStart(); var marshaller = LaunchGroupConfigMarshaller.Instance; marshaller.Marshall(publicRequestGroupsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMetricMonitors()) { context.Writer.WritePropertyName("metricMonitors"); context.Writer.WriteArrayStart(); foreach(var publicRequestMetricMonitorsListValue in publicRequest.MetricMonitors) { context.Writer.WriteObjectStart(); var marshaller = MetricMonitorConfigMarshaller.Instance; marshaller.Marshall(publicRequestMetricMonitorsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetRandomizationSalt()) { context.Writer.WritePropertyName("randomizationSalt"); context.Writer.Write(publicRequest.RandomizationSalt); } if(publicRequest.IsSetScheduledSplitsConfig()) { context.Writer.WritePropertyName("scheduledSplitsConfig"); context.Writer.WriteObjectStart(); var marshaller = ScheduledSplitsLaunchConfigMarshaller.Instance; marshaller.Marshall(publicRequest.ScheduledSplitsConfig, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateLaunchRequestMarshaller _instance = new CreateLaunchRequestMarshaller(); internal static CreateLaunchRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateLaunchRequestMarshaller Instance { get { return _instance; } } } }
173
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateLaunch operation /// </summary> public class CreateLaunchResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateLaunchResponse response = new CreateLaunchResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("launch", targetDepth)) { var unmarshaller = LaunchUnmarshaller.Instance; response.Launch = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateLaunchResponseUnmarshaller _instance = new CreateLaunchResponseUnmarshaller(); internal static CreateLaunchResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateLaunchResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// CreateProject Request Marshaller /// </summary> public class CreateProjectRequestMarshaller : IMarshaller<IRequest, CreateProjectRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateProjectRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateProjectRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "POST"; request.ResourcePath = "/projects"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAppConfigResource()) { context.Writer.WritePropertyName("appConfigResource"); context.Writer.WriteObjectStart(); var marshaller = ProjectAppConfigResourceConfigMarshaller.Instance; marshaller.Marshall(publicRequest.AppConfigResource, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetDataDelivery()) { context.Writer.WritePropertyName("dataDelivery"); context.Writer.WriteObjectStart(); var marshaller = ProjectDataDeliveryConfigMarshaller.Instance; marshaller.Marshall(publicRequest.DataDelivery, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateProjectRequestMarshaller _instance = new CreateProjectRequestMarshaller(); internal static CreateProjectRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateProjectRequestMarshaller Instance { get { return _instance; } } } }
143
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateProject operation /// </summary> public class CreateProjectResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateProjectResponse response = new CreateProjectResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("project", targetDepth)) { var unmarshaller = ProjectUnmarshaller.Instance; response.Project = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateProjectResponseUnmarshaller _instance = new CreateProjectResponseUnmarshaller(); internal static CreateProjectResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateProjectResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// CreateSegment Request Marshaller /// </summary> public class CreateSegmentRequestMarshaller : IMarshaller<IRequest, CreateSegmentRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((CreateSegmentRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateSegmentRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "POST"; request.ResourcePath = "/segments"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDescription()) { context.Writer.WritePropertyName("description"); context.Writer.Write(publicRequest.Description); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetPattern()) { context.Writer.WritePropertyName("pattern"); context.Writer.Write(publicRequest.Pattern); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateSegmentRequestMarshaller _instance = new CreateSegmentRequestMarshaller(); internal static CreateSegmentRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateSegmentRequestMarshaller Instance { get { return _instance; } } } }
127
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateSegment operation /// </summary> public class CreateSegmentResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateSegmentResponse response = new CreateSegmentResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("segment", targetDepth)) { var unmarshaller = SegmentUnmarshaller.Instance; response.Segment = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException")) { return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateSegmentResponseUnmarshaller _instance = new CreateSegmentResponseUnmarshaller(); internal static CreateSegmentResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateSegmentResponseUnmarshaller Instance { get { return _instance; } } } }
122
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// DeleteExperiment Request Marshaller /// </summary> public class DeleteExperimentRequestMarshaller : IMarshaller<IRequest, DeleteExperimentRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteExperimentRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteExperimentRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetExperiment()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Experiment set"); request.AddPathResource("{experiment}", StringUtils.FromString(publicRequest.Experiment)); if (!publicRequest.IsSetProject()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Project set"); request.AddPathResource("{project}", StringUtils.FromString(publicRequest.Project)); request.ResourcePath = "/projects/{project}/experiments/{experiment}"; return request; } private static DeleteExperimentRequestMarshaller _instance = new DeleteExperimentRequestMarshaller(); internal static DeleteExperimentRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteExperimentRequestMarshaller Instance { get { return _instance; } } } }
90
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteExperiment operation /// </summary> public class DeleteExperimentResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteExperimentResponse response = new DeleteExperimentResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException")) { return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException")) { return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteExperimentResponseUnmarshaller _instance = new DeleteExperimentResponseUnmarshaller(); internal static DeleteExperimentResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteExperimentResponseUnmarshaller Instance { get { return _instance; } } } }
119
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// DeleteFeature Request Marshaller /// </summary> public class DeleteFeatureRequestMarshaller : IMarshaller<IRequest, DeleteFeatureRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteFeatureRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteFeatureRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetFeature()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Feature set"); request.AddPathResource("{feature}", StringUtils.FromString(publicRequest.Feature)); if (!publicRequest.IsSetProject()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Project set"); request.AddPathResource("{project}", StringUtils.FromString(publicRequest.Project)); request.ResourcePath = "/projects/{project}/features/{feature}"; return request; } private static DeleteFeatureRequestMarshaller _instance = new DeleteFeatureRequestMarshaller(); internal static DeleteFeatureRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteFeatureRequestMarshaller Instance { get { return _instance; } } } }
90
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteFeature operation /// </summary> public class DeleteFeatureResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteFeatureResponse response = new DeleteFeatureResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteFeatureResponseUnmarshaller _instance = new DeleteFeatureResponseUnmarshaller(); internal static DeleteFeatureResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteFeatureResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// DeleteLaunch Request Marshaller /// </summary> public class DeleteLaunchRequestMarshaller : IMarshaller<IRequest, DeleteLaunchRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteLaunchRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteLaunchRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetLaunch()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Launch set"); request.AddPathResource("{launch}", StringUtils.FromString(publicRequest.Launch)); if (!publicRequest.IsSetProject()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Project set"); request.AddPathResource("{project}", StringUtils.FromString(publicRequest.Project)); request.ResourcePath = "/projects/{project}/launches/{launch}"; return request; } private static DeleteLaunchRequestMarshaller _instance = new DeleteLaunchRequestMarshaller(); internal static DeleteLaunchRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteLaunchRequestMarshaller Instance { get { return _instance; } } } }
90
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteLaunch operation /// </summary> public class DeleteLaunchResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteLaunchResponse response = new DeleteLaunchResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteLaunchResponseUnmarshaller _instance = new DeleteLaunchResponseUnmarshaller(); internal static DeleteLaunchResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteLaunchResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// DeleteProject Request Marshaller /// </summary> public class DeleteProjectRequestMarshaller : IMarshaller<IRequest, DeleteProjectRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteProjectRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteProjectRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetProject()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Project set"); request.AddPathResource("{project}", StringUtils.FromString(publicRequest.Project)); request.ResourcePath = "/projects/{project}"; return request; } private static DeleteProjectRequestMarshaller _instance = new DeleteProjectRequestMarshaller(); internal static DeleteProjectRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteProjectRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteProject operation /// </summary> public class DeleteProjectResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteProjectResponse response = new DeleteProjectResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteProjectResponseUnmarshaller _instance = new DeleteProjectResponseUnmarshaller(); internal static DeleteProjectResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteProjectResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// DeleteSegment Request Marshaller /// </summary> public class DeleteSegmentRequestMarshaller : IMarshaller<IRequest, DeleteSegmentRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteSegmentRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteSegmentRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetSegment()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Segment set"); request.AddPathResource("{segment}", StringUtils.FromString(publicRequest.Segment)); request.ResourcePath = "/segments/{segment}"; return request; } private static DeleteSegmentRequestMarshaller _instance = new DeleteSegmentRequestMarshaller(); internal static DeleteSegmentRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteSegmentRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteSegment operation /// </summary> public class DeleteSegmentResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteSegmentResponse response = new DeleteSegmentResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteSegmentResponseUnmarshaller _instance = new DeleteSegmentResponseUnmarshaller(); internal static DeleteSegmentResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteSegmentResponseUnmarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// EvaluateFeature Request Marshaller /// </summary> public class EvaluateFeatureRequestMarshaller : IMarshaller<IRequest, EvaluateFeatureRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((EvaluateFeatureRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(EvaluateFeatureRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudWatchEvidently"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-02-01"; request.HttpMethod = "POST"; if (!publicRequest.IsSetFeature()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Feature set"); request.AddPathResource("{feature}", StringUtils.FromString(publicRequest.Feature)); if (!publicRequest.IsSetProject()) throw new AmazonCloudWatchEvidentlyException("Request object does not have required field Project set"); request.AddPathResource("{project}", StringUtils.FromString(publicRequest.Project)); request.ResourcePath = "/projects/{project}/evaluations/{feature}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetEntityId()) { context.Writer.WritePropertyName("entityId"); context.Writer.Write(publicRequest.EntityId); } if(publicRequest.IsSetEvaluationContext()) { context.Writer.WritePropertyName("evaluationContext"); context.Writer.Write(publicRequest.EvaluationContext); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } request.HostPrefix = $"dataplane."; return request; } private static EvaluateFeatureRequestMarshaller _instance = new EvaluateFeatureRequestMarshaller(); internal static EvaluateFeatureRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static EvaluateFeatureRequestMarshaller Instance { get { return _instance; } } } }
115
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EvaluateFeature operation /// </summary> public class EvaluateFeatureResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { EvaluateFeatureResponse response = new EvaluateFeatureResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("details", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Details = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("reason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Reason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("value", targetDepth)) { var unmarshaller = VariableValueUnmarshaller.Instance; response.Value = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("variation", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Variation = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudWatchEvidentlyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static EvaluateFeatureResponseUnmarshaller _instance = new EvaluateFeatureResponseUnmarshaller(); internal static EvaluateFeatureResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static EvaluateFeatureResponseUnmarshaller Instance { get { return _instance; } } } }
140
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// EvaluationRequest Marshaller /// </summary> public class EvaluationRequestMarshaller : IRequestMarshaller<EvaluationRequest, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(EvaluationRequest requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEntityId()) { context.Writer.WritePropertyName("entityId"); context.Writer.Write(requestObject.EntityId); } if(requestObject.IsSetEvaluationContext()) { context.Writer.WritePropertyName("evaluationContext"); context.Writer.Write(requestObject.EvaluationContext); } if(requestObject.IsSetFeature()) { context.Writer.WritePropertyName("feature"); context.Writer.Write(requestObject.Feature); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EvaluationRequestMarshaller Instance = new EvaluationRequestMarshaller(); } }
74
aws-sdk-net
aws
C#
/* * 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 evidently-2021-02-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.CloudWatchEvidently.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudWatchEvidently.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EvaluationResult Object /// </summary> public class EvaluationResultUnmarshaller : IUnmarshaller<EvaluationResult, XmlUnmarshallerContext>, IUnmarshaller<EvaluationResult, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EvaluationResult IUnmarshaller<EvaluationResult, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public EvaluationResult Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EvaluationResult unmarshalledObject = new EvaluationResult(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("details", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Details = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("entityId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EntityId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("feature", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Feature = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("project", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Project = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("reason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Reason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("value", targetDepth)) { var unmarshaller = VariableValueUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("variation", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Variation = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EvaluationResultUnmarshaller _instance = new EvaluationResultUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EvaluationResultUnmarshaller Instance { get { return _instance; } } } }
128