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>
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>
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>>
69 template<
typename ContributorAttributesKeyT = Aws::String,
typename ContributorAttributesValueT = Aws::String>
71 m_contributorAttributesHasBeenSet =
true; m_contributorAttributes.emplace(std::forward<ContributorAttributesKeyT>(key), std::forward<ContributorAttributesValueT>(value));
return *
this;
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>
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>
103 bool m_contributorIdHasBeenSet =
false;
106 bool m_contributorAttributesHasBeenSet =
false;
109 bool m_stateReasonHasBeenSet =
false;
112 bool m_stateTransitionedTimestampHasBeenSet =
false;
AWS_CLOUDWATCH_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetContributorId() const
bool ContributorAttributesHasBeenSet() const
AWS_CLOUDWATCH_API AlarmContributor()=default
AWS_CLOUDWATCH_API AlarmContributor & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
bool StateReasonHasBeenSet() const
AlarmContributor & WithStateReason(StateReasonT &&value)
bool StateTransitionedTimestampHasBeenSet() const
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)
bool ContributorIdHasBeenSet() const
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