AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateChannelResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/cloudtrail/model/Destination.h>
11#include <aws/cloudtrail/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CloudTrail
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CLOUDTRAIL_API CreateChannelResult();
36
37
39
42 inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
43 inline void SetChannelArn(const Aws::String& value) { m_channelArn = value; }
44 inline void SetChannelArn(Aws::String&& value) { m_channelArn = std::move(value); }
45 inline void SetChannelArn(const char* value) { m_channelArn.assign(value); }
46 inline CreateChannelResult& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
47 inline CreateChannelResult& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
48 inline CreateChannelResult& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
50
52
55 inline const Aws::String& GetName() const{ return m_name; }
56 inline void SetName(const Aws::String& value) { m_name = value; }
57 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
58 inline void SetName(const char* value) { m_name.assign(value); }
59 inline CreateChannelResult& WithName(const Aws::String& value) { SetName(value); return *this;}
60 inline CreateChannelResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
61 inline CreateChannelResult& WithName(const char* value) { SetName(value); return *this;}
63
65
68 inline const Aws::String& GetSource() const{ return m_source; }
69 inline void SetSource(const Aws::String& value) { m_source = value; }
70 inline void SetSource(Aws::String&& value) { m_source = std::move(value); }
71 inline void SetSource(const char* value) { m_source.assign(value); }
72 inline CreateChannelResult& WithSource(const Aws::String& value) { SetSource(value); return *this;}
73 inline CreateChannelResult& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
74 inline CreateChannelResult& WithSource(const char* value) { SetSource(value); return *this;}
76
78
81 inline const Aws::Vector<Destination>& GetDestinations() const{ return m_destinations; }
82 inline void SetDestinations(const Aws::Vector<Destination>& value) { m_destinations = value; }
83 inline void SetDestinations(Aws::Vector<Destination>&& value) { m_destinations = std::move(value); }
85 inline CreateChannelResult& WithDestinations(Aws::Vector<Destination>&& value) { SetDestinations(std::move(value)); return *this;}
86 inline CreateChannelResult& AddDestinations(const Destination& value) { m_destinations.push_back(value); return *this; }
87 inline CreateChannelResult& AddDestinations(Destination&& value) { m_destinations.push_back(std::move(value)); return *this; }
89
91
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline void SetTags(const Aws::Vector<Tag>& value) { m_tags = value; }
94 inline void SetTags(Aws::Vector<Tag>&& value) { m_tags = std::move(value); }
95 inline CreateChannelResult& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
96 inline CreateChannelResult& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
97 inline CreateChannelResult& AddTags(const Tag& value) { m_tags.push_back(value); return *this; }
98 inline CreateChannelResult& AddTags(Tag&& value) { m_tags.push_back(std::move(value)); return *this; }
100
102
103 inline const Aws::String& GetRequestId() const{ return m_requestId; }
104 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
105 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
106 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
107 inline CreateChannelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
108 inline CreateChannelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
109 inline CreateChannelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
111 private:
112
113 Aws::String m_channelArn;
114
115 Aws::String m_name;
116
117 Aws::String m_source;
118
119 Aws::Vector<Destination> m_destinations;
120
121 Aws::Vector<Tag> m_tags;
122
123 Aws::String m_requestId;
124 };
125
126} // namespace Model
127} // namespace CloudTrail
128} // namespace Aws
AWS_CLOUDTRAIL_API CreateChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTags(Aws::Vector< Tag > &&value)
CreateChannelResult & WithSource(const Aws::String &value)
CreateChannelResult & AddDestinations(const Destination &value)
CreateChannelResult & WithTags(Aws::Vector< Tag > &&value)
CreateChannelResult & AddDestinations(Destination &&value)
CreateChannelResult & WithSource(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
CreateChannelResult & WithSource(const char *value)
void SetDestinations(Aws::Vector< Destination > &&value)
CreateChannelResult & WithRequestId(const Aws::String &value)
CreateChannelResult & WithTags(const Aws::Vector< Tag > &value)
CreateChannelResult & WithChannelArn(const Aws::String &value)
CreateChannelResult & AddTags(const Tag &value)
CreateChannelResult & WithRequestId(const char *value)
void SetChannelArn(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateChannelResult & WithDestinations(const Aws::Vector< Destination > &value)
CreateChannelResult & WithChannelArn(Aws::String &&value)
CreateChannelResult & WithName(const char *value)
void SetDestinations(const Aws::Vector< Destination > &value)
CreateChannelResult & WithRequestId(Aws::String &&value)
CreateChannelResult & WithChannelArn(const char *value)
const Aws::Vector< Destination > & GetDestinations() const
CreateChannelResult & AddTags(Tag &&value)
CreateChannelResult & WithName(const Aws::String &value)
CreateChannelResult & WithDestinations(Aws::Vector< Destination > &&value)
AWS_CLOUDTRAIL_API CreateChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateChannelResult & WithName(Aws::String &&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