/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace CodeDeploy { namespace Model { /** *

Represents the input of a CreateApplication * operation.

See Also:

AWS * API Reference

*/ class CreateApplicationRequest : public CodeDeployRequest { public: AWS_CODEDEPLOY_API CreateApplicationRequest(); // 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 "CreateApplication"; } AWS_CODEDEPLOY_API Aws::String SerializePayload() const override; AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the application. This name must be unique with the applicable IAM * or Amazon Web Services account.

*/ inline const Aws::String& GetApplicationName() const{ return m_applicationName; } /** *

The name of the application. This name must be unique with the applicable IAM * or Amazon Web Services account.

*/ inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } /** *

The name of the application. This name must be unique with the applicable IAM * or Amazon Web Services account.

*/ inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } /** *

The name of the application. This name must be unique with the applicable IAM * or Amazon Web Services account.

*/ inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } /** *

The name of the application. This name must be unique with the applicable IAM * or Amazon Web Services account.

*/ inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } /** *

The name of the application. This name must be unique with the applicable IAM * or Amazon Web Services account.

*/ inline CreateApplicationRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} /** *

The name of the application. This name must be unique with the applicable IAM * or Amazon Web Services account.

*/ inline CreateApplicationRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} /** *

The name of the application. This name must be unique with the applicable IAM * or Amazon Web Services account.

*/ inline CreateApplicationRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} /** *

The destination platform type for the deployment (Lambda, * Server, or ECS).

*/ inline const ComputePlatform& GetComputePlatform() const{ return m_computePlatform; } /** *

The destination platform type for the deployment (Lambda, * Server, or ECS).

*/ inline bool ComputePlatformHasBeenSet() const { return m_computePlatformHasBeenSet; } /** *

The destination platform type for the deployment (Lambda, * Server, or ECS).

*/ inline void SetComputePlatform(const ComputePlatform& value) { m_computePlatformHasBeenSet = true; m_computePlatform = value; } /** *

The destination platform type for the deployment (Lambda, * Server, or ECS).

*/ inline void SetComputePlatform(ComputePlatform&& value) { m_computePlatformHasBeenSet = true; m_computePlatform = std::move(value); } /** *

The destination platform type for the deployment (Lambda, * Server, or ECS).

*/ inline CreateApplicationRequest& WithComputePlatform(const ComputePlatform& value) { SetComputePlatform(value); return *this;} /** *

The destination platform type for the deployment (Lambda, * Server, or ECS).

*/ inline CreateApplicationRequest& WithComputePlatform(ComputePlatform&& value) { SetComputePlatform(std::move(value)); return *this;} /** *

The metadata that you apply to CodeDeploy applications to help you organize * and categorize them. Each tag consists of a key and an optional value, both of * which you define.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The metadata that you apply to CodeDeploy applications to help you organize * and categorize them. Each tag consists of a key and an optional value, both of * which you define.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The metadata that you apply to CodeDeploy applications to help you organize * and categorize them. Each tag consists of a key and an optional value, both of * which you define.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The metadata that you apply to CodeDeploy applications to help you organize * and categorize them. Each tag consists of a key and an optional value, both of * which you define.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The metadata that you apply to CodeDeploy applications to help you organize * and categorize them. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateApplicationRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The metadata that you apply to CodeDeploy applications to help you organize * and categorize them. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateApplicationRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The metadata that you apply to CodeDeploy applications to help you organize * and categorize them. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The metadata that you apply to CodeDeploy applications to help you organize * and categorize them. Each tag consists of a key and an optional value, both of * which you define.

*/ inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; ComputePlatform m_computePlatform; bool m_computePlatformHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws