AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
EventResource.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
31 public:
32 AWS_DEVOPSGURU_API EventResource() = default;
33 AWS_DEVOPSGURU_API EventResource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSGURU_API EventResource& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 template <typename TypeT = Aws::String>
44 void SetType(TypeT&& value) {
45 m_typeHasBeenSet = true;
46 m_type = std::forward<TypeT>(value);
47 }
48 template <typename TypeT = Aws::String>
49 EventResource& WithType(TypeT&& value) {
50 SetType(std::forward<TypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
67 EventResource& WithName(NameT&& value) {
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetArn() const { return m_arn; }
78 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
79 template <typename ArnT = Aws::String>
80 void SetArn(ArnT&& value) {
81 m_arnHasBeenSet = true;
82 m_arn = std::forward<ArnT>(value);
83 }
84 template <typename ArnT = Aws::String>
85 EventResource& WithArn(ArnT&& value) {
86 SetArn(std::forward<ArnT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_type;
92
93 Aws::String m_name;
94
95 Aws::String m_arn;
96 bool m_typeHasBeenSet = false;
97 bool m_nameHasBeenSet = false;
98 bool m_arnHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace DevOpsGuru
103} // namespace Aws
EventResource & WithArn(ArnT &&value)
const Aws::String & GetType() const
AWS_DEVOPSGURU_API EventResource()=default
EventResource & WithName(NameT &&value)
AWS_DEVOPSGURU_API EventResource(Aws::Utils::Json::JsonView jsonValue)
EventResource & WithType(TypeT &&value)
AWS_DEVOPSGURU_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSGURU_API EventResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetArn() const
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue