287 lines
12 KiB
C++
287 lines
12 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/securityhub/SecurityHub_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SecurityHub
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Provides details about an auto scaling group.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsAutoScalingAutoScalingGroupDetails">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SECURITYHUB_API AwsAutoScalingAutoScalingGroupDetails
|
|
{
|
|
public:
|
|
AwsAutoScalingAutoScalingGroupDetails();
|
|
AwsAutoScalingAutoScalingGroupDetails(Aws::Utils::Json::JsonView jsonValue);
|
|
AwsAutoScalingAutoScalingGroupDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The name of the launch configuration.</p>
|
|
*/
|
|
inline const Aws::String& GetLaunchConfigurationName() const{ return m_launchConfigurationName; }
|
|
|
|
/**
|
|
* <p>The name of the launch configuration.</p>
|
|
*/
|
|
inline bool LaunchConfigurationNameHasBeenSet() const { return m_launchConfigurationNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the launch configuration.</p>
|
|
*/
|
|
inline void SetLaunchConfigurationName(const Aws::String& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = value; }
|
|
|
|
/**
|
|
* <p>The name of the launch configuration.</p>
|
|
*/
|
|
inline void SetLaunchConfigurationName(Aws::String&& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the launch configuration.</p>
|
|
*/
|
|
inline void SetLaunchConfigurationName(const char* value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the launch configuration.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithLaunchConfigurationName(const Aws::String& value) { SetLaunchConfigurationName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the launch configuration.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithLaunchConfigurationName(Aws::String&& value) { SetLaunchConfigurationName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the launch configuration.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithLaunchConfigurationName(const char* value) { SetLaunchConfigurationName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The list of load balancers associated with the group.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetLoadBalancerNames() const{ return m_loadBalancerNames; }
|
|
|
|
/**
|
|
* <p>The list of load balancers associated with the group.</p>
|
|
*/
|
|
inline bool LoadBalancerNamesHasBeenSet() const { return m_loadBalancerNamesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The list of load balancers associated with the group.</p>
|
|
*/
|
|
inline void SetLoadBalancerNames(const Aws::Vector<Aws::String>& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames = value; }
|
|
|
|
/**
|
|
* <p>The list of load balancers associated with the group.</p>
|
|
*/
|
|
inline void SetLoadBalancerNames(Aws::Vector<Aws::String>&& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames = std::move(value); }
|
|
|
|
/**
|
|
* <p>The list of load balancers associated with the group.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithLoadBalancerNames(const Aws::Vector<Aws::String>& value) { SetLoadBalancerNames(value); return *this;}
|
|
|
|
/**
|
|
* <p>The list of load balancers associated with the group.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithLoadBalancerNames(Aws::Vector<Aws::String>&& value) { SetLoadBalancerNames(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The list of load balancers associated with the group.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& AddLoadBalancerNames(const Aws::String& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The list of load balancers associated with the group.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& AddLoadBalancerNames(Aws::String&& value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The list of load balancers associated with the group.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& AddLoadBalancerNames(const char* value) { m_loadBalancerNamesHasBeenSet = true; m_loadBalancerNames.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The service to use for the health checks.</p>
|
|
*/
|
|
inline const Aws::String& GetHealthCheckType() const{ return m_healthCheckType; }
|
|
|
|
/**
|
|
* <p>The service to use for the health checks.</p>
|
|
*/
|
|
inline bool HealthCheckTypeHasBeenSet() const { return m_healthCheckTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The service to use for the health checks.</p>
|
|
*/
|
|
inline void SetHealthCheckType(const Aws::String& value) { m_healthCheckTypeHasBeenSet = true; m_healthCheckType = value; }
|
|
|
|
/**
|
|
* <p>The service to use for the health checks.</p>
|
|
*/
|
|
inline void SetHealthCheckType(Aws::String&& value) { m_healthCheckTypeHasBeenSet = true; m_healthCheckType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The service to use for the health checks.</p>
|
|
*/
|
|
inline void SetHealthCheckType(const char* value) { m_healthCheckTypeHasBeenSet = true; m_healthCheckType.assign(value); }
|
|
|
|
/**
|
|
* <p>The service to use for the health checks.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithHealthCheckType(const Aws::String& value) { SetHealthCheckType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The service to use for the health checks.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithHealthCheckType(Aws::String&& value) { SetHealthCheckType(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The service to use for the health checks.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithHealthCheckType(const char* value) { SetHealthCheckType(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline int GetHealthCheckGracePeriod() const{ return m_healthCheckGracePeriod; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline bool HealthCheckGracePeriodHasBeenSet() const { return m_healthCheckGracePeriodHasBeenSet; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline void SetHealthCheckGracePeriod(int value) { m_healthCheckGracePeriodHasBeenSet = true; m_healthCheckGracePeriod = value; }
|
|
|
|
/**
|
|
* <p>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.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithHealthCheckGracePeriod(int value) { SetHealthCheckGracePeriod(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Indicates when the auto scaling group was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetCreatedTime() const{ return m_createdTime; }
|
|
|
|
/**
|
|
* <p>Indicates when the auto scaling group was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Indicates when the auto scaling group was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline void SetCreatedTime(const Aws::String& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
|
|
|
|
/**
|
|
* <p>Indicates when the auto scaling group was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline void SetCreatedTime(Aws::String&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
|
|
|
|
/**
|
|
* <p>Indicates when the auto scaling group was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline void SetCreatedTime(const char* value) { m_createdTimeHasBeenSet = true; m_createdTime.assign(value); }
|
|
|
|
/**
|
|
* <p>Indicates when the auto scaling group was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithCreatedTime(const Aws::String& value) { SetCreatedTime(value); return *this;}
|
|
|
|
/**
|
|
* <p>Indicates when the auto scaling group was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithCreatedTime(Aws::String&& value) { SetCreatedTime(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Indicates when the auto scaling group was created.</p> <p>Uses the
|
|
* <code>date-time</code> format specified in <a
|
|
* href="https://tools.ietf.org/html/rfc3339#section-5.6">RFC 3339 section 5.6,
|
|
* Internet Date/Time Format</a>. The value cannot contain spaces. For example,
|
|
* <code>2020-03-22T13:22:13.933Z</code>.</p>
|
|
*/
|
|
inline AwsAutoScalingAutoScalingGroupDetails& WithCreatedTime(const char* value) { SetCreatedTime(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_launchConfigurationName;
|
|
bool m_launchConfigurationNameHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_loadBalancerNames;
|
|
bool m_loadBalancerNamesHasBeenSet;
|
|
|
|
Aws::String m_healthCheckType;
|
|
bool m_healthCheckTypeHasBeenSet;
|
|
|
|
int m_healthCheckGracePeriod;
|
|
bool m_healthCheckGracePeriodHasBeenSet;
|
|
|
|
Aws::String m_createdTime;
|
|
bool m_createdTimeHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SecurityHub
|
|
} // namespace Aws
|