7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11#include <aws/monitoring/CloudWatch_EXPORTS.h>
34 AWS_CLOUDWATCH_API
AlarmContributor(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCH_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
44 template <
typename ContributorIdT = Aws::String>
46 m_contributorIdHasBeenSet =
true;
47 m_contributorId = std::forward<ContributorIdT>(value);
49 template <
typename ContributorIdT = Aws::String>
63 template <
typename ContributorAttributesT = Aws::Map<Aws::String, Aws::String>>
65 m_contributorAttributesHasBeenSet =
true;
66 m_contributorAttributes = std::forward<ContributorAttributesT>(value);
68 template <
typename ContributorAttributesT = Aws::Map<Aws::String, Aws::String>>
73 template <
typename ContributorAttributesKeyT = Aws::String,
typename ContributorAttributesValueT = Aws::String>
75 m_contributorAttributesHasBeenSet =
true;
76 m_contributorAttributes.emplace(std::forward<ContributorAttributesKeyT>(key), std::forward<ContributorAttributesValueT>(value));
88 template <
typename StateReasonT = Aws::String>
90 m_stateReasonHasBeenSet =
true;
91 m_stateReason = std::forward<StateReasonT>(value);
93 template <
typename StateReasonT = Aws::String>
107 template <
typename StateTransitionedTimestampT = Aws::Utils::DateTime>
109 m_stateTransitionedTimestampHasBeenSet =
true;
110 m_stateTransitionedTimestamp = std::forward<StateTransitionedTimestampT>(value);
112 template <
typename StateTransitionedTimestampT = Aws::Utils::DateTime>
126 bool m_contributorIdHasBeenSet =
false;
127 bool m_contributorAttributesHasBeenSet =
false;
128 bool m_stateReasonHasBeenSet =
false;
129 bool m_stateTransitionedTimestampHasBeenSet =
false;
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetContributorId() const
bool ContributorAttributesHasBeenSet() const
AWS_CLOUDWATCH_API AlarmContributor & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API AlarmContributor()=default
const Aws::Utils::DateTime & GetStateTransitionedTimestamp() const
bool StateReasonHasBeenSet() const
AlarmContributor & WithStateReason(StateReasonT &&value)
bool StateTransitionedTimestampHasBeenSet() const
AlarmContributor & AddContributorAttributes(ContributorAttributesKeyT &&key, ContributorAttributesValueT &&value)
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
void SetStateTransitionedTimestamp(StateTransitionedTimestampT &&value)
AWS_CLOUDWATCH_API AlarmContributor(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
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