AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/Destination.h>
9#include <aws/cloudtrail/model/Tag.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CloudTrail {
26namespace Model {
28 public:
29 AWS_CLOUDTRAIL_API CreateChannelResult() = default;
32
34
37 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
38 template <typename ChannelArnT = Aws::String>
39 void SetChannelArn(ChannelArnT&& value) {
40 m_channelArnHasBeenSet = true;
41 m_channelArn = std::forward<ChannelArnT>(value);
42 }
43 template <typename ChannelArnT = Aws::String>
44 CreateChannelResult& WithChannelArn(ChannelArnT&& value) {
45 SetChannelArn(std::forward<ChannelArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetName() const { return m_name; }
55 template <typename NameT = Aws::String>
56 void SetName(NameT&& value) {
57 m_nameHasBeenSet = true;
58 m_name = std::forward<NameT>(value);
59 }
60 template <typename NameT = Aws::String>
61 CreateChannelResult& WithName(NameT&& value) {
62 SetName(std::forward<NameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetSource() const { return m_source; }
72 template <typename SourceT = Aws::String>
73 void SetSource(SourceT&& value) {
74 m_sourceHasBeenSet = true;
75 m_source = std::forward<SourceT>(value);
76 }
77 template <typename SourceT = Aws::String>
78 CreateChannelResult& WithSource(SourceT&& value) {
79 SetSource(std::forward<SourceT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
89 template <typename DestinationsT = Aws::Vector<Destination>>
90 void SetDestinations(DestinationsT&& value) {
91 m_destinationsHasBeenSet = true;
92 m_destinations = std::forward<DestinationsT>(value);
93 }
94 template <typename DestinationsT = Aws::Vector<Destination>>
95 CreateChannelResult& WithDestinations(DestinationsT&& value) {
96 SetDestinations(std::forward<DestinationsT>(value));
97 return *this;
98 }
99 template <typename DestinationsT = Destination>
100 CreateChannelResult& AddDestinations(DestinationsT&& value) {
101 m_destinationsHasBeenSet = true;
102 m_destinations.emplace_back(std::forward<DestinationsT>(value));
103 return *this;
104 }
106
108
109 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
110 template <typename TagsT = Aws::Vector<Tag>>
111 void SetTags(TagsT&& value) {
112 m_tagsHasBeenSet = true;
113 m_tags = std::forward<TagsT>(value);
114 }
115 template <typename TagsT = Aws::Vector<Tag>>
117 SetTags(std::forward<TagsT>(value));
118 return *this;
119 }
120 template <typename TagsT = Tag>
121 CreateChannelResult& AddTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags.emplace_back(std::forward<TagsT>(value));
124 return *this;
125 }
127
129
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template <typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) {
133 m_requestIdHasBeenSet = true;
134 m_requestId = std::forward<RequestIdT>(value);
135 }
136 template <typename RequestIdT = Aws::String>
137 CreateChannelResult& WithRequestId(RequestIdT&& value) {
138 SetRequestId(std::forward<RequestIdT>(value));
139 return *this;
140 }
142 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
143
144 private:
145 Aws::String m_channelArn;
146
147 Aws::String m_name;
148
149 Aws::String m_source;
150
151 Aws::Vector<Destination> m_destinations;
152
153 Aws::Vector<Tag> m_tags;
154
155 Aws::String m_requestId;
156 Aws::Http::HttpResponseCode m_HttpResponseCode;
157 bool m_channelArnHasBeenSet = false;
158 bool m_nameHasBeenSet = false;
159 bool m_sourceHasBeenSet = false;
160 bool m_destinationsHasBeenSet = false;
161 bool m_tagsHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace CloudTrail
167} // namespace Aws
AWS_CLOUDTRAIL_API CreateChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Tag > & GetTags() const
CreateChannelResult & WithChannelArn(ChannelArnT &&value)
CreateChannelResult & AddTags(TagsT &&value)
CreateChannelResult & WithName(NameT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateChannelResult & WithTags(TagsT &&value)
AWS_CLOUDTRAIL_API CreateChannelResult()=default
CreateChannelResult & WithDestinations(DestinationsT &&value)
CreateChannelResult & WithSource(SourceT &&value)
CreateChannelResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< Destination > & GetDestinations() const
CreateChannelResult & AddDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API CreateChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue