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