AWS SDK for C++  1.9.153
AWS SDK for C++
ListPolicyGenerationsResult.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 AccessAnalyzer
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
41 
45  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
46 
50  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
51 
55  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
56 
60  inline ListPolicyGenerationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
61 
65  inline ListPolicyGenerationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
66 
70  inline ListPolicyGenerationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
71 
72 
77  inline const Aws::Vector<PolicyGeneration>& GetPolicyGenerations() const{ return m_policyGenerations; }
78 
83  inline void SetPolicyGenerations(const Aws::Vector<PolicyGeneration>& value) { m_policyGenerations = value; }
84 
89  inline void SetPolicyGenerations(Aws::Vector<PolicyGeneration>&& value) { m_policyGenerations = std::move(value); }
90 
95  inline ListPolicyGenerationsResult& WithPolicyGenerations(const Aws::Vector<PolicyGeneration>& value) { SetPolicyGenerations(value); return *this;}
96 
101  inline ListPolicyGenerationsResult& WithPolicyGenerations(Aws::Vector<PolicyGeneration>&& value) { SetPolicyGenerations(std::move(value)); return *this;}
102 
107  inline ListPolicyGenerationsResult& AddPolicyGenerations(const PolicyGeneration& value) { m_policyGenerations.push_back(value); return *this; }
108 
113  inline ListPolicyGenerationsResult& AddPolicyGenerations(PolicyGeneration&& value) { m_policyGenerations.push_back(std::move(value)); return *this; }
114 
115  private:
116 
117  Aws::String m_nextToken;
118 
119  Aws::Vector<PolicyGeneration> m_policyGenerations;
120  };
121 
122 } // namespace Model
123 } // namespace AccessAnalyzer
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AccessAnalyzer_EXPORTS.h
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::AddPolicyGenerations
ListPolicyGenerationsResult & AddPolicyGenerations(PolicyGeneration &&value)
Definition: ListPolicyGenerationsResult.h:113
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::SetPolicyGenerations
void SetPolicyGenerations(Aws::Vector< PolicyGeneration > &&value)
Definition: ListPolicyGenerationsResult.h:89
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::operator=
ListPolicyGenerationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::GetPolicyGenerations
const Aws::Vector< PolicyGeneration > & GetPolicyGenerations() const
Definition: ListPolicyGenerationsResult.h:77
AWSVector.h
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPolicyGenerationsResult.h:45
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPolicyGenerationsResult.h:50
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPolicyGenerationsResult.h:40
Aws::AccessAnalyzer::Model::PolicyGeneration
Definition: PolicyGeneration.h:35
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::WithNextToken
ListPolicyGenerationsResult & WithNextToken(const Aws::String &value)
Definition: ListPolicyGenerationsResult.h:60
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::WithNextToken
ListPolicyGenerationsResult & WithNextToken(Aws::String &&value)
Definition: ListPolicyGenerationsResult.h:65
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::WithPolicyGenerations
ListPolicyGenerationsResult & WithPolicyGenerations(Aws::Vector< PolicyGeneration > &&value)
Definition: ListPolicyGenerationsResult.h:101
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult
Definition: ListPolicyGenerationsResult.h:30
AWSString.h
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::SetPolicyGenerations
void SetPolicyGenerations(const Aws::Vector< PolicyGeneration > &value)
Definition: ListPolicyGenerationsResult.h:83
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPolicyGenerationsResult.h:55
PolicyGeneration.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::ListPolicyGenerationsResult
ListPolicyGenerationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::WithNextToken
ListPolicyGenerationsResult & WithNextToken(const char *value)
Definition: ListPolicyGenerationsResult.h:70
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::ListPolicyGenerationsResult
ListPolicyGenerationsResult()
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::WithPolicyGenerations
ListPolicyGenerationsResult & WithPolicyGenerations(const Aws::Vector< PolicyGeneration > &value)
Definition: ListPolicyGenerationsResult.h:95
Aws::AccessAnalyzer::Model::ListPolicyGenerationsResult::AddPolicyGenerations
ListPolicyGenerationsResult & AddPolicyGenerations(const PolicyGeneration &value)
Definition: ListPolicyGenerationsResult.h:107