AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ElasticsearchSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dms/DatabaseMigrationService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DatabaseMigrationService {
20namespace Model {
21
29 public:
30 AWS_DATABASEMIGRATIONSERVICE_API ElasticsearchSettings() = default;
31 AWS_DATABASEMIGRATIONSERVICE_API ElasticsearchSettings(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DATABASEMIGRATIONSERVICE_API ElasticsearchSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetServiceAccessRoleArn() const { return m_serviceAccessRoleArn; }
41 inline bool ServiceAccessRoleArnHasBeenSet() const { return m_serviceAccessRoleArnHasBeenSet; }
42 template <typename ServiceAccessRoleArnT = Aws::String>
43 void SetServiceAccessRoleArn(ServiceAccessRoleArnT&& value) {
44 m_serviceAccessRoleArnHasBeenSet = true;
45 m_serviceAccessRoleArn = std::forward<ServiceAccessRoleArnT>(value);
46 }
47 template <typename ServiceAccessRoleArnT = Aws::String>
48 ElasticsearchSettings& WithServiceAccessRoleArn(ServiceAccessRoleArnT&& value) {
49 SetServiceAccessRoleArn(std::forward<ServiceAccessRoleArnT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetEndpointUri() const { return m_endpointUri; }
60 inline bool EndpointUriHasBeenSet() const { return m_endpointUriHasBeenSet; }
61 template <typename EndpointUriT = Aws::String>
62 void SetEndpointUri(EndpointUriT&& value) {
63 m_endpointUriHasBeenSet = true;
64 m_endpointUri = std::forward<EndpointUriT>(value);
65 }
66 template <typename EndpointUriT = Aws::String>
67 ElasticsearchSettings& WithEndpointUri(EndpointUriT&& value) {
68 SetEndpointUri(std::forward<EndpointUriT>(value));
69 return *this;
70 }
72
74
82 inline int GetFullLoadErrorPercentage() const { return m_fullLoadErrorPercentage; }
83 inline bool FullLoadErrorPercentageHasBeenSet() const { return m_fullLoadErrorPercentageHasBeenSet; }
84 inline void SetFullLoadErrorPercentage(int value) {
85 m_fullLoadErrorPercentageHasBeenSet = true;
86 m_fullLoadErrorPercentage = value;
87 }
90 return *this;
91 }
93
95
99 inline int GetErrorRetryDuration() const { return m_errorRetryDuration; }
100 inline bool ErrorRetryDurationHasBeenSet() const { return m_errorRetryDurationHasBeenSet; }
101 inline void SetErrorRetryDuration(int value) {
102 m_errorRetryDurationHasBeenSet = true;
103 m_errorRetryDuration = value;
104 }
107 return *this;
108 }
110
112
118 inline bool GetUseNewMappingType() const { return m_useNewMappingType; }
119 inline bool UseNewMappingTypeHasBeenSet() const { return m_useNewMappingTypeHasBeenSet; }
120 inline void SetUseNewMappingType(bool value) {
121 m_useNewMappingTypeHasBeenSet = true;
122 m_useNewMappingType = value;
123 }
126 return *this;
127 }
129 private:
130 Aws::String m_serviceAccessRoleArn;
131
132 Aws::String m_endpointUri;
133
134 int m_fullLoadErrorPercentage{0};
135
136 int m_errorRetryDuration{0};
137
138 bool m_useNewMappingType{false};
139 bool m_serviceAccessRoleArnHasBeenSet = false;
140 bool m_endpointUriHasBeenSet = false;
141 bool m_fullLoadErrorPercentageHasBeenSet = false;
142 bool m_errorRetryDurationHasBeenSet = false;
143 bool m_useNewMappingTypeHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace DatabaseMigrationService
148} // namespace Aws
ElasticsearchSettings & WithServiceAccessRoleArn(ServiceAccessRoleArnT &&value)
AWS_DATABASEMIGRATIONSERVICE_API ElasticsearchSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API ElasticsearchSettings()=default
AWS_DATABASEMIGRATIONSERVICE_API ElasticsearchSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_DATABASEMIGRATIONSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ElasticsearchSettings & WithEndpointUri(EndpointUriT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue