AWS SDK for C++

AWS SDK for C++ Version 1.11.781

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/http/HttpResponse.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 UpdateChannelResult() = 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 UpdateChannelResult& 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 UpdateChannelResult& 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 UpdateChannelResult& 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 UpdateChannelResult& WithDestinations(DestinationsT&& value) {
95 SetDestinations(std::forward<DestinationsT>(value));
96 return *this;
97 }
98 template <typename DestinationsT = Destination>
99 UpdateChannelResult& 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::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
115 UpdateChannelResult& WithRequestId(RequestIdT&& value) {
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
121
122 private:
123 Aws::String m_channelArn;
124
125 Aws::String m_name;
126
127 Aws::String m_source;
128
129 Aws::Vector<Destination> m_destinations;
130
131 Aws::String m_requestId;
132 Aws::Http::HttpResponseCode m_HttpResponseCode;
133 bool m_channelArnHasBeenSet = false;
134 bool m_nameHasBeenSet = false;
135 bool m_sourceHasBeenSet = false;
136 bool m_destinationsHasBeenSet = false;
137 bool m_requestIdHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace CloudTrail
142} // namespace Aws
UpdateChannelResult & WithRequestId(RequestIdT &&value)
UpdateChannelResult & WithChannelArn(ChannelArnT &&value)
UpdateChannelResult & AddDestinations(DestinationsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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