AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DisableAddOnRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/AddOnType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Lightsail {
16namespace Model {
17
21 public:
22 AWS_LIGHTSAIL_API DisableAddOnRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DisableAddOn"; }
29
30 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
31
33
35
38 inline AddOnType GetAddOnType() const { return m_addOnType; }
39 inline bool AddOnTypeHasBeenSet() const { return m_addOnTypeHasBeenSet; }
40 inline void SetAddOnType(AddOnType value) {
41 m_addOnTypeHasBeenSet = true;
42 m_addOnType = value;
43 }
45 SetAddOnType(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetResourceName() const { return m_resourceName; }
55 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
56 template <typename ResourceNameT = Aws::String>
57 void SetResourceName(ResourceNameT&& value) {
58 m_resourceNameHasBeenSet = true;
59 m_resourceName = std::forward<ResourceNameT>(value);
60 }
61 template <typename ResourceNameT = Aws::String>
62 DisableAddOnRequest& WithResourceName(ResourceNameT&& value) {
63 SetResourceName(std::forward<ResourceNameT>(value));
64 return *this;
65 }
67 private:
68 AddOnType m_addOnType{AddOnType::NOT_SET};
69
70 Aws::String m_resourceName;
71 bool m_addOnTypeHasBeenSet = false;
72 bool m_resourceNameHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Lightsail
77} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
DisableAddOnRequest & WithAddOnType(AddOnType value)
AWS_LIGHTSAIL_API DisableAddOnRequest()=default
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DisableAddOnRequest & WithResourceName(ResourceNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String