AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogSetup.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eks/model/LogType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EKS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EKS_API LogSetup() = default;
37 AWS_EKS_API LogSetup(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::Vector<LogType>& GetTypes() const { return m_types; }
47 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
48 template<typename TypesT = Aws::Vector<LogType>>
49 void SetTypes(TypesT&& value) { m_typesHasBeenSet = true; m_types = std::forward<TypesT>(value); }
50 template<typename TypesT = Aws::Vector<LogType>>
51 LogSetup& WithTypes(TypesT&& value) { SetTypes(std::forward<TypesT>(value)); return *this;}
52 inline LogSetup& AddTypes(LogType value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; }
54
56
62 inline bool GetEnabled() const { return m_enabled; }
63 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
64 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
65 inline LogSetup& WithEnabled(bool value) { SetEnabled(value); return *this;}
67 private:
68
70 bool m_typesHasBeenSet = false;
71
72 bool m_enabled{false};
73 bool m_enabledHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EKS
78} // namespace Aws
LogSetup & WithTypes(TypesT &&value)
Definition LogSetup.h:51
AWS_EKS_API LogSetup()=default
bool GetEnabled() const
Definition LogSetup.h:62
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:46
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:63
void SetTypes(TypesT &&value)
Definition LogSetup.h:49
LogSetup & WithEnabled(bool value)
Definition LogSetup.h:65
bool TypesHasBeenSet() const
Definition LogSetup.h:47
void SetEnabled(bool value)
Definition LogSetup.h:64
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue