AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateSecurityGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wickr/WickrRequest.h>
9#include <aws/wickr/Wickr_EXPORTS.h>
10#include <aws/wickr/model/SecurityGroupSettings.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Wickr {
16namespace Model {
17
21 public:
22 AWS_WICKR_API UpdateSecurityGroupRequest() = 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 "UpdateSecurityGroup"; }
29
30 AWS_WICKR_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetNetworkId() const { return m_networkId; }
37 inline bool NetworkIdHasBeenSet() const { return m_networkIdHasBeenSet; }
38 template <typename NetworkIdT = Aws::String>
39 void SetNetworkId(NetworkIdT&& value) {
40 m_networkIdHasBeenSet = true;
41 m_networkId = std::forward<NetworkIdT>(value);
42 }
43 template <typename NetworkIdT = Aws::String>
45 SetNetworkId(std::forward<NetworkIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetGroupId() const { return m_groupId; }
55 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
56 template <typename GroupIdT = Aws::String>
57 void SetGroupId(GroupIdT&& value) {
58 m_groupIdHasBeenSet = true;
59 m_groupId = std::forward<GroupIdT>(value);
60 }
61 template <typename GroupIdT = Aws::String>
63 SetGroupId(std::forward<GroupIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
92 inline const SecurityGroupSettings& GetSecurityGroupSettings() const { return m_securityGroupSettings; }
93 inline bool SecurityGroupSettingsHasBeenSet() const { return m_securityGroupSettingsHasBeenSet; }
94 template <typename SecurityGroupSettingsT = SecurityGroupSettings>
95 void SetSecurityGroupSettings(SecurityGroupSettingsT&& value) {
96 m_securityGroupSettingsHasBeenSet = true;
97 m_securityGroupSettings = std::forward<SecurityGroupSettingsT>(value);
98 }
99 template <typename SecurityGroupSettingsT = SecurityGroupSettings>
100 UpdateSecurityGroupRequest& WithSecurityGroupSettings(SecurityGroupSettingsT&& value) {
101 SetSecurityGroupSettings(std::forward<SecurityGroupSettingsT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_networkId;
107
108 Aws::String m_groupId;
109
110 Aws::String m_name;
111
112 SecurityGroupSettings m_securityGroupSettings;
113 bool m_networkIdHasBeenSet = false;
114 bool m_groupIdHasBeenSet = false;
115 bool m_nameHasBeenSet = false;
116 bool m_securityGroupSettingsHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Wickr
121} // namespace Aws
UpdateSecurityGroupRequest & WithSecurityGroupSettings(SecurityGroupSettingsT &&value)
AWS_WICKR_API UpdateSecurityGroupRequest()=default
UpdateSecurityGroupRequest & WithGroupId(GroupIdT &&value)
const SecurityGroupSettings & GetSecurityGroupSettings() const
AWS_WICKR_API Aws::String SerializePayload() const override
void SetSecurityGroupSettings(SecurityGroupSettingsT &&value)
UpdateSecurityGroupRequest & WithNetworkId(NetworkIdT &&value)
virtual const char * GetServiceRequestName() const override
UpdateSecurityGroupRequest & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String