AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
UpdateRepositoryNameRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommitRequest.h>
8#include <aws/codecommit/CodeCommit_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeCommit {
15namespace Model {
16
24 public:
25 AWS_CODECOMMIT_API UpdateRepositoryNameRequest() = default;
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 "UpdateRepositoryName"; }
32
33 AWS_CODECOMMIT_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetOldName() const { return m_oldName; }
42 inline bool OldNameHasBeenSet() const { return m_oldNameHasBeenSet; }
43 template <typename OldNameT = Aws::String>
44 void SetOldName(OldNameT&& value) {
45 m_oldNameHasBeenSet = true;
46 m_oldName = std::forward<OldNameT>(value);
47 }
48 template <typename OldNameT = Aws::String>
50 SetOldName(std::forward<OldNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetNewName() const { return m_newName; }
60 inline bool NewNameHasBeenSet() const { return m_newNameHasBeenSet; }
61 template <typename NewNameT = Aws::String>
62 void SetNewName(NewNameT&& value) {
63 m_newNameHasBeenSet = true;
64 m_newName = std::forward<NewNameT>(value);
65 }
66 template <typename NewNameT = Aws::String>
68 SetNewName(std::forward<NewNameT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_oldName;
74
75 Aws::String m_newName;
76 bool m_oldNameHasBeenSet = false;
77 bool m_newNameHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CodeCommit
82} // namespace Aws
AWS_CODECOMMIT_API Aws::String SerializePayload() const override
AWS_CODECOMMIT_API UpdateRepositoryNameRequest()=default
UpdateRepositoryNameRequest & WithNewName(NewNameT &&value)
UpdateRepositoryNameRequest & WithOldName(OldNameT &&value)
AWS_CODECOMMIT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String