AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DynamoDB {
20namespace Model {
21
27class Endpoint {
28 public:
29 AWS_DYNAMODB_API Endpoint() = default;
30 AWS_DYNAMODB_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
31 AWS_DYNAMODB_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAddress() const { return m_address; }
39 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
40 template <typename AddressT = Aws::String>
41 void SetAddress(AddressT&& value) {
42 m_addressHasBeenSet = true;
43 m_address = std::forward<AddressT>(value);
44 }
45 template <typename AddressT = Aws::String>
46 Endpoint& WithAddress(AddressT&& value) {
47 SetAddress(std::forward<AddressT>(value));
48 return *this;
49 }
51
53
56 inline long long GetCachePeriodInMinutes() const { return m_cachePeriodInMinutes; }
57 inline bool CachePeriodInMinutesHasBeenSet() const { return m_cachePeriodInMinutesHasBeenSet; }
58 inline void SetCachePeriodInMinutes(long long value) {
59 m_cachePeriodInMinutesHasBeenSet = true;
60 m_cachePeriodInMinutes = value;
61 }
62 inline Endpoint& WithCachePeriodInMinutes(long long value) {
64 return *this;
65 }
67 private:
68 Aws::String m_address;
69
70 long long m_cachePeriodInMinutes{0};
71 bool m_addressHasBeenSet = false;
72 bool m_cachePeriodInMinutesHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace DynamoDB
77} // namespace Aws
AWS_DYNAMODB_API Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCachePeriodInMinutes(long long value)
Definition Endpoint.h:58
AWS_DYNAMODB_API Endpoint()=default
long long GetCachePeriodInMinutes() const
Definition Endpoint.h:56
AWS_DYNAMODB_API Endpoint(Aws::Utils::Json::JsonView jsonValue)
Endpoint & WithCachePeriodInMinutes(long long value)
Definition Endpoint.h:62
void SetAddress(AddressT &&value)
Definition Endpoint.h:41
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAddress() const
Definition Endpoint.h:38
bool CachePeriodInMinutesHasBeenSet() const
Definition Endpoint.h:57
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue