AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnableAddOnRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/lightsail/model/AddOnRequest.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LIGHTSAIL_API EnableAddOnRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "EnableAddOn"; }
32
33 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
43 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
44 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
45 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
46 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
47 inline EnableAddOnRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
48 inline EnableAddOnRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
49 inline EnableAddOnRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
51
53
56 inline const AddOnRequest& GetAddOnRequest() const{ return m_addOnRequest; }
57 inline bool AddOnRequestHasBeenSet() const { return m_addOnRequestHasBeenSet; }
58 inline void SetAddOnRequest(const AddOnRequest& value) { m_addOnRequestHasBeenSet = true; m_addOnRequest = value; }
59 inline void SetAddOnRequest(AddOnRequest&& value) { m_addOnRequestHasBeenSet = true; m_addOnRequest = std::move(value); }
60 inline EnableAddOnRequest& WithAddOnRequest(const AddOnRequest& value) { SetAddOnRequest(value); return *this;}
61 inline EnableAddOnRequest& WithAddOnRequest(AddOnRequest&& value) { SetAddOnRequest(std::move(value)); return *this;}
63 private:
64
65 Aws::String m_resourceName;
66 bool m_resourceNameHasBeenSet = false;
67
68 AddOnRequest m_addOnRequest;
69 bool m_addOnRequestHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Lightsail
74} // namespace Aws
EnableAddOnRequest & WithResourceName(const char *value)
void SetAddOnRequest(const AddOnRequest &value)
EnableAddOnRequest & WithResourceName(Aws::String &&value)
EnableAddOnRequest & WithResourceName(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
const Aws::String & GetResourceName() const
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
EnableAddOnRequest & WithAddOnRequest(const AddOnRequest &value)
EnableAddOnRequest & WithAddOnRequest(AddOnRequest &&value)
const AddOnRequest & GetAddOnRequest() const
void SetResourceName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String