AWS SDK for C++  1.8.95
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:
39  AddOnRequest();
41  AddOnRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
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
bool AutoSnapshotAddOnRequestHasBeenSet() const
Definition: AddOnRequest.h:86
AddOnRequest & WithAddOnType(const AddOnType &value)
Definition: AddOnRequest.h:68
void SetAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest &&value)
Definition: AddOnRequest.h:98
AddOnRequest & WithAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest &value)
Definition: AddOnRequest.h:104
void SetAutoSnapshotAddOnRequest(const AutoSnapshotAddOnRequest &value)
Definition: AddOnRequest.h:92
void SetAddOnType(const AddOnType &value)
Definition: AddOnRequest.h:58
AddOnRequest & WithAutoSnapshotAddOnRequest(AutoSnapshotAddOnRequest &&value)
Definition: AddOnRequest.h:110
const AutoSnapshotAddOnRequest & GetAutoSnapshotAddOnRequest() const
Definition: AddOnRequest.h:80
AddOnRequest & WithAddOnType(AddOnType &&value)
Definition: AddOnRequest.h:73
const AddOnType & GetAddOnType() const
Definition: AddOnRequest.h:48
#define AWS_LIGHTSAIL_API
void SetAddOnType(AddOnType &&value)
Definition: AddOnRequest.h:63