AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeletePermissionVersionRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace RAM
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "DeletePermissionVersion"; }
35
36 AWS_RAM_API Aws::String SerializePayload() const override;
37
38 AWS_RAM_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
48 inline const Aws::String& GetPermissionArn() const{ return m_permissionArn; }
49 inline bool PermissionArnHasBeenSet() const { return m_permissionArnHasBeenSet; }
50 inline void SetPermissionArn(const Aws::String& value) { m_permissionArnHasBeenSet = true; m_permissionArn = value; }
51 inline void SetPermissionArn(Aws::String&& value) { m_permissionArnHasBeenSet = true; m_permissionArn = std::move(value); }
52 inline void SetPermissionArn(const char* value) { m_permissionArnHasBeenSet = true; m_permissionArn.assign(value); }
54 inline DeletePermissionVersionRequest& WithPermissionArn(Aws::String&& value) { SetPermissionArn(std::move(value)); return *this;}
55 inline DeletePermissionVersionRequest& WithPermissionArn(const char* value) { SetPermissionArn(value); return *this;}
57
59
70 inline int GetPermissionVersion() const{ return m_permissionVersion; }
71 inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; }
72 inline void SetPermissionVersion(int value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = value; }
75
77
89 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
90 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
91 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
92 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
93 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
94 inline DeletePermissionVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
95 inline DeletePermissionVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
96 inline DeletePermissionVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
98 private:
99
100 Aws::String m_permissionArn;
101 bool m_permissionArnHasBeenSet = false;
102
103 int m_permissionVersion;
104 bool m_permissionVersionHasBeenSet = false;
105
106 Aws::String m_clientToken;
107 bool m_clientTokenHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace RAM
112} // namespace Aws
DeletePermissionVersionRequest & WithPermissionArn(const Aws::String &value)
DeletePermissionVersionRequest & WithClientToken(Aws::String &&value)
DeletePermissionVersionRequest & WithClientToken(const Aws::String &value)
DeletePermissionVersionRequest & WithPermissionVersion(int value)
DeletePermissionVersionRequest & WithPermissionArn(const char *value)
AWS_RAM_API Aws::String SerializePayload() const override
DeletePermissionVersionRequest & WithPermissionArn(Aws::String &&value)
DeletePermissionVersionRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_RAM_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String