AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Segment.h
1
6#pragma once
7#include <aws/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace XRay
22{
23namespace Model
24{
25
39 class Segment
40 {
41 public:
42 AWS_XRAY_API Segment();
43 AWS_XRAY_API Segment(Aws::Utils::Json::JsonView jsonValue);
46
47
49
52 inline const Aws::String& GetId() const{ return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
55 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
56 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
57 inline Segment& WithId(const Aws::String& value) { SetId(value); return *this;}
58 inline Segment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
59 inline Segment& WithId(const char* value) { SetId(value); return *this;}
61
63
66 inline const Aws::String& GetDocument() const{ return m_document; }
67 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
68 inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
69 inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
70 inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
71 inline Segment& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
72 inline Segment& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;}
73 inline Segment& WithDocument(const char* value) { SetDocument(value); return *this;}
75 private:
76
77 Aws::String m_id;
78 bool m_idHasBeenSet = false;
79
80 Aws::String m_document;
81 bool m_documentHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace XRay
86} // namespace Aws
bool IdHasBeenSet() const
Definition Segment.h:53
const Aws::String & GetId() const
Definition Segment.h:52
AWS_XRAY_API Segment(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition Segment.h:56
Segment & WithDocument(const Aws::String &value)
Definition Segment.h:71
Segment & WithId(const char *value)
Definition Segment.h:59
const Aws::String & GetDocument() const
Definition Segment.h:66
Segment & WithId(const Aws::String &value)
Definition Segment.h:57
void SetDocument(const Aws::String &value)
Definition Segment.h:68
AWS_XRAY_API Segment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const Aws::String &value)
Definition Segment.h:54
Segment & WithDocument(const char *value)
Definition Segment.h:73
bool DocumentHasBeenSet() const
Definition Segment.h:67
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDocument(Aws::String &&value)
Definition Segment.h:69
void SetId(Aws::String &&value)
Definition Segment.h:55
Segment & WithId(Aws::String &&value)
Definition Segment.h:58
void SetDocument(const char *value)
Definition Segment.h:70
Segment & WithDocument(Aws::String &&value)
Definition Segment.h:72
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue