AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SegmentsResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint/model/SegmentResponse.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
35 {
36 public:
37 AWS_PINPOINT_API SegmentsResponse();
38 AWS_PINPOINT_API SegmentsResponse(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<SegmentResponse>& GetItem() const{ return m_item; }
50 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
51 inline void SetItem(const Aws::Vector<SegmentResponse>& value) { m_itemHasBeenSet = true; m_item = value; }
52 inline void SetItem(Aws::Vector<SegmentResponse>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); }
53 inline SegmentsResponse& WithItem(const Aws::Vector<SegmentResponse>& value) { SetItem(value); return *this;}
54 inline SegmentsResponse& WithItem(Aws::Vector<SegmentResponse>&& value) { SetItem(std::move(value)); return *this;}
55 inline SegmentsResponse& AddItem(const SegmentResponse& value) { m_itemHasBeenSet = true; m_item.push_back(value); return *this; }
56 inline SegmentsResponse& AddItem(SegmentResponse&& value) { m_itemHasBeenSet = true; m_item.push_back(std::move(value)); return *this; }
58
60
64 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
65 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
66 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
67 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
68 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
69 inline SegmentsResponse& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
70 inline SegmentsResponse& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
71 inline SegmentsResponse& WithNextToken(const char* value) { SetNextToken(value); return *this;}
73 private:
74
76 bool m_itemHasBeenSet = false;
77
78 Aws::String m_nextToken;
79 bool m_nextTokenHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Pinpoint
84} // namespace Aws
SegmentsResponse & WithNextToken(Aws::String &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetNextToken(Aws::String &&value)
AWS_PINPOINT_API SegmentsResponse(Aws::Utils::Json::JsonView jsonValue)
SegmentsResponse & WithItem(Aws::Vector< SegmentResponse > &&value)
SegmentsResponse & AddItem(SegmentResponse &&value)
SegmentsResponse & WithNextToken(const Aws::String &value)
void SetNextToken(const Aws::String &value)
const Aws::Vector< SegmentResponse > & GetItem() const
void SetItem(const Aws::Vector< SegmentResponse > &value)
SegmentsResponse & WithNextToken(const char *value)
void SetItem(Aws::Vector< SegmentResponse > &&value)
SegmentsResponse & AddItem(const SegmentResponse &value)
AWS_PINPOINT_API SegmentsResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
SegmentsResponse & WithItem(const Aws::Vector< SegmentResponse > &value)
const Aws::String & GetNextToken() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue