AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
FileAccessLog.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/LoggingFormat.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppMesh {
21namespace Model {
22
29 public:
30 AWS_APPMESH_API FileAccessLog() = default;
31 AWS_APPMESH_API FileAccessLog(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const LoggingFormat& GetFormat() const { return m_format; }
41 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
42 template <typename FormatT = LoggingFormat>
43 void SetFormat(FormatT&& value) {
44 m_formatHasBeenSet = true;
45 m_format = std::forward<FormatT>(value);
46 }
47 template <typename FormatT = LoggingFormat>
48 FileAccessLog& WithFormat(FormatT&& value) {
49 SetFormat(std::forward<FormatT>(value));
50 return *this;
51 }
53
55
64 inline const Aws::String& GetPath() const { return m_path; }
65 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
66 template <typename PathT = Aws::String>
67 void SetPath(PathT&& value) {
68 m_pathHasBeenSet = true;
69 m_path = std::forward<PathT>(value);
70 }
71 template <typename PathT = Aws::String>
72 FileAccessLog& WithPath(PathT&& value) {
73 SetPath(std::forward<PathT>(value));
74 return *this;
75 }
77 private:
78 LoggingFormat m_format;
79
80 Aws::String m_path;
81 bool m_formatHasBeenSet = false;
82 bool m_pathHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace AppMesh
87} // namespace Aws
FileAccessLog & WithFormat(FormatT &&value)
AWS_APPMESH_API FileAccessLog & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
const LoggingFormat & GetFormat() const
FileAccessLog & WithPath(PathT &&value)
const Aws::String & GetPath() const
void SetFormat(FormatT &&value)
AWS_APPMESH_API FileAccessLog()=default
AWS_APPMESH_API FileAccessLog(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue