AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConnectionToken(const Aws::String& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = value; }
47 inline void SetConnectionToken(Aws::String&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::move(value); }
48 inline void SetConnectionToken(const char* value) { m_connectionTokenHasBeenSet = true; m_connectionToken.assign(value); }
49 inline ConnectionCredentials& WithConnectionToken(const Aws::String& value) { SetConnectionToken(value); return *this;}
50 inline ConnectionCredentials& WithConnectionToken(Aws::String&& value) { SetConnectionToken(std::move(value)); return *this;}
51 inline ConnectionCredentials& WithConnectionToken(const char* value) { SetConnectionToken(value); return *this;}
53
55
59 inline const Aws::String& GetExpiry() const{ return m_expiry; }
60 inline bool ExpiryHasBeenSet() const { return m_expiryHasBeenSet; }
61 inline void SetExpiry(const Aws::String& value) { m_expiryHasBeenSet = true; m_expiry = value; }
62 inline void SetExpiry(Aws::String&& value) { m_expiryHasBeenSet = true; m_expiry = std::move(value); }
63 inline void SetExpiry(const char* value) { m_expiryHasBeenSet = true; m_expiry.assign(value); }
64 inline ConnectionCredentials& WithExpiry(const Aws::String& value) { SetExpiry(value); return *this;}
65 inline ConnectionCredentials& WithExpiry(Aws::String&& value) { SetExpiry(std::move(value)); return *this;}
66 inline ConnectionCredentials& WithExpiry(const char* value) { SetExpiry(value); return *this;}
68 private:
69
70 Aws::String m_connectionToken;
71 bool m_connectionTokenHasBeenSet = false;
72
73 Aws::String m_expiry;
74 bool m_expiryHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ConnectParticipant
79} // namespace Aws
ConnectionCredentials & WithConnectionToken(Aws::String &&value)
AWS_CONNECTPARTICIPANT_API ConnectionCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTPARTICIPANT_API ConnectionCredentials(Aws::Utils::Json::JsonView jsonValue)
ConnectionCredentials & WithConnectionToken(const Aws::String &value)
ConnectionCredentials & WithConnectionToken(const char *value)
ConnectionCredentials & WithExpiry(Aws::String &&value)
ConnectionCredentials & WithExpiry(const char *value)
AWS_CONNECTPARTICIPANT_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectionCredentials & WithExpiry(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue