AWS SDK for C++

AWS SDK for C++ Version 1.11.747

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/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CloudTrail {
25namespace Model {
27 public:
28 AWS_CLOUDTRAIL_API CreateChannelResult() = default;
31
33
36 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
37 template <typename ChannelArnT = Aws::String>
38 void SetChannelArn(ChannelArnT&& value) {
39 m_channelArnHasBeenSet = true;
40 m_channelArn = std::forward<ChannelArnT>(value);
41 }
42 template <typename ChannelArnT = Aws::String>
43 CreateChannelResult& WithChannelArn(ChannelArnT&& value) {
44 SetChannelArn(std::forward<ChannelArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetName() const { return m_name; }
54 template <typename NameT = Aws::String>
55 void SetName(NameT&& value) {
56 m_nameHasBeenSet = true;
57 m_name = std::forward<NameT>(value);
58 }
59 template <typename NameT = Aws::String>
60 CreateChannelResult& WithName(NameT&& value) {
61 SetName(std::forward<NameT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetSource() const { return m_source; }
71 template <typename SourceT = Aws::String>
72 void SetSource(SourceT&& value) {
73 m_sourceHasBeenSet = true;
74 m_source = std::forward<SourceT>(value);
75 }
76 template <typename SourceT = Aws::String>
77 CreateChannelResult& WithSource(SourceT&& value) {
78 SetSource(std::forward<SourceT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
88 template <typename DestinationsT = Aws::Vector<Destination>>
89 void SetDestinations(DestinationsT&& value) {
90 m_destinationsHasBeenSet = true;
91 m_destinations = std::forward<DestinationsT>(value);
92 }
93 template <typename DestinationsT = Aws::Vector<Destination>>
94 CreateChannelResult& WithDestinations(DestinationsT&& value) {
95 SetDestinations(std::forward<DestinationsT>(value));
96 return *this;
97 }
98 template <typename DestinationsT = Destination>
99 CreateChannelResult& AddDestinations(DestinationsT&& value) {
100 m_destinationsHasBeenSet = true;
101 m_destinations.emplace_back(std::forward<DestinationsT>(value));
102 return *this;
103 }
105
107
108 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
109 template <typename TagsT = Aws::Vector<Tag>>
110 void SetTags(TagsT&& value) {
111 m_tagsHasBeenSet = true;
112 m_tags = std::forward<TagsT>(value);
113 }
114 template <typename TagsT = Aws::Vector<Tag>>
116 SetTags(std::forward<TagsT>(value));
117 return *this;
118 }
119 template <typename TagsT = Tag>
120 CreateChannelResult& AddTags(TagsT&& value) {
121 m_tagsHasBeenSet = true;
122 m_tags.emplace_back(std::forward<TagsT>(value));
123 return *this;
124 }
126
128
129 inline const Aws::String& GetRequestId() const { return m_requestId; }
130 template <typename RequestIdT = Aws::String>
131 void SetRequestId(RequestIdT&& value) {
132 m_requestIdHasBeenSet = true;
133 m_requestId = std::forward<RequestIdT>(value);
134 }
135 template <typename RequestIdT = Aws::String>
136 CreateChannelResult& WithRequestId(RequestIdT&& value) {
137 SetRequestId(std::forward<RequestIdT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_channelArn;
143
144 Aws::String m_name;
145
146 Aws::String m_source;
147
148 Aws::Vector<Destination> m_destinations;
149
150 Aws::Vector<Tag> m_tags;
151
152 Aws::String m_requestId;
153 bool m_channelArnHasBeenSet = false;
154 bool m_nameHasBeenSet = false;
155 bool m_sourceHasBeenSet = false;
156 bool m_destinationsHasBeenSet = false;
157 bool m_tagsHasBeenSet = false;
158 bool m_requestIdHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace CloudTrail
163} // 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)
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