AWS SDK for C++  1.9.16
AWS SDK for C++
DisassociateApprovalRuleTemplateFromRepositoryRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CodeCommit
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DisassociateApprovalRuleTemplateFromRepository"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetApprovalRuleTemplateName() const{ return m_approvalRuleTemplateName; }
42 
47  inline bool ApprovalRuleTemplateNameHasBeenSet() const { return m_approvalRuleTemplateNameHasBeenSet; }
48 
53  inline void SetApprovalRuleTemplateName(const Aws::String& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = value; }
54 
59  inline void SetApprovalRuleTemplateName(Aws::String&& value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName = std::move(value); }
60 
65  inline void SetApprovalRuleTemplateName(const char* value) { m_approvalRuleTemplateNameHasBeenSet = true; m_approvalRuleTemplateName.assign(value); }
66 
71  inline DisassociateApprovalRuleTemplateFromRepositoryRequest& WithApprovalRuleTemplateName(const Aws::String& value) { SetApprovalRuleTemplateName(value); return *this;}
72 
77  inline DisassociateApprovalRuleTemplateFromRepositoryRequest& WithApprovalRuleTemplateName(Aws::String&& value) { SetApprovalRuleTemplateName(std::move(value)); return *this;}
78 
83  inline DisassociateApprovalRuleTemplateFromRepositoryRequest& WithApprovalRuleTemplateName(const char* value) { SetApprovalRuleTemplateName(value); return *this;}
84 
85 
89  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
90 
94  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
95 
99  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
100 
104  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
105 
109  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
110 
114  inline DisassociateApprovalRuleTemplateFromRepositoryRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
115 
119  inline DisassociateApprovalRuleTemplateFromRepositoryRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
120 
124  inline DisassociateApprovalRuleTemplateFromRepositoryRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
125 
126  private:
127 
128  Aws::String m_approvalRuleTemplateName;
129  bool m_approvalRuleTemplateNameHasBeenSet;
130 
131  Aws::String m_repositoryName;
132  bool m_repositoryNameHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace CodeCommit
137 } // namespace Aws
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::WithApprovalRuleTemplateName
DisassociateApprovalRuleTemplateFromRepositoryRequest & WithApprovalRuleTemplateName(const char *value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:83
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(Aws::String &&value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:59
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:22
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::WithRepositoryName
DisassociateApprovalRuleTemplateFromRepositoryRequest & WithRepositoryName(Aws::String &&value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:119
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:94
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(const char *value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:65
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::GetApprovalRuleTemplateName
const Aws::String & GetApprovalRuleTemplateName() const
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:41
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:89
CodeCommitRequest.h
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::WithRepositoryName
DisassociateApprovalRuleTemplateFromRepositoryRequest & WithRepositoryName(const char *value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:124
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:109
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:104
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::WithRepositoryName
DisassociateApprovalRuleTemplateFromRepositoryRequest & WithRepositoryName(const Aws::String &value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:114
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::ApprovalRuleTemplateNameHasBeenSet
bool ApprovalRuleTemplateNameHasBeenSet() const
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:47
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:99
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::WithApprovalRuleTemplateName
DisassociateApprovalRuleTemplateFromRepositoryRequest & WithApprovalRuleTemplateName(Aws::String &&value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::DisassociateApprovalRuleTemplateFromRepositoryRequest
DisassociateApprovalRuleTemplateFromRepositoryRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::SetApprovalRuleTemplateName
void SetApprovalRuleTemplateName(const Aws::String &value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:53
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::WithApprovalRuleTemplateName
DisassociateApprovalRuleTemplateFromRepositoryRequest & WithApprovalRuleTemplateName(const Aws::String &value)
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:71
Aws::CodeCommit::Model::DisassociateApprovalRuleTemplateFromRepositoryRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisassociateApprovalRuleTemplateFromRepositoryRequest.h:30