AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateResourceShareRequest.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 "AssociateResourceShare"; }
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 AssociateResourceShareRequest& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
50 inline AssociateResourceShareRequest& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
52
54
60 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
61 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
62 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
63 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
66 inline AssociateResourceShareRequest& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
67 inline AssociateResourceShareRequest& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
68 inline AssociateResourceShareRequest& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
70
72
94 inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
95 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
96 inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
97 inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
99 inline AssociateResourceShareRequest& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
100 inline AssociateResourceShareRequest& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
101 inline AssociateResourceShareRequest& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
102 inline AssociateResourceShareRequest& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
104
106
118 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
119 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
120 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
121 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
122 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
123 inline AssociateResourceShareRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
124 inline AssociateResourceShareRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
125 inline AssociateResourceShareRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
127
129
133 inline const Aws::Vector<Aws::String>& GetSources() const{ return m_sources; }
134 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
135 inline void SetSources(const Aws::Vector<Aws::String>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
136 inline void SetSources(Aws::Vector<Aws::String>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
138 inline AssociateResourceShareRequest& WithSources(Aws::Vector<Aws::String>&& value) { SetSources(std::move(value)); return *this;}
139 inline AssociateResourceShareRequest& AddSources(const Aws::String& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
140 inline AssociateResourceShareRequest& AddSources(Aws::String&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
141 inline AssociateResourceShareRequest& AddSources(const char* value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
143 private:
144
145 Aws::String m_resourceShareArn;
146 bool m_resourceShareArnHasBeenSet = false;
147
148 Aws::Vector<Aws::String> m_resourceArns;
149 bool m_resourceArnsHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_principals;
152 bool m_principalsHasBeenSet = false;
153
154 Aws::String m_clientToken;
155 bool m_clientTokenHasBeenSet = false;
156
157 Aws::Vector<Aws::String> m_sources;
158 bool m_sourcesHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace RAM
163} // namespace Aws
AssociateResourceShareRequest & AddSources(const char *value)
AssociateResourceShareRequest & WithResourceArns(Aws::Vector< Aws::String > &&value)
AssociateResourceShareRequest & AddPrincipals(const char *value)
AssociateResourceShareRequest & WithSources(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
void SetPrincipals(Aws::Vector< Aws::String > &&value)
AssociateResourceShareRequest & AddResourceArns(const char *value)
AssociateResourceShareRequest & WithPrincipals(Aws::Vector< Aws::String > &&value)
AssociateResourceShareRequest & WithClientToken(const char *value)
AssociateResourceShareRequest & AddResourceArns(const Aws::String &value)
AssociateResourceShareRequest & AddSources(const Aws::String &value)
AssociateResourceShareRequest & AddSources(Aws::String &&value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
AssociateResourceShareRequest & AddPrincipals(Aws::String &&value)
AssociateResourceShareRequest & WithResourceShareArn(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSources() const
AssociateResourceShareRequest & WithClientToken(const Aws::String &value)
AssociateResourceShareRequest & WithPrincipals(const Aws::Vector< Aws::String > &value)
AssociateResourceShareRequest & WithResourceShareArn(Aws::String &&value)
AssociateResourceShareRequest & AddResourceArns(Aws::String &&value)
AssociateResourceShareRequest & WithSources(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetPrincipals() const
void SetSources(Aws::Vector< Aws::String > &&value)
AssociateResourceShareRequest & WithResourceArns(const Aws::Vector< Aws::String > &value)
AssociateResourceShareRequest & AddPrincipals(const Aws::String &value)
void SetPrincipals(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
AssociateResourceShareRequest & WithResourceShareArn(const char *value)
AWS_RAM_API Aws::String SerializePayload() const override
AssociateResourceShareRequest & WithClientToken(Aws::String &&value)
void SetSources(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector