AWS SDK for C++  1.8.152
AWS SDK for C++
ListApprovalRuleTemplatesResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace CodeCommit
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
40  inline const Aws::Vector<Aws::String>& GetApprovalRuleTemplateNames() const{ return m_approvalRuleTemplateNames; }
41 
46  inline void SetApprovalRuleTemplateNames(const Aws::Vector<Aws::String>& value) { m_approvalRuleTemplateNames = value; }
47 
52  inline void SetApprovalRuleTemplateNames(Aws::Vector<Aws::String>&& value) { m_approvalRuleTemplateNames = std::move(value); }
53 
58  inline ListApprovalRuleTemplatesResult& WithApprovalRuleTemplateNames(const Aws::Vector<Aws::String>& value) { SetApprovalRuleTemplateNames(value); return *this;}
59 
64  inline ListApprovalRuleTemplatesResult& WithApprovalRuleTemplateNames(Aws::Vector<Aws::String>&& value) { SetApprovalRuleTemplateNames(std::move(value)); return *this;}
65 
70  inline ListApprovalRuleTemplatesResult& AddApprovalRuleTemplateNames(const Aws::String& value) { m_approvalRuleTemplateNames.push_back(value); return *this; }
71 
76  inline ListApprovalRuleTemplatesResult& AddApprovalRuleTemplateNames(Aws::String&& value) { m_approvalRuleTemplateNames.push_back(std::move(value)); return *this; }
77 
82  inline ListApprovalRuleTemplatesResult& AddApprovalRuleTemplateNames(const char* value) { m_approvalRuleTemplateNames.push_back(value); return *this; }
83 
84 
89  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
90 
95  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
96 
101  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
102 
107  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
108 
113  inline ListApprovalRuleTemplatesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
114 
119  inline ListApprovalRuleTemplatesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
120 
125  inline ListApprovalRuleTemplatesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
126 
127  private:
128 
129  Aws::Vector<Aws::String> m_approvalRuleTemplateNames;
130 
131  Aws::String m_nextToken;
132  };
133 
134 } // namespace Model
135 } // namespace CodeCommit
136 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::operator=
ListApprovalRuleTemplatesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::WithNextToken
ListApprovalRuleTemplatesResult & WithNextToken(Aws::String &&value)
Definition: ListApprovalRuleTemplatesResult.h:119
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::SetApprovalRuleTemplateNames
void SetApprovalRuleTemplateNames(Aws::Vector< Aws::String > &&value)
Definition: ListApprovalRuleTemplatesResult.h:52
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::AddApprovalRuleTemplateNames
ListApprovalRuleTemplatesResult & AddApprovalRuleTemplateNames(Aws::String &&value)
Definition: ListApprovalRuleTemplatesResult.h:76
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult
Definition: ListApprovalRuleTemplatesResult.h:29
AWSVector.h
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::ListApprovalRuleTemplatesResult
ListApprovalRuleTemplatesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::GetApprovalRuleTemplateNames
const Aws::Vector< Aws::String > & GetApprovalRuleTemplateNames() const
Definition: ListApprovalRuleTemplatesResult.h:40
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::AddApprovalRuleTemplateNames
ListApprovalRuleTemplatesResult & AddApprovalRuleTemplateNames(const Aws::String &value)
Definition: ListApprovalRuleTemplatesResult.h:70
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::WithNextToken
ListApprovalRuleTemplatesResult & WithNextToken(const char *value)
Definition: ListApprovalRuleTemplatesResult.h:125
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::AddApprovalRuleTemplateNames
ListApprovalRuleTemplatesResult & AddApprovalRuleTemplateNames(const char *value)
Definition: ListApprovalRuleTemplatesResult.h:82
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::WithApprovalRuleTemplateNames
ListApprovalRuleTemplatesResult & WithApprovalRuleTemplateNames(Aws::Vector< Aws::String > &&value)
Definition: ListApprovalRuleTemplatesResult.h:64
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::WithApprovalRuleTemplateNames
ListApprovalRuleTemplatesResult & WithApprovalRuleTemplateNames(const Aws::Vector< Aws::String > &value)
Definition: ListApprovalRuleTemplatesResult.h:58
AWSString.h
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::ListApprovalRuleTemplatesResult
ListApprovalRuleTemplatesResult()
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListApprovalRuleTemplatesResult.h:95
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListApprovalRuleTemplatesResult.h:89
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListApprovalRuleTemplatesResult.h:107
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::WithNextToken
ListApprovalRuleTemplatesResult & WithNextToken(const Aws::String &value)
Definition: ListApprovalRuleTemplatesResult.h:113
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListApprovalRuleTemplatesResult.h:101
Aws::CodeCommit::Model::ListApprovalRuleTemplatesResult::SetApprovalRuleTemplateNames
void SetApprovalRuleTemplateNames(const Aws::Vector< Aws::String > &value)
Definition: ListApprovalRuleTemplatesResult.h:46