AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DisassociateResourceShareRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace RAM
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DisassociateResourceShare"; }
32
33 AWS_RAM_API Aws::String SerializePayload() const override;
34
35
37
43 inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
44 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
45 inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
46 inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
47 inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
49 inline DisassociateResourceShareRequest& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
50 inline DisassociateResourceShareRequest& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
52
54
61 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
62 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
63 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
64 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
67 inline DisassociateResourceShareRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
68 inline DisassociateResourceShareRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
69 inline DisassociateResourceShareRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
71
73
92 inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
93 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
94 inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
95 inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
98 inline DisassociateResourceShareRequest& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
99 inline DisassociateResourceShareRequest& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
100 inline DisassociateResourceShareRequest& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
102
104
116 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
117 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
118 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
119 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
120 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
121 inline DisassociateResourceShareRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
122 inline DisassociateResourceShareRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
123 inline DisassociateResourceShareRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
125
127
131 inline const Aws::Vector<Aws::String>& GetSources() const{ return m_sources; }
132 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
133 inline void SetSources(const Aws::Vector<Aws::String>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
134 inline void SetSources(Aws::Vector<Aws::String>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
136 inline DisassociateResourceShareRequest& WithSources(Aws::Vector<Aws::String>&& value) { SetSources(std::move(value)); return *this;}
137 inline DisassociateResourceShareRequest& AddSources(const Aws::String& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
138 inline DisassociateResourceShareRequest& AddSources(Aws::String&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
139 inline DisassociateResourceShareRequest& AddSources(const char* value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
141 private:
142
143 Aws::String m_resourceShareArn;
144 bool m_resourceShareArnHasBeenSet = false;
145
146 Aws::Vector<Aws::String> m_resourceArns;
147 bool m_resourceArnsHasBeenSet = false;
148
149 Aws::Vector<Aws::String> m_principals;
150 bool m_principalsHasBeenSet = false;
151
152 Aws::String m_clientToken;
153 bool m_clientTokenHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_sources;
156 bool m_sourcesHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace RAM
161} // namespace Aws
const Aws::Vector< Aws::String > & GetResourceArns() const
DisassociateResourceShareRequest & AddPrincipals(const Aws::String &value)
DisassociateResourceShareRequest & WithPrincipals(const Aws::Vector< Aws::String > &value)
DisassociateResourceShareRequest & AddPrincipals(const char *value)
AWS_RAM_API Aws::String SerializePayload() const override
DisassociateResourceShareRequest & WithClientToken(const char *value)
void SetSources(const Aws::Vector< Aws::String > &value)
DisassociateResourceShareRequest & AddResourceArns(Aws::String &&value)
DisassociateResourceShareRequest & WithSources(const Aws::Vector< Aws::String > &value)
void SetPrincipals(const Aws::Vector< Aws::String > &value)
DisassociateResourceShareRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
DisassociateResourceShareRequest & AddSources(const Aws::String &value)
DisassociateResourceShareRequest & WithClientToken(const Aws::String &value)
DisassociateResourceShareRequest & WithResourceShareArn(Aws::String &&value)
DisassociateResourceShareRequest & WithClientToken(Aws::String &&value)
DisassociateResourceShareRequest & AddResourceArns(const Aws::String &value)
DisassociateResourceShareRequest & WithSources(Aws::Vector< Aws::String > &&value)
DisassociateResourceShareRequest & AddSources(Aws::String &&value)
DisassociateResourceShareRequest & WithResourceShareArn(const Aws::String &value)
DisassociateResourceShareRequest & AddPrincipals(Aws::String &&value)
DisassociateResourceShareRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
DisassociateResourceShareRequest & AddResourceArns(const char *value)
DisassociateResourceShareRequest & WithPrincipals(Aws::Vector< Aws::String > &&value)
DisassociateResourceShareRequest & WithResourceShareArn(const char *value)
DisassociateResourceShareRequest & AddSources(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector