AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateChannelRequest.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/cloudtrail/CloudTrailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudtrail/model/Destination.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudTrail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDTRAIL_API UpdateChannelRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
33
34 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetChannel() const { return m_channel; }
44 inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; }
45 template<typename ChannelT = Aws::String>
46 void SetChannel(ChannelT&& value) { m_channelHasBeenSet = true; m_channel = std::forward<ChannelT>(value); }
47 template<typename ChannelT = Aws::String>
48 UpdateChannelRequest& WithChannel(ChannelT&& value) { SetChannel(std::forward<ChannelT>(value)); return *this;}
50
52
56 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
57 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
58 template<typename DestinationsT = Aws::Vector<Destination>>
59 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
60 template<typename DestinationsT = Aws::Vector<Destination>>
61 UpdateChannelRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
62 template<typename DestinationsT = Destination>
63 UpdateChannelRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 template<typename NameT = Aws::String>
73 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
74 template<typename NameT = Aws::String>
75 UpdateChannelRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
77 private:
78
79 Aws::String m_channel;
80 bool m_channelHasBeenSet = false;
81
82 Aws::Vector<Destination> m_destinations;
83 bool m_destinationsHasBeenSet = false;
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CloudTrail
91} // namespace Aws
UpdateChannelRequest & WithDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API UpdateChannelRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Destination > & GetDestinations() const
UpdateChannelRequest & WithChannel(ChannelT &&value)
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
UpdateChannelRequest & WithName(NameT &&value)
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateChannelRequest & AddDestinations(DestinationsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector