AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Destination.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudWatchLogs
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDWATCHLOGS_API Destination() = default;
36 AWS_CLOUDWATCHLOGS_API Destination(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API Destination& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetDestinationName() const { return m_destinationName; }
46 inline bool DestinationNameHasBeenSet() const { return m_destinationNameHasBeenSet; }
47 template<typename DestinationNameT = Aws::String>
48 void SetDestinationName(DestinationNameT&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::forward<DestinationNameT>(value); }
49 template<typename DestinationNameT = Aws::String>
50 Destination& WithDestinationName(DestinationNameT&& value) { SetDestinationName(std::forward<DestinationNameT>(value)); return *this;}
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) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
62 template<typename TargetArnT = Aws::String>
63 Destination& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
65
67
70 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
71 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
72 template<typename RoleArnT = Aws::String>
73 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
74 template<typename RoleArnT = Aws::String>
75 Destination& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
77
79
83 inline const Aws::String& GetAccessPolicy() const { return m_accessPolicy; }
84 inline bool AccessPolicyHasBeenSet() const { return m_accessPolicyHasBeenSet; }
85 template<typename AccessPolicyT = Aws::String>
86 void SetAccessPolicy(AccessPolicyT&& value) { m_accessPolicyHasBeenSet = true; m_accessPolicy = std::forward<AccessPolicyT>(value); }
87 template<typename AccessPolicyT = Aws::String>
88 Destination& WithAccessPolicy(AccessPolicyT&& value) { SetAccessPolicy(std::forward<AccessPolicyT>(value)); return *this;}
90
92
95 inline const Aws::String& GetArn() const { return m_arn; }
96 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
97 template<typename ArnT = Aws::String>
98 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
99 template<typename ArnT = Aws::String>
100 Destination& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
102
104
108 inline long long GetCreationTime() const { return m_creationTime; }
109 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
110 inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
111 inline Destination& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
113 private:
114
115 Aws::String m_destinationName;
116 bool m_destinationNameHasBeenSet = false;
117
118 Aws::String m_targetArn;
119 bool m_targetArnHasBeenSet = false;
120
121 Aws::String m_roleArn;
122 bool m_roleArnHasBeenSet = false;
123
124 Aws::String m_accessPolicy;
125 bool m_accessPolicyHasBeenSet = false;
126
127 Aws::String m_arn;
128 bool m_arnHasBeenSet = false;
129
130 long long m_creationTime{0};
131 bool m_creationTimeHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CloudWatchLogs
136} // namespace Aws
const Aws::String & GetArn() const
Definition Destination.h:95
const Aws::String & GetTargetArn() const
Definition Destination.h:58
void SetAccessPolicy(AccessPolicyT &&value)
Definition Destination.h:86
Destination & WithAccessPolicy(AccessPolicyT &&value)
Definition Destination.h:88
Destination & WithCreationTime(long long value)
AWS_CLOUDWATCHLOGS_API Destination()=default
Destination & WithDestinationName(DestinationNameT &&value)
Definition Destination.h:50
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:75
void SetTargetArn(TargetArnT &&value)
Definition Destination.h:61
const Aws::String & GetRoleArn() const
Definition Destination.h:70
void SetDestinationName(DestinationNameT &&value)
Definition Destination.h:48
const Aws::String & GetDestinationName() const
Definition Destination.h:45
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAccessPolicy() const
Definition Destination.h:83
Destination & WithTargetArn(TargetArnT &&value)
Definition Destination.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue