AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LogSetup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/eks/EKS_EXPORTS.h>
9#include <aws/eks/model/LogType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EKS {
21namespace Model {
22
29class LogSetup {
30 public:
31 AWS_EKS_API LogSetup() = default;
32 AWS_EKS_API LogSetup(Aws::Utils::Json::JsonView jsonValue);
35
37
40 inline const Aws::Vector<LogType>& GetTypes() const { return m_types; }
41 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
42 template <typename TypesT = Aws::Vector<LogType>>
43 void SetTypes(TypesT&& value) {
44 m_typesHasBeenSet = true;
45 m_types = std::forward<TypesT>(value);
46 }
47 template <typename TypesT = Aws::Vector<LogType>>
48 LogSetup& WithTypes(TypesT&& value) {
49 SetTypes(std::forward<TypesT>(value));
50 return *this;
51 }
52 inline LogSetup& AddTypes(LogType value) {
53 m_typesHasBeenSet = true;
54 m_types.push_back(value);
55 return *this;
56 }
58
60
66 inline bool GetEnabled() const { return m_enabled; }
67 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
68 inline void SetEnabled(bool value) {
69 m_enabledHasBeenSet = true;
70 m_enabled = value;
71 }
72 inline LogSetup& WithEnabled(bool value) {
73 SetEnabled(value);
74 return *this;
75 }
77 private:
79
80 bool m_enabled{false};
81 bool m_typesHasBeenSet = false;
82 bool m_enabledHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace EKS
87} // namespace Aws
LogSetup & WithTypes(TypesT &&value)
Definition LogSetup.h:48
AWS_EKS_API LogSetup()=default
bool GetEnabled() const
Definition LogSetup.h:66
AWS_EKS_API LogSetup(Aws::Utils::Json::JsonView jsonValue)
LogSetup & AddTypes(LogType value)
Definition LogSetup.h:52
const Aws::Vector< LogType > & GetTypes() const
Definition LogSetup.h:40
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKS_API LogSetup & operator=(Aws::Utils::Json::JsonView jsonValue)
bool EnabledHasBeenSet() const
Definition LogSetup.h:67
void SetTypes(TypesT &&value)
Definition LogSetup.h:43
LogSetup & WithEnabled(bool value)
Definition LogSetup.h:72
bool TypesHasBeenSet() const
Definition LogSetup.h:41
void SetEnabled(bool value)
Definition LogSetup.h:68
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue