AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateApprovalRuleTemplateNameRequest.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 "UpdateApprovalRuleTemplateName"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetOldApprovalRuleTemplateName() const{ return m_oldApprovalRuleTemplateName; }
41 
45  inline bool OldApprovalRuleTemplateNameHasBeenSet() const { return m_oldApprovalRuleTemplateNameHasBeenSet; }
46 
50  inline void SetOldApprovalRuleTemplateName(const Aws::String& value) { m_oldApprovalRuleTemplateNameHasBeenSet = true; m_oldApprovalRuleTemplateName = value; }
51 
55  inline void SetOldApprovalRuleTemplateName(Aws::String&& value) { m_oldApprovalRuleTemplateNameHasBeenSet = true; m_oldApprovalRuleTemplateName = std::move(value); }
56 
60  inline void SetOldApprovalRuleTemplateName(const char* value) { m_oldApprovalRuleTemplateNameHasBeenSet = true; m_oldApprovalRuleTemplateName.assign(value); }
61 
65  inline UpdateApprovalRuleTemplateNameRequest& WithOldApprovalRuleTemplateName(const Aws::String& value) { SetOldApprovalRuleTemplateName(value); return *this;}
66 
70  inline UpdateApprovalRuleTemplateNameRequest& WithOldApprovalRuleTemplateName(Aws::String&& value) { SetOldApprovalRuleTemplateName(std::move(value)); return *this;}
71 
75  inline UpdateApprovalRuleTemplateNameRequest& WithOldApprovalRuleTemplateName(const char* value) { SetOldApprovalRuleTemplateName(value); return *this;}
76 
77 
81  inline const Aws::String& GetNewApprovalRuleTemplateName() const{ return m_newApprovalRuleTemplateName; }
82 
86  inline bool NewApprovalRuleTemplateNameHasBeenSet() const { return m_newApprovalRuleTemplateNameHasBeenSet; }
87 
91  inline void SetNewApprovalRuleTemplateName(const Aws::String& value) { m_newApprovalRuleTemplateNameHasBeenSet = true; m_newApprovalRuleTemplateName = value; }
92 
96  inline void SetNewApprovalRuleTemplateName(Aws::String&& value) { m_newApprovalRuleTemplateNameHasBeenSet = true; m_newApprovalRuleTemplateName = std::move(value); }
97 
101  inline void SetNewApprovalRuleTemplateName(const char* value) { m_newApprovalRuleTemplateNameHasBeenSet = true; m_newApprovalRuleTemplateName.assign(value); }
102 
106  inline UpdateApprovalRuleTemplateNameRequest& WithNewApprovalRuleTemplateName(const Aws::String& value) { SetNewApprovalRuleTemplateName(value); return *this;}
107 
111  inline UpdateApprovalRuleTemplateNameRequest& WithNewApprovalRuleTemplateName(Aws::String&& value) { SetNewApprovalRuleTemplateName(std::move(value)); return *this;}
112 
116  inline UpdateApprovalRuleTemplateNameRequest& WithNewApprovalRuleTemplateName(const char* value) { SetNewApprovalRuleTemplateName(value); return *this;}
117 
118  private:
119 
120  Aws::String m_oldApprovalRuleTemplateName;
121  bool m_oldApprovalRuleTemplateNameHasBeenSet;
122 
123  Aws::String m_newApprovalRuleTemplateName;
124  bool m_newApprovalRuleTemplateNameHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace CodeCommit
129 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::WithNewApprovalRuleTemplateName
UpdateApprovalRuleTemplateNameRequest & WithNewApprovalRuleTemplateName(Aws::String &&value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:111
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::WithOldApprovalRuleTemplateName
UpdateApprovalRuleTemplateNameRequest & WithOldApprovalRuleTemplateName(Aws::String &&value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:70
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::WithOldApprovalRuleTemplateName
UpdateApprovalRuleTemplateNameRequest & WithOldApprovalRuleTemplateName(const Aws::String &value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:65
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::UpdateApprovalRuleTemplateNameRequest
UpdateApprovalRuleTemplateNameRequest()
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::SetNewApprovalRuleTemplateName
void SetNewApprovalRuleTemplateName(Aws::String &&value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:96
CodeCommitRequest.h
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::NewApprovalRuleTemplateNameHasBeenSet
bool NewApprovalRuleTemplateNameHasBeenSet() const
Definition: UpdateApprovalRuleTemplateNameRequest.h:86
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::GetNewApprovalRuleTemplateName
const Aws::String & GetNewApprovalRuleTemplateName() const
Definition: UpdateApprovalRuleTemplateNameRequest.h:81
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateApprovalRuleTemplateNameRequest.h:30
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest
Definition: UpdateApprovalRuleTemplateNameRequest.h:22
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::SetOldApprovalRuleTemplateName
void SetOldApprovalRuleTemplateName(Aws::String &&value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:55
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::GetOldApprovalRuleTemplateName
const Aws::String & GetOldApprovalRuleTemplateName() const
Definition: UpdateApprovalRuleTemplateNameRequest.h:40
AWSString.h
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::SetNewApprovalRuleTemplateName
void SetNewApprovalRuleTemplateName(const char *value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:101
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::SetOldApprovalRuleTemplateName
void SetOldApprovalRuleTemplateName(const char *value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:60
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::WithNewApprovalRuleTemplateName
UpdateApprovalRuleTemplateNameRequest & WithNewApprovalRuleTemplateName(const char *value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:116
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::WithOldApprovalRuleTemplateName
UpdateApprovalRuleTemplateNameRequest & WithOldApprovalRuleTemplateName(const char *value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::OldApprovalRuleTemplateNameHasBeenSet
bool OldApprovalRuleTemplateNameHasBeenSet() const
Definition: UpdateApprovalRuleTemplateNameRequest.h:45
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::SetNewApprovalRuleTemplateName
void SetNewApprovalRuleTemplateName(const Aws::String &value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:91
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::WithNewApprovalRuleTemplateName
UpdateApprovalRuleTemplateNameRequest & WithNewApprovalRuleTemplateName(const Aws::String &value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:106
Aws::CodeCommit::Model::UpdateApprovalRuleTemplateNameRequest::SetOldApprovalRuleTemplateName
void SetOldApprovalRuleTemplateName(const Aws::String &value)
Definition: UpdateApprovalRuleTemplateNameRequest.h:50