AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
SegmentImportResource.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint/model/Format.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Pinpoint
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_PINPOINT_API SegmentImportResource() = default;
41 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Map<Aws::String, int>& GetChannelCounts() const { return m_channelCounts; }
50 inline bool ChannelCountsHasBeenSet() const { return m_channelCountsHasBeenSet; }
51 template<typename ChannelCountsT = Aws::Map<Aws::String, int>>
52 void SetChannelCounts(ChannelCountsT&& value) { m_channelCountsHasBeenSet = true; m_channelCounts = std::forward<ChannelCountsT>(value); }
53 template<typename ChannelCountsT = Aws::Map<Aws::String, int>>
54 SegmentImportResource& WithChannelCounts(ChannelCountsT&& value) { SetChannelCounts(std::forward<ChannelCountsT>(value)); return *this;}
56 m_channelCountsHasBeenSet = true; m_channelCounts.emplace(key, value); return *this;
57 }
59
61
68 inline const Aws::String& GetExternalId() const { return m_externalId; }
69 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
70 template<typename ExternalIdT = Aws::String>
71 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
72 template<typename ExternalIdT = Aws::String>
73 SegmentImportResource& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
75
77
82 inline Format GetFormat() const { return m_format; }
83 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
84 inline void SetFormat(Format value) { m_formatHasBeenSet = true; m_format = value; }
85 inline SegmentImportResource& WithFormat(Format value) { SetFormat(value); return *this;}
87
89
94 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
95 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
96 template<typename RoleArnT = Aws::String>
97 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
98 template<typename RoleArnT = Aws::String>
99 SegmentImportResource& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
101
103
107 inline const Aws::String& GetS3Url() const { return m_s3Url; }
108 inline bool S3UrlHasBeenSet() const { return m_s3UrlHasBeenSet; }
109 template<typename S3UrlT = Aws::String>
110 void SetS3Url(S3UrlT&& value) { m_s3UrlHasBeenSet = true; m_s3Url = std::forward<S3UrlT>(value); }
111 template<typename S3UrlT = Aws::String>
112 SegmentImportResource& WithS3Url(S3UrlT&& value) { SetS3Url(std::forward<S3UrlT>(value)); return *this;}
114
116
120 inline int GetSize() const { return m_size; }
121 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
122 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
123 inline SegmentImportResource& WithSize(int value) { SetSize(value); return *this;}
125 private:
126
127 Aws::Map<Aws::String, int> m_channelCounts;
128 bool m_channelCountsHasBeenSet = false;
129
130 Aws::String m_externalId;
131 bool m_externalIdHasBeenSet = false;
132
133 Format m_format{Format::NOT_SET};
134 bool m_formatHasBeenSet = false;
135
136 Aws::String m_roleArn;
137 bool m_roleArnHasBeenSet = false;
138
139 Aws::String m_s3Url;
140 bool m_s3UrlHasBeenSet = false;
141
142 int m_size{0};
143 bool m_sizeHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace Pinpoint
148} // 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