AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ItemIdentifier.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/ssm-incidents/model/ItemType.h>
9#include <aws/ssm-incidents/model/ItemValue.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 SSMIncidents
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SSMINCIDENTS_API ItemIdentifier();
36 AWS_SSMINCIDENTS_API ItemIdentifier(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SSMINCIDENTS_API ItemIdentifier& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const ItemType& GetType() const{ return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(const ItemType& value) { m_typeHasBeenSet = true; m_type = value; }
48 inline void SetType(ItemType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
49 inline ItemIdentifier& WithType(const ItemType& value) { SetType(value); return *this;}
50 inline ItemIdentifier& WithType(ItemType&& value) { SetType(std::move(value)); return *this;}
52
54
57 inline const ItemValue& GetValue() const{ return m_value; }
58 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
59 inline void SetValue(const ItemValue& value) { m_valueHasBeenSet = true; m_value = value; }
60 inline void SetValue(ItemValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
61 inline ItemIdentifier& WithValue(const ItemValue& value) { SetValue(value); return *this;}
62 inline ItemIdentifier& WithValue(ItemValue&& value) { SetValue(std::move(value)); return *this;}
64 private:
65
66 ItemType m_type;
67 bool m_typeHasBeenSet = false;
68
69 ItemValue m_value;
70 bool m_valueHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SSMIncidents
75} // namespace Aws
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
ItemIdentifier & WithValue(const ItemValue &value)
void SetType(const ItemType &value)
ItemIdentifier & WithValue(ItemValue &&value)
ItemIdentifier & WithType(const ItemType &value)
ItemIdentifier & WithType(ItemType &&value)
AWS_SSMINCIDENTS_API ItemIdentifier(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const ItemValue &value)
AWS_SSMINCIDENTS_API ItemIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue