AWS SDK for C++  1.9.158
AWS SDK for C++
DeauthorizeDataShareRequest.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 "DeauthorizeDataShare"; }
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 DeauthorizeDataShareRequest& WithDataShareArn(const Aws::String& value) { SetDataShareArn(value); return *this;}
74 
79  inline DeauthorizeDataShareRequest& WithDataShareArn(Aws::String&& value) { SetDataShareArn(std::move(value)); return *this;}
80 
85  inline DeauthorizeDataShareRequest& WithDataShareArn(const char* value) { SetDataShareArn(value); return *this;}
86 
87 
92  inline const Aws::String& GetConsumerIdentifier() const{ return m_consumerIdentifier; }
93 
98  inline bool ConsumerIdentifierHasBeenSet() const { return m_consumerIdentifierHasBeenSet; }
99 
104  inline void SetConsumerIdentifier(const Aws::String& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = value; }
105 
110  inline void SetConsumerIdentifier(Aws::String&& value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier = std::move(value); }
111 
116  inline void SetConsumerIdentifier(const char* value) { m_consumerIdentifierHasBeenSet = true; m_consumerIdentifier.assign(value); }
117 
122  inline DeauthorizeDataShareRequest& WithConsumerIdentifier(const Aws::String& value) { SetConsumerIdentifier(value); return *this;}
123 
128  inline DeauthorizeDataShareRequest& WithConsumerIdentifier(Aws::String&& value) { SetConsumerIdentifier(std::move(value)); return *this;}
129 
134  inline DeauthorizeDataShareRequest& WithConsumerIdentifier(const char* value) { SetConsumerIdentifier(value); return *this;}
135 
136  private:
137 
138  Aws::String m_dataShareArn;
139  bool m_dataShareArnHasBeenSet;
140 
141  Aws::String m_consumerIdentifier;
142  bool m_consumerIdentifierHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace Redshift
147 } // namespace Aws
Aws::Redshift::Model::DeauthorizeDataShareRequest::SetConsumerIdentifier
void SetConsumerIdentifier(const Aws::String &value)
Definition: DeauthorizeDataShareRequest.h:104
Aws::Redshift::Model::DeauthorizeDataShareRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::DeauthorizeDataShareRequest::WithDataShareArn
DeauthorizeDataShareRequest & WithDataShareArn(Aws::String &&value)
Definition: DeauthorizeDataShareRequest.h:79
Aws::Redshift::Model::DeauthorizeDataShareRequest::WithDataShareArn
DeauthorizeDataShareRequest & WithDataShareArn(const char *value)
Definition: DeauthorizeDataShareRequest.h:85
Aws::Redshift::Model::DeauthorizeDataShareRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::DeauthorizeDataShareRequest::SetConsumerIdentifier
void SetConsumerIdentifier(const char *value)
Definition: DeauthorizeDataShareRequest.h:116
Aws::Redshift::Model::DeauthorizeDataShareRequest::WithConsumerIdentifier
DeauthorizeDataShareRequest & WithConsumerIdentifier(const Aws::String &value)
Definition: DeauthorizeDataShareRequest.h:122
Aws::Redshift::Model::DeauthorizeDataShareRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeauthorizeDataShareRequest.h:30
Aws::Redshift::Model::DeauthorizeDataShareRequest::SetConsumerIdentifier
void SetConsumerIdentifier(Aws::String &&value)
Definition: DeauthorizeDataShareRequest.h:110
Aws::Redshift::Model::DeauthorizeDataShareRequest::SetDataShareArn
void SetDataShareArn(Aws::String &&value)
Definition: DeauthorizeDataShareRequest.h:61
RedshiftRequest.h
Aws::Redshift::Model::DeauthorizeDataShareRequest::SetDataShareArn
void SetDataShareArn(const char *value)
Definition: DeauthorizeDataShareRequest.h:67
Aws::Redshift::Model::DeauthorizeDataShareRequest::DeauthorizeDataShareRequest
DeauthorizeDataShareRequest()
Aws::Redshift::Model::DeauthorizeDataShareRequest::SetDataShareArn
void SetDataShareArn(const Aws::String &value)
Definition: DeauthorizeDataShareRequest.h:55
Aws::Redshift::Model::DeauthorizeDataShareRequest::WithConsumerIdentifier
DeauthorizeDataShareRequest & WithConsumerIdentifier(const char *value)
Definition: DeauthorizeDataShareRequest.h:134
Aws::Redshift::Model::DeauthorizeDataShareRequest::GetConsumerIdentifier
const Aws::String & GetConsumerIdentifier() const
Definition: DeauthorizeDataShareRequest.h:92
Aws::Redshift::Model::DeauthorizeDataShareRequest::WithDataShareArn
DeauthorizeDataShareRequest & WithDataShareArn(const Aws::String &value)
Definition: DeauthorizeDataShareRequest.h:73
Aws::Redshift::Model::DeauthorizeDataShareRequest::ConsumerIdentifierHasBeenSet
bool ConsumerIdentifierHasBeenSet() const
Definition: DeauthorizeDataShareRequest.h:98
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::DeauthorizeDataShareRequest::GetDataShareArn
const Aws::String & GetDataShareArn() const
Definition: DeauthorizeDataShareRequest.h:43
AWSString.h
Aws::Redshift::Model::DeauthorizeDataShareRequest::DataShareArnHasBeenSet
bool DataShareArnHasBeenSet() const
Definition: DeauthorizeDataShareRequest.h:49
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::DeauthorizeDataShareRequest::WithConsumerIdentifier
DeauthorizeDataShareRequest & WithConsumerIdentifier(Aws::String &&value)
Definition: DeauthorizeDataShareRequest.h:128
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::DeauthorizeDataShareRequest
Definition: DeauthorizeDataShareRequest.h:22