AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/timestream-query/TimestreamQuery_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace TimestreamQuery {
20namespace Model {
21
28class Endpoint {
29 public:
30 AWS_TIMESTREAMQUERY_API Endpoint() = default;
33 AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAddress() const { return m_address; }
40 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
41 template <typename AddressT = Aws::String>
42 void SetAddress(AddressT&& value) {
43 m_addressHasBeenSet = true;
44 m_address = std::forward<AddressT>(value);
45 }
46 template <typename AddressT = Aws::String>
48 SetAddress(std::forward<AddressT>(value));
49 return *this;
50 }
52
54
57 inline long long GetCachePeriodInMinutes() const { return m_cachePeriodInMinutes; }
58 inline bool CachePeriodInMinutesHasBeenSet() const { return m_cachePeriodInMinutesHasBeenSet; }
59 inline void SetCachePeriodInMinutes(long long value) {
60 m_cachePeriodInMinutesHasBeenSet = true;
61 m_cachePeriodInMinutes = value;
62 }
63 inline Endpoint& WithCachePeriodInMinutes(long long value) {
65 return *this;
66 }
68 private:
69 Aws::String m_address;
70
71 long long m_cachePeriodInMinutes{0};
72 bool m_addressHasBeenSet = false;
73 bool m_cachePeriodInMinutesHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace TimestreamQuery
78} // namespace Aws
void SetAddress(AddressT &&value)
Definition Endpoint.h:42
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:47
long long GetCachePeriodInMinutes() const
Definition Endpoint.h:57
AWS_TIMESTREAMQUERY_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithCachePeriodInMinutes(long long value)
Definition Endpoint.h:63
AWS_TIMESTREAMQUERY_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAddress() const
Definition Endpoint.h:39
AWS_TIMESTREAMQUERY_API Endpoint()=default
void SetCachePeriodInMinutes(long long value)
Definition Endpoint.h:59
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue