/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Route53Resolver { namespace Model { /** */ class UpdateFirewallDomainsRequest : public Route53ResolverRequest { public: AWS_ROUTE53RESOLVER_API UpdateFirewallDomainsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateFirewallDomains"; } AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override; AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the domain list whose domains you want to update.

*/ inline const Aws::String& GetFirewallDomainListId() const{ return m_firewallDomainListId; } /** *

The ID of the domain list whose domains you want to update.

*/ inline bool FirewallDomainListIdHasBeenSet() const { return m_firewallDomainListIdHasBeenSet; } /** *

The ID of the domain list whose domains you want to update.

*/ inline void SetFirewallDomainListId(const Aws::String& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = value; } /** *

The ID of the domain list whose domains you want to update.

*/ inline void SetFirewallDomainListId(Aws::String&& value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId = std::move(value); } /** *

The ID of the domain list whose domains you want to update.

*/ inline void SetFirewallDomainListId(const char* value) { m_firewallDomainListIdHasBeenSet = true; m_firewallDomainListId.assign(value); } /** *

The ID of the domain list whose domains you want to update.

*/ inline UpdateFirewallDomainsRequest& WithFirewallDomainListId(const Aws::String& value) { SetFirewallDomainListId(value); return *this;} /** *

The ID of the domain list whose domains you want to update.

*/ inline UpdateFirewallDomainsRequest& WithFirewallDomainListId(Aws::String&& value) { SetFirewallDomainListId(std::move(value)); return *this;} /** *

The ID of the domain list whose domains you want to update.

*/ inline UpdateFirewallDomainsRequest& WithFirewallDomainListId(const char* value) { SetFirewallDomainListId(value); return *this;} /** *

What you want DNS Firewall to do with the domains that you are providing: *

  • ADD - Add the domains to the ones that are * already in the domain list.

  • REMOVE - Search the * domain list for the domains and remove them from the list.

  • * REPLACE - Update the domain list to exactly match the list that you * are providing.

*/ inline const FirewallDomainUpdateOperation& GetOperation() const{ return m_operation; } /** *

What you want DNS Firewall to do with the domains that you are providing: *

  • ADD - Add the domains to the ones that are * already in the domain list.

  • REMOVE - Search the * domain list for the domains and remove them from the list.

  • * REPLACE - Update the domain list to exactly match the list that you * are providing.

*/ inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; } /** *

What you want DNS Firewall to do with the domains that you are providing: *

  • ADD - Add the domains to the ones that are * already in the domain list.

  • REMOVE - Search the * domain list for the domains and remove them from the list.

  • * REPLACE - Update the domain list to exactly match the list that you * are providing.

*/ inline void SetOperation(const FirewallDomainUpdateOperation& value) { m_operationHasBeenSet = true; m_operation = value; } /** *

What you want DNS Firewall to do with the domains that you are providing: *

  • ADD - Add the domains to the ones that are * already in the domain list.

  • REMOVE - Search the * domain list for the domains and remove them from the list.

  • * REPLACE - Update the domain list to exactly match the list that you * are providing.

*/ inline void SetOperation(FirewallDomainUpdateOperation&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); } /** *

What you want DNS Firewall to do with the domains that you are providing: *

  • ADD - Add the domains to the ones that are * already in the domain list.

  • REMOVE - Search the * domain list for the domains and remove them from the list.

  • * REPLACE - Update the domain list to exactly match the list that you * are providing.

*/ inline UpdateFirewallDomainsRequest& WithOperation(const FirewallDomainUpdateOperation& value) { SetOperation(value); return *this;} /** *

What you want DNS Firewall to do with the domains that you are providing: *

  • ADD - Add the domains to the ones that are * already in the domain list.

  • REMOVE - Search the * domain list for the domains and remove them from the list.

  • * REPLACE - Update the domain list to exactly match the list that you * are providing.

*/ inline UpdateFirewallDomainsRequest& WithOperation(FirewallDomainUpdateOperation&& value) { SetOperation(std::move(value)); return *this;} /** *

A list of domains to use in the update operation.

There is * a limit of 1000 domains per request.

Each domain * specification in your domain list must satisfy the following requirements:

*
  • It can optionally start with * (asterisk).

  • *
  • With the exception of the optional starting asterisk, it must only * contain the following characters: A-Z, a-z, * 0-9, - (hyphen).

  • It must be from * 1-255 characters in length.

*/ inline const Aws::Vector& GetDomains() const{ return m_domains; } /** *

A list of domains to use in the update operation.

There is * a limit of 1000 domains per request.

Each domain * specification in your domain list must satisfy the following requirements:

*
  • It can optionally start with * (asterisk).

  • *
  • With the exception of the optional starting asterisk, it must only * contain the following characters: A-Z, a-z, * 0-9, - (hyphen).

  • It must be from * 1-255 characters in length.

*/ inline bool DomainsHasBeenSet() const { return m_domainsHasBeenSet; } /** *

A list of domains to use in the update operation.

There is * a limit of 1000 domains per request.

Each domain * specification in your domain list must satisfy the following requirements:

*
  • It can optionally start with * (asterisk).

  • *
  • With the exception of the optional starting asterisk, it must only * contain the following characters: A-Z, a-z, * 0-9, - (hyphen).

  • It must be from * 1-255 characters in length.

*/ inline void SetDomains(const Aws::Vector& value) { m_domainsHasBeenSet = true; m_domains = value; } /** *

A list of domains to use in the update operation.

There is * a limit of 1000 domains per request.

Each domain * specification in your domain list must satisfy the following requirements:

*
  • It can optionally start with * (asterisk).

  • *
  • With the exception of the optional starting asterisk, it must only * contain the following characters: A-Z, a-z, * 0-9, - (hyphen).

  • It must be from * 1-255 characters in length.

*/ inline void SetDomains(Aws::Vector&& value) { m_domainsHasBeenSet = true; m_domains = std::move(value); } /** *

A list of domains to use in the update operation.

There is * a limit of 1000 domains per request.

Each domain * specification in your domain list must satisfy the following requirements:

*
  • It can optionally start with * (asterisk).

  • *
  • With the exception of the optional starting asterisk, it must only * contain the following characters: A-Z, a-z, * 0-9, - (hyphen).

  • It must be from * 1-255 characters in length.

*/ inline UpdateFirewallDomainsRequest& WithDomains(const Aws::Vector& value) { SetDomains(value); return *this;} /** *

A list of domains to use in the update operation.

There is * a limit of 1000 domains per request.

Each domain * specification in your domain list must satisfy the following requirements:

*
  • It can optionally start with * (asterisk).

  • *
  • With the exception of the optional starting asterisk, it must only * contain the following characters: A-Z, a-z, * 0-9, - (hyphen).

  • It must be from * 1-255 characters in length.

*/ inline UpdateFirewallDomainsRequest& WithDomains(Aws::Vector&& value) { SetDomains(std::move(value)); return *this;} /** *

A list of domains to use in the update operation.

There is * a limit of 1000 domains per request.

Each domain * specification in your domain list must satisfy the following requirements:

*
  • It can optionally start with * (asterisk).

  • *
  • With the exception of the optional starting asterisk, it must only * contain the following characters: A-Z, a-z, * 0-9, - (hyphen).

  • It must be from * 1-255 characters in length.

*/ inline UpdateFirewallDomainsRequest& AddDomains(const Aws::String& value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; } /** *

A list of domains to use in the update operation.

There is * a limit of 1000 domains per request.

Each domain * specification in your domain list must satisfy the following requirements:

*
  • It can optionally start with * (asterisk).

  • *
  • With the exception of the optional starting asterisk, it must only * contain the following characters: A-Z, a-z, * 0-9, - (hyphen).

  • It must be from * 1-255 characters in length.

*/ inline UpdateFirewallDomainsRequest& AddDomains(Aws::String&& value) { m_domainsHasBeenSet = true; m_domains.push_back(std::move(value)); return *this; } /** *

A list of domains to use in the update operation.

There is * a limit of 1000 domains per request.

Each domain * specification in your domain list must satisfy the following requirements:

*
  • It can optionally start with * (asterisk).

  • *
  • With the exception of the optional starting asterisk, it must only * contain the following characters: A-Z, a-z, * 0-9, - (hyphen).

  • It must be from * 1-255 characters in length.

*/ inline UpdateFirewallDomainsRequest& AddDomains(const char* value) { m_domainsHasBeenSet = true; m_domains.push_back(value); return *this; } private: Aws::String m_firewallDomainListId; bool m_firewallDomainListIdHasBeenSet = false; FirewallDomainUpdateOperation m_operation; bool m_operationHasBeenSet = false; Aws::Vector m_domains; bool m_domainsHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws