/* * 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 internetmonitor-2021-06-03.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.InternetMonitor.Model { /// /// This is the response object from the GetMonitor operation. /// public partial class GetMonitorResponse : AmazonWebServiceResponse { private DateTime? _createdAt; private HealthEventsConfig _healthEventsConfig; private InternetMeasurementsLogDelivery _internetMeasurementsLogDelivery; private int? _maxCityNetworksToMonitor; private DateTime? _modifiedAt; private string _monitorArn; private string _monitorName; private MonitorProcessingStatusCode _processingStatus; private string _processingStatusInfo; private List _resources = new List(); private MonitorConfigState _status; private Dictionary _tags = new Dictionary(); private int? _trafficPercentageToMonitor; /// /// Gets and sets the property CreatedAt. /// /// The time when the monitor was created. /// /// [AWSProperty(Required=true)] public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property HealthEventsConfig. /// /// The list of health event thresholds. A health event threshold percentage, for performance /// and availability, determines the level of impact at which Amazon CloudWatch Internet /// Monitor creates a health event when there's an internet issue that affects your application /// end users. /// /// public HealthEventsConfig HealthEventsConfig { get { return this._healthEventsConfig; } set { this._healthEventsConfig = value; } } // Check to see if HealthEventsConfig property is set internal bool IsSetHealthEventsConfig() { return this._healthEventsConfig != null; } /// /// Gets and sets the property InternetMeasurementsLogDelivery. /// /// Publish internet measurements for Internet Monitor to another location, such as an /// Amazon S3 bucket. The measurements are also published to Amazon CloudWatch Logs. /// /// public InternetMeasurementsLogDelivery InternetMeasurementsLogDelivery { get { return this._internetMeasurementsLogDelivery; } set { this._internetMeasurementsLogDelivery = value; } } // Check to see if InternetMeasurementsLogDelivery property is set internal bool IsSetInternetMeasurementsLogDelivery() { return this._internetMeasurementsLogDelivery != null; } /// /// Gets and sets the property MaxCityNetworksToMonitor. /// /// The maximum number of city-networks to monitor for your resources. A city-network /// is the location (city) where clients access your application resources from and the /// network or ASN, such as an internet service provider (ISP), that clients access the /// resources through. This limit helps control billing costs. /// /// /// /// To learn more, see Choosing /// a city-network maximum value in the Amazon CloudWatch Internet Monitor section /// of the CloudWatch User Guide. /// /// [AWSProperty(Min=1, Max=500000)] public int MaxCityNetworksToMonitor { get { return this._maxCityNetworksToMonitor.GetValueOrDefault(); } set { this._maxCityNetworksToMonitor = value; } } // Check to see if MaxCityNetworksToMonitor property is set internal bool IsSetMaxCityNetworksToMonitor() { return this._maxCityNetworksToMonitor.HasValue; } /// /// Gets and sets the property ModifiedAt. /// /// The last time that the monitor was modified. /// /// [AWSProperty(Required=true)] public DateTime ModifiedAt { get { return this._modifiedAt.GetValueOrDefault(); } set { this._modifiedAt = value; } } // Check to see if ModifiedAt property is set internal bool IsSetModifiedAt() { return this._modifiedAt.HasValue; } /// /// Gets and sets the property MonitorArn. /// /// The Amazon Resource Name (ARN) of the monitor. /// /// [AWSProperty(Required=true, Min=20, Max=512)] public string MonitorArn { get { return this._monitorArn; } set { this._monitorArn = value; } } // Check to see if MonitorArn property is set internal bool IsSetMonitorArn() { return this._monitorArn != null; } /// /// Gets and sets the property MonitorName. /// /// The name of the monitor. /// /// [AWSProperty(Required=true, Min=1, Max=255)] public string MonitorName { get { return this._monitorName; } set { this._monitorName = value; } } // Check to see if MonitorName property is set internal bool IsSetMonitorName() { return this._monitorName != null; } /// /// Gets and sets the property ProcessingStatus. /// /// The health of the data processing for the monitor. /// /// public MonitorProcessingStatusCode ProcessingStatus { get { return this._processingStatus; } set { this._processingStatus = value; } } // Check to see if ProcessingStatus property is set internal bool IsSetProcessingStatus() { return this._processingStatus != null; } /// /// Gets and sets the property ProcessingStatusInfo. /// /// Additional information about the health of the data processing for the monitor. /// /// public string ProcessingStatusInfo { get { return this._processingStatusInfo; } set { this._processingStatusInfo = value; } } // Check to see if ProcessingStatusInfo property is set internal bool IsSetProcessingStatusInfo() { return this._processingStatusInfo != null; } /// /// Gets and sets the property Resources. /// /// The resources that have been added for the monitor. Resources are listed by their /// Amazon Resource Names (ARNs). /// /// [AWSProperty(Required=true)] public List Resources { get { return this._resources; } set { this._resources = value; } } // Check to see if Resources property is set internal bool IsSetResources() { return this._resources != null && this._resources.Count > 0; } /// /// Gets and sets the property Status. /// /// The status of the monitor. /// /// [AWSProperty(Required=true)] public MonitorConfigState Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property Tags. /// /// The tags that have been added to monitor. /// /// [AWSProperty(Min=0, Max=200)] public Dictionary 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; } /// /// Gets and sets the property TrafficPercentageToMonitor. /// /// The percentage of the internet-facing traffic for your application that you want to /// monitor with this monitor. /// /// [AWSProperty(Min=1, Max=100)] public int TrafficPercentageToMonitor { get { return this._trafficPercentageToMonitor.GetValueOrDefault(); } set { this._trafficPercentageToMonitor = value; } } // Check to see if TrafficPercentageToMonitor property is set internal bool IsSetTrafficPercentageToMonitor() { return this._trafficPercentageToMonitor.HasValue; } } }