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

Contains information about the domain controllers for a specified * directory.

See Also:

AWS * API Reference

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

Identifier of the directory where the domain controller resides.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

Identifier of the directory where the domain controller resides.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

Identifier of the directory where the domain controller resides.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

Identifier of the directory where the domain controller resides.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

Identifier of the directory where the domain controller resides.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

Identifier of the directory where the domain controller resides.

*/ inline DomainController& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

Identifier of the directory where the domain controller resides.

*/ inline DomainController& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

Identifier of the directory where the domain controller resides.

*/ inline DomainController& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

Identifies a specific domain controller in the directory.

*/ inline const Aws::String& GetDomainControllerId() const{ return m_domainControllerId; } /** *

Identifies a specific domain controller in the directory.

*/ inline bool DomainControllerIdHasBeenSet() const { return m_domainControllerIdHasBeenSet; } /** *

Identifies a specific domain controller in the directory.

*/ inline void SetDomainControllerId(const Aws::String& value) { m_domainControllerIdHasBeenSet = true; m_domainControllerId = value; } /** *

Identifies a specific domain controller in the directory.

*/ inline void SetDomainControllerId(Aws::String&& value) { m_domainControllerIdHasBeenSet = true; m_domainControllerId = std::move(value); } /** *

Identifies a specific domain controller in the directory.

*/ inline void SetDomainControllerId(const char* value) { m_domainControllerIdHasBeenSet = true; m_domainControllerId.assign(value); } /** *

Identifies a specific domain controller in the directory.

*/ inline DomainController& WithDomainControllerId(const Aws::String& value) { SetDomainControllerId(value); return *this;} /** *

Identifies a specific domain controller in the directory.

*/ inline DomainController& WithDomainControllerId(Aws::String&& value) { SetDomainControllerId(std::move(value)); return *this;} /** *

Identifies a specific domain controller in the directory.

*/ inline DomainController& WithDomainControllerId(const char* value) { SetDomainControllerId(value); return *this;} /** *

The IP address of the domain controller.

*/ inline const Aws::String& GetDnsIpAddr() const{ return m_dnsIpAddr; } /** *

The IP address of the domain controller.

*/ inline bool DnsIpAddrHasBeenSet() const { return m_dnsIpAddrHasBeenSet; } /** *

The IP address of the domain controller.

*/ inline void SetDnsIpAddr(const Aws::String& value) { m_dnsIpAddrHasBeenSet = true; m_dnsIpAddr = value; } /** *

The IP address of the domain controller.

*/ inline void SetDnsIpAddr(Aws::String&& value) { m_dnsIpAddrHasBeenSet = true; m_dnsIpAddr = std::move(value); } /** *

The IP address of the domain controller.

*/ inline void SetDnsIpAddr(const char* value) { m_dnsIpAddrHasBeenSet = true; m_dnsIpAddr.assign(value); } /** *

The IP address of the domain controller.

*/ inline DomainController& WithDnsIpAddr(const Aws::String& value) { SetDnsIpAddr(value); return *this;} /** *

The IP address of the domain controller.

*/ inline DomainController& WithDnsIpAddr(Aws::String&& value) { SetDnsIpAddr(std::move(value)); return *this;} /** *

The IP address of the domain controller.

*/ inline DomainController& WithDnsIpAddr(const char* value) { SetDnsIpAddr(value); return *this;} /** *

The identifier of the VPC that contains the domain controller.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The identifier of the VPC that contains the domain controller.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The identifier of the VPC that contains the domain controller.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The identifier of the VPC that contains the domain controller.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The identifier of the VPC that contains the domain controller.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The identifier of the VPC that contains the domain controller.

*/ inline DomainController& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The identifier of the VPC that contains the domain controller.

*/ inline DomainController& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The identifier of the VPC that contains the domain controller.

*/ inline DomainController& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

Identifier of the subnet in the VPC that contains the domain controller.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

Identifier of the subnet in the VPC that contains the domain controller.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

Identifier of the subnet in the VPC that contains the domain controller.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

Identifier of the subnet in the VPC that contains the domain controller.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

Identifier of the subnet in the VPC that contains the domain controller.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

Identifier of the subnet in the VPC that contains the domain controller.

*/ inline DomainController& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

Identifier of the subnet in the VPC that contains the domain controller.

*/ inline DomainController& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

Identifier of the subnet in the VPC that contains the domain controller.

*/ inline DomainController& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

The Availability Zone where the domain controller is located.

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

The Availability Zone where the domain controller is located.

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

The Availability Zone where the domain controller is located.

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

The Availability Zone where the domain controller is located.

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

The Availability Zone where the domain controller is located.

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

The Availability Zone where the domain controller is located.

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

The Availability Zone where the domain controller is located.

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

The Availability Zone where the domain controller is located.

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

The status of the domain controller.

*/ inline const DomainControllerStatus& GetStatus() const{ return m_status; } /** *

The status of the domain controller.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the domain controller.

*/ inline void SetStatus(const DomainControllerStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the domain controller.

*/ inline void SetStatus(DomainControllerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the domain controller.

*/ inline DomainController& WithStatus(const DomainControllerStatus& value) { SetStatus(value); return *this;} /** *

The status of the domain controller.

*/ inline DomainController& WithStatus(DomainControllerStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A description of the domain controller state.

*/ inline const Aws::String& GetStatusReason() const{ return m_statusReason; } /** *

A description of the domain controller state.

*/ inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; } /** *

A description of the domain controller state.

*/ inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; } /** *

A description of the domain controller state.

*/ inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); } /** *

A description of the domain controller state.

*/ inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); } /** *

A description of the domain controller state.

*/ inline DomainController& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;} /** *

A description of the domain controller state.

*/ inline DomainController& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;} /** *

A description of the domain controller state.

*/ inline DomainController& WithStatusReason(const char* value) { SetStatusReason(value); return *this;} /** *

Specifies when the domain controller was created.

*/ inline const Aws::Utils::DateTime& GetLaunchTime() const{ return m_launchTime; } /** *

Specifies when the domain controller was created.

*/ inline bool LaunchTimeHasBeenSet() const { return m_launchTimeHasBeenSet; } /** *

Specifies when the domain controller was created.

*/ inline void SetLaunchTime(const Aws::Utils::DateTime& value) { m_launchTimeHasBeenSet = true; m_launchTime = value; } /** *

Specifies when the domain controller was created.

*/ inline void SetLaunchTime(Aws::Utils::DateTime&& value) { m_launchTimeHasBeenSet = true; m_launchTime = std::move(value); } /** *

Specifies when the domain controller was created.

*/ inline DomainController& WithLaunchTime(const Aws::Utils::DateTime& value) { SetLaunchTime(value); return *this;} /** *

Specifies when the domain controller was created.

*/ inline DomainController& WithLaunchTime(Aws::Utils::DateTime&& value) { SetLaunchTime(std::move(value)); return *this;} /** *

The date and time that the status was last updated.

*/ inline const Aws::Utils::DateTime& GetStatusLastUpdatedDateTime() const{ return m_statusLastUpdatedDateTime; } /** *

The date and time that the status was last updated.

*/ inline bool StatusLastUpdatedDateTimeHasBeenSet() const { return m_statusLastUpdatedDateTimeHasBeenSet; } /** *

The date and time that the status was last updated.

*/ inline void SetStatusLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_statusLastUpdatedDateTimeHasBeenSet = true; m_statusLastUpdatedDateTime = value; } /** *

The date and time that the status was last updated.

*/ inline void SetStatusLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_statusLastUpdatedDateTimeHasBeenSet = true; m_statusLastUpdatedDateTime = std::move(value); } /** *

The date and time that the status was last updated.

*/ inline DomainController& WithStatusLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetStatusLastUpdatedDateTime(value); return *this;} /** *

The date and time that the status was last updated.

*/ inline DomainController& WithStatusLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetStatusLastUpdatedDateTime(std::move(value)); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::String m_domainControllerId; bool m_domainControllerIdHasBeenSet = false; Aws::String m_dnsIpAddr; bool m_dnsIpAddrHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::String m_subnetId; bool m_subnetIdHasBeenSet = false; Aws::String m_availabilityZone; bool m_availabilityZoneHasBeenSet = false; DomainControllerStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusReason; bool m_statusReasonHasBeenSet = false; Aws::Utils::DateTime m_launchTime; bool m_launchTimeHasBeenSet = false; Aws::Utils::DateTime m_statusLastUpdatedDateTime; bool m_statusLastUpdatedDateTimeHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws