AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetJson(const Aws::Vector<JsonFormatRef>& value) { m_jsonHasBeenSet = true; m_json = value; }
50 inline void SetJson(Aws::Vector<JsonFormatRef>&& value) { m_jsonHasBeenSet = true; m_json = std::move(value); }
51 inline LoggingFormat& WithJson(const Aws::Vector<JsonFormatRef>& value) { SetJson(value); return *this;}
52 inline LoggingFormat& WithJson(Aws::Vector<JsonFormatRef>&& value) { SetJson(std::move(value)); return *this;}
53 inline LoggingFormat& AddJson(const JsonFormatRef& value) { m_jsonHasBeenSet = true; m_json.push_back(value); return *this; }
54 inline LoggingFormat& AddJson(JsonFormatRef&& value) { m_jsonHasBeenSet = true; m_json.push_back(std::move(value)); return *this; }
56
58
61 inline const Aws::String& GetText() const{ return m_text; }
62 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
63 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
64 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
65 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
66 inline LoggingFormat& WithText(const Aws::String& value) { SetText(value); return *this;}
67 inline LoggingFormat& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
68 inline LoggingFormat& WithText(const char* value) { SetText(value); return *this;}
70 private:
71
73 bool m_jsonHasBeenSet = false;
74
75 Aws::String m_text;
76 bool m_textHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace AppMesh
81} // namespace Aws
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetText(const char *value)
const Aws::Vector< JsonFormatRef > & GetJson() const
void SetText(const Aws::String &value)
LoggingFormat & WithJson(const Aws::Vector< JsonFormatRef > &value)
LoggingFormat & WithText(const char *value)
LoggingFormat & AddJson(JsonFormatRef &&value)
LoggingFormat & WithText(Aws::String &&value)
LoggingFormat & WithJson(Aws::Vector< JsonFormatRef > &&value)
void SetJson(Aws::Vector< JsonFormatRef > &&value)
LoggingFormat & WithText(const Aws::String &value)
AWS_APPMESH_API LoggingFormat(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API LoggingFormat & operator=(Aws::Utils::Json::JsonView jsonValue)
LoggingFormat & AddJson(const JsonFormatRef &value)
const Aws::String & GetText() const
void SetJson(const Aws::Vector< JsonFormatRef > &value)
void SetText(Aws::String &&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