AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
AlarmContributor.h
1
6#pragma once
7#include <aws/monitoring/CloudWatch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudWatch
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_CLOUDWATCH_API AlarmContributor() = default;
39 AWS_CLOUDWATCH_API AlarmContributor(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDWATCH_API AlarmContributor& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetContributorId() const { return m_contributorId; }
51 inline bool ContributorIdHasBeenSet() const { return m_contributorIdHasBeenSet; }
52 template<typename ContributorIdT = Aws::String>
53 void SetContributorId(ContributorIdT&& value) { m_contributorIdHasBeenSet = true; m_contributorId = std::forward<ContributorIdT>(value); }
54 template<typename ContributorIdT = Aws::String>
55 AlarmContributor& WithContributorId(ContributorIdT&& value) { SetContributorId(std::forward<ContributorIdT>(value)); return *this;}
57
59
63 inline const Aws::Map<Aws::String, Aws::String>& GetContributorAttributes() const { return m_contributorAttributes; }
64 inline bool ContributorAttributesHasBeenSet() const { return m_contributorAttributesHasBeenSet; }
65 template<typename ContributorAttributesT = Aws::Map<Aws::String, Aws::String>>
66 void SetContributorAttributes(ContributorAttributesT&& value) { m_contributorAttributesHasBeenSet = true; m_contributorAttributes = std::forward<ContributorAttributesT>(value); }
67 template<typename ContributorAttributesT = Aws::Map<Aws::String, Aws::String>>
68 AlarmContributor& WithContributorAttributes(ContributorAttributesT&& value) { SetContributorAttributes(std::forward<ContributorAttributesT>(value)); return *this;}
69 template<typename ContributorAttributesKeyT = Aws::String, typename ContributorAttributesValueT = Aws::String>
70 AlarmContributor& AddContributorAttributes(ContributorAttributesKeyT&& key, ContributorAttributesValueT&& value) {
71 m_contributorAttributesHasBeenSet = true; m_contributorAttributes.emplace(std::forward<ContributorAttributesKeyT>(key), std::forward<ContributorAttributesValueT>(value)); return *this;
72 }
74
76
80 inline const Aws::String& GetStateReason() const { return m_stateReason; }
81 inline bool StateReasonHasBeenSet() const { return m_stateReasonHasBeenSet; }
82 template<typename StateReasonT = Aws::String>
83 void SetStateReason(StateReasonT&& value) { m_stateReasonHasBeenSet = true; m_stateReason = std::forward<StateReasonT>(value); }
84 template<typename StateReasonT = Aws::String>
85 AlarmContributor& WithStateReason(StateReasonT&& value) { SetStateReason(std::forward<StateReasonT>(value)); return *this;}
87
89
93 inline const Aws::Utils::DateTime& GetStateTransitionedTimestamp() const { return m_stateTransitionedTimestamp; }
94 inline bool StateTransitionedTimestampHasBeenSet() const { return m_stateTransitionedTimestampHasBeenSet; }
95 template<typename StateTransitionedTimestampT = Aws::Utils::DateTime>
96 void SetStateTransitionedTimestamp(StateTransitionedTimestampT&& value) { m_stateTransitionedTimestampHasBeenSet = true; m_stateTransitionedTimestamp = std::forward<StateTransitionedTimestampT>(value); }
97 template<typename StateTransitionedTimestampT = Aws::Utils::DateTime>
98 AlarmContributor& WithStateTransitionedTimestamp(StateTransitionedTimestampT&& value) { SetStateTransitionedTimestamp(std::forward<StateTransitionedTimestampT>(value)); return *this;}
100 private:
101
102 Aws::String m_contributorId;
103 bool m_contributorIdHasBeenSet = false;
104
105 Aws::Map<Aws::String, Aws::String> m_contributorAttributes;
106 bool m_contributorAttributesHasBeenSet = false;
107
108 Aws::String m_stateReason;
109 bool m_stateReasonHasBeenSet = false;
110
111 Aws::Utils::DateTime m_stateTransitionedTimestamp{};
112 bool m_stateTransitionedTimestampHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CloudWatch
117} // namespace Aws
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetContributorId() const
AWS_CLOUDWATCH_API AlarmContributor()=default
AWS_CLOUDWATCH_API AlarmContributor & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
AlarmContributor & WithStateReason(StateReasonT &&value)
AlarmContributor & AddContributorAttributes(ContributorAttributesKeyT &&key, ContributorAttributesValueT &&value)
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetContributorId(ContributorIdT &&value)
AlarmContributor & WithStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
void SetStateReason(StateReasonT &&value)
void SetContributorAttributes(ContributorAttributesT &&value)
AlarmContributor & WithContributorId(ContributorIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContributorAttributes() const
AWS_CLOUDWATCH_API AlarmContributor(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
AlarmContributor & WithContributorAttributes(ContributorAttributesT &&value)
const Aws::String & GetStateReason() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream