AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 Segment& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDocument() const { return m_document; }
65 inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
66 template<typename DocumentT = Aws::String>
67 void SetDocument(DocumentT&& value) { m_documentHasBeenSet = true; m_document = std::forward<DocumentT>(value); }
68 template<typename DocumentT = Aws::String>
69 Segment& WithDocument(DocumentT&& value) { SetDocument(std::forward<DocumentT>(value)); return *this;}
71 private:
72
73 Aws::String m_id;
74 bool m_idHasBeenSet = false;
75
76 Aws::String m_document;
77 bool m_documentHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace XRay
82} // 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)
const Aws::String & GetDocument() const
Definition Segment.h:64
AWS_XRAY_API Segment()=default
AWS_XRAY_API Segment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDocument(DocumentT &&value)
Definition Segment.h:67
Segment & WithDocument(DocumentT &&value)
Definition Segment.h:69
void SetId(IdT &&value)
Definition Segment.h:55
bool DocumentHasBeenSet() const
Definition Segment.h:65
Segment & WithId(IdT &&value)
Definition Segment.h:57
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue