/* * 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 securityhub-2018-10-26.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.SecurityHub.Model { /// /// Provides details about an auto scaling group. /// public partial class AwsAutoScalingAutoScalingGroupDetails { private List _availabilityZones = new List(); private bool? _capacityRebalance; private string _createdTime; private int? _healthCheckGracePeriod; private string _healthCheckType; private string _launchConfigurationName; private AwsAutoScalingAutoScalingGroupLaunchTemplateLaunchTemplateSpecification _launchTemplate; private List _loadBalancerNames = new List(); private AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails _mixedInstancesPolicy; /// /// Gets and sets the property AvailabilityZones. /// /// The list of Availability Zones for the automatic scaling group. /// /// public List AvailabilityZones { get { return this._availabilityZones; } set { this._availabilityZones = value; } } // Check to see if AvailabilityZones property is set internal bool IsSetAvailabilityZones() { return this._availabilityZones != null && this._availabilityZones.Count > 0; } /// /// Gets and sets the property CapacityRebalance. /// /// Indicates whether capacity rebalancing is enabled. /// /// public bool CapacityRebalance { get { return this._capacityRebalance.GetValueOrDefault(); } set { this._capacityRebalance = value; } } // Check to see if CapacityRebalance property is set internal bool IsSetCapacityRebalance() { return this._capacityRebalance.HasValue; } /// /// Gets and sets the property CreatedTime. /// /// Indicates when the auto scaling group was created. /// /// /// /// Uses the date-time format specified in RFC /// 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, /// and date and time should be separated by T. For example, 2020-03-22T13:22:13.933Z. /// /// public string CreatedTime { get { return this._createdTime; } set { this._createdTime = value; } } // Check to see if CreatedTime property is set internal bool IsSetCreatedTime() { return this._createdTime != null; } /// /// Gets and sets the property HealthCheckGracePeriod. /// /// The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before it checks /// the health status of an EC2 instance that has come into service. /// /// public int HealthCheckGracePeriod { get { return this._healthCheckGracePeriod.GetValueOrDefault(); } set { this._healthCheckGracePeriod = value; } } // Check to see if HealthCheckGracePeriod property is set internal bool IsSetHealthCheckGracePeriod() { return this._healthCheckGracePeriod.HasValue; } /// /// Gets and sets the property HealthCheckType. /// /// The service to use for the health checks. Valid values are EC2 or ELB. /// /// public string HealthCheckType { get { return this._healthCheckType; } set { this._healthCheckType = value; } } // Check to see if HealthCheckType property is set internal bool IsSetHealthCheckType() { return this._healthCheckType != null; } /// /// Gets and sets the property LaunchConfigurationName. /// /// The name of the launch configuration. /// /// public string LaunchConfigurationName { get { return this._launchConfigurationName; } set { this._launchConfigurationName = value; } } // Check to see if LaunchConfigurationName property is set internal bool IsSetLaunchConfigurationName() { return this._launchConfigurationName != null; } /// /// Gets and sets the property LaunchTemplate. /// /// The launch template to use. /// /// public AwsAutoScalingAutoScalingGroupLaunchTemplateLaunchTemplateSpecification LaunchTemplate { get { return this._launchTemplate; } set { this._launchTemplate = value; } } // Check to see if LaunchTemplate property is set internal bool IsSetLaunchTemplate() { return this._launchTemplate != null; } /// /// Gets and sets the property LoadBalancerNames. /// /// The list of load balancers associated with the group. /// /// public List LoadBalancerNames { get { return this._loadBalancerNames; } set { this._loadBalancerNames = value; } } // Check to see if LoadBalancerNames property is set internal bool IsSetLoadBalancerNames() { return this._loadBalancerNames != null && this._loadBalancerNames.Count > 0; } /// /// Gets and sets the property MixedInstancesPolicy. /// /// The mixed instances policy for the automatic scaling group. /// /// public AwsAutoScalingAutoScalingGroupMixedInstancesPolicyDetails MixedInstancesPolicy { get { return this._mixedInstancesPolicy; } set { this._mixedInstancesPolicy = value; } } // Check to see if MixedInstancesPolicy property is set internal bool IsSetMixedInstancesPolicy() { return this._mixedInstancesPolicy != null; } } }