AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
LoggingFormat.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/JsonFormatRef.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMesh {
22namespace Model {
23
31 public:
32 AWS_APPMESH_API LoggingFormat() = default;
33 AWS_APPMESH_API LoggingFormat(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<JsonFormatRef>& GetJson() const { return m_json; }
42 inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
43 template <typename JsonT = Aws::Vector<JsonFormatRef>>
44 void SetJson(JsonT&& value) {
45 m_jsonHasBeenSet = true;
46 m_json = std::forward<JsonT>(value);
47 }
48 template <typename JsonT = Aws::Vector<JsonFormatRef>>
49 LoggingFormat& WithJson(JsonT&& value) {
50 SetJson(std::forward<JsonT>(value));
51 return *this;
52 }
53 template <typename JsonT = JsonFormatRef>
54 LoggingFormat& AddJson(JsonT&& value) {
55 m_jsonHasBeenSet = true;
56 m_json.emplace_back(std::forward<JsonT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetText() const { return m_text; }
66 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
67 template <typename TextT = Aws::String>
68 void SetText(TextT&& value) {
69 m_textHasBeenSet = true;
70 m_text = std::forward<TextT>(value);
71 }
72 template <typename TextT = Aws::String>
73 LoggingFormat& WithText(TextT&& value) {
74 SetText(std::forward<TextT>(value));
75 return *this;
76 }
78 private:
80
81 Aws::String m_text;
82 bool m_jsonHasBeenSet = false;
83 bool m_textHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace AppMesh
88} // namespace Aws
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< JsonFormatRef > & GetJson() const
LoggingFormat & WithText(TextT &&value)
AWS_APPMESH_API LoggingFormat(Aws::Utils::Json::JsonView jsonValue)
LoggingFormat & WithJson(JsonT &&value)
AWS_APPMESH_API LoggingFormat & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetText() const
AWS_APPMESH_API LoggingFormat()=default
LoggingFormat & AddJson(JsonT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue