AWS SDK for C++  1.9.22
AWS SDK for C++
EnableAddOnRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
42 
46  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
47 
51  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
52 
56  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
57 
61  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
62 
66  inline EnableAddOnRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
67 
71  inline EnableAddOnRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
72 
76  inline EnableAddOnRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
77 
78 
82  inline const AddOnRequest& GetAddOnRequest() const{ return m_addOnRequest; }
83 
87  inline bool AddOnRequestHasBeenSet() const { return m_addOnRequestHasBeenSet; }
88 
92  inline void SetAddOnRequest(const AddOnRequest& value) { m_addOnRequestHasBeenSet = true; m_addOnRequest = value; }
93 
97  inline void SetAddOnRequest(AddOnRequest&& value) { m_addOnRequestHasBeenSet = true; m_addOnRequest = std::move(value); }
98 
102  inline EnableAddOnRequest& WithAddOnRequest(const AddOnRequest& value) { SetAddOnRequest(value); return *this;}
103 
107  inline EnableAddOnRequest& WithAddOnRequest(AddOnRequest&& value) { SetAddOnRequest(std::move(value)); return *this;}
108 
109  private:
110 
111  Aws::String m_resourceName;
112  bool m_resourceNameHasBeenSet;
113 
114  AddOnRequest m_addOnRequest;
115  bool m_addOnRequestHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace Lightsail
120 } // namespace Aws
Aws::Lightsail::Model::EnableAddOnRequest::SetAddOnRequest
void SetAddOnRequest(const AddOnRequest &value)
Definition: EnableAddOnRequest.h:92
Aws::Lightsail::Model::EnableAddOnRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: EnableAddOnRequest.h:41
Aws::Lightsail::Model::EnableAddOnRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnableAddOnRequest.h:31
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::EnableAddOnRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: EnableAddOnRequest.h:56
Aws::Lightsail::Model::EnableAddOnRequest::WithResourceName
EnableAddOnRequest & WithResourceName(const Aws::String &value)
Definition: EnableAddOnRequest.h:66
AddOnRequest.h
Aws::Lightsail::Model::EnableAddOnRequest::AddOnRequestHasBeenSet
bool AddOnRequestHasBeenSet() const
Definition: EnableAddOnRequest.h:87
Aws::Lightsail::Model::EnableAddOnRequest
Definition: EnableAddOnRequest.h:23
LightsailRequest.h
Aws::Lightsail::Model::EnableAddOnRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::EnableAddOnRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::EnableAddOnRequest::WithAddOnRequest
EnableAddOnRequest & WithAddOnRequest(const AddOnRequest &value)
Definition: EnableAddOnRequest.h:102
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::EnableAddOnRequest::EnableAddOnRequest
EnableAddOnRequest()
Aws::Lightsail::Model::EnableAddOnRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: EnableAddOnRequest.h:51
AWSString.h
Aws::Lightsail::Model::EnableAddOnRequest::GetAddOnRequest
const AddOnRequest & GetAddOnRequest() const
Definition: EnableAddOnRequest.h:82
Aws::Lightsail::Model::EnableAddOnRequest::SetResourceName
void SetResourceName(const char *value)
Definition: EnableAddOnRequest.h:61
Aws::Lightsail::Model::AddOnRequest
Definition: AddOnRequest.h:37
Lightsail_EXPORTS.h
Aws::Lightsail::Model::EnableAddOnRequest::WithAddOnRequest
EnableAddOnRequest & WithAddOnRequest(AddOnRequest &&value)
Definition: EnableAddOnRequest.h:107
Aws::Lightsail::Model::EnableAddOnRequest::SetAddOnRequest
void SetAddOnRequest(AddOnRequest &&value)
Definition: EnableAddOnRequest.h:97
Aws::Lightsail::Model::EnableAddOnRequest::WithResourceName
EnableAddOnRequest & WithResourceName(const char *value)
Definition: EnableAddOnRequest.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::EnableAddOnRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: EnableAddOnRequest.h:46
Aws::Lightsail::Model::EnableAddOnRequest::WithResourceName
EnableAddOnRequest & WithResourceName(Aws::String &&value)
Definition: EnableAddOnRequest.h:71