AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDestinationName(const Aws::String& value) { m_destinationNameHasBeenSet = true; m_destinationName = value; }
48 inline void SetDestinationName(Aws::String&& value) { m_destinationNameHasBeenSet = true; m_destinationName = std::move(value); }
49 inline void SetDestinationName(const char* value) { m_destinationNameHasBeenSet = true; m_destinationName.assign(value); }
50 inline Destination& WithDestinationName(const Aws::String& value) { SetDestinationName(value); return *this;}
51 inline Destination& WithDestinationName(Aws::String&& value) { SetDestinationName(std::move(value)); return *this;}
52 inline Destination& WithDestinationName(const char* value) { SetDestinationName(value); return *this;}
54
56
60 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
61 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
62 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
63 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
64 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
65 inline Destination& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
66 inline Destination& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
67 inline Destination& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
69
71
74 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
75 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
76 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
77 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
78 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
79 inline Destination& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
80 inline Destination& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
81 inline Destination& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
83
85
89 inline const Aws::String& GetAccessPolicy() const{ return m_accessPolicy; }
90 inline bool AccessPolicyHasBeenSet() const { return m_accessPolicyHasBeenSet; }
91 inline void SetAccessPolicy(const Aws::String& value) { m_accessPolicyHasBeenSet = true; m_accessPolicy = value; }
92 inline void SetAccessPolicy(Aws::String&& value) { m_accessPolicyHasBeenSet = true; m_accessPolicy = std::move(value); }
93 inline void SetAccessPolicy(const char* value) { m_accessPolicyHasBeenSet = true; m_accessPolicy.assign(value); }
94 inline Destination& WithAccessPolicy(const Aws::String& value) { SetAccessPolicy(value); return *this;}
95 inline Destination& WithAccessPolicy(Aws::String&& value) { SetAccessPolicy(std::move(value)); return *this;}
96 inline Destination& WithAccessPolicy(const char* value) { SetAccessPolicy(value); return *this;}
98
100
103 inline const Aws::String& GetArn() const{ return m_arn; }
104 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
105 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
106 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
107 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
108 inline Destination& WithArn(const Aws::String& value) { SetArn(value); return *this;}
109 inline Destination& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
110 inline Destination& WithArn(const char* value) { SetArn(value); return *this;}
112
114
118 inline long long GetCreationTime() const{ return m_creationTime; }
119 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
120 inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
121 inline Destination& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
123 private:
124
125 Aws::String m_destinationName;
126 bool m_destinationNameHasBeenSet = false;
127
128 Aws::String m_targetArn;
129 bool m_targetArnHasBeenSet = false;
130
131 Aws::String m_roleArn;
132 bool m_roleArnHasBeenSet = false;
133
134 Aws::String m_accessPolicy;
135 bool m_accessPolicyHasBeenSet = false;
136
137 Aws::String m_arn;
138 bool m_arnHasBeenSet = false;
139
140 long long m_creationTime;
141 bool m_creationTimeHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace CloudWatchLogs
146} // namespace Aws
Destination & WithArn(const Aws::String &value)
const Aws::String & GetArn() const
Destination & WithArn(const char *value)
Destination & WithRoleArn(const char *value)
Definition Destination.h:81
void SetDestinationName(const char *value)
Definition Destination.h:49
Destination & WithAccessPolicy(Aws::String &&value)
Definition Destination.h:95
void SetAccessPolicy(Aws::String &&value)
Definition Destination.h:92
Destination & WithTargetArn(Aws::String &&value)
Definition Destination.h:66
Destination & WithDestinationName(const char *value)
Definition Destination.h:52
const Aws::String & GetTargetArn() const
Definition Destination.h:60
Destination & WithAccessPolicy(const Aws::String &value)
Definition Destination.h:94
void SetTargetArn(const char *value)
Definition Destination.h:64
void SetTargetArn(const Aws::String &value)
Definition Destination.h:62
Destination & WithCreationTime(long long value)
Destination & WithDestinationName(Aws::String &&value)
Definition Destination.h:51
void SetRoleArn(Aws::String &&value)
Definition Destination.h:77
Destination & WithAccessPolicy(const char *value)
Definition Destination.h:96
AWS_CLOUDWATCHLOGS_API Destination()
void SetRoleArn(const char *value)
Definition Destination.h:78
Destination & WithDestinationName(const Aws::String &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 & WithRoleArn(Aws::String &&value)
Definition Destination.h:80
const Aws::String & GetRoleArn() const
Definition Destination.h:74
void SetRoleArn(const Aws::String &value)
Definition Destination.h:76
void SetArn(const Aws::String &value)
void SetArn(Aws::String &&value)
void SetTargetArn(Aws::String &&value)
Definition Destination.h:63
void SetDestinationName(const Aws::String &value)
Definition Destination.h:47
Destination & WithTargetArn(const char *value)
Definition Destination.h:67
const Aws::String & GetDestinationName() const
Definition Destination.h:45
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccessPolicy(const Aws::String &value)
Definition Destination.h:91
Destination & WithTargetArn(const Aws::String &value)
Definition Destination.h:65
Destination & WithArn(Aws::String &&value)
const Aws::String & GetAccessPolicy() const
Definition Destination.h:89
void SetAccessPolicy(const char *value)
Definition Destination.h:93
Destination & WithRoleArn(const Aws::String &value)
Definition Destination.h:79
void SetDestinationName(Aws::String &&value)
Definition Destination.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue