AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
StartCopyJobResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Backup {
24namespace Model {
26 public:
27 AWS_BACKUP_API StartCopyJobResult() = default;
30
32
35 inline const Aws::String& GetCopyJobId() const { return m_copyJobId; }
36 template <typename CopyJobIdT = Aws::String>
37 void SetCopyJobId(CopyJobIdT&& value) {
38 m_copyJobIdHasBeenSet = true;
39 m_copyJobId = std::forward<CopyJobIdT>(value);
40 }
41 template <typename CopyJobIdT = Aws::String>
42 StartCopyJobResult& WithCopyJobId(CopyJobIdT&& value) {
43 SetCopyJobId(std::forward<CopyJobIdT>(value));
44 return *this;
45 }
47
49
55 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
56 template <typename CreationDateT = Aws::Utils::DateTime>
57 void SetCreationDate(CreationDateT&& value) {
58 m_creationDateHasBeenSet = true;
59 m_creationDate = std::forward<CreationDateT>(value);
60 }
61 template <typename CreationDateT = Aws::Utils::DateTime>
62 StartCopyJobResult& WithCreationDate(CreationDateT&& value) {
63 SetCreationDate(std::forward<CreationDateT>(value));
64 return *this;
65 }
67
69
73 inline bool GetIsParent() const { return m_isParent; }
74 inline void SetIsParent(bool value) {
75 m_isParentHasBeenSet = true;
76 m_isParent = value;
77 }
78 inline StartCopyJobResult& WithIsParent(bool value) {
79 SetIsParent(value);
80 return *this;
81 }
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
93 StartCopyJobResult& WithRequestId(RequestIdT&& value) {
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
99
100 private:
101 Aws::String m_copyJobId;
102
103 Aws::Utils::DateTime m_creationDate{};
104
105 bool m_isParent{false};
106
107 Aws::String m_requestId;
108 Aws::Http::HttpResponseCode m_HttpResponseCode;
109 bool m_copyJobIdHasBeenSet = false;
110 bool m_creationDateHasBeenSet = false;
111 bool m_isParentHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Backup
117} // namespace Aws
void SetCreationDate(CreationDateT &&value)
StartCopyJobResult & WithCreationDate(CreationDateT &&value)
StartCopyJobResult & WithCopyJobId(CopyJobIdT &&value)
AWS_BACKUP_API StartCopyJobResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BACKUP_API StartCopyJobResult()=default
StartCopyJobResult & WithRequestId(RequestIdT &&value)
StartCopyJobResult & WithIsParent(bool value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::String & GetRequestId() const
AWS_BACKUP_API StartCopyJobResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetCopyJobId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue