AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EnableCapacityManagerRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API EnableCapacityManagerRequest() = 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 "EnableCapacityManager"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
42 inline bool GetOrganizationsAccess() const { return m_organizationsAccess; }
43 inline bool OrganizationsAccessHasBeenSet() const { return m_organizationsAccessHasBeenSet; }
44 inline void SetOrganizationsAccess(bool value) {
45 m_organizationsAccessHasBeenSet = true;
46 m_organizationsAccess = value;
47 }
50 return *this;
51 }
53
55
61 inline bool GetDryRun() const { return m_dryRun; }
62 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
63 inline void SetDryRun(bool value) {
64 m_dryRunHasBeenSet = true;
65 m_dryRun = value;
66 }
68 SetDryRun(value);
69 return *this;
70 }
72
74
78 inline const Aws::String& GetClientToken() const { return m_clientToken; }
79 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
80 template <typename ClientTokenT = Aws::String>
81 void SetClientToken(ClientTokenT&& value) {
82 m_clientTokenHasBeenSet = true;
83 m_clientToken = std::forward<ClientTokenT>(value);
84 }
85 template <typename ClientTokenT = Aws::String>
87 SetClientToken(std::forward<ClientTokenT>(value));
88 return *this;
89 }
91 private:
92 bool m_organizationsAccess{false};
93
94 bool m_dryRun{false};
95
97 bool m_organizationsAccessHasBeenSet = false;
98 bool m_dryRunHasBeenSet = false;
99 bool m_clientTokenHasBeenSet = true;
100};
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
EnableCapacityManagerRequest & WithDryRun(bool value)
AWS_EC2_API EnableCapacityManagerRequest()=default
EnableCapacityManagerRequest & WithClientToken(ClientTokenT &&value)
EnableCapacityManagerRequest & WithOrganizationsAccess(bool value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String