AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 ConnectParticipant
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CONNECTPARTICIPANT_API ConnectionCredentials() = default;
35 AWS_CONNECTPARTICIPANT_API ConnectionCredentials(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTPARTICIPANT_API ConnectionCredentials& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
45 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
46 template<typename ConnectionTokenT = Aws::String>
47 void SetConnectionToken(ConnectionTokenT&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::forward<ConnectionTokenT>(value); }
48 template<typename ConnectionTokenT = Aws::String>
49 ConnectionCredentials& WithConnectionToken(ConnectionTokenT&& value) { SetConnectionToken(std::forward<ConnectionTokenT>(value)); return *this;}
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) { m_expiryHasBeenSet = true; m_expiry = std::forward<ExpiryT>(value); }
61 template<typename ExpiryT = Aws::String>
62 ConnectionCredentials& WithExpiry(ExpiryT&& value) { SetExpiry(std::forward<ExpiryT>(value)); return *this;}
64 private:
65
66 Aws::String m_connectionToken;
67 bool m_connectionTokenHasBeenSet = false;
68
69 Aws::String m_expiry;
70 bool m_expiryHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace ConnectParticipant
75} // 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