AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DeleteSecondaryNetworkRequest.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 DeleteSecondaryNetworkRequest() = 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 "DeleteSecondaryNetwork"; }
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
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template <typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) {
47 m_clientTokenHasBeenSet = true;
48 m_clientToken = std::forward<ClientTokenT>(value);
49 }
50 template <typename ClientTokenT = Aws::String>
52 SetClientToken(std::forward<ClientTokenT>(value));
53 return *this;
54 }
56
58
64 inline bool GetDryRun() const { return m_dryRun; }
65 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
66 inline void SetDryRun(bool value) {
67 m_dryRunHasBeenSet = true;
68 m_dryRun = value;
69 }
71 SetDryRun(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetSecondaryNetworkId() const { return m_secondaryNetworkId; }
81 inline bool SecondaryNetworkIdHasBeenSet() const { return m_secondaryNetworkIdHasBeenSet; }
82 template <typename SecondaryNetworkIdT = Aws::String>
83 void SetSecondaryNetworkId(SecondaryNetworkIdT&& value) {
84 m_secondaryNetworkIdHasBeenSet = true;
85 m_secondaryNetworkId = std::forward<SecondaryNetworkIdT>(value);
86 }
87 template <typename SecondaryNetworkIdT = Aws::String>
89 SetSecondaryNetworkId(std::forward<SecondaryNetworkIdT>(value));
90 return *this;
91 }
93 private:
95
96 bool m_dryRun{false};
97
98 Aws::String m_secondaryNetworkId;
99 bool m_clientTokenHasBeenSet = true;
100 bool m_dryRunHasBeenSet = false;
101 bool m_secondaryNetworkIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace EC2
106} // namespace Aws
virtual const char * GetServiceRequestName() const override
DeleteSecondaryNetworkRequest & WithDryRun(bool value)
DeleteSecondaryNetworkRequest & WithClientToken(ClientTokenT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DeleteSecondaryNetworkRequest & WithSecondaryNetworkId(SecondaryNetworkIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String