AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
LogPattern.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApplicationInsights {
20namespace Model {
21
29 public:
30 AWS_APPLICATIONINSIGHTS_API LogPattern() = default;
31 AWS_APPLICATIONINSIGHTS_API LogPattern(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPLICATIONINSIGHTS_API LogPattern& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetPatternSetName() const { return m_patternSetName; }
42 inline bool PatternSetNameHasBeenSet() const { return m_patternSetNameHasBeenSet; }
43 template <typename PatternSetNameT = Aws::String>
44 void SetPatternSetName(PatternSetNameT&& value) {
45 m_patternSetNameHasBeenSet = true;
46 m_patternSetName = std::forward<PatternSetNameT>(value);
47 }
48 template <typename PatternSetNameT = Aws::String>
49 LogPattern& WithPatternSetName(PatternSetNameT&& value) {
50 SetPatternSetName(std::forward<PatternSetNameT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetPatternName() const { return m_patternName; }
62 inline bool PatternNameHasBeenSet() const { return m_patternNameHasBeenSet; }
63 template <typename PatternNameT = Aws::String>
64 void SetPatternName(PatternNameT&& value) {
65 m_patternNameHasBeenSet = true;
66 m_patternName = std::forward<PatternNameT>(value);
67 }
68 template <typename PatternNameT = Aws::String>
69 LogPattern& WithPatternName(PatternNameT&& value) {
70 SetPatternName(std::forward<PatternNameT>(value));
71 return *this;
72 }
74
76
82 inline const Aws::String& GetPattern() const { return m_pattern; }
83 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
84 template <typename PatternT = Aws::String>
85 void SetPattern(PatternT&& value) {
86 m_patternHasBeenSet = true;
87 m_pattern = std::forward<PatternT>(value);
88 }
89 template <typename PatternT = Aws::String>
90 LogPattern& WithPattern(PatternT&& value) {
91 SetPattern(std::forward<PatternT>(value));
92 return *this;
93 }
95
97
110 inline int GetRank() const { return m_rank; }
111 inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
112 inline void SetRank(int value) {
113 m_rankHasBeenSet = true;
114 m_rank = value;
115 }
116 inline LogPattern& WithRank(int value) {
117 SetRank(value);
118 return *this;
119 }
121 private:
122 Aws::String m_patternSetName;
123
124 Aws::String m_patternName;
125
126 Aws::String m_pattern;
127
128 int m_rank{0};
129 bool m_patternSetNameHasBeenSet = false;
130 bool m_patternNameHasBeenSet = false;
131 bool m_patternHasBeenSet = false;
132 bool m_rankHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace ApplicationInsights
137} // namespace Aws
AWS_APPLICATIONINSIGHTS_API LogPattern()=default
LogPattern & WithPatternSetName(PatternSetNameT &&value)
Definition LogPattern.h:49
const Aws::String & GetPatternName() const
Definition LogPattern.h:61
const Aws::String & GetPatternSetName() const
Definition LogPattern.h:41
AWS_APPLICATIONINSIGHTS_API LogPattern & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPatternName(PatternNameT &&value)
Definition LogPattern.h:64
const Aws::String & GetPattern() const
Definition LogPattern.h:82
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
LogPattern & WithPatternName(PatternNameT &&value)
Definition LogPattern.h:69
void SetPatternSetName(PatternSetNameT &&value)
Definition LogPattern.h:44
LogPattern & WithPattern(PatternT &&value)
Definition LogPattern.h:90
AWS_APPLICATIONINSIGHTS_API LogPattern(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue