AWS SDK for C++  1.9.15
AWS SDK for C++
AddOnRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
37  {
38  public:
43 
44 
48  inline const AddOnType& GetAddOnType() const{ return m_addOnType; }
49 
53  inline bool AddOnTypeHasBeenSet() const { return m_addOnTypeHasBeenSet; }
54 
58  inline void SetAddOnType(const AddOnType& value) { m_addOnTypeHasBeenSet = true; m_addOnType = value; }
59 
63  inline void SetAddOnType(AddOnType&& value) { m_addOnTypeHasBeenSet = true; m_addOnType = std::move(value); }
64 
68  inline AddOnRequest& WithAddOnType(const AddOnType& value) { SetAddOnType(value); return *this;}
69 
73  inline AddOnRequest& WithAddOnType(AddOnType&& value) { SetAddOnType(std::move(value)); return *this;}
74 
75 
80  inline const AutoSnapshotAddOnRequest& GetAutoSnapshotAddOnRequest() const{ return m_autoSnapshotAddOnRequest; }
81 
86  inline bool AutoSnapshotAddOnRequestHasBeenSet() const { return m_autoSnapshotAddOnRequestHasBeenSet; }
87 
92  inline void SetAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest& value) { m_autoSnapshotAddOnRequestHasBeenSet = true; m_autoSnapshotAddOnRequest = value; }
93 
98  inline void SetAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest&& value) { m_autoSnapshotAddOnRequestHasBeenSet = true; m_autoSnapshotAddOnRequest = std::move(value); }
99 
104  inline AddOnRequest& WithAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest& value) { SetAutoSnapshotAddOnRequest(value); return *this;}
105 
110  inline AddOnRequest& WithAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest&& value) { SetAutoSnapshotAddOnRequest(std::move(value)); return *this;}
111 
112  private:
113 
114  AddOnType m_addOnType;
115  bool m_addOnTypeHasBeenSet;
116 
117  AutoSnapshotAddOnRequest m_autoSnapshotAddOnRequest;
118  bool m_autoSnapshotAddOnRequestHasBeenSet;
119  };
120 
121 } // namespace Model
122 } // namespace Lightsail
123 } // namespace Aws
Aws::Lightsail::Model::AddOnRequest::GetAutoSnapshotAddOnRequest
const AutoSnapshotAddOnRequest & GetAutoSnapshotAddOnRequest() const
Definition: AddOnRequest.h:80
Aws::Lightsail::Model::AddOnType
AddOnType
Definition: AddOnType.h:17
Aws::Lightsail::Model::AddOnRequest::SetAutoSnapshotAddOnRequest
void SetAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest &&value)
Definition: AddOnRequest.h:98
Aws::Lightsail::Model::AddOnRequest::WithAutoSnapshotAddOnRequest
AddOnRequest & WithAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest &&value)
Definition: AddOnRequest.h:110
Aws::Lightsail::Model::AddOnRequest::SetAddOnType
void SetAddOnType(AddOnType &&value)
Definition: AddOnRequest.h:63
Aws::Lightsail::Model::AddOnRequest::SetAutoSnapshotAddOnRequest
void SetAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest &value)
Definition: AddOnRequest.h:92
Aws::Lightsail::Model::AddOnRequest::GetAddOnType
const AddOnType & GetAddOnType() const
Definition: AddOnRequest.h:48
Aws::Lightsail::Model::AddOnRequest::WithAutoSnapshotAddOnRequest
AddOnRequest & WithAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest &value)
Definition: AddOnRequest.h:104
AutoSnapshotAddOnRequest.h
Aws::Lightsail::Model::AddOnRequest::SetAddOnType
void SetAddOnType(const AddOnType &value)
Definition: AddOnRequest.h:58
Aws::Lightsail::Model::AddOnRequest::AddOnTypeHasBeenSet
bool AddOnTypeHasBeenSet() const
Definition: AddOnRequest.h:53
Aws::Lightsail::Model::AddOnRequest::operator=
AddOnRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AddOnType.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lightsail::Model::AddOnRequest
Definition: AddOnRequest.h:37
Aws::Lightsail::Model::AddOnRequest::WithAddOnType
AddOnRequest & WithAddOnType(AddOnType &&value)
Definition: AddOnRequest.h:73
Lightsail_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::AddOnRequest::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::AddOnRequest::AddOnRequest
AddOnRequest()
Aws::Lightsail::Model::AddOnRequest::AddOnRequest
AddOnRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::AutoSnapshotAddOnRequest
Definition: AutoSnapshotAddOnRequest.h:55
Aws::Lightsail::Model::AddOnRequest::WithAddOnType
AddOnRequest & WithAddOnType(const AddOnType &value)
Definition: AddOnRequest.h:68
Aws::Lightsail::Model::AddOnRequest::AutoSnapshotAddOnRequestHasBeenSet
bool AutoSnapshotAddOnRequestHasBeenSet() const
Definition: AddOnRequest.h:86