1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/route53resolver/Route53Resolver_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/core/utils/memory/stl/AWSVector.h> 10 #include <aws/route53resolver/model/FirewallRuleGroupMetadata.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace Route53Resolver 26 { 27 namespace Model 28 { 29 class AWS_ROUTE53RESOLVER_API ListFirewallRuleGroupsResult 30 { 31 public: 32 ListFirewallRuleGroupsResult(); 33 ListFirewallRuleGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 ListFirewallRuleGroupsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>If objects are still available for retrieval, Resolver returns this token in 39 * the response. To retrieve the next batch of objects, provide this token in your 40 * next request.</p> 41 */ GetNextToken()42 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 43 44 /** 45 * <p>If objects are still available for retrieval, Resolver returns this token in 46 * the response. To retrieve the next batch of objects, provide this token in your 47 * next request.</p> 48 */ SetNextToken(const Aws::String & value)49 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } 50 51 /** 52 * <p>If objects are still available for retrieval, Resolver returns this token in 53 * the response. To retrieve the next batch of objects, provide this token in your 54 * next request.</p> 55 */ SetNextToken(Aws::String && value)56 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } 57 58 /** 59 * <p>If objects are still available for retrieval, Resolver returns this token in 60 * the response. To retrieve the next batch of objects, provide this token in your 61 * next request.</p> 62 */ SetNextToken(const char * value)63 inline void SetNextToken(const char* value) { m_nextToken.assign(value); } 64 65 /** 66 * <p>If objects are still available for retrieval, Resolver returns this token in 67 * the response. To retrieve the next batch of objects, provide this token in your 68 * next request.</p> 69 */ WithNextToken(const Aws::String & value)70 inline ListFirewallRuleGroupsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 71 72 /** 73 * <p>If objects are still available for retrieval, Resolver returns this token in 74 * the response. To retrieve the next batch of objects, provide this token in your 75 * next request.</p> 76 */ WithNextToken(Aws::String && value)77 inline ListFirewallRuleGroupsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 78 79 /** 80 * <p>If objects are still available for retrieval, Resolver returns this token in 81 * the response. To retrieve the next batch of objects, provide this token in your 82 * next request.</p> 83 */ WithNextToken(const char * value)84 inline ListFirewallRuleGroupsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} 85 86 87 /** 88 * <p>A list of your firewall rule groups.</p> <p>This might be a partial list of 89 * the rule groups that you have defined. For information, see 90 * <code>MaxResults</code>. </p> 91 */ GetFirewallRuleGroups()92 inline const Aws::Vector<FirewallRuleGroupMetadata>& GetFirewallRuleGroups() const{ return m_firewallRuleGroups; } 93 94 /** 95 * <p>A list of your firewall rule groups.</p> <p>This might be a partial list of 96 * the rule groups that you have defined. For information, see 97 * <code>MaxResults</code>. </p> 98 */ SetFirewallRuleGroups(const Aws::Vector<FirewallRuleGroupMetadata> & value)99 inline void SetFirewallRuleGroups(const Aws::Vector<FirewallRuleGroupMetadata>& value) { m_firewallRuleGroups = value; } 100 101 /** 102 * <p>A list of your firewall rule groups.</p> <p>This might be a partial list of 103 * the rule groups that you have defined. For information, see 104 * <code>MaxResults</code>. </p> 105 */ SetFirewallRuleGroups(Aws::Vector<FirewallRuleGroupMetadata> && value)106 inline void SetFirewallRuleGroups(Aws::Vector<FirewallRuleGroupMetadata>&& value) { m_firewallRuleGroups = std::move(value); } 107 108 /** 109 * <p>A list of your firewall rule groups.</p> <p>This might be a partial list of 110 * the rule groups that you have defined. For information, see 111 * <code>MaxResults</code>. </p> 112 */ WithFirewallRuleGroups(const Aws::Vector<FirewallRuleGroupMetadata> & value)113 inline ListFirewallRuleGroupsResult& WithFirewallRuleGroups(const Aws::Vector<FirewallRuleGroupMetadata>& value) { SetFirewallRuleGroups(value); return *this;} 114 115 /** 116 * <p>A list of your firewall rule groups.</p> <p>This might be a partial list of 117 * the rule groups that you have defined. For information, see 118 * <code>MaxResults</code>. </p> 119 */ WithFirewallRuleGroups(Aws::Vector<FirewallRuleGroupMetadata> && value)120 inline ListFirewallRuleGroupsResult& WithFirewallRuleGroups(Aws::Vector<FirewallRuleGroupMetadata>&& value) { SetFirewallRuleGroups(std::move(value)); return *this;} 121 122 /** 123 * <p>A list of your firewall rule groups.</p> <p>This might be a partial list of 124 * the rule groups that you have defined. For information, see 125 * <code>MaxResults</code>. </p> 126 */ AddFirewallRuleGroups(const FirewallRuleGroupMetadata & value)127 inline ListFirewallRuleGroupsResult& AddFirewallRuleGroups(const FirewallRuleGroupMetadata& value) { m_firewallRuleGroups.push_back(value); return *this; } 128 129 /** 130 * <p>A list of your firewall rule groups.</p> <p>This might be a partial list of 131 * the rule groups that you have defined. For information, see 132 * <code>MaxResults</code>. </p> 133 */ AddFirewallRuleGroups(FirewallRuleGroupMetadata && value)134 inline ListFirewallRuleGroupsResult& AddFirewallRuleGroups(FirewallRuleGroupMetadata&& value) { m_firewallRuleGroups.push_back(std::move(value)); return *this; } 135 136 private: 137 138 Aws::String m_nextToken; 139 140 Aws::Vector<FirewallRuleGroupMetadata> m_firewallRuleGroups; 141 }; 142 143 } // namespace Model 144 } // namespace Route53Resolver 145 } // namespace Aws 146