AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
46 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
47 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
48 inline AuthorizeIpRulesRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
49 inline AuthorizeIpRulesRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
50 inline AuthorizeIpRulesRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
52
54
57 inline const Aws::Vector<IpRuleItem>& GetUserRules() const{ return m_userRules; }
58 inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
59 inline void SetUserRules(const Aws::Vector<IpRuleItem>& value) { m_userRulesHasBeenSet = true; m_userRules = value; }
60 inline void SetUserRules(Aws::Vector<IpRuleItem>&& value) { m_userRulesHasBeenSet = true; m_userRules = std::move(value); }
61 inline AuthorizeIpRulesRequest& WithUserRules(const Aws::Vector<IpRuleItem>& value) { SetUserRules(value); return *this;}
62 inline AuthorizeIpRulesRequest& WithUserRules(Aws::Vector<IpRuleItem>&& value) { SetUserRules(std::move(value)); return *this;}
63 inline AuthorizeIpRulesRequest& AddUserRules(const IpRuleItem& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(value); return *this; }
64 inline AuthorizeIpRulesRequest& AddUserRules(IpRuleItem&& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(std::move(value)); return *this; }
66 private:
67
68 Aws::String m_groupId;
69 bool m_groupIdHasBeenSet = false;
70
71 Aws::Vector<IpRuleItem> m_userRules;
72 bool m_userRulesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace WorkSpaces
77} // namespace Aws
AuthorizeIpRulesRequest & WithUserRules(Aws::Vector< IpRuleItem > &&value)
AuthorizeIpRulesRequest & WithGroupId(const char *value)
AuthorizeIpRulesRequest & WithGroupId(const Aws::String &value)
void SetUserRules(const Aws::Vector< IpRuleItem > &value)
const Aws::Vector< IpRuleItem > & GetUserRules() const
virtual const char * GetServiceRequestName() const override
AuthorizeIpRulesRequest & WithUserRules(const Aws::Vector< IpRuleItem > &value)
AuthorizeIpRulesRequest & AddUserRules(IpRuleItem &&value)
void SetUserRules(Aws::Vector< IpRuleItem > &&value)
AuthorizeIpRulesRequest & WithGroupId(Aws::String &&value)
AWS_WORKSPACES_API Aws::String SerializePayload() const override
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AuthorizeIpRulesRequest & AddUserRules(const IpRuleItem &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