AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
37
38
40
43 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
44 inline void SetChannelArn(const Aws::String& value) { m_channelArn = value; }
45 inline void SetChannelArn(Aws::String&& value) { m_channelArn = std::move(value); }
46 inline void SetChannelArn(const char* value) { m_channelArn.assign(value); }
47 inline GetChannelResult& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
48 inline GetChannelResult& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
49 inline GetChannelResult& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
51
53
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline void SetName(const Aws::String& value) { m_name = value; }
62 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
63 inline void SetName(const char* value) { m_name.assign(value); }
64 inline GetChannelResult& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline GetChannelResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline GetChannelResult& WithName(const char* value) { SetName(value); return *this;}
68
70
73 inline const Aws::String& GetSource() const{ return m_source; }
74 inline void SetSource(const Aws::String& value) { m_source = value; }
75 inline void SetSource(Aws::String&& value) { m_source = std::move(value); }
76 inline void SetSource(const char* value) { m_source.assign(value); }
77 inline GetChannelResult& WithSource(const Aws::String& value) { SetSource(value); return *this;}
78 inline GetChannelResult& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
79 inline GetChannelResult& WithSource(const char* value) { SetSource(value); return *this;}
81
83
87 inline const SourceConfig& GetSourceConfig() const{ return m_sourceConfig; }
88 inline void SetSourceConfig(const SourceConfig& value) { m_sourceConfig = value; }
89 inline void SetSourceConfig(SourceConfig&& value) { m_sourceConfig = std::move(value); }
90 inline GetChannelResult& WithSourceConfig(const SourceConfig& value) { SetSourceConfig(value); return *this;}
91 inline GetChannelResult& WithSourceConfig(SourceConfig&& value) { SetSourceConfig(std::move(value)); return *this;}
93
95
101 inline const Aws::Vector<Destination>& GetDestinations() const{ return m_destinations; }
102 inline void SetDestinations(const Aws::Vector<Destination>& value) { m_destinations = value; }
103 inline void SetDestinations(Aws::Vector<Destination>&& value) { m_destinations = std::move(value); }
104 inline GetChannelResult& WithDestinations(const Aws::Vector<Destination>& value) { SetDestinations(value); return *this;}
105 inline GetChannelResult& WithDestinations(Aws::Vector<Destination>&& value) { SetDestinations(std::move(value)); return *this;}
106 inline GetChannelResult& AddDestinations(const Destination& value) { m_destinations.push_back(value); return *this; }
107 inline GetChannelResult& AddDestinations(Destination&& value) { m_destinations.push_back(std::move(value)); return *this; }
109
111
115 inline const IngestionStatus& GetIngestionStatus() const{ return m_ingestionStatus; }
116 inline void SetIngestionStatus(const IngestionStatus& value) { m_ingestionStatus = value; }
117 inline void SetIngestionStatus(IngestionStatus&& value) { m_ingestionStatus = std::move(value); }
118 inline GetChannelResult& WithIngestionStatus(const IngestionStatus& value) { SetIngestionStatus(value); return *this;}
119 inline GetChannelResult& WithIngestionStatus(IngestionStatus&& value) { SetIngestionStatus(std::move(value)); return *this;}
121
123
124 inline const Aws::String& GetRequestId() const{ return m_requestId; }
125 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
126 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
127 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
128 inline GetChannelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
129 inline GetChannelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
130 inline GetChannelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
132 private:
133
134 Aws::String m_channelArn;
135
136 Aws::String m_name;
137
138 Aws::String m_source;
139
140 SourceConfig m_sourceConfig;
141
142 Aws::Vector<Destination> m_destinations;
143
144 IngestionStatus m_ingestionStatus;
145
146 Aws::String m_requestId;
147 };
148
149} // namespace Model
150} // namespace CloudTrail
151} // namespace Aws
void SetIngestionStatus(const IngestionStatus &value)
const SourceConfig & GetSourceConfig() const
GetChannelResult & AddDestinations(const Destination &value)
GetChannelResult & WithSourceConfig(SourceConfig &&value)
const Aws::String & GetChannelArn() const
const Aws::String & GetSource() const
GetChannelResult & WithChannelArn(const Aws::String &value)
GetChannelResult & WithRequestId(const Aws::String &value)
const IngestionStatus & GetIngestionStatus() const
GetChannelResult & WithRequestId(Aws::String &&value)
GetChannelResult & AddDestinations(Destination &&value)
GetChannelResult & WithDestinations(Aws::Vector< Destination > &&value)
void SetChannelArn(const Aws::String &value)
GetChannelResult & WithIngestionStatus(IngestionStatus &&value)
GetChannelResult & WithSourceConfig(const SourceConfig &value)
void SetRequestId(const Aws::String &value)
const Aws::String & GetRequestId() const
GetChannelResult & WithChannelArn(const char *value)
GetChannelResult & WithRequestId(const char *value)
GetChannelResult & WithName(const Aws::String &value)
const Aws::Vector< Destination > & GetDestinations() const
void SetDestinations(Aws::Vector< Destination > &&value)
AWS_CLOUDTRAIL_API GetChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetChannelResult & WithSource(const Aws::String &value)
GetChannelResult & WithSource(const char *value)
void SetDestinations(const Aws::Vector< Destination > &value)
void SetSourceConfig(SourceConfig &&value)
void SetName(const Aws::String &value)
GetChannelResult & WithName(const char *value)
GetChannelResult & WithSource(Aws::String &&value)
GetChannelResult & WithIngestionStatus(const IngestionStatus &value)
void SetSource(const Aws::String &value)
void SetSourceConfig(const SourceConfig &value)
GetChannelResult & WithChannelArn(Aws::String &&value)
GetChannelResult & WithDestinations(const Aws::Vector< Destination > &value)
void SetIngestionStatus(IngestionStatus &&value)
GetChannelResult & WithName(Aws::String &&value)
AWS_CLOUDTRAIL_API GetChannelResult(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