AWS SDK for C++  1.9.16
AWS SDK for C++
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.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 "BatchDisassociateApprovalRuleTemplateFromRepositories"; }
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 BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& WithApprovalRuleTemplateName(const Aws::String& value) { SetApprovalRuleTemplateName(value); return *this;}
73 
78  inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& WithApprovalRuleTemplateName(Aws::String&& value) { SetApprovalRuleTemplateName(std::move(value)); return *this;}
79 
84  inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& 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 
121 
127  inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& WithRepositoryNames(Aws::Vector<Aws::String>&& value) { SetRepositoryNames(std::move(value)); return *this;}
128 
134  inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& AddRepositoryNames(const Aws::String& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(value); return *this; }
135 
141  inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& AddRepositoryNames(Aws::String&& value) { m_repositoryNamesHasBeenSet = true; m_repositoryNames.push_back(std::move(value)); return *this; }
142 
148  inline BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest& 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::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::AddRepositoryNames
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest & AddRepositoryNames(const Aws::String &value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:134
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::WithApprovalRuleTemplateName
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest & WithApprovalRuleTemplateName(const Aws::String &value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:72
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:23
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CodeCommitRequest.h
AWSVector.h
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::RepositoryNamesHasBeenSet
bool RepositoryNamesHasBeenSet() const
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:99
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::AddRepositoryNames
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest & AddRepositoryNames(Aws::String &&value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:141
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(const char *value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:66
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::GetRepositoryNames
const Aws::Vector< Aws::String > & GetRepositoryNames() const
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:92
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::WithRepositoryNames
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest & WithRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:127
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:31
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::WithApprovalRuleTemplateName
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest & WithApprovalRuleTemplateName(const char *value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:84
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::SetRepositoryNames
void SetRepositoryNames(Aws::Vector< Aws::String > &&value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:113
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::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(Aws::String &&value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:60
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::GetApprovalRuleTemplateName
const Aws::String & GetApprovalRuleTemplateName() const
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:42
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::WithRepositoryNames
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest & WithRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:120
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::SetRepositoryNames
void SetRepositoryNames(const Aws::Vector< Aws::String > &value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:106
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::ApprovalRuleTemplateNameHasBeenSet
bool ApprovalRuleTemplateNameHasBeenSet() const
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:48
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(const Aws::String &value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:54
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::AddRepositoryNames
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest & AddRepositoryNames(const char *value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:148
Aws::CodeCommit::Model::BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest::WithApprovalRuleTemplateName
BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest & WithApprovalRuleTemplateName(Aws::String &&value)
Definition: BatchDisassociateApprovalRuleTemplateFromRepositoriesRequest.h:78