AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetChannelResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudtrail/model/SourceConfig.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/IngestionStatus.h>
12#include <aws/cloudtrail/model/Destination.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace CloudTrail
28{
29namespace Model
30{
32 {
33 public:
34 AWS_CLOUDTRAIL_API GetChannelResult() = default;
37
38
40
43 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
44 template<typename ChannelArnT = Aws::String>
45 void SetChannelArn(ChannelArnT&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::forward<ChannelArnT>(value); }
46 template<typename ChannelArnT = Aws::String>
47 GetChannelResult& WithChannelArn(ChannelArnT&& value) { SetChannelArn(std::forward<ChannelArnT>(value)); return *this;}
49
51
58 inline const Aws::String& GetName() const { return m_name; }
59 template<typename NameT = Aws::String>
60 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
61 template<typename NameT = Aws::String>
62 GetChannelResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetSource() const { return m_source; }
70 template<typename SourceT = Aws::String>
71 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
72 template<typename SourceT = Aws::String>
73 GetChannelResult& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
75
77
81 inline const SourceConfig& GetSourceConfig() const { return m_sourceConfig; }
82 template<typename SourceConfigT = SourceConfig>
83 void SetSourceConfig(SourceConfigT&& value) { m_sourceConfigHasBeenSet = true; m_sourceConfig = std::forward<SourceConfigT>(value); }
84 template<typename SourceConfigT = SourceConfig>
85 GetChannelResult& WithSourceConfig(SourceConfigT&& value) { SetSourceConfig(std::forward<SourceConfigT>(value)); return *this;}
87
89
95 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
96 template<typename DestinationsT = Aws::Vector<Destination>>
97 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
98 template<typename DestinationsT = Aws::Vector<Destination>>
99 GetChannelResult& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
100 template<typename DestinationsT = Destination>
101 GetChannelResult& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
103
105
109 inline const IngestionStatus& GetIngestionStatus() const { return m_ingestionStatus; }
110 template<typename IngestionStatusT = IngestionStatus>
111 void SetIngestionStatus(IngestionStatusT&& value) { m_ingestionStatusHasBeenSet = true; m_ingestionStatus = std::forward<IngestionStatusT>(value); }
112 template<typename IngestionStatusT = IngestionStatus>
113 GetChannelResult& WithIngestionStatus(IngestionStatusT&& value) { SetIngestionStatus(std::forward<IngestionStatusT>(value)); return *this;}
115
117
118 inline const Aws::String& GetRequestId() const { return m_requestId; }
119 template<typename RequestIdT = Aws::String>
120 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
121 template<typename RequestIdT = Aws::String>
122 GetChannelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
124 private:
125
126 Aws::String m_channelArn;
127 bool m_channelArnHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
132 Aws::String m_source;
133 bool m_sourceHasBeenSet = false;
134
135 SourceConfig m_sourceConfig;
136 bool m_sourceConfigHasBeenSet = false;
137
138 Aws::Vector<Destination> m_destinations;
139 bool m_destinationsHasBeenSet = false;
140
141 IngestionStatus m_ingestionStatus;
142 bool m_ingestionStatusHasBeenSet = false;
143
144 Aws::String m_requestId;
145 bool m_requestIdHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace CloudTrail
150} // namespace Aws
const SourceConfig & GetSourceConfig() const
GetChannelResult & WithName(NameT &&value)
GetChannelResult & WithRequestId(RequestIdT &&value)
void SetIngestionStatus(IngestionStatusT &&value)
const Aws::String & GetChannelArn() const
const Aws::String & GetSource() const
GetChannelResult & WithChannelArn(ChannelArnT &&value)
const IngestionStatus & GetIngestionStatus() const
GetChannelResult & WithDestinations(DestinationsT &&value)
GetChannelResult & WithSourceConfig(SourceConfigT &&value)
const Aws::String & GetRequestId() const
void SetDestinations(DestinationsT &&value)
void SetSourceConfig(SourceConfigT &&value)
const Aws::Vector< Destination > & GetDestinations() const
AWS_CLOUDTRAIL_API GetChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CLOUDTRAIL_API GetChannelResult()=default
GetChannelResult & AddDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API GetChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetChannelResult & WithSource(SourceT &&value)
GetChannelResult & WithIngestionStatus(IngestionStatusT &&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