/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace ServerlessApplicationRepository { namespace Model { /** */ class CreateApplicationVersionRequest : public ServerlessApplicationRepositoryRequest { public: AWS_SERVERLESSAPPLICATIONREPOSITORY_API CreateApplicationVersionRequest(); // 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 "CreateApplicationVersion"; } AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the application.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The Amazon Resource Name (ARN) of the application.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the application.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The Amazon Resource Name (ARN) of the application.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The Amazon Resource Name (ARN) of the application.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The Amazon Resource Name (ARN) of the application.

*/ inline CreateApplicationVersionRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the application.

*/ inline CreateApplicationVersionRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the application.

*/ inline CreateApplicationVersionRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The semantic version of the new version.

*/ inline const Aws::String& GetSemanticVersion() const{ return m_semanticVersion; } /** *

The semantic version of the new version.

*/ inline bool SemanticVersionHasBeenSet() const { return m_semanticVersionHasBeenSet; } /** *

The semantic version of the new version.

*/ inline void SetSemanticVersion(const Aws::String& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = value; } /** *

The semantic version of the new version.

*/ inline void SetSemanticVersion(Aws::String&& value) { m_semanticVersionHasBeenSet = true; m_semanticVersion = std::move(value); } /** *

The semantic version of the new version.

*/ inline void SetSemanticVersion(const char* value) { m_semanticVersionHasBeenSet = true; m_semanticVersion.assign(value); } /** *

The semantic version of the new version.

*/ inline CreateApplicationVersionRequest& WithSemanticVersion(const Aws::String& value) { SetSemanticVersion(value); return *this;} /** *

The semantic version of the new version.

*/ inline CreateApplicationVersionRequest& WithSemanticVersion(Aws::String&& value) { SetSemanticVersion(std::move(value)); return *this;} /** *

The semantic version of the new version.

*/ inline CreateApplicationVersionRequest& WithSemanticVersion(const char* value) { SetSemanticVersion(value); return *this;} /** *

A link to the S3 object that contains the ZIP archive of the source code for * this version of your application.

Maximum size 50 MB

*/ inline const Aws::String& GetSourceCodeArchiveUrl() const{ return m_sourceCodeArchiveUrl; } /** *

A link to the S3 object that contains the ZIP archive of the source code for * this version of your application.

Maximum size 50 MB

*/ inline bool SourceCodeArchiveUrlHasBeenSet() const { return m_sourceCodeArchiveUrlHasBeenSet; } /** *

A link to the S3 object that contains the ZIP archive of the source code for * this version of your application.

Maximum size 50 MB

*/ inline void SetSourceCodeArchiveUrl(const Aws::String& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = value; } /** *

A link to the S3 object that contains the ZIP archive of the source code for * this version of your application.

Maximum size 50 MB

*/ inline void SetSourceCodeArchiveUrl(Aws::String&& value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl = std::move(value); } /** *

A link to the S3 object that contains the ZIP archive of the source code for * this version of your application.

Maximum size 50 MB

*/ inline void SetSourceCodeArchiveUrl(const char* value) { m_sourceCodeArchiveUrlHasBeenSet = true; m_sourceCodeArchiveUrl.assign(value); } /** *

A link to the S3 object that contains the ZIP archive of the source code for * this version of your application.

Maximum size 50 MB

*/ inline CreateApplicationVersionRequest& WithSourceCodeArchiveUrl(const Aws::String& value) { SetSourceCodeArchiveUrl(value); return *this;} /** *

A link to the S3 object that contains the ZIP archive of the source code for * this version of your application.

Maximum size 50 MB

*/ inline CreateApplicationVersionRequest& WithSourceCodeArchiveUrl(Aws::String&& value) { SetSourceCodeArchiveUrl(std::move(value)); return *this;} /** *

A link to the S3 object that contains the ZIP archive of the source code for * this version of your application.

Maximum size 50 MB

*/ inline CreateApplicationVersionRequest& WithSourceCodeArchiveUrl(const char* value) { SetSourceCodeArchiveUrl(value); return *this;} /** *

A link to a public repository for the source code of your application, for * example the URL of a specific GitHub commit.

*/ inline const Aws::String& GetSourceCodeUrl() const{ return m_sourceCodeUrl; } /** *

A link to a public repository for the source code of your application, for * example the URL of a specific GitHub commit.

*/ inline bool SourceCodeUrlHasBeenSet() const { return m_sourceCodeUrlHasBeenSet; } /** *

A link to a public repository for the source code of your application, for * example the URL of a specific GitHub commit.

*/ inline void SetSourceCodeUrl(const Aws::String& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = value; } /** *

A link to a public repository for the source code of your application, for * example the URL of a specific GitHub commit.

*/ inline void SetSourceCodeUrl(Aws::String&& value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl = std::move(value); } /** *

A link to a public repository for the source code of your application, for * example the URL of a specific GitHub commit.

*/ inline void SetSourceCodeUrl(const char* value) { m_sourceCodeUrlHasBeenSet = true; m_sourceCodeUrl.assign(value); } /** *

A link to a public repository for the source code of your application, for * example the URL of a specific GitHub commit.

*/ inline CreateApplicationVersionRequest& WithSourceCodeUrl(const Aws::String& value) { SetSourceCodeUrl(value); return *this;} /** *

A link to a public repository for the source code of your application, for * example the URL of a specific GitHub commit.

*/ inline CreateApplicationVersionRequest& WithSourceCodeUrl(Aws::String&& value) { SetSourceCodeUrl(std::move(value)); return *this;} /** *

A link to a public repository for the source code of your application, for * example the URL of a specific GitHub commit.

*/ inline CreateApplicationVersionRequest& WithSourceCodeUrl(const char* value) { SetSourceCodeUrl(value); return *this;} /** *

The raw packaged AWS SAM template of your application.

*/ inline const Aws::String& GetTemplateBody() const{ return m_templateBody; } /** *

The raw packaged AWS SAM template of your application.

*/ inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; } /** *

The raw packaged AWS SAM template of your application.

*/ inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; } /** *

The raw packaged AWS SAM template of your application.

*/ inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); } /** *

The raw packaged AWS SAM template of your application.

*/ inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); } /** *

The raw packaged AWS SAM template of your application.

*/ inline CreateApplicationVersionRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;} /** *

The raw packaged AWS SAM template of your application.

*/ inline CreateApplicationVersionRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;} /** *

The raw packaged AWS SAM template of your application.

*/ inline CreateApplicationVersionRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;} /** *

A link to the packaged AWS SAM template of your application.

*/ inline const Aws::String& GetTemplateUrl() const{ return m_templateUrl; } /** *

A link to the packaged AWS SAM template of your application.

*/ inline bool TemplateUrlHasBeenSet() const { return m_templateUrlHasBeenSet; } /** *

A link to the packaged AWS SAM template of your application.

*/ inline void SetTemplateUrl(const Aws::String& value) { m_templateUrlHasBeenSet = true; m_templateUrl = value; } /** *

A link to the packaged AWS SAM template of your application.

*/ inline void SetTemplateUrl(Aws::String&& value) { m_templateUrlHasBeenSet = true; m_templateUrl = std::move(value); } /** *

A link to the packaged AWS SAM template of your application.

*/ inline void SetTemplateUrl(const char* value) { m_templateUrlHasBeenSet = true; m_templateUrl.assign(value); } /** *

A link to the packaged AWS SAM template of your application.

*/ inline CreateApplicationVersionRequest& WithTemplateUrl(const Aws::String& value) { SetTemplateUrl(value); return *this;} /** *

A link to the packaged AWS SAM template of your application.

*/ inline CreateApplicationVersionRequest& WithTemplateUrl(Aws::String&& value) { SetTemplateUrl(std::move(value)); return *this;} /** *

A link to the packaged AWS SAM template of your application.

*/ inline CreateApplicationVersionRequest& WithTemplateUrl(const char* value) { SetTemplateUrl(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_semanticVersion; bool m_semanticVersionHasBeenSet = false; Aws::String m_sourceCodeArchiveUrl; bool m_sourceCodeArchiveUrlHasBeenSet = false; Aws::String m_sourceCodeUrl; bool m_sourceCodeUrlHasBeenSet = false; Aws::String m_templateBody; bool m_templateBodyHasBeenSet = false; Aws::String m_templateUrl; bool m_templateUrlHasBeenSet = false; }; } // namespace Model } // namespace ServerlessApplicationRepository } // namespace Aws