AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateChannelResult.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 <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CloudTrail
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CLOUDTRAIL_API UpdateChannelResult() = default;
35
36
38
41 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
42 template<typename ChannelArnT = Aws::String>
43 void SetChannelArn(ChannelArnT&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::forward<ChannelArnT>(value); }
44 template<typename ChannelArnT = Aws::String>
45 UpdateChannelResult& WithChannelArn(ChannelArnT&& value) { SetChannelArn(std::forward<ChannelArnT>(value)); return *this;}
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 UpdateChannelResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetSource() const { return m_source; }
64 template<typename SourceT = Aws::String>
65 void SetSource(SourceT&& value) { m_sourceHasBeenSet = true; m_source = std::forward<SourceT>(value); }
66 template<typename SourceT = Aws::String>
67 UpdateChannelResult& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
69
71
74 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
75 template<typename DestinationsT = Aws::Vector<Destination>>
76 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
77 template<typename DestinationsT = Aws::Vector<Destination>>
78 UpdateChannelResult& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
79 template<typename DestinationsT = Destination>
80 UpdateChannelResult& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template<typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
88 template<typename RequestIdT = Aws::String>
89 UpdateChannelResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
91 private:
92
93 Aws::String m_channelArn;
94 bool m_channelArnHasBeenSet = false;
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_source;
100 bool m_sourceHasBeenSet = false;
101
102 Aws::Vector<Destination> m_destinations;
103 bool m_destinationsHasBeenSet = false;
104
105 Aws::String m_requestId;
106 bool m_requestIdHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CloudTrail
111} // 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