/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A resource that can be distributed to callers for executing Method resources
* that require an API key. API keys can be mapped to any Stage on any RestApi,
* which indicates that the callers with the API key can make requests to that
* stage.See Also:
AWS
* API Reference
The identifier of the API Key.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The identifier of the API Key.
*/ inline void SetId(const Aws::String& value) { m_id = value; } /** *The identifier of the API Key.
*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *The identifier of the API Key.
*/ inline void SetId(const char* value) { m_id.assign(value); } /** *The identifier of the API Key.
*/ inline GetApiKeyResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The identifier of the API Key.
*/ inline GetApiKeyResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The identifier of the API Key.
*/ inline GetApiKeyResult& WithId(const char* value) { SetId(value); return *this;} /** *The value of the API Key.
*/ inline const Aws::String& GetValue() const{ return m_value; } /** *The value of the API Key.
*/ inline void SetValue(const Aws::String& value) { m_value = value; } /** *The value of the API Key.
*/ inline void SetValue(Aws::String&& value) { m_value = std::move(value); } /** *The value of the API Key.
*/ inline void SetValue(const char* value) { m_value.assign(value); } /** *The value of the API Key.
*/ inline GetApiKeyResult& WithValue(const Aws::String& value) { SetValue(value); return *this;} /** *The value of the API Key.
*/ inline GetApiKeyResult& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} /** *The value of the API Key.
*/ inline GetApiKeyResult& WithValue(const char* value) { SetValue(value); return *this;} /** *The name of the API Key.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the API Key.
*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *The name of the API Key.
*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *The name of the API Key.
*/ inline void SetName(const char* value) { m_name.assign(value); } /** *The name of the API Key.
*/ inline GetApiKeyResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the API Key.
*/ inline GetApiKeyResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the API Key.
*/ inline GetApiKeyResult& WithName(const char* value) { SetName(value); return *this;} /** *An AWS Marketplace customer identifier , when integrating with the AWS SaaS * Marketplace.
*/ inline const Aws::String& GetCustomerId() const{ return m_customerId; } /** *An AWS Marketplace customer identifier , when integrating with the AWS SaaS * Marketplace.
*/ inline void SetCustomerId(const Aws::String& value) { m_customerId = value; } /** *An AWS Marketplace customer identifier , when integrating with the AWS SaaS * Marketplace.
*/ inline void SetCustomerId(Aws::String&& value) { m_customerId = std::move(value); } /** *An AWS Marketplace customer identifier , when integrating with the AWS SaaS * Marketplace.
*/ inline void SetCustomerId(const char* value) { m_customerId.assign(value); } /** *An AWS Marketplace customer identifier , when integrating with the AWS SaaS * Marketplace.
*/ inline GetApiKeyResult& WithCustomerId(const Aws::String& value) { SetCustomerId(value); return *this;} /** *An AWS Marketplace customer identifier , when integrating with the AWS SaaS * Marketplace.
*/ inline GetApiKeyResult& WithCustomerId(Aws::String&& value) { SetCustomerId(std::move(value)); return *this;} /** *An AWS Marketplace customer identifier , when integrating with the AWS SaaS * Marketplace.
*/ inline GetApiKeyResult& WithCustomerId(const char* value) { SetCustomerId(value); return *this;} /** *The description of the API Key.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the API Key.
*/ inline void SetDescription(const Aws::String& value) { m_description = value; } /** *The description of the API Key.
*/ inline void SetDescription(Aws::String&& value) { m_description = std::move(value); } /** *The description of the API Key.
*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *The description of the API Key.
*/ inline GetApiKeyResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the API Key.
*/ inline GetApiKeyResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the API Key.
*/ inline GetApiKeyResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *Specifies whether the API Key can be used by callers.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Specifies whether the API Key can be used by callers.
*/ inline void SetEnabled(bool value) { m_enabled = value; } /** *Specifies whether the API Key can be used by callers.
*/ inline GetApiKeyResult& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The timestamp when the API Key was created.
*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *The timestamp when the API Key was created.
*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; } /** *The timestamp when the API Key was created.
*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); } /** *The timestamp when the API Key was created.
*/ inline GetApiKeyResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *The timestamp when the API Key was created.
*/ inline GetApiKeyResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *The timestamp when the API Key was last updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; } /** *The timestamp when the API Key was last updated.
*/ inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDate = value; } /** *The timestamp when the API Key was last updated.
*/ inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDate = std::move(value); } /** *The timestamp when the API Key was last updated.
*/ inline GetApiKeyResult& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;} /** *The timestamp when the API Key was last updated.
*/ inline GetApiKeyResult& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;} /** *A list of Stage resources that are associated with the ApiKey resource.
*/ inline const Aws::VectorA list of Stage resources that are associated with the ApiKey resource.
*/ inline void SetStageKeys(const Aws::VectorA list of Stage resources that are associated with the ApiKey resource.
*/ inline void SetStageKeys(Aws::VectorA list of Stage resources that are associated with the ApiKey resource.
*/ inline GetApiKeyResult& WithStageKeys(const Aws::VectorA list of Stage resources that are associated with the ApiKey resource.
*/ inline GetApiKeyResult& WithStageKeys(Aws::VectorA list of Stage resources that are associated with the ApiKey resource.
*/ inline GetApiKeyResult& AddStageKeys(const Aws::String& value) { m_stageKeys.push_back(value); return *this; } /** *A list of Stage resources that are associated with the ApiKey resource.
*/ inline GetApiKeyResult& AddStageKeys(Aws::String&& value) { m_stageKeys.push_back(std::move(value)); return *this; } /** *A list of Stage resources that are associated with the ApiKey resource.
*/ inline GetApiKeyResult& AddStageKeys(const char* value) { m_stageKeys.push_back(value); return *this; } /** *The collection of tags. Each tag element is associated with a given * resource.
*/ inline const Aws::MapThe collection of tags. Each tag element is associated with a given * resource.
*/ inline void SetTags(const Aws::MapThe collection of tags. Each tag element is associated with a given * resource.
*/ inline void SetTags(Aws::MapThe collection of tags. Each tag element is associated with a given * resource.
*/ inline GetApiKeyResult& WithTags(const Aws::MapThe collection of tags. Each tag element is associated with a given * resource.
*/ inline GetApiKeyResult& WithTags(Aws::MapThe collection of tags. Each tag element is associated with a given * resource.
*/ inline GetApiKeyResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *The collection of tags. Each tag element is associated with a given * resource.
*/ inline GetApiKeyResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *The collection of tags. Each tag element is associated with a given * resource.
*/ inline GetApiKeyResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *The collection of tags. Each tag element is associated with a given * resource.
*/ inline GetApiKeyResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The collection of tags. Each tag element is associated with a given * resource.
*/ inline GetApiKeyResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *The collection of tags. Each tag element is associated with a given * resource.
*/ inline GetApiKeyResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *The collection of tags. Each tag element is associated with a given * resource.
*/ inline GetApiKeyResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, 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 GetApiKeyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetApiKeyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetApiKeyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_id; Aws::String m_value; Aws::String m_name; Aws::String m_customerId; Aws::String m_description; bool m_enabled; Aws::Utils::DateTime m_createdDate; Aws::Utils::DateTime m_lastUpdatedDate; Aws::Vector