AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateChannelRequest.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 <aws/cloudtrail/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudTrail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDTRAIL_API CreateChannelRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
34
35 AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateChannelRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
62 inline const Aws::String& GetSource() const { return m_source; }
63 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
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 CreateChannelRequest& WithSource(SourceT&& value) { SetSource(std::forward<SourceT>(value)); return *this;}
69
71
75 inline const Aws::Vector<Destination>& GetDestinations() const { return m_destinations; }
76 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
77 template<typename DestinationsT = Aws::Vector<Destination>>
78 void SetDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations = std::forward<DestinationsT>(value); }
79 template<typename DestinationsT = Aws::Vector<Destination>>
80 CreateChannelRequest& WithDestinations(DestinationsT&& value) { SetDestinations(std::forward<DestinationsT>(value)); return *this;}
81 template<typename DestinationsT = Destination>
82 CreateChannelRequest& AddDestinations(DestinationsT&& value) { m_destinationsHasBeenSet = true; m_destinations.emplace_back(std::forward<DestinationsT>(value)); return *this; }
84
86
87 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
88 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
89 template<typename TagsT = Aws::Vector<Tag>>
90 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
91 template<typename TagsT = Aws::Vector<Tag>>
92 CreateChannelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
93 template<typename TagsT = Tag>
94 CreateChannelRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
96 private:
97
98 Aws::String m_name;
99 bool m_nameHasBeenSet = false;
100
101 Aws::String m_source;
102 bool m_sourceHasBeenSet = false;
103
104 Aws::Vector<Destination> m_destinations;
105 bool m_destinationsHasBeenSet = false;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CloudTrail
113} // namespace Aws
CreateChannelRequest & AddDestinations(DestinationsT &&value)
AWS_CLOUDTRAIL_API CreateChannelRequest()=default
const Aws::Vector< Destination > & GetDestinations() const
virtual const char * GetServiceRequestName() const override
AWS_CLOUDTRAIL_API Aws::String SerializePayload() const override
AWS_CLOUDTRAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateChannelRequest & WithSource(SourceT &&value)
CreateChannelRequest & WithName(NameT &&value)
CreateChannelRequest & WithDestinations(DestinationsT &&value)
CreateChannelRequest & WithTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateChannelRequest & AddTags(TagsT &&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