AWS SDK for C++  1.9.158
AWS SDK for C++
SecurityKey.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Connect
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
46 
51  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
52 
57  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
58 
63  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
64 
69  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
70 
75  inline SecurityKey& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
76 
81  inline SecurityKey& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
82 
87  inline SecurityKey& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
88 
89 
93  inline const Aws::String& GetKey() const{ return m_key; }
94 
98  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
99 
103  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
104 
108  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
109 
113  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
114 
118  inline SecurityKey& WithKey(const Aws::String& value) { SetKey(value); return *this;}
119 
123  inline SecurityKey& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
124 
128  inline SecurityKey& WithKey(const char* value) { SetKey(value); return *this;}
129 
130 
134  inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
135 
139  inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
140 
144  inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
145 
149  inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
150 
154  inline SecurityKey& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
155 
159  inline SecurityKey& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
160 
161  private:
162 
163  Aws::String m_associationId;
164  bool m_associationIdHasBeenSet;
165 
166  Aws::String m_key;
167  bool m_keyHasBeenSet;
168 
169  Aws::Utils::DateTime m_creationTime;
170  bool m_creationTimeHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace Connect
175 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Connect::Model::SecurityKey::WithCreationTime
SecurityKey & WithCreationTime(const Aws::Utils::DateTime &value)
Definition: SecurityKey.h:154
Aws::Connect::Model::SecurityKey::SetKey
void SetKey(Aws::String &&value)
Definition: SecurityKey.h:108
Aws::Connect::Model::SecurityKey::SetCreationTime
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition: SecurityKey.h:149
Aws::Connect::Model::SecurityKey::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: SecurityKey.h:98
DateTime.h
Aws::Connect::Model::SecurityKey::SecurityKey
SecurityKey(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::SecurityKey::SetAssociationId
void SetAssociationId(Aws::String &&value)
Definition: SecurityKey.h:63
Aws::Connect::Model::SecurityKey::SetCreationTime
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition: SecurityKey.h:144
Aws::Connect::Model::SecurityKey::WithKey
SecurityKey & WithKey(Aws::String &&value)
Definition: SecurityKey.h:123
Aws::Connect::Model::SecurityKey::WithAssociationId
SecurityKey & WithAssociationId(const Aws::String &value)
Definition: SecurityKey.h:75
Aws::Connect::Model::SecurityKey::SecurityKey
SecurityKey()
Aws::Connect::Model::SecurityKey::GetAssociationId
const Aws::String & GetAssociationId() const
Definition: SecurityKey.h:45
Aws::Connect::Model::SecurityKey::SetKey
void SetKey(const char *value)
Definition: SecurityKey.h:113
Aws::Connect::Model::SecurityKey
Definition: SecurityKey.h:33
Aws::Connect::Model::SecurityKey::SetKey
void SetKey(const Aws::String &value)
Definition: SecurityKey.h:103
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::SecurityKey::WithCreationTime
SecurityKey & WithCreationTime(Aws::Utils::DateTime &&value)
Definition: SecurityKey.h:159
Aws::Connect::Model::SecurityKey::CreationTimeHasBeenSet
bool CreationTimeHasBeenSet() const
Definition: SecurityKey.h:139
Aws::Connect::Model::SecurityKey::operator=
SecurityKey & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::SecurityKey::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::SecurityKey::AssociationIdHasBeenSet
bool AssociationIdHasBeenSet() const
Definition: SecurityKey.h:51
Aws::Connect::Model::SecurityKey::WithKey
SecurityKey & WithKey(const Aws::String &value)
Definition: SecurityKey.h:118
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::SecurityKey::SetAssociationId
void SetAssociationId(const char *value)
Definition: SecurityKey.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::SecurityKey::GetKey
const Aws::String & GetKey() const
Definition: SecurityKey.h:93
Aws::Connect::Model::SecurityKey::WithAssociationId
SecurityKey & WithAssociationId(const char *value)
Definition: SecurityKey.h:87
Aws::Connect::Model::SecurityKey::WithAssociationId
SecurityKey & WithAssociationId(Aws::String &&value)
Definition: SecurityKey.h:81
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::SecurityKey::GetCreationTime
const Aws::Utils::DateTime & GetCreationTime() const
Definition: SecurityKey.h:134
Connect_EXPORTS.h
Aws::Connect::Model::SecurityKey::SetAssociationId
void SetAssociationId(const Aws::String &value)
Definition: SecurityKey.h:57
Aws::Connect::Model::SecurityKey::WithKey
SecurityKey & WithKey(const char *value)
Definition: SecurityKey.h:128