AWS SDK for C++  1.9.175
AWS SDK for C++
ListResolverRulesResult.h
Go to the documentation of this file.
1 
6 #pragma once
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 {
30  {
31  public:
35 
36 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
51  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
52 
59  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
60 
67  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
68 
75  inline ListResolverRulesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
76 
83  inline ListResolverRulesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
84 
91  inline ListResolverRulesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
92 
93 
97  inline int GetMaxResults() const{ return m_maxResults; }
98 
102  inline void SetMaxResults(int value) { m_maxResults = value; }
103 
107  inline ListResolverRulesResult& WithMaxResults(int value) { SetMaxResults(value); return *this;}
108 
109 
114  inline const Aws::Vector<ResolverRule>& GetResolverRules() const{ return m_resolverRules; }
115 
120  inline void SetResolverRules(const Aws::Vector<ResolverRule>& value) { m_resolverRules = value; }
121 
126  inline void SetResolverRules(Aws::Vector<ResolverRule>&& value) { m_resolverRules = std::move(value); }
127 
132  inline ListResolverRulesResult& WithResolverRules(const Aws::Vector<ResolverRule>& value) { SetResolverRules(value); return *this;}
133 
138  inline ListResolverRulesResult& WithResolverRules(Aws::Vector<ResolverRule>&& value) { SetResolverRules(std::move(value)); return *this;}
139 
144  inline ListResolverRulesResult& AddResolverRules(const ResolverRule& value) { m_resolverRules.push_back(value); return *this; }
145 
150  inline ListResolverRulesResult& AddResolverRules(ResolverRule&& value) { m_resolverRules.push_back(std::move(value)); return *this; }
151 
152  private:
153 
154  Aws::String m_nextToken;
155 
156  int m_maxResults;
157 
158  Aws::Vector<ResolverRule> m_resolverRules;
159  };
160 
161 } // namespace Model
162 } // namespace Route53Resolver
163 } // namespace Aws
ResolverRule.h
Aws::Route53Resolver::Model::ListResolverRulesResult::GetResolverRules
const Aws::Vector< ResolverRule > & GetResolverRules() const
Definition: ListResolverRulesResult.h:114
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Route53Resolver::Model::ListResolverRulesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListResolverRulesResult.h:51
Route53Resolver_EXPORTS.h
Aws::Route53Resolver::Model::ListResolverRulesResult::WithResolverRules
ListResolverRulesResult & WithResolverRules(Aws::Vector< ResolverRule > &&value)
Definition: ListResolverRulesResult.h:138
Aws::Route53Resolver::Model::ListResolverRulesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListResolverRulesResult.h:59
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Route53Resolver::Model::ListResolverRulesResult::ListResolverRulesResult
ListResolverRulesResult()
AWSVector.h
Aws::Route53Resolver::Model::ListResolverRulesResult::WithNextToken
ListResolverRulesResult & WithNextToken(const char *value)
Definition: ListResolverRulesResult.h:91
Aws::Route53Resolver::Model::ListResolverRulesResult::WithNextToken
ListResolverRulesResult & WithNextToken(const Aws::String &value)
Definition: ListResolverRulesResult.h:75
Aws::Route53Resolver::Model::ListResolverRulesResult::AddResolverRules
ListResolverRulesResult & AddResolverRules(ResolverRule &&value)
Definition: ListResolverRulesResult.h:150
Aws::Route53Resolver::Model::ListResolverRulesResult::AddResolverRules
ListResolverRulesResult & AddResolverRules(const ResolverRule &value)
Definition: ListResolverRulesResult.h:144
AWS_ROUTE53RESOLVER_API
#define AWS_ROUTE53RESOLVER_API
Definition: Route53Resolver_EXPORTS.h:28
Aws::Route53Resolver::Model::ListResolverRulesResult
Definition: ListResolverRulesResult.h:30
AWSString.h
Aws::Route53Resolver::Model::ListResolverRulesResult::SetResolverRules
void SetResolverRules(Aws::Vector< ResolverRule > &&value)
Definition: ListResolverRulesResult.h:126
Aws::Route53Resolver::Model::ListResolverRulesResult::WithResolverRules
ListResolverRulesResult & WithResolverRules(const Aws::Vector< ResolverRule > &value)
Definition: ListResolverRulesResult.h:132
Aws::Route53Resolver::Model::ListResolverRulesResult::operator=
ListResolverRulesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Route53Resolver::Model::ListResolverRulesResult::WithNextToken
ListResolverRulesResult & WithNextToken(Aws::String &&value)
Definition: ListResolverRulesResult.h:83
Aws::Route53Resolver::Model::ResolverRule
Definition: ResolverRule.h:49
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Route53Resolver::Model::ListResolverRulesResult::ListResolverRulesResult
ListResolverRulesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Route53Resolver::Model::ListResolverRulesResult::WithMaxResults
ListResolverRulesResult & WithMaxResults(int value)
Definition: ListResolverRulesResult.h:107
Aws::Route53Resolver::Model::ListResolverRulesResult::SetResolverRules
void SetResolverRules(const Aws::Vector< ResolverRule > &value)
Definition: ListResolverRulesResult.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Route53Resolver::Model::ListResolverRulesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListResolverRulesResult.h:67
Aws::Route53Resolver::Model::ListResolverRulesResult::SetMaxResults
void SetMaxResults(int value)
Definition: ListResolverRulesResult.h:102
Aws::Route53Resolver::Model::ListResolverRulesResult::GetMaxResults
int GetMaxResults() const
Definition: ListResolverRulesResult.h:97
Aws::Route53Resolver::Model::ListResolverRulesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListResolverRulesResult.h:43