AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
UpdateResourceShareRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/ram/RAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RAM {
15namespace Model {
16
20 public:
21 AWS_RAM_API UpdateResourceShareRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "UpdateResourceShare"; }
28
29 AWS_RAM_API Aws::String SerializePayload() const override;
30
32
37 inline const Aws::String& GetResourceShareArn() const { return m_resourceShareArn; }
38 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
39 template <typename ResourceShareArnT = Aws::String>
40 void SetResourceShareArn(ResourceShareArnT&& value) {
41 m_resourceShareArnHasBeenSet = true;
42 m_resourceShareArn = std::forward<ResourceShareArnT>(value);
43 }
44 template <typename ResourceShareArnT = Aws::String>
46 SetResourceShareArn(std::forward<ResourceShareArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
74 inline bool GetAllowExternalPrincipals() const { return m_allowExternalPrincipals; }
75 inline bool AllowExternalPrincipalsHasBeenSet() const { return m_allowExternalPrincipalsHasBeenSet; }
76 inline void SetAllowExternalPrincipals(bool value) {
77 m_allowExternalPrincipalsHasBeenSet = true;
78 m_allowExternalPrincipals = value;
79 }
82 return *this;
83 }
85
87
99 inline const Aws::String& GetClientToken() const { return m_clientToken; }
100 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
101 template <typename ClientTokenT = Aws::String>
102 void SetClientToken(ClientTokenT&& value) {
103 m_clientTokenHasBeenSet = true;
104 m_clientToken = std::forward<ClientTokenT>(value);
105 }
106 template <typename ClientTokenT = Aws::String>
108 SetClientToken(std::forward<ClientTokenT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_resourceShareArn;
114
115 Aws::String m_name;
116
117 bool m_allowExternalPrincipals{false};
118
119 Aws::String m_clientToken;
120 bool m_resourceShareArnHasBeenSet = false;
121 bool m_nameHasBeenSet = false;
122 bool m_allowExternalPrincipalsHasBeenSet = false;
123 bool m_clientTokenHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace RAM
128} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_RAM_API Aws::String SerializePayload() const override
UpdateResourceShareRequest & WithClientToken(ClientTokenT &&value)
UpdateResourceShareRequest & WithAllowExternalPrincipals(bool value)
AWS_RAM_API UpdateResourceShareRequest()=default
UpdateResourceShareRequest & WithName(NameT &&value)
UpdateResourceShareRequest & WithResourceShareArn(ResourceShareArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String