/**
* 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; } inline bool IdHasBeenSet() const { return m_idHasBeenSet; } inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } inline ApiKey& WithId(const Aws::String& value) { SetId(value); return *this;} inline ApiKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} inline ApiKey& WithId(const char* value) { SetId(value); return *this;} ///@} ///@{ /** *The value of the API Key.
*/ inline const Aws::String& GetValue() const{ return m_value; } inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; } inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); } inline ApiKey& WithValue(const Aws::String& value) { SetValue(value); return *this;} inline ApiKey& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} inline ApiKey& WithValue(const char* value) { SetValue(value); return *this;} ///@} ///@{ /** *The name of the API Key.
*/ inline const Aws::String& GetName() const{ return m_name; } inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } inline ApiKey& WithName(const Aws::String& value) { SetName(value); return *this;} inline ApiKey& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} inline ApiKey& WithName(const char* value) { SetName(value); return *this;} ///@} ///@{ /** *An Amazon Web Services Marketplace customer identifier, when integrating with * the Amazon Web Services SaaS Marketplace.
*/ inline const Aws::String& GetCustomerId() const{ return m_customerId; } inline bool CustomerIdHasBeenSet() const { return m_customerIdHasBeenSet; } inline void SetCustomerId(const Aws::String& value) { m_customerIdHasBeenSet = true; m_customerId = value; } inline void SetCustomerId(Aws::String&& value) { m_customerIdHasBeenSet = true; m_customerId = std::move(value); } inline void SetCustomerId(const char* value) { m_customerIdHasBeenSet = true; m_customerId.assign(value); } inline ApiKey& WithCustomerId(const Aws::String& value) { SetCustomerId(value); return *this;} inline ApiKey& WithCustomerId(Aws::String&& value) { SetCustomerId(std::move(value)); return *this;} inline ApiKey& WithCustomerId(const char* value) { SetCustomerId(value); return *this;} ///@} ///@{ /** *The description of the API Key.
*/ inline const Aws::String& GetDescription() const{ return m_description; } inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } inline ApiKey& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} inline ApiKey& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} inline ApiKey& 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; } inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } inline ApiKey& 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; } inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } inline ApiKey& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} inline ApiKey& 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; } inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; } inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; } inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); } inline ApiKey& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;} inline ApiKey& 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::VectorThe collection of tags. Each tag element is associated with a given * resource.
*/ inline const Aws::Map