AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPayload(const Aws::Utils::ByteBuffer& value) { m_payloadHasBeenSet = true; m_payload = value; }
48 inline void SetPayload(Aws::Utils::ByteBuffer&& value) { m_payloadHasBeenSet = true; m_payload = std::move(value); }
49 inline StartImportRequest& WithPayload(const Aws::Utils::ByteBuffer& value) { SetPayload(value); return *this;}
50 inline StartImportRequest& WithPayload(Aws::Utils::ByteBuffer&& value) { SetPayload(std::move(value)); return *this;}
52
54
60 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
63 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
64 inline StartImportRequest& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
65 inline StartImportRequest& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
67
69
80 inline const MergeStrategy& GetMergeStrategy() const{ return m_mergeStrategy; }
81 inline bool MergeStrategyHasBeenSet() const { return m_mergeStrategyHasBeenSet; }
82 inline void SetMergeStrategy(const MergeStrategy& value) { m_mergeStrategyHasBeenSet = true; m_mergeStrategy = value; }
83 inline void SetMergeStrategy(MergeStrategy&& value) { m_mergeStrategyHasBeenSet = true; m_mergeStrategy = std::move(value); }
84 inline StartImportRequest& WithMergeStrategy(const MergeStrategy& value) { SetMergeStrategy(value); return *this;}
85 inline StartImportRequest& WithMergeStrategy(MergeStrategy&& value) { SetMergeStrategy(std::move(value)); return *this;}
87
89
93 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
96 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
97 inline StartImportRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
98 inline StartImportRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
99 inline StartImportRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
100 inline StartImportRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
102 private:
103
104 Aws::Utils::ByteBuffer m_payload;
105 bool m_payloadHasBeenSet = false;
106
107 ResourceType m_resourceType;
108 bool m_resourceTypeHasBeenSet = false;
109
110 MergeStrategy m_mergeStrategy;
111 bool m_mergeStrategyHasBeenSet = false;
112
113 Aws::Vector<Tag> m_tags;
114 bool m_tagsHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace LexModelBuildingService
119} // namespace Aws
StartImportRequest & WithMergeStrategy(MergeStrategy &&value)
StartImportRequest & WithTags(Aws::Vector< Tag > &&value)
StartImportRequest & WithMergeStrategy(const MergeStrategy &value)
StartImportRequest & WithPayload(const Aws::Utils::ByteBuffer &value)
virtual const char * GetServiceRequestName() const override
const Aws::Utils::ByteBuffer & GetPayload() const
StartImportRequest & WithResourceType(ResourceType &&value)
AWS_LEXMODELBUILDINGSERVICE_API StartImportRequest()
StartImportRequest & WithResourceType(const ResourceType &value)
void SetPayload(const Aws::Utils::ByteBuffer &value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::String SerializePayload() const override
StartImportRequest & WithTags(const Aws::Vector< Tag > &value)
StartImportRequest & WithPayload(Aws::Utils::ByteBuffer &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector