/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Request to create an ApiKey resource.See Also:
AWS
* API Reference
The name of the ApiKey.
*/ 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 CreateApiKeyRequest& WithName(const Aws::String& value) { SetName(value); return *this;} inline CreateApiKeyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} inline CreateApiKeyRequest& WithName(const char* value) { SetName(value); return *this;} ///@} ///@{ /** *The description of the ApiKey.
*/ 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 CreateApiKeyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} inline CreateApiKeyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} inline CreateApiKeyRequest& WithDescription(const char* value) { SetDescription(value); return *this;} ///@} ///@{ /** *Specifies whether the ApiKey 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 CreateApiKeyRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} ///@} ///@{ /** *Specifies whether (true) or not (false) the key
* identifier is distinct from the created API key value. This parameter is
* deprecated and should not be used.
Specifies a 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 CreateApiKeyRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;} inline CreateApiKeyRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;} inline CreateApiKeyRequest& WithValue(const char* value) { SetValue(value); return *this;} ///@} ///@{ /** *DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API * key.
*/ inline const Aws::VectorAn 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 CreateApiKeyRequest& WithCustomerId(const Aws::String& value) { SetCustomerId(value); return *this;} inline CreateApiKeyRequest& WithCustomerId(Aws::String&& value) { SetCustomerId(std::move(value)); return *this;} inline CreateApiKeyRequest& WithCustomerId(const char* value) { SetCustomerId(value); return *this;} ///@} ///@{ /** *The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The
* tag key can be up to 128 characters and must not start with aws:.
* The tag value can be up to 256 characters.