AWS SDK for C++  1.9.108
AWS SDK for C++
Endpoint.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace TimestreamQuery
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetAddress() const{ return m_address; }
45 
49  inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
50 
54  inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
55 
59  inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
60 
64  inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
65 
69  inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
70 
74  inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
75 
79  inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
80 
81 
85  inline long long GetCachePeriodInMinutes() const{ return m_cachePeriodInMinutes; }
86 
90  inline bool CachePeriodInMinutesHasBeenSet() const { return m_cachePeriodInMinutesHasBeenSet; }
91 
95  inline void SetCachePeriodInMinutes(long long value) { m_cachePeriodInMinutesHasBeenSet = true; m_cachePeriodInMinutes = value; }
96 
100  inline Endpoint& WithCachePeriodInMinutes(long long value) { SetCachePeriodInMinutes(value); return *this;}
101 
102  private:
103 
104  Aws::String m_address;
105  bool m_addressHasBeenSet;
106 
107  long long m_cachePeriodInMinutes;
108  bool m_cachePeriodInMinutesHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace TimestreamQuery
113 } // namespace Aws
AWS_TIMESTREAMQUERY_API
#define AWS_TIMESTREAMQUERY_API
Definition: TimestreamQuery_EXPORTS.h:28
Aws::TimestreamQuery::Model::Endpoint
Definition: Endpoint.h:33
Aws::TimestreamQuery::Model::Endpoint::WithAddress
Endpoint & WithAddress(const char *value)
Definition: Endpoint.h:79
Aws::TimestreamQuery::Model::Endpoint::SetAddress
void SetAddress(const char *value)
Definition: Endpoint.h:64
Aws::TimestreamQuery::Model::Endpoint::SetCachePeriodInMinutes
void SetCachePeriodInMinutes(long long value)
Definition: Endpoint.h:95
Aws::TimestreamQuery::Model::Endpoint::SetAddress
void SetAddress(Aws::String &&value)
Definition: Endpoint.h:59
Aws::TimestreamQuery::Model::Endpoint::CachePeriodInMinutesHasBeenSet
bool CachePeriodInMinutesHasBeenSet() const
Definition: Endpoint.h:90
TimestreamQuery_EXPORTS.h
Aws::TimestreamQuery::Model::Endpoint::operator=
Endpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::TimestreamQuery::Model::Endpoint::AddressHasBeenSet
bool AddressHasBeenSet() const
Definition: Endpoint.h:49
Aws::TimestreamQuery::Model::Endpoint::WithCachePeriodInMinutes
Endpoint & WithCachePeriodInMinutes(long long value)
Definition: Endpoint.h:100
Aws::TimestreamQuery::Model::Endpoint::WithAddress
Endpoint & WithAddress(Aws::String &&value)
Definition: Endpoint.h:74
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::TimestreamQuery::Model::Endpoint::GetAddress
const Aws::String & GetAddress() const
Definition: Endpoint.h:44
Aws::TimestreamQuery::Model::Endpoint::Endpoint
Endpoint()
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::TimestreamQuery::Model::Endpoint::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::TimestreamQuery::Model::Endpoint::GetCachePeriodInMinutes
long long GetCachePeriodInMinutes() const
Definition: Endpoint.h:85
Aws::TimestreamQuery::Model::Endpoint::SetAddress
void SetAddress(const Aws::String &value)
Definition: Endpoint.h:54
Aws::TimestreamQuery::Model::Endpoint::WithAddress
Endpoint & WithAddress(const Aws::String &value)
Definition: Endpoint.h:69
Aws::TimestreamQuery::Model::Endpoint::Endpoint
Endpoint(Aws::Utils::Json::JsonView jsonValue)