AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventReference.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSMIncidents
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_SSMINCIDENTS_API EventReference();
38 AWS_SSMINCIDENTS_API EventReference(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMINCIDENTS_API EventReference& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetRelatedItemId() const{ return m_relatedItemId; }
49 inline bool RelatedItemIdHasBeenSet() const { return m_relatedItemIdHasBeenSet; }
50 inline void SetRelatedItemId(const Aws::String& value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId = value; }
51 inline void SetRelatedItemId(Aws::String&& value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId = std::move(value); }
52 inline void SetRelatedItemId(const char* value) { m_relatedItemIdHasBeenSet = true; m_relatedItemId.assign(value); }
53 inline EventReference& WithRelatedItemId(const Aws::String& value) { SetRelatedItemId(value); return *this;}
54 inline EventReference& WithRelatedItemId(Aws::String&& value) { SetRelatedItemId(std::move(value)); return *this;}
55 inline EventReference& WithRelatedItemId(const char* value) { SetRelatedItemId(value); return *this;}
57
59
63 inline const Aws::String& GetResource() const{ return m_resource; }
64 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
65 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
66 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
67 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
68 inline EventReference& WithResource(const Aws::String& value) { SetResource(value); return *this;}
69 inline EventReference& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
70 inline EventReference& WithResource(const char* value) { SetResource(value); return *this;}
72 private:
73
74 Aws::String m_relatedItemId;
75 bool m_relatedItemIdHasBeenSet = false;
76
77 Aws::String m_resource;
78 bool m_resourceHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace SSMIncidents
83} // namespace Aws
EventReference & WithRelatedItemId(const char *value)
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
EventReference & WithResource(Aws::String &&value)
void SetResource(const Aws::String &value)
AWS_SSMINCIDENTS_API EventReference & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRelatedItemId() const
EventReference & WithRelatedItemId(const Aws::String &value)
EventReference & WithResource(const Aws::String &value)
EventReference & WithRelatedItemId(Aws::String &&value)
AWS_SSMINCIDENTS_API EventReference(Aws::Utils::Json::JsonView jsonValue)
void SetRelatedItemId(const Aws::String &value)
void SetResource(Aws::String &&value)
const Aws::String & GetResource() const
EventReference & WithResource(const char *value)
void SetRelatedItemId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue