AWS SDK for C++  1.9.157
AWS SDK for C++
AssociateDataShareConsumerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Redshift
15 {
16 namespace 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 "AssociateDataShareConsumer"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
43  inline const Aws::String& GetDataShareArn() const{ return m_dataShareArn; }
44 
49  inline bool DataShareArnHasBeenSet() const { return m_dataShareArnHasBeenSet; }
50 
55  inline void SetDataShareArn(const Aws::String& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = value; }
56 
61  inline void SetDataShareArn(Aws::String&& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = std::move(value); }
62 
67  inline void SetDataShareArn(const char* value) { m_dataShareArnHasBeenSet = true; m_dataShareArn.assign(value); }
68 
73  inline AssociateDataShareConsumerRequest& WithDataShareArn(const Aws::String& value) { SetDataShareArn(value); return *this;}
74 
79  inline AssociateDataShareConsumerRequest& WithDataShareArn(Aws::String&& value) { SetDataShareArn(std::move(value)); return *this;}
80 
85  inline AssociateDataShareConsumerRequest& WithDataShareArn(const char* value) { SetDataShareArn(value); return *this;}
86 
87 
92  inline bool GetAssociateEntireAccount() const{ return m_associateEntireAccount; }
93 
98  inline bool AssociateEntireAccountHasBeenSet() const { return m_associateEntireAccountHasBeenSet; }
99 
104  inline void SetAssociateEntireAccount(bool value) { m_associateEntireAccountHasBeenSet = true; m_associateEntireAccount = value; }
105 
110  inline AssociateDataShareConsumerRequest& WithAssociateEntireAccount(bool value) { SetAssociateEntireAccount(value); return *this;}
111 
112 
117  inline const Aws::String& GetConsumerArn() const{ return m_consumerArn; }
118 
123  inline bool ConsumerArnHasBeenSet() const { return m_consumerArnHasBeenSet; }
124 
129  inline void SetConsumerArn(const Aws::String& value) { m_consumerArnHasBeenSet = true; m_consumerArn = value; }
130 
135  inline void SetConsumerArn(Aws::String&& value) { m_consumerArnHasBeenSet = true; m_consumerArn = std::move(value); }
136 
141  inline void SetConsumerArn(const char* value) { m_consumerArnHasBeenSet = true; m_consumerArn.assign(value); }
142 
147  inline AssociateDataShareConsumerRequest& WithConsumerArn(const Aws::String& value) { SetConsumerArn(value); return *this;}
148 
153  inline AssociateDataShareConsumerRequest& WithConsumerArn(Aws::String&& value) { SetConsumerArn(std::move(value)); return *this;}
154 
159  inline AssociateDataShareConsumerRequest& WithConsumerArn(const char* value) { SetConsumerArn(value); return *this;}
160 
161  private:
162 
163  Aws::String m_dataShareArn;
164  bool m_dataShareArnHasBeenSet;
165 
166  bool m_associateEntireAccount;
167  bool m_associateEntireAccountHasBeenSet;
168 
169  Aws::String m_consumerArn;
170  bool m_consumerArnHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace Redshift
175 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::AssociateDataShareConsumerRequest::WithConsumerArn
AssociateDataShareConsumerRequest & WithConsumerArn(Aws::String &&value)
Definition: AssociateDataShareConsumerRequest.h:153
Aws::Redshift::Model::AssociateDataShareConsumerRequest::WithDataShareArn
AssociateDataShareConsumerRequest & WithDataShareArn(const char *value)
Definition: AssociateDataShareConsumerRequest.h:85
Aws::Redshift::Model::AssociateDataShareConsumerRequest::SetDataShareArn
void SetDataShareArn(const char *value)
Definition: AssociateDataShareConsumerRequest.h:67
Aws::Redshift::Model::AssociateDataShareConsumerRequest::GetDataShareArn
const Aws::String & GetDataShareArn() const
Definition: AssociateDataShareConsumerRequest.h:43
Aws::Redshift::Model::AssociateDataShareConsumerRequest::GetConsumerArn
const Aws::String & GetConsumerArn() const
Definition: AssociateDataShareConsumerRequest.h:117
Aws::Redshift::Model::AssociateDataShareConsumerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateDataShareConsumerRequest.h:30
Aws::Redshift::Model::AssociateDataShareConsumerRequest::AssociateEntireAccountHasBeenSet
bool AssociateEntireAccountHasBeenSet() const
Definition: AssociateDataShareConsumerRequest.h:98
Aws::Redshift::Model::AssociateDataShareConsumerRequest::SetAssociateEntireAccount
void SetAssociateEntireAccount(bool value)
Definition: AssociateDataShareConsumerRequest.h:104
Aws::Redshift::Model::AssociateDataShareConsumerRequest
Definition: AssociateDataShareConsumerRequest.h:22
RedshiftRequest.h
Aws::Redshift::Model::AssociateDataShareConsumerRequest::WithConsumerArn
AssociateDataShareConsumerRequest & WithConsumerArn(const char *value)
Definition: AssociateDataShareConsumerRequest.h:159
Aws::Redshift::Model::AssociateDataShareConsumerRequest::AssociateDataShareConsumerRequest
AssociateDataShareConsumerRequest()
Aws::Redshift::Model::AssociateDataShareConsumerRequest::SetConsumerArn
void SetConsumerArn(const char *value)
Definition: AssociateDataShareConsumerRequest.h:141
Aws::Redshift::Model::AssociateDataShareConsumerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::AssociateDataShareConsumerRequest::WithConsumerArn
AssociateDataShareConsumerRequest & WithConsumerArn(const Aws::String &value)
Definition: AssociateDataShareConsumerRequest.h:147
Aws::Redshift::Model::AssociateDataShareConsumerRequest::ConsumerArnHasBeenSet
bool ConsumerArnHasBeenSet() const
Definition: AssociateDataShareConsumerRequest.h:123
Aws::Redshift::Model::AssociateDataShareConsumerRequest::WithAssociateEntireAccount
AssociateDataShareConsumerRequest & WithAssociateEntireAccount(bool value)
Definition: AssociateDataShareConsumerRequest.h:110
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::AssociateDataShareConsumerRequest::SetDataShareArn
void SetDataShareArn(const Aws::String &value)
Definition: AssociateDataShareConsumerRequest.h:55
Aws::Redshift::Model::AssociateDataShareConsumerRequest::SetConsumerArn
void SetConsumerArn(const Aws::String &value)
Definition: AssociateDataShareConsumerRequest.h:129
Aws::Redshift::Model::AssociateDataShareConsumerRequest::SetDataShareArn
void SetDataShareArn(Aws::String &&value)
Definition: AssociateDataShareConsumerRequest.h:61
Aws::Redshift::Model::AssociateDataShareConsumerRequest::WithDataShareArn
AssociateDataShareConsumerRequest & WithDataShareArn(Aws::String &&value)
Definition: AssociateDataShareConsumerRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::AssociateDataShareConsumerRequest::SetConsumerArn
void SetConsumerArn(Aws::String &&value)
Definition: AssociateDataShareConsumerRequest.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::AssociateDataShareConsumerRequest::WithDataShareArn
AssociateDataShareConsumerRequest & WithDataShareArn(const Aws::String &value)
Definition: AssociateDataShareConsumerRequest.h:73
Aws::Redshift::Model::AssociateDataShareConsumerRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::AssociateDataShareConsumerRequest::DataShareArnHasBeenSet
bool DataShareArnHasBeenSet() const
Definition: AssociateDataShareConsumerRequest.h:49
Aws::Redshift::Model::AssociateDataShareConsumerRequest::GetAssociateEntireAccount
bool GetAssociateEntireAccount() const
Definition: AssociateDataShareConsumerRequest.h:92