AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetupHistory.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/model/SetupRequest.h>
10#include <aws/lightsail/model/SetupHistoryResource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lightsail/model/SetupStatus.h>
13#include <aws/lightsail/model/SetupExecutionDetails.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Lightsail
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_LIGHTSAIL_API SetupHistory();
41 AWS_LIGHTSAIL_API SetupHistory(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API SetupHistory& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetOperationId() const{ return m_operationId; }
51 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
52 inline void SetOperationId(const Aws::String& value) { m_operationIdHasBeenSet = true; m_operationId = value; }
53 inline void SetOperationId(Aws::String&& value) { m_operationIdHasBeenSet = true; m_operationId = std::move(value); }
54 inline void SetOperationId(const char* value) { m_operationIdHasBeenSet = true; m_operationId.assign(value); }
55 inline SetupHistory& WithOperationId(const Aws::String& value) { SetOperationId(value); return *this;}
56 inline SetupHistory& WithOperationId(Aws::String&& value) { SetOperationId(std::move(value)); return *this;}
57 inline SetupHistory& WithOperationId(const char* value) { SetOperationId(value); return *this;}
59
61
64 inline const SetupRequest& GetRequest() const{ return m_request; }
65 inline bool RequestHasBeenSet() const { return m_requestHasBeenSet; }
66 inline void SetRequest(const SetupRequest& value) { m_requestHasBeenSet = true; m_request = value; }
67 inline void SetRequest(SetupRequest&& value) { m_requestHasBeenSet = true; m_request = std::move(value); }
68 inline SetupHistory& WithRequest(const SetupRequest& value) { SetRequest(value); return *this;}
69 inline SetupHistory& WithRequest(SetupRequest&& value) { SetRequest(std::move(value)); return *this;}
71
73
76 inline const SetupHistoryResource& GetResource() const{ return m_resource; }
77 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
78 inline void SetResource(const SetupHistoryResource& value) { m_resourceHasBeenSet = true; m_resource = value; }
79 inline void SetResource(SetupHistoryResource&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
80 inline SetupHistory& WithResource(const SetupHistoryResource& value) { SetResource(value); return *this;}
81 inline SetupHistory& WithResource(SetupHistoryResource&& value) { SetResource(std::move(value)); return *this;}
83
85
88 inline const Aws::Vector<SetupExecutionDetails>& GetExecutionDetails() const{ return m_executionDetails; }
89 inline bool ExecutionDetailsHasBeenSet() const { return m_executionDetailsHasBeenSet; }
90 inline void SetExecutionDetails(const Aws::Vector<SetupExecutionDetails>& value) { m_executionDetailsHasBeenSet = true; m_executionDetails = value; }
91 inline void SetExecutionDetails(Aws::Vector<SetupExecutionDetails>&& value) { m_executionDetailsHasBeenSet = true; m_executionDetails = std::move(value); }
94 inline SetupHistory& AddExecutionDetails(const SetupExecutionDetails& value) { m_executionDetailsHasBeenSet = true; m_executionDetails.push_back(value); return *this; }
95 inline SetupHistory& AddExecutionDetails(SetupExecutionDetails&& value) { m_executionDetailsHasBeenSet = true; m_executionDetails.push_back(std::move(value)); return *this; }
97
99
102 inline const SetupStatus& GetStatus() const{ return m_status; }
103 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 inline void SetStatus(const SetupStatus& value) { m_statusHasBeenSet = true; m_status = value; }
105 inline void SetStatus(SetupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
106 inline SetupHistory& WithStatus(const SetupStatus& value) { SetStatus(value); return *this;}
107 inline SetupHistory& WithStatus(SetupStatus&& value) { SetStatus(std::move(value)); return *this;}
109 private:
110
111 Aws::String m_operationId;
112 bool m_operationIdHasBeenSet = false;
113
114 SetupRequest m_request;
115 bool m_requestHasBeenSet = false;
116
117 SetupHistoryResource m_resource;
118 bool m_resourceHasBeenSet = false;
119
120 Aws::Vector<SetupExecutionDetails> m_executionDetails;
121 bool m_executionDetailsHasBeenSet = false;
122
123 SetupStatus m_status;
124 bool m_statusHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Lightsail
129} // namespace Aws
SetupHistory & WithOperationId(Aws::String &&value)
SetupHistory & AddExecutionDetails(const SetupExecutionDetails &value)
void SetExecutionDetails(const Aws::Vector< SetupExecutionDetails > &value)
SetupHistory & AddExecutionDetails(SetupExecutionDetails &&value)
void SetOperationId(const Aws::String &value)
void SetRequest(const SetupRequest &value)
void SetExecutionDetails(Aws::Vector< SetupExecutionDetails > &&value)
SetupHistory & WithOperationId(const Aws::String &value)
SetupHistory & WithExecutionDetails(Aws::Vector< SetupExecutionDetails > &&value)
void SetResource(SetupHistoryResource &&value)
void SetRequest(SetupRequest &&value)
void SetOperationId(Aws::String &&value)
void SetResource(const SetupHistoryResource &value)
void SetStatus(SetupStatus &&value)
SetupHistory & WithStatus(SetupStatus &&value)
AWS_LIGHTSAIL_API SetupHistory(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
const SetupStatus & GetStatus() const
SetupHistory & WithExecutionDetails(const Aws::Vector< SetupExecutionDetails > &value)
AWS_LIGHTSAIL_API SetupHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
SetupHistory & WithRequest(SetupRequest &&value)
const SetupRequest & GetRequest() const
void SetStatus(const SetupStatus &value)
const Aws::Vector< SetupExecutionDetails > & GetExecutionDetails() const
const SetupHistoryResource & GetResource() const
void SetOperationId(const char *value)
const Aws::String & GetOperationId() const
SetupHistory & WithResource(const SetupHistoryResource &value)
SetupHistory & WithStatus(const SetupStatus &value)
SetupHistory & WithOperationId(const char *value)
SetupHistory & WithRequest(const SetupRequest &value)
SetupHistory & WithResource(SetupHistoryResource &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue