/** * 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 UpdateKeyResult { public: AWS_LOCATIONSERVICE_API UpdateKeyResult(); AWS_LOCATIONSERVICE_API UpdateKeyResult(const Aws::AmazonWebServiceResult& result); AWS_LOCATIONSERVICE_API UpdateKeyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 UpdateKeyResult& 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 UpdateKeyResult& 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 UpdateKeyResult& 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 UpdateKeyResult& WithKeyName(const Aws::String& value) { SetKeyName(value); return *this;} /** *

The name of the API key resource.

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

The name of the API key resource.

*/ inline UpdateKeyResult& WithKeyName(const char* value) { SetKeyName(value); return *this;} /** *

The timestamp for when the API key resource 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 for when the API key resource was last updated in ISO 8601 * format: YYYY-MM-DDThh:mm:ss.sssZ.

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

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

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

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

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

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

*/ inline UpdateKeyResult& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(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 UpdateKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_keyArn; Aws::String m_keyName; Aws::Utils::DateTime m_updateTime; Aws::String m_requestId; }; } // namespace Model } // namespace LocationService } // namespace Aws