AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateChannelResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/model/Destination.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail {
24namespace Model {
26 public:
27 AWS_CLOUDTRAIL_API UpdateChannelResult() = default;
30
32
35 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
36 template <typename ChannelArnT = Aws::String>
37 void SetChannelArn(ChannelArnT&& value) {
38 m_channelArnHasBeenSet = true;
39 m_channelArn = std::forward<ChannelArnT>(value);
40 }
41 template <typename ChannelArnT = Aws::String>
42 UpdateChannelResult& WithChannelArn(ChannelArnT&& value) {
43 SetChannelArn(std::forward<ChannelArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
59 UpdateChannelResult& WithName(NameT&& value) {
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetSource() const { return m_source; }
70 template <typename SourceT = Aws::String>
71 void SetSource(SourceT&& value) {
72 m_sourceHasBeenSet = true;
73 m_source = std::forward<SourceT>(value);
74 }
75 template <typename SourceT = Aws::String>
76 UpdateChannelResult& WithSource(SourceT&& value) {
77 SetSource(std::forward<SourceT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
87 template <typename DestinationsT = Aws::Vector<Destination>>
88 void SetDestinations(DestinationsT&& value) {
89 m_destinationsHasBeenSet = true;
90 m_destinations = std::forward<DestinationsT>(value);
91 }
92 template <typename DestinationsT = Aws::Vector<Destination>>
93 UpdateChannelResult& WithDestinations(DestinationsT&& value) {
94 SetDestinations(std::forward<DestinationsT>(value));
95 return *this;
96 }
97 template <typename DestinationsT = Destination>
98 UpdateChannelResult& AddDestinations(DestinationsT&& value) {
99 m_destinationsHasBeenSet = true;
100 m_destinations.emplace_back(std::forward<DestinationsT>(value));
101 return *this;
102 }
104
106
107 inline const Aws::String& GetRequestId() const { return m_requestId; }
108 template <typename RequestIdT = Aws::String>
109 void SetRequestId(RequestIdT&& value) {
110 m_requestIdHasBeenSet = true;
111 m_requestId = std::forward<RequestIdT>(value);
112 }
113 template <typename RequestIdT = Aws::String>
114 UpdateChannelResult& WithRequestId(RequestIdT&& value) {
115 SetRequestId(std::forward<RequestIdT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_channelArn;
121
122 Aws::String m_name;
123
124 Aws::String m_source;
125
126 Aws::Vector<Destination> m_destinations;
127
128 Aws::String m_requestId;
129 bool m_channelArnHasBeenSet = false;
130 bool m_nameHasBeenSet = false;
131 bool m_sourceHasBeenSet = false;
132 bool m_destinationsHasBeenSet = false;
133 bool m_requestIdHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace CloudTrail
138} // namespace Aws
UpdateChannelResult & WithRequestId(RequestIdT &&value)
UpdateChannelResult & WithChannelArn(ChannelArnT &&value)
UpdateChannelResult & AddDestinations(DestinationsT &&value)
UpdateChannelResult & WithSource(SourceT &&value)
AWS_CLOUDTRAIL_API UpdateChannelResult()=default
AWS_CLOUDTRAIL_API UpdateChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API UpdateChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateChannelResult & WithName(NameT &&value)
const Aws::Vector< Destination > & GetDestinations() const
UpdateChannelResult & WithDestinations(DestinationsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue