AWS SDK for C++  1.9.103
AWS SDK for C++
DisableAddOnRequest.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 "DisableAddOn"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const AddOnType& GetAddOnType() const{ return m_addOnType; }
42 
46  inline bool AddOnTypeHasBeenSet() const { return m_addOnTypeHasBeenSet; }
47 
51  inline void SetAddOnType(const AddOnType& value) { m_addOnTypeHasBeenSet = true; m_addOnType = value; }
52 
56  inline void SetAddOnType(AddOnType&& value) { m_addOnTypeHasBeenSet = true; m_addOnType = std::move(value); }
57 
61  inline DisableAddOnRequest& WithAddOnType(const AddOnType& value) { SetAddOnType(value); return *this;}
62 
66  inline DisableAddOnRequest& WithAddOnType(AddOnType&& value) { SetAddOnType(std::move(value)); return *this;}
67 
68 
72  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
73 
77  inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
78 
82  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
83 
87  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
88 
92  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
93 
97  inline DisableAddOnRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
98 
102  inline DisableAddOnRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
103 
107  inline DisableAddOnRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
108 
109  private:
110 
111  AddOnType m_addOnType;
112  bool m_addOnTypeHasBeenSet;
113 
114  Aws::String m_resourceName;
115  bool m_resourceNameHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace Lightsail
120 } // namespace Aws
Aws::Lightsail::Model::DisableAddOnRequest::GetAddOnType
const AddOnType & GetAddOnType() const
Definition: DisableAddOnRequest.h:41
Aws::Lightsail::Model::AddOnType
AddOnType
Definition: AddOnType.h:17
Aws::Lightsail::Model::DisableAddOnRequest::SetResourceName
void SetResourceName(Aws::String &&value)
Definition: DisableAddOnRequest.h:87
Aws::Lightsail::Model::DisableAddOnRequest::SetAddOnType
void SetAddOnType(const AddOnType &value)
Definition: DisableAddOnRequest.h:51
Aws::Lightsail::Model::DisableAddOnRequest::DisableAddOnRequest
DisableAddOnRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::DisableAddOnRequest::SetResourceName
void SetResourceName(const char *value)
Definition: DisableAddOnRequest.h:92
Aws::Lightsail::Model::DisableAddOnRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::DisableAddOnRequest::WithResourceName
DisableAddOnRequest & WithResourceName(Aws::String &&value)
Definition: DisableAddOnRequest.h:102
Aws::Lightsail::Model::DisableAddOnRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisableAddOnRequest.h:31
LightsailRequest.h
Aws::Lightsail::Model::DisableAddOnRequest::WithResourceName
DisableAddOnRequest & WithResourceName(const Aws::String &value)
Definition: DisableAddOnRequest.h:97
Aws::Lightsail::Model::DisableAddOnRequest::AddOnTypeHasBeenSet
bool AddOnTypeHasBeenSet() const
Definition: DisableAddOnRequest.h:46
Aws::Lightsail::Model::DisableAddOnRequest::WithAddOnType
DisableAddOnRequest & WithAddOnType(AddOnType &&value)
Definition: DisableAddOnRequest.h:66
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::DisableAddOnRequest::ResourceNameHasBeenSet
bool ResourceNameHasBeenSet() const
Definition: DisableAddOnRequest.h:77
AWSString.h
AddOnType.h
Lightsail_EXPORTS.h
Aws::Lightsail::Model::DisableAddOnRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::DisableAddOnRequest::GetResourceName
const Aws::String & GetResourceName() const
Definition: DisableAddOnRequest.h:72
Aws::Lightsail::Model::DisableAddOnRequest::SetResourceName
void SetResourceName(const Aws::String &value)
Definition: DisableAddOnRequest.h:82
Aws::Lightsail::Model::DisableAddOnRequest::SetAddOnType
void SetAddOnType(AddOnType &&value)
Definition: DisableAddOnRequest.h:56
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::DisableAddOnRequest::WithResourceName
DisableAddOnRequest & WithResourceName(const char *value)
Definition: DisableAddOnRequest.h:107
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::DisableAddOnRequest::WithAddOnType
DisableAddOnRequest & WithAddOnType(const AddOnType &value)
Definition: DisableAddOnRequest.h:61
Aws::Lightsail::Model::DisableAddOnRequest
Definition: DisableAddOnRequest.h:23