AWS SDK for C++  1.9.16
AWS SDK for C++
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CodeCommit
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "BatchAssociateApprovalRuleTemplateWithRepositories"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetApprovalRuleTemplateName() const{ return m_approvalRuleTemplateName; }
43 
48  inline bool ApprovalRuleTemplateNameHasBeenSet() const { return m_approvalRuleTemplateNameHasBeenSet; }
49 
54  inline void SetApprovalRuleTemplateName(const Aws::String& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = value; }
55 
60  inline void SetApprovalRuleTemplateName(Aws::String&& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = std::move(value); }
61 
66  inline void SetApprovalRuleTemplateName(const char* value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName.assign(value); }
67 
72  inline BatchAssociateApprovalRuleTemplateWithRepositoriesRequest& WithApprovalRuleTemplateName(const Aws::String& value) { SetApprovalRuleTemplateName(value); return *this;}
73 
78  inline BatchAssociateApprovalRuleTemplateWithRepositoriesRequest& WithApprovalRuleTemplateName(Aws::String&& value) { SetApprovalRuleTemplateName(std::move(value)); return *this;}
79 
84  inline BatchAssociateApprovalRuleTemplateWithRepositoriesRequest& WithApprovalRuleTemplateName(const char* value) { SetApprovalRuleTemplateName(value); return *this;}
85 
86 
92  inline const Aws::Vector<Aws::String>& GetRepositoryNames() const{ return m_repositoryNames; }
93 
99  inline bool RepositoryNamesHasBeenSet() const { return m_repositoryNamesHasBeenSet; }
100 
106  inline void SetRepositoryNames(const Aws::Vector<Aws::String>& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = value; }
107 
113  inline void SetRepositoryNames(Aws::Vector<Aws::String>&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames = std::move(value); }
114 
120  inline BatchAssociateApprovalRuleTemplateWithRepositoriesRequest& WithRepositoryNames(const Aws::Vector<Aws::String>& value) { SetRepositoryNames(value); return *this;}
121 
127  inline BatchAssociateApprovalRuleTemplateWithRepositoriesRequest& WithRepositoryNames(Aws::Vector<Aws::String>&& value) { SetRepositoryNames(std::move(value)); return *this;}
128 
134  inline BatchAssociateApprovalRuleTemplateWithRepositoriesRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
135 
141  inline BatchAssociateApprovalRuleTemplateWithRepositoriesRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
142 
148  inline BatchAssociateApprovalRuleTemplateWithRepositoriesRequest& AddRepositoryNames(const char* value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
149 
150  private:
151 
152  Aws::String m_approvalRuleTemplateName;
153  bool m_approvalRuleTemplateNameHasBeenSet;
154 
155  Aws::Vector<Aws::String> m_repositoryNames;
156  bool m_repositoryNamesHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace CodeCommit
161 } // namespace Aws
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::ApprovalRuleTemplateNameHasBeenSet
bool ApprovalRuleTemplateNameHasBeenSet() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:48
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:23
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(Aws::String &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:60
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::AddRepositoryNames
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest & AddRepositoryNames(const Aws::String &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:134
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::WithApprovalRuleTemplateName
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest & WithApprovalRuleTemplateName(const Aws::String &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:72
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::WithRepositoryNames
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest & WithRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:120
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(const Aws::String &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:54
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::AddRepositoryNames
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest & AddRepositoryNames(const char *value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:148
CodeCommitRequest.h
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSVector.h
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(const char *value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:66
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::SetRepositoryNames
void SetRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:106
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::RepositoryNamesHasBeenSet
bool RepositoryNamesHasBeenSet() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:99
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::WithApprovalRuleTemplateName
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest & WithApprovalRuleTemplateName(Aws::String &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:78
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::AddRepositoryNames
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest & AddRepositoryNames(Aws::String &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:141
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:31
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::SetRepositoryNames
void SetRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:113
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::GetApprovalRuleTemplateName
const Aws::String & GetApprovalRuleTemplateName() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:42
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::WithRepositoryNames
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest & WithRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:127
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::GetRepositoryNames
const Aws::Vector< Aws::String > & GetRepositoryNames() const
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:92
Aws::CodeCommit::Model::BatchAssociateApprovalRuleTemplateWithRepositoriesRequest::WithApprovalRuleTemplateName
BatchAssociateApprovalRuleTemplateWithRepositoriesRequest & WithApprovalRuleTemplateName(const char *value)
Definition: BatchAssociateApprovalRuleTemplateWithRepositoriesRequest.h:84