/** * 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 QuickSight { namespace Model { /** */ class UpdateIpRestrictionRequest : public QuickSightRequest { public: AWS_QUICKSIGHT_API UpdateIpRestrictionRequest(); // 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 "UpdateIpRestriction"; } AWS_QUICKSIGHT_API Aws::String SerializePayload() const override; /** *

The ID of the Amazon Web Services account that contains the IP rules.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The ID of the Amazon Web Services account that contains the IP rules.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that contains the IP rules.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

The ID of the Amazon Web Services account that contains the IP rules.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

The ID of the Amazon Web Services account that contains the IP rules.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

The ID of the Amazon Web Services account that contains the IP rules.

*/ inline UpdateIpRestrictionRequest& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The ID of the Amazon Web Services account that contains the IP rules.

*/ inline UpdateIpRestrictionRequest& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that contains the IP rules.

*/ inline UpdateIpRestrictionRequest& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline const Aws::Map& GetIpRestrictionRuleMap() const{ return m_ipRestrictionRuleMap; } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline bool IpRestrictionRuleMapHasBeenSet() const { return m_ipRestrictionRuleMapHasBeenSet; } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline void SetIpRestrictionRuleMap(const Aws::Map& value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap = value; } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline void SetIpRestrictionRuleMap(Aws::Map&& value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap = std::move(value); } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline UpdateIpRestrictionRequest& WithIpRestrictionRuleMap(const Aws::Map& value) { SetIpRestrictionRuleMap(value); return *this;} /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline UpdateIpRestrictionRequest& WithIpRestrictionRuleMap(Aws::Map&& value) { SetIpRestrictionRuleMap(std::move(value)); return *this;} /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline UpdateIpRestrictionRequest& AddIpRestrictionRuleMap(const Aws::String& key, const Aws::String& value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap.emplace(key, value); return *this; } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline UpdateIpRestrictionRequest& AddIpRestrictionRuleMap(Aws::String&& key, const Aws::String& value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap.emplace(std::move(key), value); return *this; } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline UpdateIpRestrictionRequest& AddIpRestrictionRuleMap(const Aws::String& key, Aws::String&& value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap.emplace(key, std::move(value)); return *this; } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline UpdateIpRestrictionRequest& AddIpRestrictionRuleMap(Aws::String&& key, Aws::String&& value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap.emplace(std::move(key), std::move(value)); return *this; } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline UpdateIpRestrictionRequest& AddIpRestrictionRuleMap(const char* key, Aws::String&& value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap.emplace(key, std::move(value)); return *this; } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline UpdateIpRestrictionRequest& AddIpRestrictionRuleMap(Aws::String&& key, const char* value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap.emplace(std::move(key), value); return *this; } /** *

A map that describes the updated IP rules with CIDR ranges and * descriptions.

*/ inline UpdateIpRestrictionRequest& AddIpRestrictionRuleMap(const char* key, const char* value) { m_ipRestrictionRuleMapHasBeenSet = true; m_ipRestrictionRuleMap.emplace(key, value); return *this; } /** *

A value that specifies whether IP rules are turned on.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

A value that specifies whether IP rules are turned on.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

A value that specifies whether IP rules are turned on.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

A value that specifies whether IP rules are turned on.

*/ inline UpdateIpRestrictionRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} private: Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::Map m_ipRestrictionRuleMap; bool m_ipRestrictionRuleMapHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; }; } // namespace Model } // namespace QuickSight } // namespace Aws