AWS SDK for C++

AWS SDK for C++ Version 1.11.605

Loading...
Searching...
No Matches
Endpoint.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_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 DynamoDB
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_DYNAMODB_API Endpoint() = default;
35 AWS_DYNAMODB_API Endpoint(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DYNAMODB_API Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetAddress() const { return m_address; }
45 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
46 template<typename AddressT = Aws::String>
47 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
48 template<typename AddressT = Aws::String>
49 Endpoint& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
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) { m_cachePeriodInMinutesHasBeenSet = true; m_cachePeriodInMinutes = value; }
59 inline Endpoint& WithCachePeriodInMinutes(long long value) { SetCachePeriodInMinutes(value); return *this;}
61 private:
62
63 Aws::String m_address;
64 bool m_addressHasBeenSet = false;
65
66 long long m_cachePeriodInMinutes{0};
67 bool m_cachePeriodInMinutesHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace DynamoDB
72} // 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:59
void SetAddress(AddressT &&value)
Definition Endpoint.h:47
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAddress() const
Definition Endpoint.h:44
bool CachePeriodInMinutesHasBeenSet() const
Definition Endpoint.h:57
Endpoint & WithAddress(AddressT &&value)
Definition Endpoint.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue