AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ConnectionCredentials.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_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 ConnectParticipant {
20namespace Model {
21
28 public:
29 AWS_CONNECTPARTICIPANT_API ConnectionCredentials() = default;
30 AWS_CONNECTPARTICIPANT_API ConnectionCredentials(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CONNECTPARTICIPANT_API ConnectionCredentials& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
39 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
40 template <typename ConnectionTokenT = Aws::String>
41 void SetConnectionToken(ConnectionTokenT&& value) {
42 m_connectionTokenHasBeenSet = true;
43 m_connectionToken = std::forward<ConnectionTokenT>(value);
44 }
45 template <typename ConnectionTokenT = Aws::String>
46 ConnectionCredentials& WithConnectionToken(ConnectionTokenT&& value) {
47 SetConnectionToken(std::forward<ConnectionTokenT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetExpiry() const { return m_expiry; }
58 inline bool ExpiryHasBeenSet() const { return m_expiryHasBeenSet; }
59 template <typename ExpiryT = Aws::String>
60 void SetExpiry(ExpiryT&& value) {
61 m_expiryHasBeenSet = true;
62 m_expiry = std::forward<ExpiryT>(value);
63 }
64 template <typename ExpiryT = Aws::String>
66 SetExpiry(std::forward<ExpiryT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_connectionToken;
72
73 Aws::String m_expiry;
74 bool m_connectionTokenHasBeenSet = false;
75 bool m_expiryHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ConnectParticipant
80} // namespace Aws
AWS_CONNECTPARTICIPANT_API ConnectionCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTPARTICIPANT_API ConnectionCredentials(Aws::Utils::Json::JsonView jsonValue)
ConnectionCredentials & WithConnectionToken(ConnectionTokenT &&value)
ConnectionCredentials & WithExpiry(ExpiryT &&value)
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTPARTICIPANT_API ConnectionCredentials()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue