AWS SDK for C++  1.9.123
AWS SDK for C++
UpdateRepositoryNameRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UpdateRepositoryName"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetOldName() const{ return m_oldName; }
45 
49  inline bool OldNameHasBeenSet() const { return m_oldNameHasBeenSet; }
50 
54  inline void SetOldName(const Aws::String& value) { m_oldNameHasBeenSet = true; m_oldName = value; }
55 
59  inline void SetOldName(Aws::String&& value) { m_oldNameHasBeenSet = true; m_oldName = std::move(value); }
60 
64  inline void SetOldName(const char* value) { m_oldNameHasBeenSet = true; m_oldName.assign(value); }
65 
69  inline UpdateRepositoryNameRequest& WithOldName(const Aws::String& value) { SetOldName(value); return *this;}
70 
74  inline UpdateRepositoryNameRequest& WithOldName(Aws::String&& value) { SetOldName(std::move(value)); return *this;}
75 
79  inline UpdateRepositoryNameRequest& WithOldName(const char* value) { SetOldName(value); return *this;}
80 
81 
85  inline const Aws::String& GetNewName() const{ return m_newName; }
86 
90  inline bool NewNameHasBeenSet() const { return m_newNameHasBeenSet; }
91 
95  inline void SetNewName(const Aws::String& value) { m_newNameHasBeenSet = true; m_newName = value; }
96 
100  inline void SetNewName(Aws::String&& value) { m_newNameHasBeenSet = true; m_newName = std::move(value); }
101 
105  inline void SetNewName(const char* value) { m_newNameHasBeenSet = true; m_newName.assign(value); }
106 
110  inline UpdateRepositoryNameRequest& WithNewName(const Aws::String& value) { SetNewName(value); return *this;}
111 
115  inline UpdateRepositoryNameRequest& WithNewName(Aws::String&& value) { SetNewName(std::move(value)); return *this;}
116 
120  inline UpdateRepositoryNameRequest& WithNewName(const char* value) { SetNewName(value); return *this;}
121 
122  private:
123 
124  Aws::String m_oldName;
125  bool m_oldNameHasBeenSet;
126 
127  Aws::String m_newName;
128  bool m_newNameHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace CodeCommit
133 } // namespace Aws
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::GetNewName
const Aws::String & GetNewName() const
Definition: UpdateRepositoryNameRequest.h:85
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::SetOldName
void SetOldName(Aws::String &&value)
Definition: UpdateRepositoryNameRequest.h:59
CodeCommit_EXPORTS.h
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::NewNameHasBeenSet
bool NewNameHasBeenSet() const
Definition: UpdateRepositoryNameRequest.h:90
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::WithNewName
UpdateRepositoryNameRequest & WithNewName(const Aws::String &value)
Definition: UpdateRepositoryNameRequest.h:110
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::SetNewName
void SetNewName(const char *value)
Definition: UpdateRepositoryNameRequest.h:105
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::WithOldName
UpdateRepositoryNameRequest & WithOldName(const char *value)
Definition: UpdateRepositoryNameRequest.h:79
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::SetOldName
void SetOldName(const char *value)
Definition: UpdateRepositoryNameRequest.h:64
Aws::CodeCommit::CodeCommitRequest
Definition: CodeCommitRequest.h:17
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::SetNewName
void SetNewName(const Aws::String &value)
Definition: UpdateRepositoryNameRequest.h:95
CodeCommitRequest.h
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::GetOldName
const Aws::String & GetOldName() const
Definition: UpdateRepositoryNameRequest.h:44
Aws::CodeCommit::Model::UpdateRepositoryNameRequest
Definition: UpdateRepositoryNameRequest.h:26
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::WithOldName
UpdateRepositoryNameRequest & WithOldName(const Aws::String &value)
Definition: UpdateRepositoryNameRequest.h:69
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::WithOldName
UpdateRepositoryNameRequest & WithOldName(Aws::String &&value)
Definition: UpdateRepositoryNameRequest.h:74
AWSString.h
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::SetOldName
void SetOldName(const Aws::String &value)
Definition: UpdateRepositoryNameRequest.h:54
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::WithNewName
UpdateRepositoryNameRequest & WithNewName(Aws::String &&value)
Definition: UpdateRepositoryNameRequest.h:115
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::SetNewName
void SetNewName(Aws::String &&value)
Definition: UpdateRepositoryNameRequest.h:100
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::WithNewName
UpdateRepositoryNameRequest & WithNewName(const char *value)
Definition: UpdateRepositoryNameRequest.h:120
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::UpdateRepositoryNameRequest
UpdateRepositoryNameRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRepositoryNameRequest.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::UpdateRepositoryNameRequest::OldNameHasBeenSet
bool OldNameHasBeenSet() const
Definition: UpdateRepositoryNameRequest.h:49