/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace QuickSight { namespace Model { class DescribeIpRestrictionResult { public: AWS_QUICKSIGHT_API DescribeIpRestrictionResult(); AWS_QUICKSIGHT_API DescribeIpRestrictionResult(const Aws::AmazonWebServiceResult& result); AWS_QUICKSIGHT_API DescribeIpRestrictionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetAwsAccountId(const Aws::String& value) { m_awsAccountId = value; } /** *

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

*/ inline void SetAwsAccountId(Aws::String&& value) { 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_awsAccountId.assign(value); } /** *

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

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

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

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

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

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

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

A map that describes the IP rules with CIDR range and description.

*/ inline DescribeIpRestrictionResult& AddIpRestrictionRuleMap(const char* key, const char* value) { 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 void SetEnabled(bool value) { m_enabled = value; } /** *

A value that specifies whether IP rules are turned on.

*/ inline DescribeIpRestrictionResult& WithEnabled(bool value) { SetEnabled(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeIpRestrictionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeIpRestrictionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeIpRestrictionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The HTTP status of the request.

*/ inline int GetStatus() const{ return m_status; } /** *

The HTTP status of the request.

*/ inline void SetStatus(int value) { m_status = value; } /** *

The HTTP status of the request.

*/ inline DescribeIpRestrictionResult& WithStatus(int value) { SetStatus(value); return *this;} private: Aws::String m_awsAccountId; Aws::Map m_ipRestrictionRuleMap; bool m_enabled; Aws::String m_requestId; int m_status; }; } // namespace Model } // namespace QuickSight } // namespace Aws