AWS SDK for C++  1.9.106
AWS SDK for C++
DescribePermissionsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace OpsWorks
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DescribePermissions"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
44 
51  inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
52 
59  inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
60 
67  inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
68 
75  inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
76 
83  inline DescribePermissionsRequest& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
84 
91  inline DescribePermissionsRequest& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
92 
99  inline DescribePermissionsRequest& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
100 
101 
105  inline const Aws::String& GetStackId() const{ return m_stackId; }
106 
110  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
111 
115  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
116 
120  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
121 
125  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
126 
130  inline DescribePermissionsRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
131 
135  inline DescribePermissionsRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
136 
140  inline DescribePermissionsRequest& WithStackId(const char* value) { SetStackId(value); return *this;}
141 
142  private:
143 
144  Aws::String m_iamUserArn;
145  bool m_iamUserArnHasBeenSet;
146 
147  Aws::String m_stackId;
148  bool m_stackIdHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace OpsWorks
153 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::OpsWorks::Model::DescribePermissionsRequest::SetStackId
void SetStackId(const Aws::String &value)
Definition: DescribePermissionsRequest.h:115
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::DescribePermissionsRequest::WithIamUserArn
DescribePermissionsRequest & WithIamUserArn(const Aws::String &value)
Definition: DescribePermissionsRequest.h:83
Aws::OpsWorks::Model::DescribePermissionsRequest::GetStackId
const Aws::String & GetStackId() const
Definition: DescribePermissionsRequest.h:105
Aws::OpsWorks::Model::DescribePermissionsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::OpsWorks::Model::DescribePermissionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::OpsWorks::Model::DescribePermissionsRequest::WithIamUserArn
DescribePermissionsRequest & WithIamUserArn(Aws::String &&value)
Definition: DescribePermissionsRequest.h:91
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::DescribePermissionsRequest::IamUserArnHasBeenSet
bool IamUserArnHasBeenSet() const
Definition: DescribePermissionsRequest.h:51
Aws::OpsWorks::OpsWorksRequest
Definition: OpsWorksRequest.h:17
Aws::OpsWorks::Model::DescribePermissionsRequest::SetIamUserArn
void SetIamUserArn(Aws::String &&value)
Definition: DescribePermissionsRequest.h:67
Aws::OpsWorks::Model::DescribePermissionsRequest::WithStackId
DescribePermissionsRequest & WithStackId(const char *value)
Definition: DescribePermissionsRequest.h:140
Aws::OpsWorks::Model::DescribePermissionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribePermissionsRequest.h:30
OpsWorksRequest.h
Aws::OpsWorks::Model::DescribePermissionsRequest::SetIamUserArn
void SetIamUserArn(const char *value)
Definition: DescribePermissionsRequest.h:75
Aws::OpsWorks::Model::DescribePermissionsRequest::WithStackId
DescribePermissionsRequest & WithStackId(const Aws::String &value)
Definition: DescribePermissionsRequest.h:130
Aws::OpsWorks::Model::DescribePermissionsRequest::DescribePermissionsRequest
DescribePermissionsRequest()
Aws::OpsWorks::Model::DescribePermissionsRequest::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: DescribePermissionsRequest.h:110
AWSString.h
Aws::OpsWorks::Model::DescribePermissionsRequest::WithStackId
DescribePermissionsRequest & WithStackId(Aws::String &&value)
Definition: DescribePermissionsRequest.h:135
Aws::OpsWorks::Model::DescribePermissionsRequest::GetIamUserArn
const Aws::String & GetIamUserArn() const
Definition: DescribePermissionsRequest.h:43
Aws::OpsWorks::Model::DescribePermissionsRequest::SetStackId
void SetStackId(const char *value)
Definition: DescribePermissionsRequest.h:125
Aws::OpsWorks::Model::DescribePermissionsRequest
Definition: DescribePermissionsRequest.h:22
Aws::OpsWorks::Model::DescribePermissionsRequest::WithIamUserArn
DescribePermissionsRequest & WithIamUserArn(const char *value)
Definition: DescribePermissionsRequest.h:99
Aws::OpsWorks::Model::DescribePermissionsRequest::SetStackId
void SetStackId(Aws::String &&value)
Definition: DescribePermissionsRequest.h:120
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::DescribePermissionsRequest::SetIamUserArn
void SetIamUserArn(const Aws::String &value)
Definition: DescribePermissionsRequest.h:59