AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
ConnectionCredentials.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
29 public:
30 AWS_CONNECT_API ConnectionCredentials() = default;
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
41 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
42 template <typename ConnectionTokenT = Aws::String>
43 void SetConnectionToken(ConnectionTokenT&& value) {
44 m_connectionTokenHasBeenSet = true;
45 m_connectionToken = std::forward<ConnectionTokenT>(value);
46 }
47 template <typename ConnectionTokenT = Aws::String>
48 ConnectionCredentials& WithConnectionToken(ConnectionTokenT&& value) {
49 SetConnectionToken(std::forward<ConnectionTokenT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetExpiry() const { return m_expiry; }
60 inline bool ExpiryHasBeenSet() const { return m_expiryHasBeenSet; }
61 template <typename ExpiryT = Aws::String>
62 void SetExpiry(ExpiryT&& value) {
63 m_expiryHasBeenSet = true;
64 m_expiry = std::forward<ExpiryT>(value);
65 }
66 template <typename ExpiryT = Aws::String>
68 SetExpiry(std::forward<ExpiryT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_connectionToken;
74
75 Aws::String m_expiry;
76 bool m_connectionTokenHasBeenSet = false;
77 bool m_expiryHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Connect
82} // namespace Aws
ConnectionCredentials & WithExpiry(ExpiryT &&value)
ConnectionCredentials & WithConnectionToken(ConnectionTokenT &&value)
AWS_CONNECT_API ConnectionCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API ConnectionCredentials(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API ConnectionCredentials()=default
void SetConnectionToken(ConnectionTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue