AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 AddOnType GetAddOnType() const { return m_addOnType; }
43 inline bool AddOnTypeHasBeenSet() const { return m_addOnTypeHasBeenSet; }
44 inline void SetAddOnType(AddOnType value) { m_addOnTypeHasBeenSet = true; m_addOnType = value; }
45 inline DisableAddOnRequest& WithAddOnType(AddOnType value) { SetAddOnType(value); return *this;}
47
49
52 inline const Aws::String& GetResourceName() const { return m_resourceName; }
53 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
54 template<typename ResourceNameT = Aws::String>
55 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
56 template<typename ResourceNameT = Aws::String>
57 DisableAddOnRequest& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
59 private:
60
61 AddOnType m_addOnType{AddOnType::NOT_SET};
62 bool m_addOnTypeHasBeenSet = false;
63
64 Aws::String m_resourceName;
65 bool m_resourceNameHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace Lightsail
70} // 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