text: ﻿/*
  * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
  
  #pragma once
  #include <aws/apigateway/APIGateway_EXPORTS.h>
  #include <aws/apigateway/APIGatewayRequest.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/apigateway/model/CacheClusterSize.h>
  #include <aws/core/utils/memory/stl/AWSMap.h>
  #include <aws/apigateway/model/DeploymentCanarySettings.h>
  #include <utility>
  
  namespace Aws
  {
  namespace APIGateway
  {
  namespace Model
  {
  
    /**
     * <p>Requests API Gateway to create a <a>Deployment</a> resource.</p><p><h3>See
     * Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/CreateDeploymentRequest">AWS
     * API Reference</a></p>
     */
    class AWS_APIGATEWAY_API CreateDeploymentRequest : public APIGatewayRequest
    {
    public:
      CreateDeploymentRequest();
      
      // Service request name is the Operation name which will send this request out,
      // each operation should has unique request name, so that we can get operation's name from this request.
      // Note: this is not true for response, multiple operations may have the same response name,
      // so we can not get operation's name from response.
      inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
  
      Aws::String SerializePayload() const override;
  
  
      /**
       * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
  
      /**
       * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
  
      /**
       * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
  
      /**
       * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
  
      /**
       * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
  
      /**
       * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline CreateDeploymentRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
  
      /**
       * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline CreateDeploymentRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
  
      /**
       * <p>[Required] The string identifier of the associated <a>RestApi</a>.</p>
       */
      inline CreateDeploymentRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
  
  
      /**
       * <p>The name of the <a>Stage</a> resource for the <a>Deployment</a> resource to
       * create.</p>
       */
      inline const Aws::String& GetStageName() const{ return m_stageName; }
  
      /**
       * <p>The name of the <a>Stage</a> resource for the <a>Deployment</a> resource to
       * create.</p>
       */
      inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
  
      /**
       * <p>The name of the <a>Stage</a> resource for the <a>Deployment</a> resource to
       * create.</p>
       */
      inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
  
      /**
       * <p>The name of the <a>Stage</a> resource for the <a>Deployment</a> resource to
       * create.</p>
       */
      inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); }
  
      /**
       * <p>The name of the <a>Stage</a> resource for the <a>Deployment</a> resource to
       * create.</p>
       */
      inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
  
      /**
       * <p>The name of the <a>Stage</a> resource for the <a>Deployment</a> resource to
       * create.</p>
       */
      inline CreateDeploymentRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
  
      /**
       * <p>The name of the <a>Stage</a> resource for the <a>Deployment</a> resource to
       * create.</p>
       */
      inline CreateDeploymentRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;}
  
      /**
       * <p>The name of the <a>Stage</a> resource for the <a>Deployment</a> resource to
       * create.</p>
       */
      inline CreateDeploymentRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
  
  
      /**
       * <p>The description of the <a>Stage</a> resource for the <a>Deployment</a>
       * resource to create.</p>
       */
      inline const Aws::String& GetStageDescription() const{ return m_stageDescription; }
  
      /**
       * <p>The description of the <a>Stage</a> resource for the <a>Deployment</a>
       * resource to create.</p>
       */
      inline bool StageDescriptionHasBeenSet() const { return m_stageDescriptionHasBeenSet; }
  
      /**
       * <p>The description of the <a>Stage</a> resource for the <a>Deployment</a>
       * resource to create.</p>
       */
      inline void SetStageDescription(const Aws::String& value) { m_stageDescriptionHasBeenSet = true; m_stageDescription = value; }
  
      /**
       * <p>The description of the <a>Stage</a> resource for the <a>Deployment</a>
       * resource to create.</p>
       */
      inline void SetStageDescription(Aws::String&& value) { m_stageDescriptionHasBeenSet = true; m_stageDescription = std::move(value); }
  
      /**
       * <p>The description of the <a>Stage</a> resource for the <a>Deployment</a>
       * resource to create.</p>
       */
      inline void SetStageDescription(const char* value) { m_stageDescriptionHasBeenSet = true; m_stageDescription.assign(value); }
  
      /**
       * <p>The description of the <a>Stage</a> resource for the <a>Deployment</a>
       * resource to create.</p>
       */
      inline CreateDeploymentRequest& WithStageDescription(const Aws::String& value) { SetStageDescription(value); return *this;}
  
      /**
       * <p>The description of the <a>Stage</a> resource for the <a>Deployment</a>
       * resource to create.</p>
       */
      inline CreateDeploymentRequest& WithStageDescription(Aws::String&& value) { SetStageDescription(std::move(value)); return *this;}
  
      /**
       * <p>The description of the <a>Stage</a> resource for the <a>Deployment</a>
       * resource to create.</p>
       */
      inline CreateDeploymentRequest& WithStageDescription(const char* value) { SetStageDescription(value); return *this;}
  
  
      /**
       * <p>The description for the <a>Deployment</a> resource to create.</p>
       */
      inline const Aws::String& GetDescription() const{ return m_description; }
  
      /**
       * <p>The description for the <a>Deployment</a> resource to create.</p>
       */
      inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
  
      /**
       * <p>The description for the <a>Deployment</a> resource to create.</p>
       */
      inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
  
      /**
       * <p>The description for the <a>Deployment</a> resource to create.</p>
       */
      inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
  
      /**
       * <p>The description for the <a>Deployment</a> resource to create.</p>
       */
      inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
  
      /**
       * <p>The description for the <a>Deployment</a> resource to create.</p>
       */
      inline CreateDeploymentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
  
      /**
       * <p>The description for the <a>Deployment</a> resource to create.</p>
       */
      inline CreateDeploymentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
  
      /**
       * <p>The description for the <a>Deployment</a> resource to create.</p>
       */
      inline CreateDeploymentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
  
  
      /**
       * <p>Enables a cache cluster for the <a>Stage</a> resource specified in the
       * input.</p>
       */
      inline bool GetCacheClusterEnabled() const{ return m_cacheClusterEnabled; }
  
      /**
       * <p>Enables a cache cluster for the <a>Stage</a> resource specified in the
       * input.</p>
       */
      inline bool CacheClusterEnabledHasBeenSet() const { return m_cacheClusterEnabledHasBeenSet; }
  
      /**
       * <p>Enables a cache cluster for the <a>Stage</a> resource specified in the
       * input.</p>
       */
      inline void SetCacheClusterEnabled(bool value) { m_cacheClusterEnabledHasBeenSet = true; m_cacheClusterEnabled = value; }
  
      /**
       * <p>Enables a cache cluster for the <a>Stage</a> resource specified in the
       * input.</p>
       */
      inline CreateDeploymentRequest& WithCacheClusterEnabled(bool value) { SetCacheClusterEnabled(value); return *this;}
  
  
      /**
       * <p>Specifies the cache cluster size for the <a>Stage</a> resource specified in
       * the input, if a cache cluster is enabled.</p>
       */
      inline const CacheClusterSize& GetCacheClusterSize() const{ return m_cacheClusterSize; }
  
      /**
       * <p>Specifies the cache cluster size for the <a>Stage</a> resource specified in
       * the input, if a cache cluster is enabled.</p>
       */
      inline bool CacheClusterSizeHasBeenSet() const { return m_cacheClusterSizeHasBeenSet; }
  
      /**
       * <p>Specifies the cache cluster size for the <a>Stage</a> resource specified in
       * the input, if a cache cluster is enabled.</p>
       */
      inline void SetCacheClusterSize(const CacheClusterSize& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = value; }
  
      /**
       * <p>Specifies the cache cluster size for the <a>Stage</a> resource specified in
       * the input, if a cache cluster is enabled.</p>
       */
      inline void SetCacheClusterSize(CacheClusterSize&& value) { m_cacheClusterSizeHasBeenSet = true; m_cacheClusterSize = std::move(value); }
  
      /**
       * <p>Specifies the cache cluster size for the <a>Stage</a> resource specified in
       * the input, if a cache cluster is enabled.</p>
       */
      inline CreateDeploymentRequest& WithCacheClusterSize(const CacheClusterSize& value) { SetCacheClusterSize(value); return *this;}
  
      /**
       * <p>Specifies the cache cluster size for the <a>Stage</a> resource specified in
       * the input, if a cache cluster is enabled.</p>
       */
      inline CreateDeploymentRequest& WithCacheClusterSize(CacheClusterSize&& value) { SetCacheClusterSize(std::move(value)); return *this;}
  
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const{ return m_variables; }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline void SetVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_variablesHasBeenSet = true; m_variables = value; }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline void SetVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline CreateDeploymentRequest& WithVariables(const Aws::Map<Aws::String, Aws::String>& value) { SetVariables(value); return *this;}
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline CreateDeploymentRequest& WithVariables(Aws::Map<Aws::String, Aws::String>&& value) { SetVariables(std::move(value)); return *this;}
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline CreateDeploymentRequest& AddVariables(const Aws::String& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline CreateDeploymentRequest& AddVariables(Aws::String&& key, const Aws::String& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline CreateDeploymentRequest& AddVariables(const Aws::String& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline CreateDeploymentRequest& AddVariables(Aws::String&& key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), std::move(value)); return *this; }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline CreateDeploymentRequest& AddVariables(const char* key, Aws::String&& value) { m_variablesHasBeenSet = true; m_variables.emplace(key, std::move(value)); return *this; }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline CreateDeploymentRequest& AddVariables(Aws::String&& key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(std::move(key), value); return *this; }
  
      /**
       * <p>A map that defines the stage variables for the <a>Stage</a> resource that is
       * associated with the new deployment. Variable names can have alphanumeric and
       * underscore characters, and the values must match
       * <code>[A-Za-z0-9-._~:/?#&amp;=,]+</code>.</p>
       */
      inline CreateDeploymentRequest& AddVariables(const char* key, const char* value) { m_variablesHasBeenSet = true; m_variables.emplace(key, value); return *this; }
  
  
      /**
       * <p>The input configuration for the canary deployment when the deployment is a
       * canary release deployment. </p>
       */
      inline const DeploymentCanarySettings& GetCanarySettings() const{ return m_canarySettings; }
  
      /**
       * <p>The input configuration for the canary deployment when the deployment is a
       * canary release deployment. </p>
       */
      inline bool CanarySettingsHasBeenSet() const { return m_canarySettingsHasBeenSet; }
  
      /**
       * <p>The input configuration for the canary deployment when the deployment is a
       * canary release deployment. </p>
       */
      inline void SetCanarySettings(const DeploymentCanarySettings& value) { m_canarySettingsHasBeenSet = true; m_canarySettings = value; }
  
      /**
       * <p>The input configuration for the canary deployment when the deployment is a
       * canary release deployment. </p>
       */
      inline void SetCanarySettings(DeploymentCanarySettings&& value) { m_canarySettingsHasBeenSet = true; m_canarySettings = std::move(value); }
  
      /**
       * <p>The input configuration for the canary deployment when the deployment is a
       * canary release deployment. </p>
       */
      inline CreateDeploymentRequest& WithCanarySettings(const DeploymentCanarySettings& value) { SetCanarySettings(value); return *this;}
  
      /**
       * <p>The input configuration for the canary deployment when the deployment is a
       * canary release deployment. </p>
       */
      inline CreateDeploymentRequest& WithCanarySettings(DeploymentCanarySettings&& value) { SetCanarySettings(std::move(value)); return *this;}
  
  
      /**
       * <p>Specifies whether active tracing with X-ray is enabled for the
       * <a>Stage</a>.</p>
       */
      inline bool GetTracingEnabled() const{ return m_tracingEnabled; }
  
      /**
       * <p>Specifies whether active tracing with X-ray is enabled for the
       * <a>Stage</a>.</p>
       */
      inline bool TracingEnabledHasBeenSet() const { return m_tracingEnabledHasBeenSet; }
  
      /**
       * <p>Specifies whether active tracing with X-ray is enabled for the
       * <a>Stage</a>.</p>
       */
      inline void SetTracingEnabled(bool value) { m_tracingEnabledHasBeenSet = true; m_tracingEnabled = value; }
  
      /**
       * <p>Specifies whether active tracing with X-ray is enabled for the
       * <a>Stage</a>.</p>
       */
      inline CreateDeploymentRequest& WithTracingEnabled(bool value) { SetTracingEnabled(value); return *this;}
  
    private:
  
      Aws::String m_restApiId;
      bool m_restApiIdHasBeenSet;
  
      Aws::String m_stageName;
      bool m_stageNameHasBeenSet;
  
      Aws::String m_stageDescription;
      bool m_stageDescriptionHasBeenSet;
  
      Aws::String m_description;
      bool m_descriptionHasBeenSet;
  
      bool m_cacheClusterEnabled;
      bool m_cacheClusterEnabledHasBeenSet;
  
      CacheClusterSize m_cacheClusterSize;
      bool m_cacheClusterSizeHasBeenSet;
  
      Aws::Map<Aws::String, Aws::String> m_variables;
      bool m_variablesHasBeenSet;
  
      DeploymentCanarySettings m_canarySettings;
      bool m_canarySettingsHasBeenSet;
  
      bool m_tracingEnabled;
      bool m_tracingEnabledHasBeenSet;
    };
  
  } // namespace Model
  } // namespace APIGateway
  } // namespace Aws
  