AWS SDK for C++  1.9.123
AWS SDK for C++
RevokeIpRulesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkSpaces
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetGroupId() const{ return m_groupId; }
42 
46  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
47 
51  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
52 
56  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
57 
61  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
62 
66  inline RevokeIpRulesRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
67 
71  inline RevokeIpRulesRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
72 
76  inline RevokeIpRulesRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;}
77 
78 
82  inline const Aws::Vector<Aws::String>& GetUserRules() const{ return m_userRules; }
83 
87  inline bool UserRulesHasBeenSet() const { return m_userRulesHasBeenSet; }
88 
92  inline void SetUserRules(const Aws::Vector<Aws::String>& value) { m_userRulesHasBeenSet = true; m_userRules = value; }
93 
97  inline void SetUserRules(Aws::Vector<Aws::String>&& value) { m_userRulesHasBeenSet = true; m_userRules = std::move(value); }
98 
102  inline RevokeIpRulesRequest& WithUserRules(const Aws::Vector<Aws::String>& value) { SetUserRules(value); return *this;}
103 
107  inline RevokeIpRulesRequest& WithUserRules(Aws::Vector<Aws::String>&& value) { SetUserRules(std::move(value)); return *this;}
108 
112  inline RevokeIpRulesRequest& AddUserRules(const Aws::String& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(value); return *this; }
113 
117  inline RevokeIpRulesRequest& AddUserRules(Aws::String&& value) { m_userRulesHasBeenSet = true; m_userRules.push_back(std::move(value)); return *this; }
118 
122  inline RevokeIpRulesRequest& AddUserRules(const char* value) { m_userRulesHasBeenSet = true; m_userRules.push_back(value); return *this; }
123 
124  private:
125 
126  Aws::String m_groupId;
127  bool m_groupIdHasBeenSet;
128 
129  Aws::Vector<Aws::String> m_userRules;
130  bool m_userRulesHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace WorkSpaces
135 } // namespace Aws
Aws::WorkSpaces::Model::RevokeIpRulesRequest::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: RevokeIpRulesRequest.h:46
WorkSpaces_EXPORTS.h
Aws::WorkSpaces::Model::RevokeIpRulesRequest::UserRulesHasBeenSet
bool UserRulesHasBeenSet() const
Definition: RevokeIpRulesRequest.h:87
Aws::WorkSpaces::WorkSpacesRequest
Definition: WorkSpacesRequest.h:17
AWS_WORKSPACES_API
#define AWS_WORKSPACES_API
Definition: WorkSpaces_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
WorkSpacesRequest.h
Aws::WorkSpaces::Model::RevokeIpRulesRequest::WithGroupId
RevokeIpRulesRequest & WithGroupId(const char *value)
Definition: RevokeIpRulesRequest.h:76
Aws::WorkSpaces::Model::RevokeIpRulesRequest::GetUserRules
const Aws::Vector< Aws::String > & GetUserRules() const
Definition: RevokeIpRulesRequest.h:82
Aws::WorkSpaces::Model::RevokeIpRulesRequest::SetGroupId
void SetGroupId(const char *value)
Definition: RevokeIpRulesRequest.h:61
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkSpaces::Model::RevokeIpRulesRequest::WithUserRules
RevokeIpRulesRequest & WithUserRules(Aws::Vector< Aws::String > &&value)
Definition: RevokeIpRulesRequest.h:107
AWSVector.h
Aws::WorkSpaces::Model::RevokeIpRulesRequest::SetUserRules
void SetUserRules(Aws::Vector< Aws::String > &&value)
Definition: RevokeIpRulesRequest.h:97
Aws::WorkSpaces::Model::RevokeIpRulesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RevokeIpRulesRequest.h:31
Aws::WorkSpaces::Model::RevokeIpRulesRequest::RevokeIpRulesRequest
RevokeIpRulesRequest()
Aws::WorkSpaces::Model::RevokeIpRulesRequest::WithGroupId
RevokeIpRulesRequest & WithGroupId(Aws::String &&value)
Definition: RevokeIpRulesRequest.h:71
Aws::WorkSpaces::Model::RevokeIpRulesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
Aws::WorkSpaces::Model::RevokeIpRulesRequest::GetGroupId
const Aws::String & GetGroupId() const
Definition: RevokeIpRulesRequest.h:41
Aws::WorkSpaces::Model::RevokeIpRulesRequest::WithGroupId
RevokeIpRulesRequest & WithGroupId(const Aws::String &value)
Definition: RevokeIpRulesRequest.h:66
Aws::WorkSpaces::Model::RevokeIpRulesRequest::SetUserRules
void SetUserRules(const Aws::Vector< Aws::String > &value)
Definition: RevokeIpRulesRequest.h:92
Aws::WorkSpaces::Model::RevokeIpRulesRequest::AddUserRules
RevokeIpRulesRequest & AddUserRules(Aws::String &&value)
Definition: RevokeIpRulesRequest.h:117
Aws::WorkSpaces::Model::RevokeIpRulesRequest::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: RevokeIpRulesRequest.h:51
Aws::WorkSpaces::Model::RevokeIpRulesRequest::AddUserRules
RevokeIpRulesRequest & AddUserRules(const char *value)
Definition: RevokeIpRulesRequest.h:122
Aws
Definition: AccessManagementClient.h:15
Aws::WorkSpaces::Model::RevokeIpRulesRequest::WithUserRules
RevokeIpRulesRequest & WithUserRules(const Aws::Vector< Aws::String > &value)
Definition: RevokeIpRulesRequest.h:102
Aws::WorkSpaces::Model::RevokeIpRulesRequest
Definition: RevokeIpRulesRequest.h:23
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkSpaces::Model::RevokeIpRulesRequest::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: RevokeIpRulesRequest.h:56
Aws::WorkSpaces::Model::RevokeIpRulesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkSpaces::Model::RevokeIpRulesRequest::AddUserRules
RevokeIpRulesRequest & AddUserRules(const Aws::String &value)
Definition: RevokeIpRulesRequest.h:112