/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The EC2 Instance Connect Endpoint.See Also:
AWS
* API Reference
The ID of the Amazon Web Services account that created the EC2 Instance * Connect Endpoint.
*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *The ID of the Amazon Web Services account that created the EC2 Instance * Connect Endpoint.
*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *The ID of the Amazon Web Services account that created the EC2 Instance * Connect Endpoint.
*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *The ID of the Amazon Web Services account that created the EC2 Instance * Connect Endpoint.
*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *The ID of the Amazon Web Services account that created the EC2 Instance * Connect Endpoint.
*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *The ID of the Amazon Web Services account that created the EC2 Instance * Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *The ID of the Amazon Web Services account that created the EC2 Instance * Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *The ID of the Amazon Web Services account that created the EC2 Instance * Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *The ID of the EC2 Instance Connect Endpoint.
*/ inline const Aws::String& GetInstanceConnectEndpointId() const{ return m_instanceConnectEndpointId; } /** *The ID of the EC2 Instance Connect Endpoint.
*/ inline bool InstanceConnectEndpointIdHasBeenSet() const { return m_instanceConnectEndpointIdHasBeenSet; } /** *The ID of the EC2 Instance Connect Endpoint.
*/ inline void SetInstanceConnectEndpointId(const Aws::String& value) { m_instanceConnectEndpointIdHasBeenSet = true; m_instanceConnectEndpointId = value; } /** *The ID of the EC2 Instance Connect Endpoint.
*/ inline void SetInstanceConnectEndpointId(Aws::String&& value) { m_instanceConnectEndpointIdHasBeenSet = true; m_instanceConnectEndpointId = std::move(value); } /** *The ID of the EC2 Instance Connect Endpoint.
*/ inline void SetInstanceConnectEndpointId(const char* value) { m_instanceConnectEndpointIdHasBeenSet = true; m_instanceConnectEndpointId.assign(value); } /** *The ID of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithInstanceConnectEndpointId(const Aws::String& value) { SetInstanceConnectEndpointId(value); return *this;} /** *The ID of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithInstanceConnectEndpointId(Aws::String&& value) { SetInstanceConnectEndpointId(std::move(value)); return *this;} /** *The ID of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithInstanceConnectEndpointId(const char* value) { SetInstanceConnectEndpointId(value); return *this;} /** *The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.
*/ inline const Aws::String& GetInstanceConnectEndpointArn() const{ return m_instanceConnectEndpointArn; } /** *The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.
*/ inline bool InstanceConnectEndpointArnHasBeenSet() const { return m_instanceConnectEndpointArnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.
*/ inline void SetInstanceConnectEndpointArn(const Aws::String& value) { m_instanceConnectEndpointArnHasBeenSet = true; m_instanceConnectEndpointArn = value; } /** *The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.
*/ inline void SetInstanceConnectEndpointArn(Aws::String&& value) { m_instanceConnectEndpointArnHasBeenSet = true; m_instanceConnectEndpointArn = std::move(value); } /** *The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.
*/ inline void SetInstanceConnectEndpointArn(const char* value) { m_instanceConnectEndpointArnHasBeenSet = true; m_instanceConnectEndpointArn.assign(value); } /** *The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithInstanceConnectEndpointArn(const Aws::String& value) { SetInstanceConnectEndpointArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithInstanceConnectEndpointArn(Aws::String&& value) { SetInstanceConnectEndpointArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithInstanceConnectEndpointArn(const char* value) { SetInstanceConnectEndpointArn(value); return *this;} /** *The current state of the EC2 Instance Connect Endpoint.
*/ inline const Ec2InstanceConnectEndpointState& GetState() const{ return m_state; } /** *The current state of the EC2 Instance Connect Endpoint.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The current state of the EC2 Instance Connect Endpoint.
*/ inline void SetState(const Ec2InstanceConnectEndpointState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The current state of the EC2 Instance Connect Endpoint.
*/ inline void SetState(Ec2InstanceConnectEndpointState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The current state of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithState(const Ec2InstanceConnectEndpointState& value) { SetState(value); return *this;} /** *The current state of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithState(Ec2InstanceConnectEndpointState&& value) { SetState(std::move(value)); return *this;} /** *The message for the current state of the EC2 Instance Connect Endpoint. Can * include a failure message.
*/ inline const Aws::String& GetStateMessage() const{ return m_stateMessage; } /** *The message for the current state of the EC2 Instance Connect Endpoint. Can * include a failure message.
*/ inline bool StateMessageHasBeenSet() const { return m_stateMessageHasBeenSet; } /** *The message for the current state of the EC2 Instance Connect Endpoint. Can * include a failure message.
*/ inline void SetStateMessage(const Aws::String& value) { m_stateMessageHasBeenSet = true; m_stateMessage = value; } /** *The message for the current state of the EC2 Instance Connect Endpoint. Can * include a failure message.
*/ inline void SetStateMessage(Aws::String&& value) { m_stateMessageHasBeenSet = true; m_stateMessage = std::move(value); } /** *The message for the current state of the EC2 Instance Connect Endpoint. Can * include a failure message.
*/ inline void SetStateMessage(const char* value) { m_stateMessageHasBeenSet = true; m_stateMessage.assign(value); } /** *The message for the current state of the EC2 Instance Connect Endpoint. Can * include a failure message.
*/ inline Ec2InstanceConnectEndpoint& WithStateMessage(const Aws::String& value) { SetStateMessage(value); return *this;} /** *The message for the current state of the EC2 Instance Connect Endpoint. Can * include a failure message.
*/ inline Ec2InstanceConnectEndpoint& WithStateMessage(Aws::String&& value) { SetStateMessage(std::move(value)); return *this;} /** *The message for the current state of the EC2 Instance Connect Endpoint. Can * include a failure message.
*/ inline Ec2InstanceConnectEndpoint& WithStateMessage(const char* value) { SetStateMessage(value); return *this;} /** *The DNS name of the EC2 Instance Connect Endpoint.
*/ inline const Aws::String& GetDnsName() const{ return m_dnsName; } /** *The DNS name of the EC2 Instance Connect Endpoint.
*/ inline bool DnsNameHasBeenSet() const { return m_dnsNameHasBeenSet; } /** *The DNS name of the EC2 Instance Connect Endpoint.
*/ inline void SetDnsName(const Aws::String& value) { m_dnsNameHasBeenSet = true; m_dnsName = value; } /** *The DNS name of the EC2 Instance Connect Endpoint.
*/ inline void SetDnsName(Aws::String&& value) { m_dnsNameHasBeenSet = true; m_dnsName = std::move(value); } /** *The DNS name of the EC2 Instance Connect Endpoint.
*/ inline void SetDnsName(const char* value) { m_dnsNameHasBeenSet = true; m_dnsName.assign(value); } /** *The DNS name of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithDnsName(const Aws::String& value) { SetDnsName(value); return *this;} /** *The DNS name of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithDnsName(Aws::String&& value) { SetDnsName(std::move(value)); return *this;} /** *The DNS name of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithDnsName(const char* value) { SetDnsName(value); return *this;} /** * */ inline const Aws::String& GetFipsDnsName() const{ return m_fipsDnsName; } /** * */ inline bool FipsDnsNameHasBeenSet() const { return m_fipsDnsNameHasBeenSet; } /** * */ inline void SetFipsDnsName(const Aws::String& value) { m_fipsDnsNameHasBeenSet = true; m_fipsDnsName = value; } /** * */ inline void SetFipsDnsName(Aws::String&& value) { m_fipsDnsNameHasBeenSet = true; m_fipsDnsName = std::move(value); } /** * */ inline void SetFipsDnsName(const char* value) { m_fipsDnsNameHasBeenSet = true; m_fipsDnsName.assign(value); } /** * */ inline Ec2InstanceConnectEndpoint& WithFipsDnsName(const Aws::String& value) { SetFipsDnsName(value); return *this;} /** * */ inline Ec2InstanceConnectEndpoint& WithFipsDnsName(Aws::String&& value) { SetFipsDnsName(std::move(value)); return *this;} /** * */ inline Ec2InstanceConnectEndpoint& WithFipsDnsName(const char* value) { SetFipsDnsName(value); return *this;} /** *The ID of the elastic network interface that Amazon EC2 automatically created * when creating the EC2 Instance Connect Endpoint.
*/ inline const Aws::VectorThe ID of the elastic network interface that Amazon EC2 automatically created * when creating the EC2 Instance Connect Endpoint.
*/ inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; } /** *The ID of the elastic network interface that Amazon EC2 automatically created * when creating the EC2 Instance Connect Endpoint.
*/ inline void SetNetworkInterfaceIds(const Aws::VectorThe ID of the elastic network interface that Amazon EC2 automatically created * when creating the EC2 Instance Connect Endpoint.
*/ inline void SetNetworkInterfaceIds(Aws::VectorThe ID of the elastic network interface that Amazon EC2 automatically created * when creating the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithNetworkInterfaceIds(const Aws::VectorThe ID of the elastic network interface that Amazon EC2 automatically created * when creating the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithNetworkInterfaceIds(Aws::VectorThe ID of the elastic network interface that Amazon EC2 automatically created * when creating the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& AddNetworkInterfaceIds(const Aws::String& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; } /** *The ID of the elastic network interface that Amazon EC2 automatically created * when creating the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& AddNetworkInterfaceIds(Aws::String&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(std::move(value)); return *this; } /** *The ID of the elastic network interface that Amazon EC2 automatically created * when creating the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& AddNetworkInterfaceIds(const char* value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; } /** *The ID of the VPC in which the EC2 Instance Connect Endpoint was created.
*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *The ID of the VPC in which the EC2 Instance Connect Endpoint was created.
*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *The ID of the VPC in which the EC2 Instance Connect Endpoint was created.
*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *The ID of the VPC in which the EC2 Instance Connect Endpoint was created.
*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *The ID of the VPC in which the EC2 Instance Connect Endpoint was created.
*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *The ID of the VPC in which the EC2 Instance Connect Endpoint was created.
*/ inline Ec2InstanceConnectEndpoint& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *The ID of the VPC in which the EC2 Instance Connect Endpoint was created.
*/ inline Ec2InstanceConnectEndpoint& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *The ID of the VPC in which the EC2 Instance Connect Endpoint was created.
*/ inline Ec2InstanceConnectEndpoint& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *The Availability Zone of the EC2 Instance Connect Endpoint.
*/ inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; } /** *The Availability Zone of the EC2 Instance Connect Endpoint.
*/ inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; } /** *The Availability Zone of the EC2 Instance Connect Endpoint.
*/ inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; } /** *The Availability Zone of the EC2 Instance Connect Endpoint.
*/ inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); } /** *The Availability Zone of the EC2 Instance Connect Endpoint.
*/ inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); } /** *The Availability Zone of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;} /** *The Availability Zone of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;} /** *The Availability Zone of the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;} /** *The date and time that the EC2 Instance Connect Endpoint was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The date and time that the EC2 Instance Connect Endpoint was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time that the EC2 Instance Connect Endpoint was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The date and time that the EC2 Instance Connect Endpoint was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time that the EC2 Instance Connect Endpoint was created.
*/ inline Ec2InstanceConnectEndpoint& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time that the EC2 Instance Connect Endpoint was created.
*/ inline Ec2InstanceConnectEndpoint& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *The ID of the subnet in which the EC2 Instance Connect Endpoint was * created.
*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *The ID of the subnet in which the EC2 Instance Connect Endpoint was * created.
*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *The ID of the subnet in which the EC2 Instance Connect Endpoint was * created.
*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *The ID of the subnet in which the EC2 Instance Connect Endpoint was * created.
*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *The ID of the subnet in which the EC2 Instance Connect Endpoint was * created.
*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *The ID of the subnet in which the EC2 Instance Connect Endpoint was * created.
*/ inline Ec2InstanceConnectEndpoint& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *The ID of the subnet in which the EC2 Instance Connect Endpoint was * created.
*/ inline Ec2InstanceConnectEndpoint& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *The ID of the subnet in which the EC2 Instance Connect Endpoint was * created.
*/ inline Ec2InstanceConnectEndpoint& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *Indicates whether your client's IP address is preserved as the source. The
* value is true
or false
.
If
* true
, your client's IP address is used when you connect to a
* resource.
If false
, the elastic network interface
* IP address is used when you connect to a resource.
Default:
* true
Indicates whether your client's IP address is preserved as the source. The
* value is true
or false
.
If
* true
, your client's IP address is used when you connect to a
* resource.
If false
, the elastic network interface
* IP address is used when you connect to a resource.
Default:
* true
Indicates whether your client's IP address is preserved as the source. The
* value is true
or false
.
If
* true
, your client's IP address is used when you connect to a
* resource.
If false
, the elastic network interface
* IP address is used when you connect to a resource.
Default:
* true
Indicates whether your client's IP address is preserved as the source. The
* value is true
or false
.
If
* true
, your client's IP address is used when you connect to a
* resource.
If false
, the elastic network interface
* IP address is used when you connect to a resource.
Default:
* true
The security groups associated with the endpoint. If you didn't specify a * security group, the default security group for your VPC is associated with the * endpoint.
*/ inline const Aws::VectorThe security groups associated with the endpoint. If you didn't specify a * security group, the default security group for your VPC is associated with the * endpoint.
*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *The security groups associated with the endpoint. If you didn't specify a * security group, the default security group for your VPC is associated with the * endpoint.
*/ inline void SetSecurityGroupIds(const Aws::VectorThe security groups associated with the endpoint. If you didn't specify a * security group, the default security group for your VPC is associated with the * endpoint.
*/ inline void SetSecurityGroupIds(Aws::VectorThe security groups associated with the endpoint. If you didn't specify a * security group, the default security group for your VPC is associated with the * endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithSecurityGroupIds(const Aws::VectorThe security groups associated with the endpoint. If you didn't specify a * security group, the default security group for your VPC is associated with the * endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithSecurityGroupIds(Aws::VectorThe security groups associated with the endpoint. If you didn't specify a * security group, the default security group for your VPC is associated with the * endpoint.
*/ inline Ec2InstanceConnectEndpoint& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *The security groups associated with the endpoint. If you didn't specify a * security group, the default security group for your VPC is associated with the * endpoint.
*/ inline Ec2InstanceConnectEndpoint& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *The security groups associated with the endpoint. If you didn't specify a * security group, the default security group for your VPC is associated with the * endpoint.
*/ inline Ec2InstanceConnectEndpoint& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *The tags assigned to the EC2 Instance Connect Endpoint.
*/ inline const Aws::VectorThe tags assigned to the EC2 Instance Connect Endpoint.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags assigned to the EC2 Instance Connect Endpoint.
*/ inline void SetTags(const Aws::VectorThe tags assigned to the EC2 Instance Connect Endpoint.
*/ inline void SetTags(Aws::VectorThe tags assigned to the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithTags(const Aws::VectorThe tags assigned to the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& WithTags(Aws::VectorThe tags assigned to the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tags assigned to the EC2 Instance Connect Endpoint.
*/ inline Ec2InstanceConnectEndpoint& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; Aws::String m_instanceConnectEndpointId; bool m_instanceConnectEndpointIdHasBeenSet = false; Aws::String m_instanceConnectEndpointArn; bool m_instanceConnectEndpointArnHasBeenSet = false; Ec2InstanceConnectEndpointState m_state; bool m_stateHasBeenSet = false; Aws::String m_stateMessage; bool m_stateMessageHasBeenSet = false; Aws::String m_dnsName; bool m_dnsNameHasBeenSet = false; Aws::String m_fipsDnsName; bool m_fipsDnsNameHasBeenSet = false; Aws::Vector