AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
RestoreSourceBranch.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AmplifyGen3 {
21namespace Model {
22
30 public:
31 AWS_AMPLIFYGEN3_API RestoreSourceBranch() = default;
32 AWS_AMPLIFYGEN3_API RestoreSourceBranch(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBranchName() const { return m_branchName; }
41 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
42 template <typename BranchNameT = Aws::String>
43 void SetBranchName(BranchNameT&& value) {
44 m_branchNameHasBeenSet = true;
45 m_branchName = std::forward<BranchNameT>(value);
46 }
47 template <typename BranchNameT = Aws::String>
48 RestoreSourceBranch& WithBranchName(BranchNameT&& value) {
49 SetBranchName(std::forward<BranchNameT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetBranchArn() const { return m_branchArn; }
60 inline bool BranchArnHasBeenSet() const { return m_branchArnHasBeenSet; }
61 template <typename BranchArnT = Aws::String>
62 void SetBranchArn(BranchArnT&& value) {
63 m_branchArnHasBeenSet = true;
64 m_branchArn = std::forward<BranchArnT>(value);
65 }
66 template <typename BranchArnT = Aws::String>
67 RestoreSourceBranch& WithBranchArn(BranchArnT&& value) {
68 SetBranchArn(std::forward<BranchArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetRestoreToTime() const { return m_restoreToTime; }
78 inline bool RestoreToTimeHasBeenSet() const { return m_restoreToTimeHasBeenSet; }
79 template <typename RestoreToTimeT = Aws::Utils::DateTime>
80 void SetRestoreToTime(RestoreToTimeT&& value) {
81 m_restoreToTimeHasBeenSet = true;
82 m_restoreToTime = std::forward<RestoreToTimeT>(value);
83 }
84 template <typename RestoreToTimeT = Aws::Utils::DateTime>
85 RestoreSourceBranch& WithRestoreToTime(RestoreToTimeT&& value) {
86 SetRestoreToTime(std::forward<RestoreToTimeT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_branchName;
92
93 Aws::String m_branchArn;
94
95 Aws::Utils::DateTime m_restoreToTime{};
96 bool m_branchNameHasBeenSet = false;
97 bool m_branchArnHasBeenSet = false;
98 bool m_restoreToTimeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace AmplifyGen3
103} // namespace Aws
RestoreSourceBranch & WithBranchArn(BranchArnT &&value)
RestoreSourceBranch & WithRestoreToTime(RestoreToTimeT &&value)
AWS_AMPLIFYGEN3_API RestoreSourceBranch(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetRestoreToTime() const
AWS_AMPLIFYGEN3_API RestoreSourceBranch & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYGEN3_API RestoreSourceBranch()=default
RestoreSourceBranch & WithBranchName(BranchNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue