AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateSecurityGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wickr/WickrRequest.h>
10#include <aws/wickr/Wickr_EXPORTS.h>
11#include <aws/wickr/model/SecurityGroupSettingsRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Wickr {
17namespace Model {
18
22 public:
23 AWS_WICKR_API CreateSecurityGroupRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSecurityGroup"; }
30
31 AWS_WICKR_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetNetworkId() const { return m_networkId; }
40 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
41 template <typename NetworkIdT = Aws::String>
42 void SetNetworkId(NetworkIdT&& value) {
43 m_networkIdHasBeenSet = true;
44 m_networkId = std::forward<NetworkIdT>(value);
45 }
46 template <typename NetworkIdT = Aws::String>
48 SetNetworkId(std::forward<NetworkIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
76 inline const SecurityGroupSettingsRequest& GetSecurityGroupSettings() const { return m_securityGroupSettings; }
77 inline bool SecurityGroupSettingsHasBeenSet() const { return m_securityGroupSettingsHasBeenSet; }
78 template <typename SecurityGroupSettingsT = SecurityGroupSettingsRequest>
79 void SetSecurityGroupSettings(SecurityGroupSettingsT&& value) {
80 m_securityGroupSettingsHasBeenSet = true;
81 m_securityGroupSettings = std::forward<SecurityGroupSettingsT>(value);
82 }
83 template <typename SecurityGroupSettingsT = SecurityGroupSettingsRequest>
84 CreateSecurityGroupRequest& WithSecurityGroupSettings(SecurityGroupSettingsT&& value) {
85 SetSecurityGroupSettings(std::forward<SecurityGroupSettingsT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetClientToken() const { return m_clientToken; }
95 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
96 template <typename ClientTokenT = Aws::String>
97 void SetClientToken(ClientTokenT&& value) {
98 m_clientTokenHasBeenSet = true;
99 m_clientToken = std::forward<ClientTokenT>(value);
100 }
101 template <typename ClientTokenT = Aws::String>
103 SetClientToken(std::forward<ClientTokenT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_networkId;
109
110 Aws::String m_name;
111
112 SecurityGroupSettingsRequest m_securityGroupSettings;
113
115 bool m_networkIdHasBeenSet = false;
116 bool m_nameHasBeenSet = false;
117 bool m_securityGroupSettingsHasBeenSet = false;
118 bool m_clientTokenHasBeenSet = true;
119};
120
121} // namespace Model
122} // namespace Wickr
123} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateSecurityGroupRequest & WithNetworkId(NetworkIdT &&value)
AWS_WICKR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSecurityGroupSettings(SecurityGroupSettingsT &&value)
CreateSecurityGroupRequest & WithClientToken(ClientTokenT &&value)
CreateSecurityGroupRequest & WithSecurityGroupSettings(SecurityGroupSettingsT &&value)
AWS_WICKR_API Aws::String SerializePayload() const override
AWS_WICKR_API CreateSecurityGroupRequest()=default
virtual const char * GetServiceRequestName() const override
const SecurityGroupSettingsRequest & GetSecurityGroupSettings() const
CreateSecurityGroupRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String