AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LoggingFormat.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appmesh/model/JsonFormatRef.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 AppMesh
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPMESH_API LoggingFormat() = default;
38 AWS_APPMESH_API LoggingFormat(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<JsonFormatRef>& GetJson() const { return m_json; }
48 inline bool JsonHasBeenSet() const { return m_jsonHasBeenSet; }
49 template<typename JsonT = Aws::Vector<JsonFormatRef>>
50 void SetJson(JsonT&& value) { m_jsonHasBeenSet = true; m_json = std::forward<JsonT>(value); }
51 template<typename JsonT = Aws::Vector<JsonFormatRef>>
52 LoggingFormat& WithJson(JsonT&& value) { SetJson(std::forward<JsonT>(value)); return *this;}
53 template<typename JsonT = JsonFormatRef>
54 LoggingFormat& AddJson(JsonT&& value) { m_jsonHasBeenSet = true; m_json.emplace_back(std::forward<JsonT>(value)); return *this; }
56
58
61 inline const Aws::String& GetText() const { return m_text; }
62 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
63 template<typename TextT = Aws::String>
64 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
65 template<typename TextT = Aws::String>
66 LoggingFormat& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
68 private:
69
71 bool m_jsonHasBeenSet = false;
72
73 Aws::String m_text;
74 bool m_textHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace AppMesh
79} // 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