AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddOnRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/model/AddOnType.h>
9#include <aws/lightsail/model/AutoSnapshotAddOnRequest.h>
10#include <aws/lightsail/model/StopInstanceOnIdleRequest.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_LIGHTSAIL_API AddOnRequest();
41 AWS_LIGHTSAIL_API AddOnRequest(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API AddOnRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const AddOnType& GetAddOnType() const{ return m_addOnType; }
51 inline bool AddOnTypeHasBeenSet() const { return m_addOnTypeHasBeenSet; }
52 inline void SetAddOnType(const AddOnType& value) { m_addOnTypeHasBeenSet = true; m_addOnType = value; }
53 inline void SetAddOnType(AddOnType&& value) { m_addOnTypeHasBeenSet = true; m_addOnType = std::move(value); }
54 inline AddOnRequest& WithAddOnType(const AddOnType& value) { SetAddOnType(value); return *this;}
55 inline AddOnRequest& WithAddOnType(AddOnType&& value) { SetAddOnType(std::move(value)); return *this;}
57
59
63 inline const AutoSnapshotAddOnRequest& GetAutoSnapshotAddOnRequest() const{ return m_autoSnapshotAddOnRequest; }
64 inline bool AutoSnapshotAddOnRequestHasBeenSet() const { return m_autoSnapshotAddOnRequestHasBeenSet; }
65 inline void SetAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest& value) { m_autoSnapshotAddOnRequestHasBeenSet = true; m_autoSnapshotAddOnRequest = value; }
66 inline void SetAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest&& value) { m_autoSnapshotAddOnRequestHasBeenSet = true; m_autoSnapshotAddOnRequest = std::move(value); }
70
72
77 inline const StopInstanceOnIdleRequest& GetStopInstanceOnIdleRequest() const{ return m_stopInstanceOnIdleRequest; }
78 inline bool StopInstanceOnIdleRequestHasBeenSet() const { return m_stopInstanceOnIdleRequestHasBeenSet; }
79 inline void SetStopInstanceOnIdleRequest(const StopInstanceOnIdleRequest& value) { m_stopInstanceOnIdleRequestHasBeenSet = true; m_stopInstanceOnIdleRequest = value; }
80 inline void SetStopInstanceOnIdleRequest(StopInstanceOnIdleRequest&& value) { m_stopInstanceOnIdleRequestHasBeenSet = true; m_stopInstanceOnIdleRequest = std::move(value); }
84 private:
85
86 AddOnType m_addOnType;
87 bool m_addOnTypeHasBeenSet = false;
88
89 AutoSnapshotAddOnRequest m_autoSnapshotAddOnRequest;
90 bool m_autoSnapshotAddOnRequestHasBeenSet = false;
91
92 StopInstanceOnIdleRequest m_stopInstanceOnIdleRequest;
93 bool m_stopInstanceOnIdleRequestHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Lightsail
98} // namespace Aws
AddOnRequest & WithAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest &&value)
void SetAddOnType(AddOnType &&value)
AWS_LIGHTSAIL_API AddOnRequest(Aws::Utils::Json::JsonView jsonValue)
void SetStopInstanceOnIdleRequest(const StopInstanceOnIdleRequest &value)
const AutoSnapshotAddOnRequest & GetAutoSnapshotAddOnRequest() const
AddOnRequest & WithStopInstanceOnIdleRequest(const StopInstanceOnIdleRequest &value)
void SetStopInstanceOnIdleRequest(StopInstanceOnIdleRequest &&value)
AddOnRequest & WithAddOnType(const AddOnType &value)
void SetAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LIGHTSAIL_API AddOnRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AddOnRequest & WithAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest &value)
const AddOnType & GetAddOnType() const
AddOnRequest & WithStopInstanceOnIdleRequest(StopInstanceOnIdleRequest &&value)
const StopInstanceOnIdleRequest & GetStopInstanceOnIdleRequest() const
void SetAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest &&value)
AddOnRequest & WithAddOnType(AddOnType &&value)
void SetAddOnType(const AddOnType &value)
Aws::Utils::Json::JsonValue JsonValue