AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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