/* * 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 application-insights-2018-11-25.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.ApplicationInsights.Model { /// /// Container for the parameters to the CreateApplication operation. /// Adds an application that is created from a resource group. /// public partial class CreateApplicationRequest : AmazonApplicationInsightsRequest { private bool? _autoConfigEnabled; private bool? _autoCreate; private bool? _cweMonitorEnabled; private GroupingType _groupingType; private bool? _opsCenterEnabled; private string _opsItemSNSTopicArn; private string _resourceGroupName; private List _tags = new List(); /// /// Gets and sets the property AutoConfigEnabled. /// /// Indicates whether Application Insights automatically configures unmonitored resources /// in the resource group. /// /// public bool AutoConfigEnabled { get { return this._autoConfigEnabled.GetValueOrDefault(); } set { this._autoConfigEnabled = value; } } // Check to see if AutoConfigEnabled property is set internal bool IsSetAutoConfigEnabled() { return this._autoConfigEnabled.HasValue; } /// /// Gets and sets the property AutoCreate. /// /// Configures all of the resources in the resource group by applying the recommended /// configurations. /// /// public bool AutoCreate { get { return this._autoCreate.GetValueOrDefault(); } set { this._autoCreate = value; } } // Check to see if AutoCreate property is set internal bool IsSetAutoCreate() { return this._autoCreate.HasValue; } /// /// Gets and sets the property CWEMonitorEnabled. /// /// Indicates whether Application Insights can listen to CloudWatch events for the application /// resources, such as instance terminated, failed deployment, /// and others. /// /// public bool CWEMonitorEnabled { get { return this._cweMonitorEnabled.GetValueOrDefault(); } set { this._cweMonitorEnabled = value; } } // Check to see if CWEMonitorEnabled property is set internal bool IsSetCWEMonitorEnabled() { return this._cweMonitorEnabled.HasValue; } /// /// Gets and sets the property GroupingType. /// /// Application Insights can create applications based on a resource group or on an account. /// To create an account-based application using all of the resources in the account, /// set this parameter to ACCOUNT_BASED. /// /// public GroupingType GroupingType { get { return this._groupingType; } set { this._groupingType = value; } } // Check to see if GroupingType property is set internal bool IsSetGroupingType() { return this._groupingType != null; } /// /// Gets and sets the property OpsCenterEnabled. /// /// When set to true, creates opsItems for any problems detected on an application. /// /// /// public bool OpsCenterEnabled { get { return this._opsCenterEnabled.GetValueOrDefault(); } set { this._opsCenterEnabled = value; } } // Check to see if OpsCenterEnabled property is set internal bool IsSetOpsCenterEnabled() { return this._opsCenterEnabled.HasValue; } /// /// Gets and sets the property OpsItemSNSTopicArn. /// /// The SNS topic provided to Application Insights that is associated to the created /// opsItem. Allows you to receive notifications for updates to the opsItem. /// /// [AWSProperty(Min=20, Max=300)] public string OpsItemSNSTopicArn { get { return this._opsItemSNSTopicArn; } set { this._opsItemSNSTopicArn = value; } } // Check to see if OpsItemSNSTopicArn property is set internal bool IsSetOpsItemSNSTopicArn() { return this._opsItemSNSTopicArn != null; } /// /// Gets and sets the property ResourceGroupName. /// /// The name of the resource group. /// /// [AWSProperty(Min=1, Max=256)] public string ResourceGroupName { get { return this._resourceGroupName; } set { this._resourceGroupName = value; } } // Check to see if ResourceGroupName property is set internal bool IsSetResourceGroupName() { return this._resourceGroupName != null; } /// /// Gets and sets the property Tags. /// /// List of tags to add to the application. tag key (Key) and an associated /// tag value (Value). The maximum length of a tag key is 128 characters. /// The maximum length of a tag value is 256 characters. /// /// [AWSProperty(Min=0, Max=200)] public List 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; } } }