/** * 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 Route53Resolver { namespace Model { /** */ class ImportFirewallDomainsRequest : public Route53ResolverRequest { public: AWS_ROUTE53RESOLVER_API ImportFirewallDomainsRequest(); // 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 "ImportFirewallDomains"; } AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override; AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the domain list that you want to modify with the import * operation.

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

The ID of the domain list that you want to modify with the import * operation.

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

The ID of the domain list that you want to modify with the import * operation.

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

The ID of the domain list that you want to modify with the import * operation.

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

The ID of the domain list that you want to modify with the import * operation.

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

The ID of the domain list that you want to modify with the import * operation.

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

The ID of the domain list that you want to modify with the import * operation.

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

The ID of the domain list that you want to modify with the import * operation.

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

What you want DNS Firewall to do with the domains that are listed in the * file. This must be set to REPLACE, which updates the domain list to * exactly match the list in the file.

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

What you want DNS Firewall to do with the domains that are listed in the * file. This must be set to REPLACE, which updates the domain list to * exactly match the list in the file.

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

What you want DNS Firewall to do with the domains that are listed in the * file. This must be set to REPLACE, which updates the domain list to * exactly match the list in the file.

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

What you want DNS Firewall to do with the domains that are listed in the * file. This must be set to REPLACE, which updates the domain list to * exactly match the list in the file.

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

What you want DNS Firewall to do with the domains that are listed in the * file. This must be set to REPLACE, which updates the domain list to * exactly match the list in the file.

*/ inline ImportFirewallDomainsRequest& WithOperation(const FirewallDomainImportOperation& value) { SetOperation(value); return *this;} /** *

What you want DNS Firewall to do with the domains that are listed in the * file. This must be set to REPLACE, which updates the domain list to * exactly match the list in the file.

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

The fully qualified URL or URI of the file stored in Amazon Simple Storage * Service (Amazon S3) that contains the list of domains to import.

The file * must be in an S3 bucket that's in the same Region as your DNS Firewall. The file * must be a text file and must contain a single domain per line.

*/ inline const Aws::String& GetDomainFileUrl() const{ return m_domainFileUrl; } /** *

The fully qualified URL or URI of the file stored in Amazon Simple Storage * Service (Amazon S3) that contains the list of domains to import.

The file * must be in an S3 bucket that's in the same Region as your DNS Firewall. The file * must be a text file and must contain a single domain per line.

*/ inline bool DomainFileUrlHasBeenSet() const { return m_domainFileUrlHasBeenSet; } /** *

The fully qualified URL or URI of the file stored in Amazon Simple Storage * Service (Amazon S3) that contains the list of domains to import.

The file * must be in an S3 bucket that's in the same Region as your DNS Firewall. The file * must be a text file and must contain a single domain per line.

*/ inline void SetDomainFileUrl(const Aws::String& value) { m_domainFileUrlHasBeenSet = true; m_domainFileUrl = value; } /** *

The fully qualified URL or URI of the file stored in Amazon Simple Storage * Service (Amazon S3) that contains the list of domains to import.

The file * must be in an S3 bucket that's in the same Region as your DNS Firewall. The file * must be a text file and must contain a single domain per line.

*/ inline void SetDomainFileUrl(Aws::String&& value) { m_domainFileUrlHasBeenSet = true; m_domainFileUrl = std::move(value); } /** *

The fully qualified URL or URI of the file stored in Amazon Simple Storage * Service (Amazon S3) that contains the list of domains to import.

The file * must be in an S3 bucket that's in the same Region as your DNS Firewall. The file * must be a text file and must contain a single domain per line.

*/ inline void SetDomainFileUrl(const char* value) { m_domainFileUrlHasBeenSet = true; m_domainFileUrl.assign(value); } /** *

The fully qualified URL or URI of the file stored in Amazon Simple Storage * Service (Amazon S3) that contains the list of domains to import.

The file * must be in an S3 bucket that's in the same Region as your DNS Firewall. The file * must be a text file and must contain a single domain per line.

*/ inline ImportFirewallDomainsRequest& WithDomainFileUrl(const Aws::String& value) { SetDomainFileUrl(value); return *this;} /** *

The fully qualified URL or URI of the file stored in Amazon Simple Storage * Service (Amazon S3) that contains the list of domains to import.

The file * must be in an S3 bucket that's in the same Region as your DNS Firewall. The file * must be a text file and must contain a single domain per line.

*/ inline ImportFirewallDomainsRequest& WithDomainFileUrl(Aws::String&& value) { SetDomainFileUrl(std::move(value)); return *this;} /** *

The fully qualified URL or URI of the file stored in Amazon Simple Storage * Service (Amazon S3) that contains the list of domains to import.

The file * must be in an S3 bucket that's in the same Region as your DNS Firewall. The file * must be a text file and must contain a single domain per line.

*/ inline ImportFirewallDomainsRequest& WithDomainFileUrl(const char* value) { SetDomainFileUrl(value); return *this;} private: Aws::String m_firewallDomainListId; bool m_firewallDomainListIdHasBeenSet = false; FirewallDomainImportOperation m_operation; bool m_operationHasBeenSet = false; Aws::String m_domainFileUrl; bool m_domainFileUrlHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws