/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Provides details about the placement of an Amazon EC2 instance. *

See Also:

AWS * API Reference

*/ class AwsEc2LaunchTemplateDataPlacementDetails { public: AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataPlacementDetails(); AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataPlacementDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2LaunchTemplateDataPlacementDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The affinity setting for an instance on an EC2 Dedicated Host.

*/ inline const Aws::String& GetAffinity() const{ return m_affinity; } /** *

The affinity setting for an instance on an EC2 Dedicated Host.

*/ inline bool AffinityHasBeenSet() const { return m_affinityHasBeenSet; } /** *

The affinity setting for an instance on an EC2 Dedicated Host.

*/ inline void SetAffinity(const Aws::String& value) { m_affinityHasBeenSet = true; m_affinity = value; } /** *

The affinity setting for an instance on an EC2 Dedicated Host.

*/ inline void SetAffinity(Aws::String&& value) { m_affinityHasBeenSet = true; m_affinity = std::move(value); } /** *

The affinity setting for an instance on an EC2 Dedicated Host.

*/ inline void SetAffinity(const char* value) { m_affinityHasBeenSet = true; m_affinity.assign(value); } /** *

The affinity setting for an instance on an EC2 Dedicated Host.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithAffinity(const Aws::String& value) { SetAffinity(value); return *this;} /** *

The affinity setting for an instance on an EC2 Dedicated Host.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithAffinity(Aws::String&& value) { SetAffinity(std::move(value)); return *this;} /** *

The affinity setting for an instance on an EC2 Dedicated Host.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithAffinity(const char* value) { SetAffinity(value); return *this;} /** *

The Availability Zone for the instance.

*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *

The Availability Zone for the instance.

*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *

The Availability Zone for the instance.

*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *

The Availability Zone for the instance.

*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *

The Availability Zone for the instance.

*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *

The Availability Zone for the instance.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *

The Availability Zone for the instance.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *

The Availability Zone for the instance.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *

The name of the placement group for the instance.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

The name of the placement group for the instance.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

The name of the placement group for the instance.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

The name of the placement group for the instance.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

The name of the placement group for the instance.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

The name of the placement group for the instance.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The name of the placement group for the instance.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

The name of the placement group for the instance.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** *

The ID of the Dedicated Host for the instance.

*/ inline const Aws::String& GetHostId() const{ return m_hostId; } /** *

The ID of the Dedicated Host for the instance.

*/ inline bool HostIdHasBeenSet() const { return m_hostIdHasBeenSet; } /** *

The ID of the Dedicated Host for the instance.

*/ inline void SetHostId(const Aws::String& value) { m_hostIdHasBeenSet = true; m_hostId = value; } /** *

The ID of the Dedicated Host for the instance.

*/ inline void SetHostId(Aws::String&& value) { m_hostIdHasBeenSet = true; m_hostId = std::move(value); } /** *

The ID of the Dedicated Host for the instance.

*/ inline void SetHostId(const char* value) { m_hostIdHasBeenSet = true; m_hostId.assign(value); } /** *

The ID of the Dedicated Host for the instance.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithHostId(const Aws::String& value) { SetHostId(value); return *this;} /** *

The ID of the Dedicated Host for the instance.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithHostId(Aws::String&& value) { SetHostId(std::move(value)); return *this;} /** *

The ID of the Dedicated Host for the instance.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithHostId(const char* value) { SetHostId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the host resource group in which to launch * the instances.

*/ inline const Aws::String& GetHostResourceGroupArn() const{ return m_hostResourceGroupArn; } /** *

The Amazon Resource Name (ARN) of the host resource group in which to launch * the instances.

*/ inline bool HostResourceGroupArnHasBeenSet() const { return m_hostResourceGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the host resource group in which to launch * the instances.

*/ inline void SetHostResourceGroupArn(const Aws::String& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the host resource group in which to launch * the instances.

*/ inline void SetHostResourceGroupArn(Aws::String&& value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the host resource group in which to launch * the instances.

*/ inline void SetHostResourceGroupArn(const char* value) { m_hostResourceGroupArnHasBeenSet = true; m_hostResourceGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the host resource group in which to launch * the instances.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithHostResourceGroupArn(const Aws::String& value) { SetHostResourceGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the host resource group in which to launch * the instances.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithHostResourceGroupArn(Aws::String&& value) { SetHostResourceGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the host resource group in which to launch * the instances.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithHostResourceGroupArn(const char* value) { SetHostResourceGroupArn(value); return *this;} /** *

The number of the partition the instance should launch in.

*/ inline int GetPartitionNumber() const{ return m_partitionNumber; } /** *

The number of the partition the instance should launch in.

*/ inline bool PartitionNumberHasBeenSet() const { return m_partitionNumberHasBeenSet; } /** *

The number of the partition the instance should launch in.

*/ inline void SetPartitionNumber(int value) { m_partitionNumberHasBeenSet = true; m_partitionNumber = value; } /** *

The number of the partition the instance should launch in.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithPartitionNumber(int value) { SetPartitionNumber(value); return *this;} /** *

Reserved for future use.

*/ inline const Aws::String& GetSpreadDomain() const{ return m_spreadDomain; } /** *

Reserved for future use.

*/ inline bool SpreadDomainHasBeenSet() const { return m_spreadDomainHasBeenSet; } /** *

Reserved for future use.

*/ inline void SetSpreadDomain(const Aws::String& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = value; } /** *

Reserved for future use.

*/ inline void SetSpreadDomain(Aws::String&& value) { m_spreadDomainHasBeenSet = true; m_spreadDomain = std::move(value); } /** *

Reserved for future use.

*/ inline void SetSpreadDomain(const char* value) { m_spreadDomainHasBeenSet = true; m_spreadDomain.assign(value); } /** *

Reserved for future use.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithSpreadDomain(const Aws::String& value) { SetSpreadDomain(value); return *this;} /** *

Reserved for future use.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithSpreadDomain(Aws::String&& value) { SetSpreadDomain(std::move(value)); return *this;} /** *

Reserved for future use.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithSpreadDomain(const char* value) { SetSpreadDomain(value); return *this;} /** *

The tenancy of the instance (if the instance is running in a VPC). An * instance with a tenancy of dedicated runs on single-tenant hardware.

*/ inline const Aws::String& GetTenancy() const{ return m_tenancy; } /** *

The tenancy of the instance (if the instance is running in a VPC). An * instance with a tenancy of dedicated runs on single-tenant hardware.

*/ inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; } /** *

The tenancy of the instance (if the instance is running in a VPC). An * instance with a tenancy of dedicated runs on single-tenant hardware.

*/ inline void SetTenancy(const Aws::String& value) { m_tenancyHasBeenSet = true; m_tenancy = value; } /** *

The tenancy of the instance (if the instance is running in a VPC). An * instance with a tenancy of dedicated runs on single-tenant hardware.

*/ inline void SetTenancy(Aws::String&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); } /** *

The tenancy of the instance (if the instance is running in a VPC). An * instance with a tenancy of dedicated runs on single-tenant hardware.

*/ inline void SetTenancy(const char* value) { m_tenancyHasBeenSet = true; m_tenancy.assign(value); } /** *

The tenancy of the instance (if the instance is running in a VPC). An * instance with a tenancy of dedicated runs on single-tenant hardware.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithTenancy(const Aws::String& value) { SetTenancy(value); return *this;} /** *

The tenancy of the instance (if the instance is running in a VPC). An * instance with a tenancy of dedicated runs on single-tenant hardware.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithTenancy(Aws::String&& value) { SetTenancy(std::move(value)); return *this;} /** *

The tenancy of the instance (if the instance is running in a VPC). An * instance with a tenancy of dedicated runs on single-tenant hardware.

*/ inline AwsEc2LaunchTemplateDataPlacementDetails& WithTenancy(const char* value) { SetTenancy(value); return *this;} private: Aws::String m_affinity; bool m_affinityHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; Aws::String m_hostId; bool m_hostIdHasBeenSet = false; Aws::String m_hostResourceGroupArn; bool m_hostResourceGroupArnHasBeenSet = false; int m_partitionNumber; bool m_partitionNumberHasBeenSet = false; Aws::String m_spreadDomain; bool m_spreadDomainHasBeenSet = false; Aws::String m_tenancy; bool m_tenancyHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws