AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DisableAddOnRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/model/AddOnType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Lightsail
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_LIGHTSAIL_API DisableAddOnRequest();
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const AddOnType& GetAddOnType() const{ return m_addOnType; }
43 inline bool AddOnTypeHasBeenSet() const { return m_addOnTypeHasBeenSet; }
44 inline void SetAddOnType(const AddOnType& value) { m_addOnTypeHasBeenSet = true; m_addOnType = value; }
45 inline void SetAddOnType(AddOnType&& value) { m_addOnTypeHasBeenSet = true; m_addOnType = std::move(value); }
46 inline DisableAddOnRequest& WithAddOnType(const AddOnType& value) { SetAddOnType(value); return *this;}
47 inline DisableAddOnRequest& WithAddOnType(AddOnType&& value) { SetAddOnType(std::move(value)); return *this;}
49
51
54 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
55 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
56 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
57 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
58 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
59 inline DisableAddOnRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
60 inline DisableAddOnRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
61 inline DisableAddOnRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;}
63 private:
64
65 AddOnType m_addOnType;
66 bool m_addOnTypeHasBeenSet = false;
67
68 Aws::String m_resourceName;
69 bool m_resourceNameHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Lightsail
74} // namespace Aws
DisableAddOnRequest & WithResourceName(const char *value)
DisableAddOnRequest & WithResourceName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
DisableAddOnRequest & WithAddOnType(AddOnType &&value)
void SetResourceName(const Aws::String &value)
DisableAddOnRequest & WithAddOnType(const AddOnType &value)
DisableAddOnRequest & WithResourceName(Aws::String &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String