AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
MetricDestinationSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rum/CloudWatchRUM_EXPORTS.h>
9#include <aws/rum/model/MetricDestination.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchRUM {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHRUM_API MetricDestinationSummary() = default;
32 AWS_CLOUDWATCHRUM_API MetricDestinationSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline MetricDestination GetDestination() const { return m_destination; }
42 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
43 inline void SetDestination(MetricDestination value) {
44 m_destinationHasBeenSet = true;
45 m_destination = value;
46 }
48 SetDestination(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
59 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
60 template <typename DestinationArnT = Aws::String>
61 void SetDestinationArn(DestinationArnT&& value) {
62 m_destinationArnHasBeenSet = true;
63 m_destinationArn = std::forward<DestinationArnT>(value);
64 }
65 template <typename DestinationArnT = Aws::String>
66 MetricDestinationSummary& WithDestinationArn(DestinationArnT&& value) {
67 SetDestinationArn(std::forward<DestinationArnT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
79 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
80 template <typename IamRoleArnT = Aws::String>
81 void SetIamRoleArn(IamRoleArnT&& value) {
82 m_iamRoleArnHasBeenSet = true;
83 m_iamRoleArn = std::forward<IamRoleArnT>(value);
84 }
85 template <typename IamRoleArnT = Aws::String>
87 SetIamRoleArn(std::forward<IamRoleArnT>(value));
88 return *this;
89 }
91 private:
93
94 Aws::String m_destinationArn;
95
96 Aws::String m_iamRoleArn;
97 bool m_destinationHasBeenSet = false;
98 bool m_destinationArnHasBeenSet = false;
99 bool m_iamRoleArnHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace CloudWatchRUM
104} // namespace Aws
MetricDestinationSummary & WithIamRoleArn(IamRoleArnT &&value)
AWS_CLOUDWATCHRUM_API Aws::Utils::Json::JsonValue Jsonize() const
MetricDestinationSummary & WithDestinationArn(DestinationArnT &&value)
AWS_CLOUDWATCHRUM_API MetricDestinationSummary()=default
AWS_CLOUDWATCHRUM_API MetricDestinationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHRUM_API MetricDestinationSummary(Aws::Utils::Json::JsonView jsonValue)
MetricDestinationSummary & WithDestination(MetricDestination value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue