AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace TimestreamWrite
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_TIMESTREAMWRITE_API Endpoint() = default;
36 AWS_TIMESTREAMWRITE_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TIMESTREAMWRITE_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAddress() const { return m_address; }
46 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
47 template<typename AddressT = Aws::String>
48 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
49 template<typename AddressT = Aws::String>
50 Endpoint& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
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) { m_cachePeriodInMinutesHasBeenSet = true; m_cachePeriodInMinutes = value; }
60 inline Endpoint& WithCachePeriodInMinutes(long long value) { SetCachePeriodInMinutes(value); return *this;}
62 private:
63
64 Aws::String m_address;
65 bool m_addressHasBeenSet = false;
66
67 long long m_cachePeriodInMinutes{0};
68 bool m_cachePeriodInMinutesHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace TimestreamWrite
73} // namespace Aws
Endpoint & WithCachePeriodInMinutes(long long value)
Definition Endpoint.h:60
AWS_TIMESTREAMWRITE_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API Endpoint()=default
void SetCachePeriodInMinutes(long long value)
Definition Endpoint.h:59
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAddress(AddressT &&value)
Definition Endpoint.h:48
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:50
long long GetCachePeriodInMinutes() const
Definition Endpoint.h:57
const Aws::String & GetAddress() const
Definition Endpoint.h:45
AWS_TIMESTREAMWRITE_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue