AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateDataShareConsumerRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Redshift
15{
16namespace 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_REDSHIFT_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
40
44 inline const Aws::String& GetDataShareArn() const{ return m_dataShareArn; }
45 inline bool DataShareArnHasBeenSet() const { return m_dataShareArnHasBeenSet; }
46 inline void SetDataShareArn(const Aws::String& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = value; }
47 inline void SetDataShareArn(Aws::String&& value) { m_dataShareArnHasBeenSet = true; m_dataShareArn = std::move(value); }
48 inline void SetDataShareArn(const char* value) { m_dataShareArnHasBeenSet = true; m_dataShareArn.assign(value); }
50 inline AssociateDataShareConsumerRequest& WithDataShareArn(Aws::String&& value) { SetDataShareArn(std::move(value)); return *this;}
51 inline AssociateDataShareConsumerRequest& WithDataShareArn(const char* value) { SetDataShareArn(value); return *this;}
53
55
59 inline bool GetAssociateEntireAccount() const{ return m_associateEntireAccount; }
60 inline bool AssociateEntireAccountHasBeenSet() const { return m_associateEntireAccountHasBeenSet; }
61 inline void SetAssociateEntireAccount(bool value) { m_associateEntireAccountHasBeenSet = true; m_associateEntireAccount = value; }
64
66
70 inline const Aws::String& GetConsumerArn() const{ return m_consumerArn; }
71 inline bool ConsumerArnHasBeenSet() const { return m_consumerArnHasBeenSet; }
72 inline void SetConsumerArn(const Aws::String& value) { m_consumerArnHasBeenSet = true; m_consumerArn = value; }
73 inline void SetConsumerArn(Aws::String&& value) { m_consumerArnHasBeenSet = true; m_consumerArn = std::move(value); }
74 inline void SetConsumerArn(const char* value) { m_consumerArnHasBeenSet = true; m_consumerArn.assign(value); }
75 inline AssociateDataShareConsumerRequest& WithConsumerArn(const Aws::String& value) { SetConsumerArn(value); return *this;}
76 inline AssociateDataShareConsumerRequest& WithConsumerArn(Aws::String&& value) { SetConsumerArn(std::move(value)); return *this;}
77 inline AssociateDataShareConsumerRequest& WithConsumerArn(const char* value) { SetConsumerArn(value); return *this;}
79
81
85 inline const Aws::String& GetConsumerRegion() const{ return m_consumerRegion; }
86 inline bool ConsumerRegionHasBeenSet() const { return m_consumerRegionHasBeenSet; }
87 inline void SetConsumerRegion(const Aws::String& value) { m_consumerRegionHasBeenSet = true; m_consumerRegion = value; }
88 inline void SetConsumerRegion(Aws::String&& value) { m_consumerRegionHasBeenSet = true; m_consumerRegion = std::move(value); }
89 inline void SetConsumerRegion(const char* value) { m_consumerRegionHasBeenSet = true; m_consumerRegion.assign(value); }
91 inline AssociateDataShareConsumerRequest& WithConsumerRegion(Aws::String&& value) { SetConsumerRegion(std::move(value)); return *this;}
92 inline AssociateDataShareConsumerRequest& WithConsumerRegion(const char* value) { SetConsumerRegion(value); return *this;}
94
96
99 inline bool GetAllowWrites() const{ return m_allowWrites; }
100 inline bool AllowWritesHasBeenSet() const { return m_allowWritesHasBeenSet; }
101 inline void SetAllowWrites(bool value) { m_allowWritesHasBeenSet = true; m_allowWrites = value; }
102 inline AssociateDataShareConsumerRequest& WithAllowWrites(bool value) { SetAllowWrites(value); return *this;}
104 private:
105
106 Aws::String m_dataShareArn;
107 bool m_dataShareArnHasBeenSet = false;
108
109 bool m_associateEntireAccount;
110 bool m_associateEntireAccountHasBeenSet = false;
111
112 Aws::String m_consumerArn;
113 bool m_consumerArnHasBeenSet = false;
114
115 Aws::String m_consumerRegion;
116 bool m_consumerRegionHasBeenSet = false;
117
118 bool m_allowWrites;
119 bool m_allowWritesHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace Redshift
124} // namespace Aws
AssociateDataShareConsumerRequest & WithConsumerRegion(const char *value)
AssociateDataShareConsumerRequest & WithConsumerRegion(Aws::String &&value)
AssociateDataShareConsumerRequest & WithAllowWrites(bool value)
AssociateDataShareConsumerRequest & WithConsumerRegion(const Aws::String &value)
AssociateDataShareConsumerRequest & WithDataShareArn(const Aws::String &value)
AssociateDataShareConsumerRequest & WithConsumerArn(const Aws::String &value)
AssociateDataShareConsumerRequest & WithConsumerArn(const char *value)
AssociateDataShareConsumerRequest & WithDataShareArn(const char *value)
AssociateDataShareConsumerRequest & WithAssociateEntireAccount(bool value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AssociateDataShareConsumerRequest & WithConsumerArn(Aws::String &&value)
AssociateDataShareConsumerRequest & WithDataShareArn(Aws::String &&value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String