AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
RestoreBranchRequest.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3Request.h>
8#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AmplifyGen3 {
16namespace Model {
17
21 public:
22 AWS_AMPLIFYGEN3_API RestoreBranchRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "RestoreBranch"; }
29
30 AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetBranchArn() const { return m_branchArn; }
38 inline bool BranchArnHasBeenSet() const { return m_branchArnHasBeenSet; }
39 template <typename BranchArnT = Aws::String>
40 void SetBranchArn(BranchArnT&& value) {
41 m_branchArnHasBeenSet = true;
42 m_branchArn = std::forward<BranchArnT>(value);
43 }
44 template <typename BranchArnT = Aws::String>
45 RestoreBranchRequest& WithBranchArn(BranchArnT&& value) {
46 SetBranchArn(std::forward<BranchArnT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::Utils::DateTime& GetRestoreToTime() const { return m_restoreToTime; }
58 inline bool RestoreToTimeHasBeenSet() const { return m_restoreToTimeHasBeenSet; }
59 template <typename RestoreToTimeT = Aws::Utils::DateTime>
60 void SetRestoreToTime(RestoreToTimeT&& value) {
61 m_restoreToTimeHasBeenSet = true;
62 m_restoreToTime = std::forward<RestoreToTimeT>(value);
63 }
64 template <typename RestoreToTimeT = Aws::Utils::DateTime>
65 RestoreBranchRequest& WithRestoreToTime(RestoreToTimeT&& value) {
66 SetRestoreToTime(std::forward<RestoreToTimeT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_branchArn;
72
73 Aws::Utils::DateTime m_restoreToTime{};
74 bool m_branchArnHasBeenSet = false;
75 bool m_restoreToTimeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace AmplifyGen3
80} // namespace Aws
const Aws::Utils::DateTime & GetRestoreToTime() const
RestoreBranchRequest & WithRestoreToTime(RestoreToTimeT &&value)
AWS_AMPLIFYGEN3_API Aws::String SerializePayload() const override
AWS_AMPLIFYGEN3_API RestoreBranchRequest()=default
RestoreBranchRequest & WithBranchArn(BranchArnT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String