/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace NetworkFirewall { namespace Model { /** */ class CreateFirewallPolicyRequest : public NetworkFirewallRequest { public: AWS_NETWORKFIREWALL_API CreateFirewallPolicyRequest(); // 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 "CreateFirewallPolicy"; } AWS_NETWORKFIREWALL_API Aws::String SerializePayload() const override; AWS_NETWORKFIREWALL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The descriptive name of the firewall policy. You can't change the name of a * firewall policy after you create it.

*/ inline const Aws::String& GetFirewallPolicyName() const{ return m_firewallPolicyName; } /** *

The descriptive name of the firewall policy. You can't change the name of a * firewall policy after you create it.

*/ inline bool FirewallPolicyNameHasBeenSet() const { return m_firewallPolicyNameHasBeenSet; } /** *

The descriptive name of the firewall policy. You can't change the name of a * firewall policy after you create it.

*/ inline void SetFirewallPolicyName(const Aws::String& value) { m_firewallPolicyNameHasBeenSet = true; m_firewallPolicyName = value; } /** *

The descriptive name of the firewall policy. You can't change the name of a * firewall policy after you create it.

*/ inline void SetFirewallPolicyName(Aws::String&& value) { m_firewallPolicyNameHasBeenSet = true; m_firewallPolicyName = std::move(value); } /** *

The descriptive name of the firewall policy. You can't change the name of a * firewall policy after you create it.

*/ inline void SetFirewallPolicyName(const char* value) { m_firewallPolicyNameHasBeenSet = true; m_firewallPolicyName.assign(value); } /** *

The descriptive name of the firewall policy. You can't change the name of a * firewall policy after you create it.

*/ inline CreateFirewallPolicyRequest& WithFirewallPolicyName(const Aws::String& value) { SetFirewallPolicyName(value); return *this;} /** *

The descriptive name of the firewall policy. You can't change the name of a * firewall policy after you create it.

*/ inline CreateFirewallPolicyRequest& WithFirewallPolicyName(Aws::String&& value) { SetFirewallPolicyName(std::move(value)); return *this;} /** *

The descriptive name of the firewall policy. You can't change the name of a * firewall policy after you create it.

*/ inline CreateFirewallPolicyRequest& WithFirewallPolicyName(const char* value) { SetFirewallPolicyName(value); return *this;} /** *

The rule groups and policy actions to use in the firewall policy.

*/ inline const FirewallPolicy& GetFirewallPolicy() const{ return m_firewallPolicy; } /** *

The rule groups and policy actions to use in the firewall policy.

*/ inline bool FirewallPolicyHasBeenSet() const { return m_firewallPolicyHasBeenSet; } /** *

The rule groups and policy actions to use in the firewall policy.

*/ inline void SetFirewallPolicy(const FirewallPolicy& value) { m_firewallPolicyHasBeenSet = true; m_firewallPolicy = value; } /** *

The rule groups and policy actions to use in the firewall policy.

*/ inline void SetFirewallPolicy(FirewallPolicy&& value) { m_firewallPolicyHasBeenSet = true; m_firewallPolicy = std::move(value); } /** *

The rule groups and policy actions to use in the firewall policy.

*/ inline CreateFirewallPolicyRequest& WithFirewallPolicy(const FirewallPolicy& value) { SetFirewallPolicy(value); return *this;} /** *

The rule groups and policy actions to use in the firewall policy.

*/ inline CreateFirewallPolicyRequest& WithFirewallPolicy(FirewallPolicy&& value) { SetFirewallPolicy(std::move(value)); return *this;} /** *

A description of the firewall policy.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the firewall policy.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the firewall policy.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the firewall policy.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the firewall policy.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the firewall policy.

*/ inline CreateFirewallPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the firewall policy.

*/ inline CreateFirewallPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the firewall policy.

*/ inline CreateFirewallPolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The key:value pairs to associate with the resource.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The key:value pairs to associate with the resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The key:value pairs to associate with the resource.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The key:value pairs to associate with the resource.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The key:value pairs to associate with the resource.

*/ inline CreateFirewallPolicyRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The key:value pairs to associate with the resource.

*/ inline CreateFirewallPolicyRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The key:value pairs to associate with the resource.

*/ inline CreateFirewallPolicyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The key:value pairs to associate with the resource.

*/ inline CreateFirewallPolicyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Indicates whether you want Network Firewall to just check the validity of the * request, rather than run the request.

If set to TRUE, * Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request * would return if you ran it with dry run set to FALSE, but doesn't * make additions or changes to your resources. This option allows you to make sure * that you have the required permissions to run the request and that your request * parameters are valid.

If set to FALSE, Network Firewall * makes the requested changes to your resources.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Indicates whether you want Network Firewall to just check the validity of the * request, rather than run the request.

If set to TRUE, * Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request * would return if you ran it with dry run set to FALSE, but doesn't * make additions or changes to your resources. This option allows you to make sure * that you have the required permissions to run the request and that your request * parameters are valid.

If set to FALSE, Network Firewall * makes the requested changes to your resources.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Indicates whether you want Network Firewall to just check the validity of the * request, rather than run the request.

If set to TRUE, * Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request * would return if you ran it with dry run set to FALSE, but doesn't * make additions or changes to your resources. This option allows you to make sure * that you have the required permissions to run the request and that your request * parameters are valid.

If set to FALSE, Network Firewall * makes the requested changes to your resources.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Indicates whether you want Network Firewall to just check the validity of the * request, rather than run the request.

If set to TRUE, * Network Firewall checks whether the request can run successfully, but doesn't * actually make the requested changes. The call returns the value that the request * would return if you ran it with dry run set to FALSE, but doesn't * make additions or changes to your resources. This option allows you to make sure * that you have the required permissions to run the request and that your request * parameters are valid.

If set to FALSE, Network Firewall * makes the requested changes to your resources.

*/ inline CreateFirewallPolicyRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

A complex type that contains settings for encryption of your firewall policy * resources.

*/ inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; } /** *

A complex type that contains settings for encryption of your firewall policy * resources.

*/ inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; } /** *

A complex type that contains settings for encryption of your firewall policy * resources.

*/ inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; } /** *

A complex type that contains settings for encryption of your firewall policy * resources.

*/ inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); } /** *

A complex type that contains settings for encryption of your firewall policy * resources.

*/ inline CreateFirewallPolicyRequest& WithEncryptionConfiguration(const EncryptionConfiguration& value) { SetEncryptionConfiguration(value); return *this;} /** *

A complex type that contains settings for encryption of your firewall policy * resources.

*/ inline CreateFirewallPolicyRequest& WithEncryptionConfiguration(EncryptionConfiguration&& value) { SetEncryptionConfiguration(std::move(value)); return *this;} private: Aws::String m_firewallPolicyName; bool m_firewallPolicyNameHasBeenSet = false; FirewallPolicy m_firewallPolicy; bool m_firewallPolicyHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; EncryptionConfiguration m_encryptionConfiguration; bool m_encryptionConfigurationHasBeenSet = false; }; } // namespace Model } // namespace NetworkFirewall } // namespace Aws