AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SegmentImportResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/Format.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
32 public:
33 AWS_PINPOINT_API SegmentImportResource() = default;
36 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Map<Aws::String, int>& GetChannelCounts() const { return m_channelCounts; }
44 inline bool ChannelCountsHasBeenSet() const { return m_channelCountsHasBeenSet; }
45 template <typename ChannelCountsT = Aws::Map<Aws::String, int>>
46 void SetChannelCounts(ChannelCountsT&& value) {
47 m_channelCountsHasBeenSet = true;
48 m_channelCounts = std::forward<ChannelCountsT>(value);
49 }
50 template <typename ChannelCountsT = Aws::Map<Aws::String, int>>
51 SegmentImportResource& WithChannelCounts(ChannelCountsT&& value) {
52 SetChannelCounts(std::forward<ChannelCountsT>(value));
53 return *this;
54 }
56 m_channelCountsHasBeenSet = true;
57 m_channelCounts.emplace(key, value);
58 return *this;
59 }
61
63
70 inline const Aws::String& GetExternalId() const { return m_externalId; }
71 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
72 template <typename ExternalIdT = Aws::String>
73 void SetExternalId(ExternalIdT&& value) {
74 m_externalIdHasBeenSet = true;
75 m_externalId = std::forward<ExternalIdT>(value);
76 }
77 template <typename ExternalIdT = Aws::String>
78 SegmentImportResource& WithExternalId(ExternalIdT&& value) {
79 SetExternalId(std::forward<ExternalIdT>(value));
80 return *this;
81 }
83
85
90 inline Format GetFormat() const { return m_format; }
91 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
92 inline void SetFormat(Format value) {
93 m_formatHasBeenSet = true;
94 m_format = value;
95 }
97 SetFormat(value);
98 return *this;
99 }
101
103
108 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
109 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
110 template <typename RoleArnT = Aws::String>
111 void SetRoleArn(RoleArnT&& value) {
112 m_roleArnHasBeenSet = true;
113 m_roleArn = std::forward<RoleArnT>(value);
114 }
115 template <typename RoleArnT = Aws::String>
117 SetRoleArn(std::forward<RoleArnT>(value));
118 return *this;
119 }
121
123
127 inline const Aws::String& GetS3Url() const { return m_s3Url; }
128 inline bool S3UrlHasBeenSet() const { return m_s3UrlHasBeenSet; }
129 template <typename S3UrlT = Aws::String>
130 void SetS3Url(S3UrlT&& value) {
131 m_s3UrlHasBeenSet = true;
132 m_s3Url = std::forward<S3UrlT>(value);
133 }
134 template <typename S3UrlT = Aws::String>
136 SetS3Url(std::forward<S3UrlT>(value));
137 return *this;
138 }
140
142
146 inline int GetSize() const { return m_size; }
147 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
148 inline void SetSize(int value) {
149 m_sizeHasBeenSet = true;
150 m_size = value;
151 }
152 inline SegmentImportResource& WithSize(int value) {
153 SetSize(value);
154 return *this;
155 }
157 private:
158 Aws::Map<Aws::String, int> m_channelCounts;
159
160 Aws::String m_externalId;
161
162 Format m_format{Format::NOT_SET};
163
164 Aws::String m_roleArn;
165
166 Aws::String m_s3Url;
167
168 int m_size{0};
169 bool m_channelCountsHasBeenSet = false;
170 bool m_externalIdHasBeenSet = false;
171 bool m_formatHasBeenSet = false;
172 bool m_roleArnHasBeenSet = false;
173 bool m_s3UrlHasBeenSet = false;
174 bool m_sizeHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace Pinpoint
179} // namespace Aws
const Aws::Map< Aws::String, int > & GetChannelCounts() const
SegmentImportResource & WithS3Url(S3UrlT &&value)
SegmentImportResource & WithChannelCounts(ChannelCountsT &&value)
SegmentImportResource & AddChannelCounts(Aws::String key, int value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API SegmentImportResource(Aws::Utils::Json::JsonView jsonValue)
SegmentImportResource & WithExternalId(ExternalIdT &&value)
SegmentImportResource & WithSize(int value)
AWS_PINPOINT_API SegmentImportResource()=default
AWS_PINPOINT_API SegmentImportResource & operator=(Aws::Utils::Json::JsonView jsonValue)
SegmentImportResource & WithFormat(Format value)
SegmentImportResource & WithRoleArn(RoleArnT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue