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

An API key resource listed in your Amazon Web Services account.

See * Also:

AWS * API Reference

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

The timestamp of when the API key was created, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

The timestamp of when the API key was created, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

The timestamp of when the API key was created, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

The timestamp of when the API key was created, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

The timestamp of when the API key was created, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline ListKeysResponseEntry& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

The timestamp of when the API key was created, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline ListKeysResponseEntry& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} /** *

The optional description for the API key resource.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The optional description for the API key resource.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The optional description for the API key resource.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The optional description for the API key resource.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The optional description for the API key resource.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The optional description for the API key resource.

*/ inline ListKeysResponseEntry& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The optional description for the API key resource.

*/ inline ListKeysResponseEntry& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The optional description for the API key resource.

*/ inline ListKeysResponseEntry& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The timestamp for when the API key resource will expire, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline const Aws::Utils::DateTime& GetExpireTime() const{ return m_expireTime; } /** *

The timestamp for when the API key resource will expire, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline bool ExpireTimeHasBeenSet() const { return m_expireTimeHasBeenSet; } /** *

The timestamp for when the API key resource will expire, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline void SetExpireTime(const Aws::Utils::DateTime& value) { m_expireTimeHasBeenSet = true; m_expireTime = value; } /** *

The timestamp for when the API key resource will expire, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline void SetExpireTime(Aws::Utils::DateTime&& value) { m_expireTimeHasBeenSet = true; m_expireTime = std::move(value); } /** *

The timestamp for when the API key resource will expire, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline ListKeysResponseEntry& WithExpireTime(const Aws::Utils::DateTime& value) { SetExpireTime(value); return *this;} /** *

The timestamp for when the API key resource will expire, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline ListKeysResponseEntry& WithExpireTime(Aws::Utils::DateTime&& value) { SetExpireTime(std::move(value)); return *this;} /** *

The name of the API key resource.

*/ inline const Aws::String& GetKeyName() const{ return m_keyName; } /** *

The name of the API key resource.

*/ inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; } /** *

The name of the API key resource.

*/ inline void SetKeyName(const Aws::String& value) { m_keyNameHasBeenSet = true; m_keyName = value; } /** *

The name of the API key resource.

*/ inline void SetKeyName(Aws::String&& value) { m_keyNameHasBeenSet = true; m_keyName = std::move(value); } /** *

The name of the API key resource.

*/ inline void SetKeyName(const char* value) { m_keyNameHasBeenSet = true; m_keyName.assign(value); } /** *

The name of the API key resource.

*/ inline ListKeysResponseEntry& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *

The name of the API key resource.

*/ inline ListKeysResponseEntry& WithKeyName(Aws::String&& value) { SetKeyName(std::move(value)); return *this;} /** *

The name of the API key resource.

*/ inline ListKeysResponseEntry& WithKeyName(const char* value) { SetKeyName(value); return *this;} inline const ApiKeyRestrictions& GetRestrictions() const{ return m_restrictions; } inline bool RestrictionsHasBeenSet() const { return m_restrictionsHasBeenSet; } inline void SetRestrictions(const ApiKeyRestrictions& value) { m_restrictionsHasBeenSet = true; m_restrictions = value; } inline void SetRestrictions(ApiKeyRestrictions&& value) { m_restrictionsHasBeenSet = true; m_restrictions = std::move(value); } inline ListKeysResponseEntry& WithRestrictions(const ApiKeyRestrictions& value) { SetRestrictions(value); return *this;} inline ListKeysResponseEntry& WithRestrictions(ApiKeyRestrictions&& value) { SetRestrictions(std::move(value)); return *this;} /** *

The timestamp of when the API key was last updated, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; } /** *

The timestamp of when the API key was last updated, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; } /** *

The timestamp of when the API key was last updated, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; } /** *

The timestamp of when the API key was last updated, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); } /** *

The timestamp of when the API key was last updated, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline ListKeysResponseEntry& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;} /** *

The timestamp of when the API key was last updated, in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

*/ inline ListKeysResponseEntry& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;} private: Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_expireTime; bool m_expireTimeHasBeenSet = false; Aws::String m_keyName; bool m_keyNameHasBeenSet = false; ApiKeyRestrictions m_restrictions; bool m_restrictionsHasBeenSet = false; Aws::Utils::DateTime m_updateTime; bool m_updateTimeHasBeenSet = false; }; } // namespace Model } // namespace LocationService } // namespace Aws