AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
RevokeIpRulesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workspaces/WorkSpacesRequest.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WorkSpaces {
16namespace Model {
17
21 public:
22 AWS_WORKSPACES_API RevokeIpRulesRequest() = 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 "RevokeIpRules"; }
29
30 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetGroupId() const { return m_groupId; }
39 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
40 template <typename GroupIdT = Aws::String>
41 void SetGroupId(GroupIdT&& value) {
42 m_groupIdHasBeenSet = true;
43 m_groupId = std::forward<GroupIdT>(value);
44 }
45 template <typename GroupIdT = Aws::String>
46 RevokeIpRulesRequest& WithGroupId(GroupIdT&& value) {
47 SetGroupId(std::forward<GroupIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<Aws::String>& GetUserRules() const { return m_userRules; }
57 inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
58 template <typename UserRulesT = Aws::Vector<Aws::String>>
59 void SetUserRules(UserRulesT&& value) {
60 m_userRulesHasBeenSet = true;
61 m_userRules = std::forward<UserRulesT>(value);
62 }
63 template <typename UserRulesT = Aws::Vector<Aws::String>>
64 RevokeIpRulesRequest& WithUserRules(UserRulesT&& value) {
65 SetUserRules(std::forward<UserRulesT>(value));
66 return *this;
67 }
68 template <typename UserRulesT = Aws::String>
69 RevokeIpRulesRequest& AddUserRules(UserRulesT&& value) {
70 m_userRulesHasBeenSet = true;
71 m_userRules.emplace_back(std::forward<UserRulesT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_groupId;
77
78 Aws::Vector<Aws::String> m_userRules;
79 bool m_groupIdHasBeenSet = false;
80 bool m_userRulesHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace WorkSpaces
85} // namespace Aws
AWS_WORKSPACES_API RevokeIpRulesRequest()=default
RevokeIpRulesRequest & AddUserRules(UserRulesT &&value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
RevokeIpRulesRequest & WithUserRules(UserRulesT &&value)
RevokeIpRulesRequest & WithGroupId(GroupIdT &&value)
const Aws::Vector< Aws::String > & GetUserRules() const
AWS_WORKSPACES_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector