AWS SDK for C++  1.9.159
AWS SDK for C++
ListArchiveRulesResult.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 {
35  {
36  public:
40 
41 
45  inline const Aws::Vector<ArchiveRuleSummary>& GetArchiveRules() const{ return m_archiveRules; }
46 
50  inline void SetArchiveRules(const Aws::Vector<ArchiveRuleSummary>& value) { m_archiveRules = value; }
51 
55  inline void SetArchiveRules(Aws::Vector<ArchiveRuleSummary>&& value) { m_archiveRules = std::move(value); }
56 
60  inline ListArchiveRulesResult& WithArchiveRules(const Aws::Vector<ArchiveRuleSummary>& value) { SetArchiveRules(value); return *this;}
61 
65  inline ListArchiveRulesResult& WithArchiveRules(Aws::Vector<ArchiveRuleSummary>&& value) { SetArchiveRules(std::move(value)); return *this;}
66 
70  inline ListArchiveRulesResult& AddArchiveRules(const ArchiveRuleSummary& value) { m_archiveRules.push_back(value); return *this; }
71 
75  inline ListArchiveRulesResult& AddArchiveRules(ArchiveRuleSummary&& value) { m_archiveRules.push_back(std::move(value)); return *this; }
76 
77 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
86  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
87 
91  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
92 
96  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
97 
101  inline ListArchiveRulesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
102 
106  inline ListArchiveRulesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
107 
111  inline ListArchiveRulesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
112 
113  private:
114 
115  Aws::Vector<ArchiveRuleSummary> m_archiveRules;
116 
117  Aws::String m_nextToken;
118  };
119 
120 } // namespace Model
121 } // namespace AccessAnalyzer
122 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AccessAnalyzer_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListArchiveRulesResult.h:86
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::WithNextToken
ListArchiveRulesResult & WithNextToken(const char *value)
Definition: ListArchiveRulesResult.h:111
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::operator=
ListArchiveRulesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSVector.h
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::WithNextToken
ListArchiveRulesResult & WithNextToken(Aws::String &&value)
Definition: ListArchiveRulesResult.h:106
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::WithArchiveRules
ListArchiveRulesResult & WithArchiveRules(Aws::Vector< ArchiveRuleSummary > &&value)
Definition: ListArchiveRulesResult.h:65
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::WithArchiveRules
ListArchiveRulesResult & WithArchiveRules(const Aws::Vector< ArchiveRuleSummary > &value)
Definition: ListArchiveRulesResult.h:60
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListArchiveRulesResult.h:96
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::ListArchiveRulesResult
ListArchiveRulesResult()
AWSString.h
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::WithNextToken
ListArchiveRulesResult & WithNextToken(const Aws::String &value)
Definition: ListArchiveRulesResult.h:101
Aws::AccessAnalyzer::Model::ArchiveRuleSummary
Definition: ArchiveRuleSummary.h:35
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListArchiveRulesResult.h:91
Aws
Definition: AccessManagementClient.h:15
AWS_ACCESSANALYZER_API
#define AWS_ACCESSANALYZER_API
Definition: AccessAnalyzer_EXPORTS.h:28
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::SetArchiveRules
void SetArchiveRules(const Aws::Vector< ArchiveRuleSummary > &value)
Definition: ListArchiveRulesResult.h:50
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ArchiveRuleSummary.h
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListArchiveRulesResult.h:81
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::SetArchiveRules
void SetArchiveRules(Aws::Vector< ArchiveRuleSummary > &&value)
Definition: ListArchiveRulesResult.h:55
Aws::AccessAnalyzer::Model::ListArchiveRulesResult
Definition: ListArchiveRulesResult.h:35
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::ListArchiveRulesResult
ListArchiveRulesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::AddArchiveRules
ListArchiveRulesResult & AddArchiveRules(const ArchiveRuleSummary &value)
Definition: ListArchiveRulesResult.h:70
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::AddArchiveRules
ListArchiveRulesResult & AddArchiveRules(ArchiveRuleSummary &&value)
Definition: ListArchiveRulesResult.h:75
Aws::AccessAnalyzer::Model::ListArchiveRulesResult::GetArchiveRules
const Aws::Vector< ArchiveRuleSummary > & GetArchiveRules() const
Definition: ListArchiveRulesResult.h:45