AWS SDK for C++  1.9.108
AWS SDK for C++
ListWebhooksResult.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 CodePipeline
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<ListWebhookItem>& GetWebhooks() const{ return m_webhooks; }
42 
47  inline void SetWebhooks(const Aws::Vector<ListWebhookItem>& value) { m_webhooks = value; }
48 
53  inline void SetWebhooks(Aws::Vector<ListWebhookItem>&& value) { m_webhooks = std::move(value); }
54 
59  inline ListWebhooksResult& WithWebhooks(const Aws::Vector<ListWebhookItem>& value) { SetWebhooks(value); return *this;}
60 
65  inline ListWebhooksResult& WithWebhooks(Aws::Vector<ListWebhookItem>&& value) { SetWebhooks(std::move(value)); return *this;}
66 
71  inline ListWebhooksResult& AddWebhooks(const ListWebhookItem& value) { m_webhooks.push_back(value); return *this; }
72 
77  inline ListWebhooksResult& AddWebhooks(ListWebhookItem&& value) { m_webhooks.push_back(std::move(value)); return *this; }
78 
79 
85  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 
92  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
93 
99  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
100 
106  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
107 
113  inline ListWebhooksResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
114 
120  inline ListWebhooksResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
121 
127  inline ListWebhooksResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<ListWebhookItem> m_webhooks;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace CodePipeline
138 } // namespace Aws
Aws::CodePipeline::Model::ListWebhooksResult::operator=
ListWebhooksResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodePipeline::Model::ListWebhooksResult::GetWebhooks
const Aws::Vector< ListWebhookItem > & GetWebhooks() const
Definition: ListWebhooksResult.h:41
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CodePipeline::Model::ListWebhooksResult::WithWebhooks
ListWebhooksResult & WithWebhooks(const Aws::Vector< ListWebhookItem > &value)
Definition: ListWebhooksResult.h:59
AWS_CODEPIPELINE_API
#define AWS_CODEPIPELINE_API
Definition: CodePipeline_EXPORTS.h:28
ListWebhookItem.h
Aws::CodePipeline::Model::ListWebhooksResult::AddWebhooks
ListWebhooksResult & AddWebhooks(ListWebhookItem &&value)
Definition: ListWebhooksResult.h:77
Aws::CodePipeline::Model::ListWebhooksResult::WithNextToken
ListWebhooksResult & WithNextToken(Aws::String &&value)
Definition: ListWebhooksResult.h:120
Aws::CodePipeline::Model::ListWebhooksResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListWebhooksResult.h:85
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodePipeline::Model::ListWebhooksResult::WithNextToken
ListWebhooksResult & WithNextToken(const Aws::String &value)
Definition: ListWebhooksResult.h:113
Aws::CodePipeline::Model::ListWebhooksResult::ListWebhooksResult
ListWebhooksResult()
AWSVector.h
CodePipeline_EXPORTS.h
Aws::CodePipeline::Model::ListWebhooksResult
Definition: ListWebhooksResult.h:30
Aws::CodePipeline::Model::ListWebhooksResult::ListWebhooksResult
ListWebhooksResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodePipeline::Model::ListWebhooksResult::SetWebhooks
void SetWebhooks(Aws::Vector< ListWebhookItem > &&value)
Definition: ListWebhooksResult.h:53
Aws::CodePipeline::Model::ListWebhooksResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListWebhooksResult.h:99
AWSString.h
Aws::CodePipeline::Model::ListWebhooksResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListWebhooksResult.h:106
Aws::CodePipeline::Model::ListWebhooksResult::AddWebhooks
ListWebhooksResult & AddWebhooks(const ListWebhookItem &value)
Definition: ListWebhooksResult.h:71
Aws::CodePipeline::Model::ListWebhooksResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListWebhooksResult.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::CodePipeline::Model::ListWebhooksResult::WithNextToken
ListWebhooksResult & WithNextToken(const char *value)
Definition: ListWebhooksResult.h:127
Aws::CodePipeline::Model::ListWebhookItem
Definition: ListWebhookItem.h:38
Aws::CodePipeline::Model::ListWebhooksResult::WithWebhooks
ListWebhooksResult & WithWebhooks(Aws::Vector< ListWebhookItem > &&value)
Definition: ListWebhooksResult.h:65
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodePipeline::Model::ListWebhooksResult::SetWebhooks
void SetWebhooks(const Aws::Vector< ListWebhookItem > &value)
Definition: ListWebhooksResult.h:47