AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplacePermissionAssociationsRequest.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 RAM
15{
16namespace 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 "ReplacePermissionAssociations"; }
31
32 AWS_RAM_API Aws::String SerializePayload() const override;
33
34
36
41 inline const Aws::String& GetFromPermissionArn() const{ return m_fromPermissionArn; }
42 inline bool FromPermissionArnHasBeenSet() const { return m_fromPermissionArnHasBeenSet; }
43 inline void SetFromPermissionArn(const Aws::String& value) { m_fromPermissionArnHasBeenSet = true; m_fromPermissionArn = value; }
44 inline void SetFromPermissionArn(Aws::String&& value) { m_fromPermissionArnHasBeenSet = true; m_fromPermissionArn = std::move(value); }
45 inline void SetFromPermissionArn(const char* value) { m_fromPermissionArnHasBeenSet = true; m_fromPermissionArn.assign(value); }
48 inline ReplacePermissionAssociationsRequest& WithFromPermissionArn(const char* value) { SetFromPermissionArn(value); return *this;}
50
52
56 inline int GetFromPermissionVersion() const{ return m_fromPermissionVersion; }
57 inline bool FromPermissionVersionHasBeenSet() const { return m_fromPermissionVersionHasBeenSet; }
58 inline void SetFromPermissionVersion(int value) { m_fromPermissionVersionHasBeenSet = true; m_fromPermissionVersion = value; }
61
63
70 inline const Aws::String& GetToPermissionArn() const{ return m_toPermissionArn; }
71 inline bool ToPermissionArnHasBeenSet() const { return m_toPermissionArnHasBeenSet; }
72 inline void SetToPermissionArn(const Aws::String& value) { m_toPermissionArnHasBeenSet = true; m_toPermissionArn = value; }
73 inline void SetToPermissionArn(Aws::String&& value) { m_toPermissionArnHasBeenSet = true; m_toPermissionArn = std::move(value); }
74 inline void SetToPermissionArn(const char* value) { m_toPermissionArnHasBeenSet = true; m_toPermissionArn.assign(value); }
77 inline ReplacePermissionAssociationsRequest& WithToPermissionArn(const char* value) { SetToPermissionArn(value); return *this;}
79
81
93 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
94 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
95 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
96 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
97 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
99 inline ReplacePermissionAssociationsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
100 inline ReplacePermissionAssociationsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
102 private:
103
104 Aws::String m_fromPermissionArn;
105 bool m_fromPermissionArnHasBeenSet = false;
106
107 int m_fromPermissionVersion;
108 bool m_fromPermissionVersionHasBeenSet = false;
109
110 Aws::String m_toPermissionArn;
111 bool m_toPermissionArnHasBeenSet = false;
112
113 Aws::String m_clientToken;
114 bool m_clientTokenHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace RAM
119} // namespace Aws
AWS_RAM_API Aws::String SerializePayload() const override
ReplacePermissionAssociationsRequest & WithFromPermissionArn(const char *value)
ReplacePermissionAssociationsRequest & WithToPermissionArn(const Aws::String &value)
ReplacePermissionAssociationsRequest & WithClientToken(Aws::String &&value)
ReplacePermissionAssociationsRequest & WithClientToken(const Aws::String &value)
ReplacePermissionAssociationsRequest & WithFromPermissionArn(Aws::String &&value)
ReplacePermissionAssociationsRequest & WithToPermissionArn(const char *value)
ReplacePermissionAssociationsRequest & WithFromPermissionVersion(int value)
ReplacePermissionAssociationsRequest & WithFromPermissionArn(const Aws::String &value)
ReplacePermissionAssociationsRequest & WithToPermissionArn(Aws::String &&value)
ReplacePermissionAssociationsRequest & WithClientToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String