AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SecurityKey.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECT_API SecurityKey() = default;
36 AWS_CONNECT_API SecurityKey(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetAssociationId() const { return m_associationId; }
47 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
48 template<typename AssociationIdT = Aws::String>
49 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
50 template<typename AssociationIdT = Aws::String>
51 SecurityKey& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetKey() const { return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 template<typename KeyT = Aws::String>
61 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
62 template<typename KeyT = Aws::String>
63 SecurityKey& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
71 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
72 template<typename CreationTimeT = Aws::Utils::DateTime>
73 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
74 template<typename CreationTimeT = Aws::Utils::DateTime>
75 SecurityKey& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
77 private:
78
79 Aws::String m_associationId;
80 bool m_associationIdHasBeenSet = false;
81
82 Aws::String m_key;
83 bool m_keyHasBeenSet = false;
84
85 Aws::Utils::DateTime m_creationTime{};
86 bool m_creationTimeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Connect
91} // namespace Aws
AWS_CONNECT_API SecurityKey(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationTime() const
Definition SecurityKey.h:70
const Aws::String & GetKey() const
Definition SecurityKey.h:58
const Aws::String & GetAssociationId() const
Definition SecurityKey.h:46
AWS_CONNECT_API SecurityKey & operator=(Aws::Utils::Json::JsonView jsonValue)
SecurityKey & WithAssociationId(AssociationIdT &&value)
Definition SecurityKey.h:51
SecurityKey & WithCreationTime(CreationTimeT &&value)
Definition SecurityKey.h:75
void SetCreationTime(CreationTimeT &&value)
Definition SecurityKey.h:73
AWS_CONNECT_API SecurityKey()=default
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
SecurityKey & WithKey(KeyT &&value)
Definition SecurityKey.h:63
void SetAssociationId(AssociationIdT &&value)
Definition SecurityKey.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue