AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AuthorizeDataShareRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Redshift {
15namespace Model {
16
20 public:
21 AWS_REDSHIFT_API AuthorizeDataShareRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "AuthorizeDataShare"; }
28
29 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
40 inline const Aws::String& GetDataShareArn() const { return m_dataShareArn; }
41 inline bool DataShareArnHasBeenSet() const { return m_dataShareArnHasBeenSet; }
42 template <typename DataShareArnT = Aws::String>
43 void SetDataShareArn(DataShareArnT&& value) {
44 m_dataShareArnHasBeenSet = true;
45 m_dataShareArn = std::forward<DataShareArnT>(value);
46 }
47 template <typename DataShareArnT = Aws::String>
49 SetDataShareArn(std::forward<DataShareArnT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetConsumerIdentifier() const { return m_consumerIdentifier; }
61 inline bool ConsumerIdentifierHasBeenSet() const { return m_consumerIdentifierHasBeenSet; }
62 template <typename ConsumerIdentifierT = Aws::String>
63 void SetConsumerIdentifier(ConsumerIdentifierT&& value) {
64 m_consumerIdentifierHasBeenSet = true;
65 m_consumerIdentifier = std::forward<ConsumerIdentifierT>(value);
66 }
67 template <typename ConsumerIdentifierT = Aws::String>
68 AuthorizeDataShareRequest& WithConsumerIdentifier(ConsumerIdentifierT&& value) {
69 SetConsumerIdentifier(std::forward<ConsumerIdentifierT>(value));
70 return *this;
71 }
73
75
78 inline bool GetAllowWrites() const { return m_allowWrites; }
79 inline bool AllowWritesHasBeenSet() const { return m_allowWritesHasBeenSet; }
80 inline void SetAllowWrites(bool value) {
81 m_allowWritesHasBeenSet = true;
82 m_allowWrites = value;
83 }
85 SetAllowWrites(value);
86 return *this;
87 }
89 private:
90 Aws::String m_dataShareArn;
91
92 Aws::String m_consumerIdentifier;
93
94 bool m_allowWrites{false};
95 bool m_dataShareArnHasBeenSet = false;
96 bool m_consumerIdentifierHasBeenSet = false;
97 bool m_allowWritesHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Redshift
102} // namespace Aws
AuthorizeDataShareRequest & WithDataShareArn(DataShareArnT &&value)
virtual const char * GetServiceRequestName() const override
AuthorizeDataShareRequest & WithAllowWrites(bool value)
AWS_REDSHIFT_API AuthorizeDataShareRequest()=default
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AuthorizeDataShareRequest & WithConsumerIdentifier(ConsumerIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String