AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AuthorizeIpRulesRequest.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 <aws/workspaces/model/IpRuleItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkSpaces
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKSPACES_API AuthorizeIpRulesRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AuthorizeIpRules"; }
33
34 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetGroupId() const { return m_groupId; }
44 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
45 template<typename GroupIdT = Aws::String>
46 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
47 template<typename GroupIdT = Aws::String>
48 AuthorizeIpRulesRequest& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
50
52
55 inline const Aws::Vector<IpRuleItem>& GetUserRules() const { return m_userRules; }
56 inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
57 template<typename UserRulesT = Aws::Vector<IpRuleItem>>
58 void SetUserRules(UserRulesT&& value) { m_userRulesHasBeenSet = true; m_userRules = std::forward<UserRulesT>(value); }
59 template<typename UserRulesT = Aws::Vector<IpRuleItem>>
60 AuthorizeIpRulesRequest& WithUserRules(UserRulesT&& value) { SetUserRules(std::forward<UserRulesT>(value)); return *this;}
61 template<typename UserRulesT = IpRuleItem>
62 AuthorizeIpRulesRequest& AddUserRules(UserRulesT&& value) { m_userRulesHasBeenSet = true; m_userRules.emplace_back(std::forward<UserRulesT>(value)); return *this; }
64 private:
65
66 Aws::String m_groupId;
67 bool m_groupIdHasBeenSet = false;
68
69 Aws::Vector<IpRuleItem> m_userRules;
70 bool m_userRulesHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace WorkSpaces
75} // namespace Aws
AuthorizeIpRulesRequest & AddUserRules(UserRulesT &&value)
AuthorizeIpRulesRequest & WithGroupId(GroupIdT &&value)
const Aws::Vector< IpRuleItem > & GetUserRules() const
virtual const char * GetServiceRequestName() const override
AWS_WORKSPACES_API Aws::String SerializePayload() const override
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_WORKSPACES_API AuthorizeIpRulesRequest()=default
AuthorizeIpRulesRequest & WithUserRules(UserRulesT &&value)
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