AWS SDK for C++

AWS SDK for C++ Version 1.11.870

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#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace ApplicationInsights {
20namespace Model {
21
29 public:
30 AWS_APPLICATIONINSIGHTS_API LogPattern() = default;
31 AWS_APPLICATIONINSIGHTS_API LogPattern(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_APPLICATIONINSIGHTS_API LogPattern& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_APPLICATIONINSIGHTS_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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 int64_t GetRank() const { return m_rank; }
111 inline bool RankHasBeenSet() const { return m_rankHasBeenSet; }
112 inline void SetRank(int64_t value) {
113 m_rankHasBeenSet = true;
114 m_rank = value;
115 }
116 inline LogPattern& WithRank(int64_t 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 int64_t 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
AWS_APPLICATIONINSIGHTS_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetPatternSetName() const
Definition LogPattern.h:41
AWS_APPLICATIONINSIGHTS_API LogPattern & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetPatternName(PatternNameT &&value)
Definition LogPattern.h:64
const Aws::String & GetPattern() const
Definition LogPattern.h:82
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(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
LogPattern & WithRank(int64_t value)
Definition LogPattern.h:116
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String