/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LocationService { namespace Model { class CreateKeyResult { public: AWS_LOCATIONSERVICE_API CreateKeyResult(); AWS_LOCATIONSERVICE_API CreateKeyResult(const Aws::AmazonWebServiceResult& result); AWS_LOCATIONSERVICE_API CreateKeyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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

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

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

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

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

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

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

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

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

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

The key value/string of an API key. This value is used when making API calls * to authorize the call. For example, see GetMapGlyphs.

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

The key value/string of an API key. This value is used when making API calls * to authorize the call. For example, see GetMapGlyphs.

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

The key value/string of an API key. This value is used when making API calls * to authorize the call. For example, see GetMapGlyphs.

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

The key value/string of an API key. This value is used when making API calls * to authorize the call. For example, see GetMapGlyphs.

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

The key value/string of an API key. This value is used when making API calls * to authorize the call. For example, see GetMapGlyphs.

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

The key value/string of an API key. This value is used when making API calls * to authorize the call. For example, see GetMapGlyphs.

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

The key value/string of an API key. This value is used when making API calls * to authorize the call. For example, see GetMapGlyphs.

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

The Amazon Resource Name (ARN) for the API key resource. Used when you need * to specify a resource across all Amazon Web Services.

  • Format * example: arn:aws:geo:region:account-id:key/ExampleKey

  • *
*/ inline const Aws::String& GetKeyArn() const{ return m_keyArn; } /** *

The Amazon Resource Name (ARN) for the API key resource. Used when you need * to specify a resource across all Amazon Web Services.

  • Format * example: arn:aws:geo:region:account-id:key/ExampleKey

  • *
*/ inline void SetKeyArn(const Aws::String& value) { m_keyArn = value; } /** *

The Amazon Resource Name (ARN) for the API key resource. Used when you need * to specify a resource across all Amazon Web Services.

  • Format * example: arn:aws:geo:region:account-id:key/ExampleKey

  • *
*/ inline void SetKeyArn(Aws::String&& value) { m_keyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the API key resource. Used when you need * to specify a resource across all Amazon Web Services.

  • Format * example: arn:aws:geo:region:account-id:key/ExampleKey

  • *
*/ inline void SetKeyArn(const char* value) { m_keyArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the API key resource. Used when you need * to specify a resource across all Amazon Web Services.

  • Format * example: arn:aws:geo:region:account-id:key/ExampleKey

  • *
*/ inline CreateKeyResult& WithKeyArn(const Aws::String& value) { SetKeyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the API key resource. Used when you need * to specify a resource across all Amazon Web Services.

  • Format * example: arn:aws:geo:region:account-id:key/ExampleKey

  • *
*/ inline CreateKeyResult& WithKeyArn(Aws::String&& value) { SetKeyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the API key resource. Used when you need * to specify a resource across all Amazon Web Services.

  • Format * example: arn:aws:geo:region:account-id:key/ExampleKey

  • *
*/ inline CreateKeyResult& WithKeyArn(const char* value) { SetKeyArn(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 void SetKeyName(const Aws::String& value) { m_keyName = value; } /** *

The name of the API key resource.

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

The name of the API key resource.

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

The name of the API key resource.

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

The name of the API key resource.

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

The name of the API key resource.

*/ inline CreateKeyResult& WithKeyName(const char* value) { SetKeyName(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_createTime; Aws::String m_key; Aws::String m_keyArn; Aws::String m_keyName; Aws::String m_requestId; }; } // namespace Model } // namespace LocationService } // namespace Aws