AWS SDK for C++

AWS SDK for C++ Version 1.11.694

Loading...
Searching...
No Matches
CreateLoggingConfigurationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivschat/IvschatRequest.h>
10#include <aws/ivschat/Ivschat_EXPORTS.h>
11#include <aws/ivschat/model/DestinationConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ivschat {
17namespace Model {
18
22 public:
23 AWS_IVSCHAT_API CreateLoggingConfigurationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateLoggingConfiguration"; }
30
31 AWS_IVSCHAT_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
58 inline const DestinationConfiguration& GetDestinationConfiguration() const { return m_destinationConfiguration; }
59 inline bool DestinationConfigurationHasBeenSet() const { return m_destinationConfigurationHasBeenSet; }
60 template <typename DestinationConfigurationT = DestinationConfiguration>
61 void SetDestinationConfiguration(DestinationConfigurationT&& value) {
62 m_destinationConfigurationHasBeenSet = true;
63 m_destinationConfiguration = std::forward<DestinationConfigurationT>(value);
64 }
65 template <typename DestinationConfigurationT = DestinationConfiguration>
67 SetDestinationConfiguration(std::forward<DestinationConfigurationT>(value));
68 return *this;
69 }
71
73
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 void SetTags(TagsT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags = std::forward<TagsT>(value);
88 }
89 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
91 SetTags(std::forward<TagsT>(value));
92 return *this;
93 }
94 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
95 CreateLoggingConfigurationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_name;
103 bool m_nameHasBeenSet = false;
104
105 DestinationConfiguration m_destinationConfiguration;
106 bool m_destinationConfigurationHasBeenSet = false;
107
109 bool m_tagsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace ivschat
114} // namespace Aws
CreateLoggingConfigurationRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateLoggingConfigurationRequest & WithName(NameT &&value)
CreateLoggingConfigurationRequest & WithDestinationConfiguration(DestinationConfigurationT &&value)
AWS_IVSCHAT_API Aws::String SerializePayload() const override
CreateLoggingConfigurationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String