AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ItemValue.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-incidents/model/PagerDutyIncidentDetail.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 ItemValue();
36 AWS_SSMINCIDENTS_API ItemValue(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SSMINCIDENTS_API ItemValue& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline ItemValue& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline ItemValue& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline ItemValue& WithArn(const char* value) { SetArn(value); return *this;}
55
57
61 inline const Aws::String& GetMetricDefinition() const{ return m_metricDefinition; }
62 inline bool MetricDefinitionHasBeenSet() const { return m_metricDefinitionHasBeenSet; }
63 inline void SetMetricDefinition(const Aws::String& value) { m_metricDefinitionHasBeenSet = true; m_metricDefinition = value; }
64 inline void SetMetricDefinition(Aws::String&& value) { m_metricDefinitionHasBeenSet = true; m_metricDefinition = std::move(value); }
65 inline void SetMetricDefinition(const char* value) { m_metricDefinitionHasBeenSet = true; m_metricDefinition.assign(value); }
66 inline ItemValue& WithMetricDefinition(const Aws::String& value) { SetMetricDefinition(value); return *this;}
67 inline ItemValue& WithMetricDefinition(Aws::String&& value) { SetMetricDefinition(std::move(value)); return *this;}
68 inline ItemValue& WithMetricDefinition(const char* value) { SetMetricDefinition(value); return *this;}
70
72
75 inline const PagerDutyIncidentDetail& GetPagerDutyIncidentDetail() const{ return m_pagerDutyIncidentDetail; }
76 inline bool PagerDutyIncidentDetailHasBeenSet() const { return m_pagerDutyIncidentDetailHasBeenSet; }
77 inline void SetPagerDutyIncidentDetail(const PagerDutyIncidentDetail& value) { m_pagerDutyIncidentDetailHasBeenSet = true; m_pagerDutyIncidentDetail = value; }
78 inline void SetPagerDutyIncidentDetail(PagerDutyIncidentDetail&& value) { m_pagerDutyIncidentDetailHasBeenSet = true; m_pagerDutyIncidentDetail = std::move(value); }
82
84
87 inline const Aws::String& GetUrl() const{ return m_url; }
88 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
89 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
90 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
91 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
92 inline ItemValue& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
93 inline ItemValue& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
94 inline ItemValue& WithUrl(const char* value) { SetUrl(value); return *this;}
96 private:
97
98 Aws::String m_arn;
99 bool m_arnHasBeenSet = false;
100
101 Aws::String m_metricDefinition;
102 bool m_metricDefinitionHasBeenSet = false;
103
104 PagerDutyIncidentDetail m_pagerDutyIncidentDetail;
105 bool m_pagerDutyIncidentDetailHasBeenSet = false;
106
107 Aws::String m_url;
108 bool m_urlHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SSMIncidents
113} // namespace Aws
ItemValue & WithMetricDefinition(const Aws::String &value)
Definition ItemValue.h:66
ItemValue & WithArn(const Aws::String &value)
Definition ItemValue.h:51
ItemValue & WithArn(Aws::String &&value)
Definition ItemValue.h:52
void SetMetricDefinition(const char *value)
Definition ItemValue.h:65
void SetArn(const Aws::String &value)
Definition ItemValue.h:48
void SetUrl(const Aws::String &value)
Definition ItemValue.h:89
ItemValue & WithUrl(Aws::String &&value)
Definition ItemValue.h:93
const Aws::String & GetMetricDefinition() const
Definition ItemValue.h:61
void SetArn(Aws::String &&value)
Definition ItemValue.h:49
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUrl() const
Definition ItemValue.h:87
void SetMetricDefinition(Aws::String &&value)
Definition ItemValue.h:64
ItemValue & WithArn(const char *value)
Definition ItemValue.h:53
ItemValue & WithPagerDutyIncidentDetail(const PagerDutyIncidentDetail &value)
Definition ItemValue.h:79
ItemValue & WithMetricDefinition(Aws::String &&value)
Definition ItemValue.h:67
ItemValue & WithUrl(const char *value)
Definition ItemValue.h:94
AWS_SSMINCIDENTS_API ItemValue()
void SetArn(const char *value)
Definition ItemValue.h:50
void SetUrl(const char *value)
Definition ItemValue.h:91
const PagerDutyIncidentDetail & GetPagerDutyIncidentDetail() const
Definition ItemValue.h:75
AWS_SSMINCIDENTS_API ItemValue & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUrl(Aws::String &&value)
Definition ItemValue.h:90
ItemValue & WithMetricDefinition(const char *value)
Definition ItemValue.h:68
void SetPagerDutyIncidentDetail(PagerDutyIncidentDetail &&value)
Definition ItemValue.h:78
void SetMetricDefinition(const Aws::String &value)
Definition ItemValue.h:63
const Aws::String & GetArn() const
Definition ItemValue.h:46
ItemValue & WithUrl(const Aws::String &value)
Definition ItemValue.h:92
bool PagerDutyIncidentDetailHasBeenSet() const
Definition ItemValue.h:76
ItemValue & WithPagerDutyIncidentDetail(PagerDutyIncidentDetail &&value)
Definition ItemValue.h:80
void SetPagerDutyIncidentDetail(const PagerDutyIncidentDetail &value)
Definition ItemValue.h:77
AWS_SSMINCIDENTS_API ItemValue(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue