AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
IntegrationConfig.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/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29 public:
30 AWS_GLUE_API IntegrationConfig() = default;
34
36
44 inline const Aws::String& GetRefreshInterval() const { return m_refreshInterval; }
45 inline bool RefreshIntervalHasBeenSet() const { return m_refreshIntervalHasBeenSet; }
46 template <typename RefreshIntervalT = Aws::String>
47 void SetRefreshInterval(RefreshIntervalT&& value) {
48 m_refreshIntervalHasBeenSet = true;
49 m_refreshInterval = std::forward<RefreshIntervalT>(value);
50 }
51 template <typename RefreshIntervalT = Aws::String>
52 IntegrationConfig& WithRefreshInterval(RefreshIntervalT&& value) {
53 SetRefreshInterval(std::forward<RefreshIntervalT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::Map<Aws::String, Aws::String>& GetSourceProperties() const { return m_sourceProperties; }
66 inline bool SourcePropertiesHasBeenSet() const { return m_sourcePropertiesHasBeenSet; }
67 template <typename SourcePropertiesT = Aws::Map<Aws::String, Aws::String>>
68 void SetSourceProperties(SourcePropertiesT&& value) {
69 m_sourcePropertiesHasBeenSet = true;
70 m_sourceProperties = std::forward<SourcePropertiesT>(value);
71 }
72 template <typename SourcePropertiesT = Aws::Map<Aws::String, Aws::String>>
73 IntegrationConfig& WithSourceProperties(SourcePropertiesT&& value) {
74 SetSourceProperties(std::forward<SourcePropertiesT>(value));
75 return *this;
76 }
77 template <typename SourcePropertiesKeyT = Aws::String, typename SourcePropertiesValueT = Aws::String>
78 IntegrationConfig& AddSourceProperties(SourcePropertiesKeyT&& key, SourcePropertiesValueT&& value) {
79 m_sourcePropertiesHasBeenSet = true;
80 m_sourceProperties.emplace(std::forward<SourcePropertiesKeyT>(key), std::forward<SourcePropertiesValueT>(value));
81 return *this;
82 }
84
86
91 inline bool GetContinuousSync() const { return m_continuousSync; }
92 inline bool ContinuousSyncHasBeenSet() const { return m_continuousSyncHasBeenSet; }
93 inline void SetContinuousSync(bool value) {
94 m_continuousSyncHasBeenSet = true;
95 m_continuousSync = value;
96 }
98 SetContinuousSync(value);
99 return *this;
100 }
102 private:
103 Aws::String m_refreshInterval;
104 bool m_refreshIntervalHasBeenSet = false;
105
106 Aws::Map<Aws::String, Aws::String> m_sourceProperties;
107 bool m_sourcePropertiesHasBeenSet = false;
108
109 bool m_continuousSync{false};
110 bool m_continuousSyncHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Glue
115} // namespace Aws
IntegrationConfig & WithRefreshInterval(RefreshIntervalT &&value)
void SetRefreshInterval(RefreshIntervalT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
IntegrationConfig & WithSourceProperties(SourcePropertiesT &&value)
const Aws::String & GetRefreshInterval() const
const Aws::Map< Aws::String, Aws::String > & GetSourceProperties() const
AWS_GLUE_API IntegrationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API IntegrationConfig(Aws::Utils::Json::JsonView jsonValue)
void SetSourceProperties(SourcePropertiesT &&value)
IntegrationConfig & AddSourceProperties(SourcePropertiesKeyT &&key, SourcePropertiesValueT &&value)
IntegrationConfig & WithContinuousSync(bool value)
AWS_GLUE_API IntegrationConfig()=default
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
Aws::Utils::Json::JsonValue JsonValue