AWS SDK for C++  1.8.71
AWS SDK for C++
UntagRoleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/IAMRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace IAM
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 "UntagRole"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
47  inline const Aws::String& GetRoleName() const{ return m_roleName; }
48 
56  inline bool RoleNameHasBeenSet() const { return m_roleNameHasBeenSet; }
57 
65  inline void SetRoleName(const Aws::String& value) { m_roleNameHasBeenSet = true; m_roleName = value; }
66 
74  inline void SetRoleName(Aws::String&& value) { m_roleNameHasBeenSet = true; m_roleName = std::move(value); }
75 
83  inline void SetRoleName(const char* value) { m_roleNameHasBeenSet = true; m_roleName.assign(value); }
84 
92  inline UntagRoleRequest& WithRoleName(const Aws::String& value) { SetRoleName(value); return *this;}
93 
101  inline UntagRoleRequest& WithRoleName(Aws::String&& value) { SetRoleName(std::move(value)); return *this;}
102 
110  inline UntagRoleRequest& WithRoleName(const char* value) { SetRoleName(value); return *this;}
111 
112 
117  inline const Aws::Vector<Aws::String>& GetTagKeys() const{ return m_tagKeys; }
118 
123  inline bool TagKeysHasBeenSet() const { return m_tagKeysHasBeenSet; }
124 
129  inline void SetTagKeys(const Aws::Vector<Aws::String>& value) { m_tagKeysHasBeenSet = true; m_tagKeys = value; }
130 
135  inline void SetTagKeys(Aws::Vector<Aws::String>&& value) { m_tagKeysHasBeenSet = true; m_tagKeys = std::move(value); }
136 
141  inline UntagRoleRequest& WithTagKeys(const Aws::Vector<Aws::String>& value) { SetTagKeys(value); return *this;}
142 
147  inline UntagRoleRequest& WithTagKeys(Aws::Vector<Aws::String>&& value) { SetTagKeys(std::move(value)); return *this;}
148 
153  inline UntagRoleRequest& AddTagKeys(const Aws::String& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
154 
159  inline UntagRoleRequest& AddTagKeys(Aws::String&& value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(std::move(value)); return *this; }
160 
165  inline UntagRoleRequest& AddTagKeys(const char* value) { m_tagKeysHasBeenSet = true; m_tagKeys.push_back(value); return *this; }
166 
167  private:
168 
169  Aws::String m_roleName;
170  bool m_roleNameHasBeenSet;
171 
172  Aws::Vector<Aws::String> m_tagKeys;
173  bool m_tagKeysHasBeenSet;
174  };
175 
176 } // namespace Model
177 } // namespace IAM
178 } // namespace Aws
UntagRoleRequest & AddTagKeys(Aws::String &&value)
void SetTagKeys(const Aws::Vector< Aws::String > &value)
UntagRoleRequest & AddTagKeys(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
UntagRoleRequest & WithRoleName(const char *value)
const Aws::String & GetRoleName() const
UntagRoleRequest & AddTagKeys(const char *value)
void SetRoleName(Aws::String &&value)
UntagRoleRequest & WithRoleName(Aws::String &&value)
UntagRoleRequest & WithRoleName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetTagKeys(Aws::Vector< Aws::String > &&value)
UntagRoleRequest & WithTagKeys(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetRoleName(const Aws::String &value)
UntagRoleRequest & WithTagKeys(Aws::Vector< Aws::String > &&value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
const Aws::Vector< Aws::String > & GetTagKeys() const
void SetRoleName(const char *value)