/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Connect { namespace Model { /** *

Configuration information of the security key.

See Also:

AWS * API Reference

*/ class SecurityKey { public: AWS_CONNECT_API SecurityKey(); AWS_CONNECT_API SecurityKey(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API SecurityKey& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The existing association identifier that uniquely identifies the resource * type and storage config for the given instance ID.

*/ inline const Aws::String& GetAssociationId() const{ return m_associationId; } /** *

The existing association identifier that uniquely identifies the resource * type and storage config for the given instance ID.

*/ inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } /** *

The existing association identifier that uniquely identifies the resource * type and storage config for the given instance ID.

*/ inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } /** *

The existing association identifier that uniquely identifies the resource * type and storage config for the given instance ID.

*/ inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } /** *

The existing association identifier that uniquely identifies the resource * type and storage config for the given instance ID.

*/ inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } /** *

The existing association identifier that uniquely identifies the resource * type and storage config for the given instance ID.

*/ inline SecurityKey& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} /** *

The existing association identifier that uniquely identifies the resource * type and storage config for the given instance ID.

*/ inline SecurityKey& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} /** *

The existing association identifier that uniquely identifies the resource * type and storage config for the given instance ID.

*/ inline SecurityKey& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} /** *

The key of the security key.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The key of the security key.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The key of the security key.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The key of the security key.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The key of the security key.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The key of the security key.

*/ inline SecurityKey& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The key of the security key.

*/ inline SecurityKey& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The key of the security key.

*/ inline SecurityKey& WithKey(const char* value) { SetKey(value); return *this;} /** *

When the security key was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

When the security key was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

When the security key was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

When the security key was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

When the security key was created.

*/ inline SecurityKey& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

When the security key was created.

*/ inline SecurityKey& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} private: Aws::String m_associationId; bool m_associationIdHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws