AWS SDK for C++

AWS SDK for C++ Version 1.11.826

Loading...
Searching...
No Matches
CreateFlowRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/UUID.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/quicksight/QuickSightRequest.h>
12#include <aws/quicksight/QuickSight_EXPORTS.h>
13#include <aws/quicksight/model/Permission.h>
14
15#include <utility>
16
17namespace Aws {
18namespace QuickSight {
19namespace Model {
20
24 public:
25 AWS_QUICKSIGHT_API CreateFlowRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateFlow"; }
32
33 AWS_QUICKSIGHT_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
41 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
42 template <typename AwsAccountIdT = Aws::String>
43 void SetAwsAccountId(AwsAccountIdT&& value) {
44 m_awsAccountIdHasBeenSet = true;
45 m_awsAccountId = std::forward<AwsAccountIdT>(value);
46 }
47 template <typename AwsAccountIdT = Aws::String>
48 CreateFlowRequest& WithAwsAccountId(AwsAccountIdT&& value) {
49 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 CreateFlowRequest& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 CreateFlowRequest& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
98 inline Aws::Utils::DocumentView GetFlowDefinition() const { return m_flowDefinition; }
99 inline bool FlowDefinitionHasBeenSet() const { return m_flowDefinitionHasBeenSet; }
100 template <typename FlowDefinitionT = Aws::Utils::Document>
101 void SetFlowDefinition(FlowDefinitionT&& value) {
102 m_flowDefinitionHasBeenSet = true;
103 m_flowDefinition = std::forward<FlowDefinitionT>(value);
104 }
105 template <typename FlowDefinitionT = Aws::Utils::Document>
106 CreateFlowRequest& WithFlowDefinition(FlowDefinitionT&& value) {
107 SetFlowDefinition(std::forward<FlowDefinitionT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Vector<Permission>& GetPermissions() const { return m_permissions; }
118 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
119 template <typename PermissionsT = Aws::Vector<Permission>>
120 void SetPermissions(PermissionsT&& value) {
121 m_permissionsHasBeenSet = true;
122 m_permissions = std::forward<PermissionsT>(value);
123 }
124 template <typename PermissionsT = Aws::Vector<Permission>>
125 CreateFlowRequest& WithPermissions(PermissionsT&& value) {
126 SetPermissions(std::forward<PermissionsT>(value));
127 return *this;
128 }
129 template <typename PermissionsT = Permission>
130 CreateFlowRequest& AddPermissions(PermissionsT&& value) {
131 m_permissionsHasBeenSet = true;
132 m_permissions.emplace_back(std::forward<PermissionsT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::String& GetClientToken() const { return m_clientToken; }
143 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
144 template <typename ClientTokenT = Aws::String>
145 void SetClientToken(ClientTokenT&& value) {
146 m_clientTokenHasBeenSet = true;
147 m_clientToken = std::forward<ClientTokenT>(value);
148 }
149 template <typename ClientTokenT = Aws::String>
150 CreateFlowRequest& WithClientToken(ClientTokenT&& value) {
151 SetClientToken(std::forward<ClientTokenT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_awsAccountId;
157
158 Aws::String m_name;
159
160 Aws::String m_description;
161
162 Aws::Utils::Document m_flowDefinition;
163
164 Aws::Vector<Permission> m_permissions;
165
167 bool m_awsAccountIdHasBeenSet = false;
168 bool m_nameHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170 bool m_flowDefinitionHasBeenSet = false;
171 bool m_permissionsHasBeenSet = false;
172 bool m_clientTokenHasBeenSet = true;
173};
174
175} // namespace Model
176} // namespace QuickSight
177} // namespace Aws
CreateFlowRequest & AddPermissions(PermissionsT &&value)
CreateFlowRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetAwsAccountId() const
CreateFlowRequest & WithFlowDefinition(FlowDefinitionT &&value)
CreateFlowRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< Permission > & GetPermissions() const
Aws::Utils::DocumentView GetFlowDefinition() const
AWS_QUICKSIGHT_API Aws::String SerializePayload() const override
CreateFlowRequest & WithName(NameT &&value)
const Aws::String & GetDescription() const
AWS_QUICKSIGHT_API CreateFlowRequest()=default
void SetFlowDefinition(FlowDefinitionT &&value)
CreateFlowRequest & WithPermissions(PermissionsT &&value)
void SetAwsAccountId(AwsAccountIdT &&value)
CreateFlowRequest & WithAwsAccountId(AwsAccountIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector