/** * 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 { /** *

Information about an Active Directory domain membership record associated * with the DB instance.

See Also:

AWS * API Reference

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

The identifier of the Active Directory domain.

*/ inline const Aws::String& GetDomain() const{ return m_domain; } /** *

The identifier of the Active Directory domain.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The identifier of the Active Directory domain.

*/ inline void SetDomain(const Aws::String& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The identifier of the Active Directory domain.

*/ inline void SetDomain(Aws::String&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The identifier of the Active Directory domain.

*/ inline void SetDomain(const char* value) { m_domainHasBeenSet = true; m_domain.assign(value); } /** *

The identifier of the Active Directory domain.

*/ inline AwsRdsDbDomainMembership& WithDomain(const Aws::String& value) { SetDomain(value); return *this;} /** *

The identifier of the Active Directory domain.

*/ inline AwsRdsDbDomainMembership& WithDomain(Aws::String&& value) { SetDomain(std::move(value)); return *this;} /** *

The identifier of the Active Directory domain.

*/ inline AwsRdsDbDomainMembership& WithDomain(const char* value) { SetDomain(value); return *this;} /** *

The status of the Active Directory Domain membership for the DB instance.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the Active Directory Domain membership for the DB instance.

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

The status of the Active Directory Domain membership for the DB instance.

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

The status of the Active Directory Domain membership for the DB instance.

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

The status of the Active Directory Domain membership for the DB instance.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the Active Directory Domain membership for the DB instance.

*/ inline AwsRdsDbDomainMembership& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the Active Directory Domain membership for the DB instance.

*/ inline AwsRdsDbDomainMembership& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the Active Directory Domain membership for the DB instance.

*/ inline AwsRdsDbDomainMembership& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The fully qualified domain name of the Active Directory domain.

*/ inline const Aws::String& GetFqdn() const{ return m_fqdn; } /** *

The fully qualified domain name of the Active Directory domain.

*/ inline bool FqdnHasBeenSet() const { return m_fqdnHasBeenSet; } /** *

The fully qualified domain name of the Active Directory domain.

*/ inline void SetFqdn(const Aws::String& value) { m_fqdnHasBeenSet = true; m_fqdn = value; } /** *

The fully qualified domain name of the Active Directory domain.

*/ inline void SetFqdn(Aws::String&& value) { m_fqdnHasBeenSet = true; m_fqdn = std::move(value); } /** *

The fully qualified domain name of the Active Directory domain.

*/ inline void SetFqdn(const char* value) { m_fqdnHasBeenSet = true; m_fqdn.assign(value); } /** *

The fully qualified domain name of the Active Directory domain.

*/ inline AwsRdsDbDomainMembership& WithFqdn(const Aws::String& value) { SetFqdn(value); return *this;} /** *

The fully qualified domain name of the Active Directory domain.

*/ inline AwsRdsDbDomainMembership& WithFqdn(Aws::String&& value) { SetFqdn(std::move(value)); return *this;} /** *

The fully qualified domain name of the Active Directory domain.

*/ inline AwsRdsDbDomainMembership& WithFqdn(const char* value) { SetFqdn(value); return *this;} /** *

The name of the IAM role to use when making API calls to the Directory * Service.

*/ inline const Aws::String& GetIamRoleName() const{ return m_iamRoleName; } /** *

The name of the IAM role to use when making API calls to the Directory * Service.

*/ inline bool IamRoleNameHasBeenSet() const { return m_iamRoleNameHasBeenSet; } /** *

The name of the IAM role to use when making API calls to the Directory * Service.

*/ inline void SetIamRoleName(const Aws::String& value) { m_iamRoleNameHasBeenSet = true; m_iamRoleName = value; } /** *

The name of the IAM role to use when making API calls to the Directory * Service.

*/ inline void SetIamRoleName(Aws::String&& value) { m_iamRoleNameHasBeenSet = true; m_iamRoleName = std::move(value); } /** *

The name of the IAM role to use when making API calls to the Directory * Service.

*/ inline void SetIamRoleName(const char* value) { m_iamRoleNameHasBeenSet = true; m_iamRoleName.assign(value); } /** *

The name of the IAM role to use when making API calls to the Directory * Service.

*/ inline AwsRdsDbDomainMembership& WithIamRoleName(const Aws::String& value) { SetIamRoleName(value); return *this;} /** *

The name of the IAM role to use when making API calls to the Directory * Service.

*/ inline AwsRdsDbDomainMembership& WithIamRoleName(Aws::String&& value) { SetIamRoleName(std::move(value)); return *this;} /** *

The name of the IAM role to use when making API calls to the Directory * Service.

*/ inline AwsRdsDbDomainMembership& WithIamRoleName(const char* value) { SetIamRoleName(value); return *this;} private: Aws::String m_domain; bool m_domainHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::String m_fqdn; bool m_fqdnHasBeenSet = false; Aws::String m_iamRoleName; bool m_iamRoleNameHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws