AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AnomalyResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-guru/DevOpsGuru_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DevOpsGuru {
20namespace Model {
21
32 public:
33 AWS_DEVOPSGURU_API AnomalyResource() = default;
34 AWS_DEVOPSGURU_API AnomalyResource(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 AnomalyResource& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 template <typename TypeT = Aws::String>
63 void SetType(TypeT&& value) {
64 m_typeHasBeenSet = true;
65 m_type = std::forward<TypeT>(value);
66 }
67 template <typename TypeT = Aws::String>
68 AnomalyResource& WithType(TypeT&& value) {
69 SetType(std::forward<TypeT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_name;
75
76 Aws::String m_type;
77 bool m_nameHasBeenSet = false;
78 bool m_typeHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace DevOpsGuru
83} // namespace Aws
AWS_DEVOPSGURU_API AnomalyResource(Aws::Utils::Json::JsonView jsonValue)
AnomalyResource & WithName(NameT &&value)
AnomalyResource & WithType(TypeT &&value)
AWS_DEVOPSGURU_API AnomalyResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSGURU_API AnomalyResource()=default
const Aws::String & GetType() const
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue