AWS SDK for C++  1.9.161
AWS SDK for C++
DisassociateDataShareConsumerRequest.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 "DisassociateDataShareConsumer"; }
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 DisassociateDataShareConsumerRequest& WithDataShareArn(const Aws::String& value) { SetDataShareArn(value); return *this;}
74 
79  inline DisassociateDataShareConsumerRequest& WithDataShareArn(Aws::String&& value) { SetDataShareArn(std::move(value)); return *this;}
80 
85  inline DisassociateDataShareConsumerRequest& WithDataShareArn(const char* value) { SetDataShareArn(value); return *this;}
86 
87 
92  inline bool GetDisassociateEntireAccount() const{ return m_disassociateEntireAccount; }
93 
98  inline bool DisassociateEntireAccountHasBeenSet() const { return m_disassociateEntireAccountHasBeenSet; }
99 
104  inline void SetDisassociateEntireAccount(bool value) { m_disassociateEntireAccountHasBeenSet = true; m_disassociateEntireAccount = value; }
105 
110  inline DisassociateDataShareConsumerRequest& WithDisassociateEntireAccount(bool value) { SetDisassociateEntireAccount(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 DisassociateDataShareConsumerRequest& WithConsumerArn(const Aws::String& value) { SetConsumerArn(value); return *this;}
148 
153  inline DisassociateDataShareConsumerRequest& WithConsumerArn(Aws::String&& value) { SetConsumerArn(std::move(value)); return *this;}
154 
159  inline DisassociateDataShareConsumerRequest& 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_disassociateEntireAccount;
167  bool m_disassociateEntireAccountHasBeenSet;
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::DisassociateDataShareConsumerRequest::SetConsumerArn
void SetConsumerArn(Aws::String &&value)
Definition: DisassociateDataShareConsumerRequest.h:135
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::GetDisassociateEntireAccount
bool GetDisassociateEntireAccount() const
Definition: DisassociateDataShareConsumerRequest.h:92
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::SetDataShareArn
void SetDataShareArn(const char *value)
Definition: DisassociateDataShareConsumerRequest.h:67
RedshiftRequest.h
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::ConsumerArnHasBeenSet
bool ConsumerArnHasBeenSet() const
Definition: DisassociateDataShareConsumerRequest.h:123
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::WithDisassociateEntireAccount
DisassociateDataShareConsumerRequest & WithDisassociateEntireAccount(bool value)
Definition: DisassociateDataShareConsumerRequest.h:110
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::DisassociateDataShareConsumerRequest
DisassociateDataShareConsumerRequest()
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DisassociateDataShareConsumerRequest.h:30
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::SerializePayload
Aws::String SerializePayload() const override
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::WithConsumerArn
DisassociateDataShareConsumerRequest & WithConsumerArn(Aws::String &&value)
Definition: DisassociateDataShareConsumerRequest.h:153
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::SetConsumerArn
void SetConsumerArn(const char *value)
Definition: DisassociateDataShareConsumerRequest.h:141
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::WithConsumerArn
DisassociateDataShareConsumerRequest & WithConsumerArn(const char *value)
Definition: DisassociateDataShareConsumerRequest.h:159
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::SetDataShareArn
void SetDataShareArn(Aws::String &&value)
Definition: DisassociateDataShareConsumerRequest.h:61
AWSString.h
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::SetConsumerArn
void SetConsumerArn(const Aws::String &value)
Definition: DisassociateDataShareConsumerRequest.h:129
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::SetDisassociateEntireAccount
void SetDisassociateEntireAccount(bool value)
Definition: DisassociateDataShareConsumerRequest.h:104
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::WithConsumerArn
DisassociateDataShareConsumerRequest & WithConsumerArn(const Aws::String &value)
Definition: DisassociateDataShareConsumerRequest.h:147
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::WithDataShareArn
DisassociateDataShareConsumerRequest & WithDataShareArn(const char *value)
Definition: DisassociateDataShareConsumerRequest.h:85
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::WithDataShareArn
DisassociateDataShareConsumerRequest & WithDataShareArn(const Aws::String &value)
Definition: DisassociateDataShareConsumerRequest.h:73
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::DisassociateEntireAccountHasBeenSet
bool DisassociateEntireAccountHasBeenSet() const
Definition: DisassociateDataShareConsumerRequest.h:98
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::GetDataShareArn
const Aws::String & GetDataShareArn() const
Definition: DisassociateDataShareConsumerRequest.h:43
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::SetDataShareArn
void SetDataShareArn(const Aws::String &value)
Definition: DisassociateDataShareConsumerRequest.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::GetConsumerArn
const Aws::String & GetConsumerArn() const
Definition: DisassociateDataShareConsumerRequest.h:117
Redshift_EXPORTS.h
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::DataShareArnHasBeenSet
bool DataShareArnHasBeenSet() const
Definition: DisassociateDataShareConsumerRequest.h:49
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::DisassociateDataShareConsumerRequest
Definition: DisassociateDataShareConsumerRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DisassociateDataShareConsumerRequest::WithDataShareArn
DisassociateDataShareConsumerRequest & WithDataShareArn(Aws::String &&value)
Definition: DisassociateDataShareConsumerRequest.h:79