/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include In the response to an AssociateResolverRule,
* DisassociateResolverRule,
* or ListResolverRuleAssociations
* request, provides information about an association between a Resolver rule and a
* VPC. The association determines which DNS queries that originate in the VPC are
* forwarded to your network. See Also:
AWS
* API Reference
The ID of the association between a Resolver rule and a VPC. Resolver assigns * this value when you submit an AssociateResolverRule * request.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the association between a Resolver rule and a VPC. Resolver assigns * this value when you submit an AssociateResolverRule * request.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the association between a Resolver rule and a VPC. Resolver assigns * this value when you submit an AssociateResolverRule * request.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the association between a Resolver rule and a VPC. Resolver assigns * this value when you submit an AssociateResolverRule * request.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the association between a Resolver rule and a VPC. Resolver assigns * this value when you submit an AssociateResolverRule * request.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the association between a Resolver rule and a VPC. Resolver assigns * this value when you submit an AssociateResolverRule * request.
*/ inline ResolverRuleAssociation& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the association between a Resolver rule and a VPC. Resolver assigns * this value when you submit an AssociateResolverRule * request.
*/ inline ResolverRuleAssociation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the association between a Resolver rule and a VPC. Resolver assigns * this value when you submit an AssociateResolverRule * request.
*/ inline ResolverRuleAssociation& WithId(const char* value) { SetId(value); return *this;} /** *The ID of the Resolver rule that you associated with the VPC that is
* specified by VPCId
.
The ID of the Resolver rule that you associated with the VPC that is
* specified by VPCId
.
The ID of the Resolver rule that you associated with the VPC that is
* specified by VPCId
.
The ID of the Resolver rule that you associated with the VPC that is
* specified by VPCId
.
The ID of the Resolver rule that you associated with the VPC that is
* specified by VPCId
.
The ID of the Resolver rule that you associated with the VPC that is
* specified by VPCId
.
The ID of the Resolver rule that you associated with the VPC that is
* specified by VPCId
.
The ID of the Resolver rule that you associated with the VPC that is
* specified by VPCId
.
The name of an association between a Resolver rule and a VPC.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of an association between a Resolver rule and a VPC.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of an association between a Resolver rule and a VPC.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of an association between a Resolver rule and a VPC.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of an association between a Resolver rule and a VPC.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of an association between a Resolver rule and a VPC.
*/ inline ResolverRuleAssociation& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of an association between a Resolver rule and a VPC.
*/ inline ResolverRuleAssociation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of an association between a Resolver rule and a VPC.
*/ inline ResolverRuleAssociation& WithName(const char* value) { SetName(value); return *this;} /** *The ID of the VPC that you associated the Resolver rule with.
*/ inline const Aws::String& GetVPCId() const{ return m_vPCId; } /** *The ID of the VPC that you associated the Resolver rule with.
*/ inline bool VPCIdHasBeenSet() const { return m_vPCIdHasBeenSet; } /** *The ID of the VPC that you associated the Resolver rule with.
*/ inline void SetVPCId(const Aws::String& value) { m_vPCIdHasBeenSet = true; m_vPCId = value; } /** *The ID of the VPC that you associated the Resolver rule with.
*/ inline void SetVPCId(Aws::String&& value) { m_vPCIdHasBeenSet = true; m_vPCId = std::move(value); } /** *The ID of the VPC that you associated the Resolver rule with.
*/ inline void SetVPCId(const char* value) { m_vPCIdHasBeenSet = true; m_vPCId.assign(value); } /** *The ID of the VPC that you associated the Resolver rule with.
*/ inline ResolverRuleAssociation& WithVPCId(const Aws::String& value) { SetVPCId(value); return *this;} /** *The ID of the VPC that you associated the Resolver rule with.
*/ inline ResolverRuleAssociation& WithVPCId(Aws::String&& value) { SetVPCId(std::move(value)); return *this;} /** *The ID of the VPC that you associated the Resolver rule with.
*/ inline ResolverRuleAssociation& WithVPCId(const char* value) { SetVPCId(value); return *this;} /** *A code that specifies the current status of the association between a * Resolver rule and a VPC.
*/ inline const ResolverRuleAssociationStatus& GetStatus() const{ return m_status; } /** *A code that specifies the current status of the association between a * Resolver rule and a VPC.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *A code that specifies the current status of the association between a * Resolver rule and a VPC.
*/ inline void SetStatus(const ResolverRuleAssociationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *A code that specifies the current status of the association between a * Resolver rule and a VPC.
*/ inline void SetStatus(ResolverRuleAssociationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *A code that specifies the current status of the association between a * Resolver rule and a VPC.
*/ inline ResolverRuleAssociation& WithStatus(const ResolverRuleAssociationStatus& value) { SetStatus(value); return *this;} /** *A code that specifies the current status of the association between a * Resolver rule and a VPC.
*/ inline ResolverRuleAssociation& WithStatus(ResolverRuleAssociationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *A detailed description of the status of the association between a Resolver * rule and a VPC.
*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *A detailed description of the status of the association between a Resolver * rule and a VPC.
*/ inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; } /** *A detailed description of the status of the association between a Resolver * rule and a VPC.
*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; } /** *A detailed description of the status of the association between a Resolver * rule and a VPC.
*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); } /** *A detailed description of the status of the association between a Resolver * rule and a VPC.
*/ inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); } /** *A detailed description of the status of the association between a Resolver * rule and a VPC.
*/ inline ResolverRuleAssociation& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *A detailed description of the status of the association between a Resolver * rule and a VPC.
*/ inline ResolverRuleAssociation& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *A detailed description of the status of the association between a Resolver * rule and a VPC.
*/ inline ResolverRuleAssociation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_resolverRuleId; bool m_resolverRuleIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_vPCId; bool m_vPCIdHasBeenSet = false; ResolverRuleAssociationStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_statusMessage; bool m_statusMessageHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws