AWS SDK for C++  1.9.19
AWS SDK for C++
ListAssociatedApprovalRuleTemplatesForRepositoryResult.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 
39  inline const Aws::Vector<Aws::String>& GetApprovalRuleTemplateNames() const{ return m_approvalRuleTemplateNames; }
40 
44  inline void SetApprovalRuleTemplateNames(const Aws::Vector<Aws::String>& value) { m_approvalRuleTemplateNames = value; }
45 
49  inline void SetApprovalRuleTemplateNames(Aws::Vector<Aws::String>&& value) { m_approvalRuleTemplateNames = std::move(value); }
50 
54  inline ListAssociatedApprovalRuleTemplatesForRepositoryResult& WithApprovalRuleTemplateNames(const Aws::Vector<Aws::String>& value) { SetApprovalRuleTemplateNames(value); return *this;}
55 
59  inline ListAssociatedApprovalRuleTemplatesForRepositoryResult& WithApprovalRuleTemplateNames(Aws::Vector<Aws::String>&& value) { SetApprovalRuleTemplateNames(std::move(value)); return *this;}
60 
64  inline ListAssociatedApprovalRuleTemplatesForRepositoryResult& AddApprovalRuleTemplateNames(const Aws::String& value) { m_approvalRuleTemplateNames.push_back(value); return *this; }
65 
69  inline ListAssociatedApprovalRuleTemplatesForRepositoryResult& AddApprovalRuleTemplateNames(Aws::String&& value) { m_approvalRuleTemplateNames.push_back(std::move(value)); return *this; }
70 
74  inline ListAssociatedApprovalRuleTemplatesForRepositoryResult& AddApprovalRuleTemplateNames(const char* value) { m_approvalRuleTemplateNames.push_back(value); return *this; }
75 
76 
81  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
82 
87  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
88 
93  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
94 
99  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
100 
105  inline ListAssociatedApprovalRuleTemplatesForRepositoryResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
106 
111  inline ListAssociatedApprovalRuleTemplatesForRepositoryResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
112 
117  inline ListAssociatedApprovalRuleTemplatesForRepositoryResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
118 
119  private:
120 
121  Aws::Vector<Aws::String> m_approvalRuleTemplateNames;
122 
123  Aws::String m_nextToken;
124  };
125 
126 } // namespace Model
127 } // namespace CodeCommit
128 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::AddApprovalRuleTemplateNames
ListAssociatedApprovalRuleTemplatesForRepositoryResult & AddApprovalRuleTemplateNames(const char *value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:74
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::WithNextToken
ListAssociatedApprovalRuleTemplatesForRepositoryResult & WithNextToken(const char *value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:117
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::ListAssociatedApprovalRuleTemplatesForRepositoryResult
ListAssociatedApprovalRuleTemplatesForRepositoryResult()
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::WithNextToken
ListAssociatedApprovalRuleTemplatesForRepositoryResult & WithNextToken(Aws::String &&value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:111
AWSVector.h
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:93
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:29
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::AddApprovalRuleTemplateNames
ListAssociatedApprovalRuleTemplatesForRepositoryResult & AddApprovalRuleTemplateNames(const Aws::String &value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:64
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:81
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::operator=
ListAssociatedApprovalRuleTemplatesForRepositoryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::SetApprovalRuleTemplateNames
void SetApprovalRuleTemplateNames(Aws::Vector< Aws::String > &&value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:49
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::WithApprovalRuleTemplateNames
ListAssociatedApprovalRuleTemplatesForRepositoryResult & WithApprovalRuleTemplateNames(const Aws::Vector< Aws::String > &value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:54
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::WithApprovalRuleTemplateNames
ListAssociatedApprovalRuleTemplatesForRepositoryResult & WithApprovalRuleTemplateNames(Aws::Vector< Aws::String > &&value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:59
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::SetApprovalRuleTemplateNames
void SetApprovalRuleTemplateNames(const Aws::Vector< Aws::String > &value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:44
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::GetApprovalRuleTemplateNames
const Aws::Vector< Aws::String > & GetApprovalRuleTemplateNames() const
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:39
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::ListAssociatedApprovalRuleTemplatesForRepositoryResult
ListAssociatedApprovalRuleTemplatesForRepositoryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::WithNextToken
ListAssociatedApprovalRuleTemplatesForRepositoryResult & WithNextToken(const Aws::String &value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:105
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:87
Aws::CodeCommit::Model::ListAssociatedApprovalRuleTemplatesForRepositoryResult::AddApprovalRuleTemplateNames
ListAssociatedApprovalRuleTemplatesForRepositoryResult & AddApprovalRuleTemplateNames(Aws::String &&value)
Definition: ListAssociatedApprovalRuleTemplatesForRepositoryResult.h:69