AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRepositoryNameRequest.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/CodeCommitRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CodeCommit
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_CODECOMMIT_API UpdateRepositoryNameRequest() = default;
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_CODECOMMIT_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetOldName() const { return m_oldName; }
46 inline bool OldNameHasBeenSet() const { return m_oldNameHasBeenSet; }
47 template<typename OldNameT = Aws::String>
48 void SetOldName(OldNameT&& value) { m_oldNameHasBeenSet = true; m_oldName = std::forward<OldNameT>(value); }
49 template<typename OldNameT = Aws::String>
50 UpdateRepositoryNameRequest& WithOldName(OldNameT&& value) { SetOldName(std::forward<OldNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetNewName() const { return m_newName; }
58 inline bool NewNameHasBeenSet() const { return m_newNameHasBeenSet; }
59 template<typename NewNameT = Aws::String>
60 void SetNewName(NewNameT&& value) { m_newNameHasBeenSet = true; m_newName = std::forward<NewNameT>(value); }
61 template<typename NewNameT = Aws::String>
62 UpdateRepositoryNameRequest& WithNewName(NewNameT&& value) { SetNewName(std::forward<NewNameT>(value)); return *this;}
64 private:
65
66 Aws::String m_oldName;
67 bool m_oldNameHasBeenSet = false;
68
69 Aws::String m_newName;
70 bool m_newNameHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace CodeCommit
75} // 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