AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RevokeIpRulesRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace WorkSpaces
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_WORKSPACES_API RevokeIpRulesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "RevokeIpRules"; }
32
33 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetGroupId() const { return m_groupId; }
43 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
44 template<typename GroupIdT = Aws::String>
45 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
46 template<typename GroupIdT = Aws::String>
47 RevokeIpRulesRequest& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
49
51
54 inline const Aws::Vector<Aws::String>& GetUserRules() const { return m_userRules; }
55 inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
56 template<typename UserRulesT = Aws::Vector<Aws::String>>
57 void SetUserRules(UserRulesT&& value) { m_userRulesHasBeenSet = true; m_userRules = std::forward<UserRulesT>(value); }
58 template<typename UserRulesT = Aws::Vector<Aws::String>>
59 RevokeIpRulesRequest& WithUserRules(UserRulesT&& value) { SetUserRules(std::forward<UserRulesT>(value)); return *this;}
60 template<typename UserRulesT = Aws::String>
61 RevokeIpRulesRequest& AddUserRules(UserRulesT&& value) { m_userRulesHasBeenSet = true; m_userRules.emplace_back(std::forward<UserRulesT>(value)); return *this; }
63 private:
64
65 Aws::String m_groupId;
66 bool m_groupIdHasBeenSet = false;
67
68 Aws::Vector<Aws::String> m_userRules;
69 bool m_userRulesHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace WorkSpaces
74} // 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