AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ImportJobResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9#include <aws/pinpoint/model/Format.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Pinpoint {
21namespace Model {
22
32 public:
33 AWS_PINPOINT_API ImportJobResource() = default;
34 AWS_PINPOINT_API ImportJobResource(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline bool GetDefineSegment() const { return m_defineSegment; }
44 inline bool DefineSegmentHasBeenSet() const { return m_defineSegmentHasBeenSet; }
45 inline void SetDefineSegment(bool value) {
46 m_defineSegmentHasBeenSet = true;
47 m_defineSegment = value;
48 }
50 SetDefineSegment(value);
51 return *this;
52 }
54
56
63 inline const Aws::String& GetExternalId() const { return m_externalId; }
64 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
65 template <typename ExternalIdT = Aws::String>
66 void SetExternalId(ExternalIdT&& value) {
67 m_externalIdHasBeenSet = true;
68 m_externalId = std::forward<ExternalIdT>(value);
69 }
70 template <typename ExternalIdT = Aws::String>
71 ImportJobResource& WithExternalId(ExternalIdT&& value) {
72 SetExternalId(std::forward<ExternalIdT>(value));
73 return *this;
74 }
76
78
86 inline Format GetFormat() const { return m_format; }
87 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
88 inline void SetFormat(Format value) {
89 m_formatHasBeenSet = true;
90 m_format = value;
91 }
93 SetFormat(value);
94 return *this;
95 }
97
99
103 inline bool GetRegisterEndpoints() const { return m_registerEndpoints; }
104 inline bool RegisterEndpointsHasBeenSet() const { return m_registerEndpointsHasBeenSet; }
105 inline void SetRegisterEndpoints(bool value) {
106 m_registerEndpointsHasBeenSet = true;
107 m_registerEndpoints = value;
108 }
111 return *this;
112 }
114
116
121 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
122 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
123 template <typename RoleArnT = Aws::String>
124 void SetRoleArn(RoleArnT&& value) {
125 m_roleArnHasBeenSet = true;
126 m_roleArn = std::forward<RoleArnT>(value);
127 }
128 template <typename RoleArnT = Aws::String>
129 ImportJobResource& WithRoleArn(RoleArnT&& value) {
130 SetRoleArn(std::forward<RoleArnT>(value));
131 return *this;
132 }
134
136
146 inline const Aws::String& GetS3Url() const { return m_s3Url; }
147 inline bool S3UrlHasBeenSet() const { return m_s3UrlHasBeenSet; }
148 template <typename S3UrlT = Aws::String>
149 void SetS3Url(S3UrlT&& value) {
150 m_s3UrlHasBeenSet = true;
151 m_s3Url = std::forward<S3UrlT>(value);
152 }
153 template <typename S3UrlT = Aws::String>
154 ImportJobResource& WithS3Url(S3UrlT&& value) {
155 SetS3Url(std::forward<S3UrlT>(value));
156 return *this;
157 }
159
161
165 inline const Aws::String& GetSegmentId() const { return m_segmentId; }
166 inline bool SegmentIdHasBeenSet() const { return m_segmentIdHasBeenSet; }
167 template <typename SegmentIdT = Aws::String>
168 void SetSegmentId(SegmentIdT&& value) {
169 m_segmentIdHasBeenSet = true;
170 m_segmentId = std::forward<SegmentIdT>(value);
171 }
172 template <typename SegmentIdT = Aws::String>
173 ImportJobResource& WithSegmentId(SegmentIdT&& value) {
174 SetSegmentId(std::forward<SegmentIdT>(value));
175 return *this;
176 }
178
180
184 inline const Aws::String& GetSegmentName() const { return m_segmentName; }
185 inline bool SegmentNameHasBeenSet() const { return m_segmentNameHasBeenSet; }
186 template <typename SegmentNameT = Aws::String>
187 void SetSegmentName(SegmentNameT&& value) {
188 m_segmentNameHasBeenSet = true;
189 m_segmentName = std::forward<SegmentNameT>(value);
190 }
191 template <typename SegmentNameT = Aws::String>
192 ImportJobResource& WithSegmentName(SegmentNameT&& value) {
193 SetSegmentName(std::forward<SegmentNameT>(value));
194 return *this;
195 }
197 private:
198 bool m_defineSegment{false};
199
200 Aws::String m_externalId;
201
202 Format m_format{Format::NOT_SET};
203
204 bool m_registerEndpoints{false};
205
206 Aws::String m_roleArn;
207
208 Aws::String m_s3Url;
209
210 Aws::String m_segmentId;
211
212 Aws::String m_segmentName;
213 bool m_defineSegmentHasBeenSet = false;
214 bool m_externalIdHasBeenSet = false;
215 bool m_formatHasBeenSet = false;
216 bool m_registerEndpointsHasBeenSet = false;
217 bool m_roleArnHasBeenSet = false;
218 bool m_s3UrlHasBeenSet = false;
219 bool m_segmentIdHasBeenSet = false;
220 bool m_segmentNameHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace Pinpoint
225} // namespace Aws
ImportJobResource & WithFormat(Format value)
ImportJobResource & WithDefineSegment(bool value)
ImportJobResource & WithSegmentName(SegmentNameT &&value)
void SetSegmentName(SegmentNameT &&value)
ImportJobResource & WithRegisterEndpoints(bool value)
ImportJobResource & WithExternalId(ExternalIdT &&value)
AWS_PINPOINT_API ImportJobResource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSegmentName() const
ImportJobResource & WithRoleArn(RoleArnT &&value)
const Aws::String & GetSegmentId() const
AWS_PINPOINT_API ImportJobResource()=default
ImportJobResource & WithSegmentId(SegmentIdT &&value)
AWS_PINPOINT_API ImportJobResource & operator=(Aws::Utils::Json::JsonView jsonValue)
ImportJobResource & WithS3Url(S3UrlT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetExternalId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue