AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StartImportRequest.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/lex-models/LexModelBuildingServiceRequest.h>
9#include <aws/core/utils/Array.h>
10#include <aws/lex-models/model/ResourceType.h>
11#include <aws/lex-models/model/MergeStrategy.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lex-models/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LexModelBuildingService
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LEXMODELBUILDINGSERVICE_API StartImportRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "StartImport"; }
35
36 AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override;
37
38
40
45 inline const Aws::Utils::ByteBuffer& GetPayload() const { return m_payload; }
46 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
47 template<typename PayloadT = Aws::Utils::ByteBuffer>
48 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
49 template<typename PayloadT = Aws::Utils::ByteBuffer>
50 StartImportRequest& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
52
54
60 inline ResourceType GetResourceType() const { return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
63 inline StartImportRequest& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
65
67
78 inline MergeStrategy GetMergeStrategy() const { return m_mergeStrategy; }
79 inline bool MergeStrategyHasBeenSet() const { return m_mergeStrategyHasBeenSet; }
80 inline void SetMergeStrategy(MergeStrategy value) { m_mergeStrategyHasBeenSet = true; m_mergeStrategy = value; }
83
85
89 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
90 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
91 template<typename TagsT = Aws::Vector<Tag>>
92 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
93 template<typename TagsT = Aws::Vector<Tag>>
94 StartImportRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
95 template<typename TagsT = Tag>
96 StartImportRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
98 private:
99
100 Aws::Utils::ByteBuffer m_payload{};
101 bool m_payloadHasBeenSet = false;
102
103 ResourceType m_resourceType{ResourceType::NOT_SET};
104 bool m_resourceTypeHasBeenSet = false;
105
106 MergeStrategy m_mergeStrategy{MergeStrategy::NOT_SET};
107 bool m_mergeStrategyHasBeenSet = false;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_tagsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace LexModelBuildingService
115} // namespace Aws
StartImportRequest & WithPayload(PayloadT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LEXMODELBUILDINGSERVICE_API StartImportRequest()=default
const Aws::Utils::ByteBuffer & GetPayload() const
StartImportRequest & WithResourceType(ResourceType value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override
StartImportRequest & WithMergeStrategy(MergeStrategy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector