AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Destination.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCHLOGS_API Destination() = default;
31 AWS_CLOUDWATCHLOGS_API Destination(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDestinationName() const { return m_destinationName; }
40 inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
41 template <typename DestinationNameT = Aws::String>
42 void SetDestinationName(DestinationNameT&& value) {
43 m_destinationNameHasBeenSet = true;
44 m_destinationName = std::forward<DestinationNameT>(value);
45 }
46 template <typename DestinationNameT = Aws::String>
47 Destination& WithDestinationName(DestinationNameT&& value) {
48 SetDestinationName(std::forward<DestinationNameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
59 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
60 template <typename TargetArnT = Aws::String>
61 void SetTargetArn(TargetArnT&& value) {
62 m_targetArnHasBeenSet = true;
63 m_targetArn = std::forward<TargetArnT>(value);
64 }
65 template <typename TargetArnT = Aws::String>
66 Destination& WithTargetArn(TargetArnT&& value) {
67 SetTargetArn(std::forward<TargetArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
77 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
78 template <typename RoleArnT = Aws::String>
79 void SetRoleArn(RoleArnT&& value) {
80 m_roleArnHasBeenSet = true;
81 m_roleArn = std::forward<RoleArnT>(value);
82 }
83 template <typename RoleArnT = Aws::String>
84 Destination& WithRoleArn(RoleArnT&& value) {
85 SetRoleArn(std::forward<RoleArnT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetAccessPolicy() const { return m_accessPolicy; }
96 inline bool AccessPolicyHasBeenSet() const { return m_accessPolicyHasBeenSet; }
97 template <typename AccessPolicyT = Aws::String>
98 void SetAccessPolicy(AccessPolicyT&& value) {
99 m_accessPolicyHasBeenSet = true;
100 m_accessPolicy = std::forward<AccessPolicyT>(value);
101 }
102 template <typename AccessPolicyT = Aws::String>
103 Destination& WithAccessPolicy(AccessPolicyT&& value) {
104 SetAccessPolicy(std::forward<AccessPolicyT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetArn() const { return m_arn; }
114 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
115 template <typename ArnT = Aws::String>
116 void SetArn(ArnT&& value) {
117 m_arnHasBeenSet = true;
118 m_arn = std::forward<ArnT>(value);
119 }
120 template <typename ArnT = Aws::String>
121 Destination& WithArn(ArnT&& value) {
122 SetArn(std::forward<ArnT>(value));
123 return *this;
124 }
126
128
132 inline long long GetCreationTime() const { return m_creationTime; }
133 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
134 inline void SetCreationTime(long long value) {
135 m_creationTimeHasBeenSet = true;
136 m_creationTime = value;
137 }
138 inline Destination& WithCreationTime(long long value) {
139 SetCreationTime(value);
140 return *this;
141 }
143 private:
144 Aws::String m_destinationName;
145
146 Aws::String m_targetArn;
147
148 Aws::String m_roleArn;
149
150 Aws::String m_accessPolicy;
151
152 Aws::String m_arn;
153
154 long long m_creationTime{0};
155 bool m_destinationNameHasBeenSet = false;
156 bool m_targetArnHasBeenSet = false;
157 bool m_roleArnHasBeenSet = false;
158 bool m_accessPolicyHasBeenSet = false;
159 bool m_arnHasBeenSet = false;
160 bool m_creationTimeHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace CloudWatchLogs
165} // namespace Aws
const Aws::String & GetArn() const
const Aws::String & GetTargetArn() const
Definition Destination.h:58
void SetAccessPolicy(AccessPolicyT &&value)
Definition Destination.h:98
Destination & WithAccessPolicy(AccessPolicyT &&value)
Destination & WithCreationTime(long long value)
AWS_CLOUDWATCHLOGS_API Destination()=default
Destination & WithDestinationName(DestinationNameT &&value)
Definition Destination.h:47
AWS_CLOUDWATCHLOGS_API Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Destination(Aws::Utils::Json::JsonView jsonValue)
Destination & WithArn(ArnT &&value)
Destination & WithRoleArn(RoleArnT &&value)
Definition Destination.h:84
void SetTargetArn(TargetArnT &&value)
Definition Destination.h:61
const Aws::String & GetRoleArn() const
Definition Destination.h:76
void SetDestinationName(DestinationNameT &&value)
Definition Destination.h:42
const Aws::String & GetDestinationName() const
Definition Destination.h:39
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAccessPolicy() const
Definition Destination.h:95
Destination & WithTargetArn(TargetArnT &&value)
Definition Destination.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue