/* * 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 mwaa-2020-07-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.MWAA.Model { /// /// Container for the parameters to the PublishMetrics operation. /// Internal only. Publishes environment health metrics to Amazon CloudWatch. /// public partial class PublishMetricsRequest : AmazonMWAARequest { private string _environmentName; private List _metricData = new List(); /// /// Gets and sets the property EnvironmentName. /// /// Internal only. The name of the environment. /// /// [AWSProperty(Required=true, Min=1, Max=80)] public string EnvironmentName { get { return this._environmentName; } set { this._environmentName = value; } } // Check to see if EnvironmentName property is set internal bool IsSetEnvironmentName() { return this._environmentName != null; } /// /// Gets and sets the property MetricData. /// /// Internal only. Publishes metrics to Amazon CloudWatch. To learn more about /// the metrics published to Amazon CloudWatch, see Amazon /// MWAA performance metrics in Amazon CloudWatch. /// /// [AWSProperty(Required=true)] public List MetricData { get { return this._metricData; } set { this._metricData = value; } } // Check to see if MetricData property is set internal bool IsSetMetricData() { return this._metricData != null && this._metricData.Count > 0; } } }