AWS SDK for C++  1.9.103
AWS SDK for C++
GetPermissionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ram/RAM_EXPORTS.h>
8 #include <aws/ram/RAMRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RAM
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 "GetPermission"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetPermissionArn() const{ return m_permissionArn; }
39 
43  inline bool PermissionArnHasBeenSet() const { return m_permissionArnHasBeenSet; }
44 
48  inline void SetPermissionArn(const Aws::String& value) { m_permissionArnHasBeenSet = true; m_permissionArn = value; }
49 
53  inline void SetPermissionArn(Aws::String&& value) { m_permissionArnHasBeenSet = true; m_permissionArn = std::move(value); }
54 
58  inline void SetPermissionArn(const char* value) { m_permissionArnHasBeenSet = true; m_permissionArn.assign(value); }
59 
63  inline GetPermissionRequest& WithPermissionArn(const Aws::String& value) { SetPermissionArn(value); return *this;}
64 
68  inline GetPermissionRequest& WithPermissionArn(Aws::String&& value) { SetPermissionArn(std::move(value)); return *this;}
69 
73  inline GetPermissionRequest& WithPermissionArn(const char* value) { SetPermissionArn(value); return *this;}
74 
75 
79  inline int GetPermissionVersion() const{ return m_permissionVersion; }
80 
84  inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; }
85 
89  inline void SetPermissionVersion(int value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = value; }
90 
94  inline GetPermissionRequest& WithPermissionVersion(int value) { SetPermissionVersion(value); return *this;}
95 
96  private:
97 
98  Aws::String m_permissionArn;
99  bool m_permissionArnHasBeenSet;
100 
101  int m_permissionVersion;
102  bool m_permissionVersionHasBeenSet;
103  };
104 
105 } // namespace Model
106 } // namespace RAM
107 } // namespace Aws
Aws::RAM::Model::GetPermissionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetPermissionRequest.h:30
Aws::RAM::Model::GetPermissionRequest::PermissionArnHasBeenSet
bool PermissionArnHasBeenSet() const
Definition: GetPermissionRequest.h:43
Aws::RAM::Model::GetPermissionRequest
Definition: GetPermissionRequest.h:22
Aws::RAM::Model::GetPermissionRequest::SetPermissionArn
void SetPermissionArn(const Aws::String &value)
Definition: GetPermissionRequest.h:48
RAMRequest.h
Aws::RAM::Model::GetPermissionRequest::WithPermissionArn
GetPermissionRequest & WithPermissionArn(Aws::String &&value)
Definition: GetPermissionRequest.h:68
Aws::RAM::Model::GetPermissionRequest::SetPermissionArn
void SetPermissionArn(Aws::String &&value)
Definition: GetPermissionRequest.h:53
Aws::RAM::Model::GetPermissionRequest::SetPermissionArn
void SetPermissionArn(const char *value)
Definition: GetPermissionRequest.h:58
Aws::RAM::Model::GetPermissionRequest::GetPermissionRequest
GetPermissionRequest()
AWSString.h
RAM_EXPORTS.h
AWS_RAM_API
#define AWS_RAM_API
Definition: RAM_EXPORTS.h:28
Aws::RAM::Model::GetPermissionRequest::WithPermissionVersion
GetPermissionRequest & WithPermissionVersion(int value)
Definition: GetPermissionRequest.h:94
Aws::RAM::Model::GetPermissionRequest::SetPermissionVersion
void SetPermissionVersion(int value)
Definition: GetPermissionRequest.h:89
Aws::RAM::Model::GetPermissionRequest::WithPermissionArn
GetPermissionRequest & WithPermissionArn(const char *value)
Definition: GetPermissionRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::RAM::Model::GetPermissionRequest::GetPermissionVersion
int GetPermissionVersion() const
Definition: GetPermissionRequest.h:79
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RAM::Model::GetPermissionRequest::GetPermissionArn
const Aws::String & GetPermissionArn() const
Definition: GetPermissionRequest.h:38
Aws::RAM::Model::GetPermissionRequest::PermissionVersionHasBeenSet
bool PermissionVersionHasBeenSet() const
Definition: GetPermissionRequest.h:84
Aws::RAM::Model::GetPermissionRequest::WithPermissionArn
GetPermissionRequest & WithPermissionArn(const Aws::String &value)
Definition: GetPermissionRequest.h:63
Aws::RAM::RAMRequest
Definition: RAMRequest.h:17
Aws::RAM::Model::GetPermissionRequest::SerializePayload
Aws::String SerializePayload() const override