AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 ItemValue& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
53
55
59 inline const Aws::String& GetMetricDefinition() const { return m_metricDefinition; }
60 inline bool MetricDefinitionHasBeenSet() const { return m_metricDefinitionHasBeenSet; }
61 template<typename MetricDefinitionT = Aws::String>
62 void SetMetricDefinition(MetricDefinitionT&& value) { m_metricDefinitionHasBeenSet = true; m_metricDefinition = std::forward<MetricDefinitionT>(value); }
63 template<typename MetricDefinitionT = Aws::String>
64 ItemValue& WithMetricDefinition(MetricDefinitionT&& value) { SetMetricDefinition(std::forward<MetricDefinitionT>(value)); return *this;}
66
68
71 inline const PagerDutyIncidentDetail& GetPagerDutyIncidentDetail() const { return m_pagerDutyIncidentDetail; }
72 inline bool PagerDutyIncidentDetailHasBeenSet() const { return m_pagerDutyIncidentDetailHasBeenSet; }
73 template<typename PagerDutyIncidentDetailT = PagerDutyIncidentDetail>
74 void SetPagerDutyIncidentDetail(PagerDutyIncidentDetailT&& value) { m_pagerDutyIncidentDetailHasBeenSet = true; m_pagerDutyIncidentDetail = std::forward<PagerDutyIncidentDetailT>(value); }
75 template<typename PagerDutyIncidentDetailT = PagerDutyIncidentDetail>
76 ItemValue& WithPagerDutyIncidentDetail(PagerDutyIncidentDetailT&& value) { SetPagerDutyIncidentDetail(std::forward<PagerDutyIncidentDetailT>(value)); return *this;}
78
80
83 inline const Aws::String& GetUrl() const { return m_url; }
84 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
85 template<typename UrlT = Aws::String>
86 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
87 template<typename UrlT = Aws::String>
88 ItemValue& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
90 private:
91
92 Aws::String m_arn;
93 bool m_arnHasBeenSet = false;
94
95 Aws::String m_metricDefinition;
96 bool m_metricDefinitionHasBeenSet = false;
97
98 PagerDutyIncidentDetail m_pagerDutyIncidentDetail;
99 bool m_pagerDutyIncidentDetailHasBeenSet = false;
100
101 Aws::String m_url;
102 bool m_urlHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace SSMIncidents
107} // namespace Aws
ItemValue & WithPagerDutyIncidentDetail(PagerDutyIncidentDetailT &&value)
Definition ItemValue.h:76
AWS_SSMINCIDENTS_API ItemValue()=default
const Aws::String & GetMetricDefinition() const
Definition ItemValue.h:59
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUrl() const
Definition ItemValue.h:83
ItemValue & WithArn(ArnT &&value)
Definition ItemValue.h:51
const PagerDutyIncidentDetail & GetPagerDutyIncidentDetail() const
Definition ItemValue.h:71
ItemValue & WithUrl(UrlT &&value)
Definition ItemValue.h:88
void SetMetricDefinition(MetricDefinitionT &&value)
Definition ItemValue.h:62
AWS_SSMINCIDENTS_API ItemValue & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPagerDutyIncidentDetail(PagerDutyIncidentDetailT &&value)
Definition ItemValue.h:74
const Aws::String & GetArn() const
Definition ItemValue.h:46
ItemValue & WithMetricDefinition(MetricDefinitionT &&value)
Definition ItemValue.h:64
bool PagerDutyIncidentDetailHasBeenSet() const
Definition ItemValue.h:72
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