AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetChannelCounts(const Aws::Map<Aws::String, int>& value) { m_channelCountsHasBeenSet = true; m_channelCounts = value; }
52 inline void SetChannelCounts(Aws::Map<Aws::String, int>&& value) { m_channelCountsHasBeenSet = true; m_channelCounts = std::move(value); }
54 inline SegmentImportResource& WithChannelCounts(Aws::Map<Aws::String, int>&& value) { SetChannelCounts(std::move(value)); return *this;}
55 inline SegmentImportResource& AddChannelCounts(const Aws::String& key, int value) { m_channelCountsHasBeenSet = true; m_channelCounts.emplace(key, value); return *this; }
56 inline SegmentImportResource& AddChannelCounts(Aws::String&& key, int value) { m_channelCountsHasBeenSet = true; m_channelCounts.emplace(std::move(key), value); return *this; }
57 inline SegmentImportResource& AddChannelCounts(const char* key, int value) { m_channelCountsHasBeenSet = true; m_channelCounts.emplace(key, value); return *this; }
59
61
68 inline const Aws::String& GetExternalId() const{ return m_externalId; }
69 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
70 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
71 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
72 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
73 inline SegmentImportResource& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
74 inline SegmentImportResource& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
75 inline SegmentImportResource& WithExternalId(const char* value) { SetExternalId(value); return *this;}
77
79
84 inline const Format& GetFormat() const{ return m_format; }
85 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
86 inline void SetFormat(const Format& value) { m_formatHasBeenSet = true; m_format = value; }
87 inline void SetFormat(Format&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
88 inline SegmentImportResource& WithFormat(const Format& value) { SetFormat(value); return *this;}
89 inline SegmentImportResource& WithFormat(Format&& value) { SetFormat(std::move(value)); return *this;}
91
93
98 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
99 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
100 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
101 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
102 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
103 inline SegmentImportResource& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
104 inline SegmentImportResource& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
105 inline SegmentImportResource& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
107
109
113 inline const Aws::String& GetS3Url() const{ return m_s3Url; }
114 inline bool S3UrlHasBeenSet() const { return m_s3UrlHasBeenSet; }
115 inline void SetS3Url(const Aws::String& value) { m_s3UrlHasBeenSet = true; m_s3Url = value; }
116 inline void SetS3Url(Aws::String&& value) { m_s3UrlHasBeenSet = true; m_s3Url = std::move(value); }
117 inline void SetS3Url(const char* value) { m_s3UrlHasBeenSet = true; m_s3Url.assign(value); }
118 inline SegmentImportResource& WithS3Url(const Aws::String& value) { SetS3Url(value); return *this;}
119 inline SegmentImportResource& WithS3Url(Aws::String&& value) { SetS3Url(std::move(value)); return *this;}
120 inline SegmentImportResource& WithS3Url(const char* value) { SetS3Url(value); return *this;}
122
124
128 inline int GetSize() const{ return m_size; }
129 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
130 inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; }
131 inline SegmentImportResource& WithSize(int value) { SetSize(value); return *this;}
133 private:
134
135 Aws::Map<Aws::String, int> m_channelCounts;
136 bool m_channelCountsHasBeenSet = false;
137
138 Aws::String m_externalId;
139 bool m_externalIdHasBeenSet = false;
140
141 Format m_format;
142 bool m_formatHasBeenSet = false;
143
144 Aws::String m_roleArn;
145 bool m_roleArnHasBeenSet = false;
146
147 Aws::String m_s3Url;
148 bool m_s3UrlHasBeenSet = false;
149
150 int m_size;
151 bool m_sizeHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace Pinpoint
156} // namespace Aws
SegmentImportResource & WithS3Url(const char *value)
SegmentImportResource & WithExternalId(Aws::String &&value)
SegmentImportResource & WithChannelCounts(const Aws::Map< Aws::String, int > &value)
SegmentImportResource & WithExternalId(const Aws::String &value)
SegmentImportResource & WithS3Url(const Aws::String &value)
SegmentImportResource & WithRoleArn(const Aws::String &value)
SegmentImportResource & WithS3Url(Aws::String &&value)
const Aws::Map< Aws::String, int > & GetChannelCounts() const
SegmentImportResource & WithRoleArn(const char *value)
SegmentImportResource & WithExternalId(const char *value)
SegmentImportResource & WithRoleArn(Aws::String &&value)
SegmentImportResource & AddChannelCounts(const Aws::String &key, int value)
SegmentImportResource & WithFormat(const Format &value)
void SetChannelCounts(Aws::Map< Aws::String, int > &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PINPOINT_API SegmentImportResource(Aws::Utils::Json::JsonView jsonValue)
SegmentImportResource & AddChannelCounts(Aws::String &&key, int value)
SegmentImportResource & WithSize(int value)
SegmentImportResource & AddChannelCounts(const char *key, int value)
void SetChannelCounts(const Aws::Map< Aws::String, int > &value)
AWS_PINPOINT_API SegmentImportResource & operator=(Aws::Utils::Json::JsonView jsonValue)
SegmentImportResource & WithFormat(Format &&value)
SegmentImportResource & WithChannelCounts(Aws::Map< Aws::String, int > &&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