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

Represents the input of a BatchGetApplicationRevisions * operation.

See Also:

AWS * API Reference

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

The name of an AWS CodeDeploy application about which to get revision * information.

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

The name of an AWS CodeDeploy application about which to get revision * information.

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

The name of an AWS CodeDeploy application about which to get revision * information.

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

The name of an AWS CodeDeploy application about which to get revision * information.

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

The name of an AWS CodeDeploy application about which to get revision * information.

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

The name of an AWS CodeDeploy application about which to get revision * information.

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

The name of an AWS CodeDeploy application about which to get revision * information.

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

The name of an AWS CodeDeploy application about which to get revision * information.

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

An array of RevisionLocation objects that specify information to * get about the application revisions, including type and location. The maximum * number of RevisionLocation objects you can specify is 25.

*/ inline const Aws::Vector& GetRevisions() const{ return m_revisions; } /** *

An array of RevisionLocation objects that specify information to * get about the application revisions, including type and location. The maximum * number of RevisionLocation objects you can specify is 25.

*/ inline bool RevisionsHasBeenSet() const { return m_revisionsHasBeenSet; } /** *

An array of RevisionLocation objects that specify information to * get about the application revisions, including type and location. The maximum * number of RevisionLocation objects you can specify is 25.

*/ inline void SetRevisions(const Aws::Vector& value) { m_revisionsHasBeenSet = true; m_revisions = value; } /** *

An array of RevisionLocation objects that specify information to * get about the application revisions, including type and location. The maximum * number of RevisionLocation objects you can specify is 25.

*/ inline void SetRevisions(Aws::Vector&& value) { m_revisionsHasBeenSet = true; m_revisions = std::move(value); } /** *

An array of RevisionLocation objects that specify information to * get about the application revisions, including type and location. The maximum * number of RevisionLocation objects you can specify is 25.

*/ inline BatchGetApplicationRevisionsRequest& WithRevisions(const Aws::Vector& value) { SetRevisions(value); return *this;} /** *

An array of RevisionLocation objects that specify information to * get about the application revisions, including type and location. The maximum * number of RevisionLocation objects you can specify is 25.

*/ inline BatchGetApplicationRevisionsRequest& WithRevisions(Aws::Vector&& value) { SetRevisions(std::move(value)); return *this;} /** *

An array of RevisionLocation objects that specify information to * get about the application revisions, including type and location. The maximum * number of RevisionLocation objects you can specify is 25.

*/ inline BatchGetApplicationRevisionsRequest& AddRevisions(const RevisionLocation& value) { m_revisionsHasBeenSet = true; m_revisions.push_back(value); return *this; } /** *

An array of RevisionLocation objects that specify information to * get about the application revisions, including type and location. The maximum * number of RevisionLocation objects you can specify is 25.

*/ inline BatchGetApplicationRevisionsRequest& AddRevisions(RevisionLocation&& value) { m_revisionsHasBeenSet = true; m_revisions.push_back(std::move(value)); return *this; } private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet; Aws::Vector m_revisions; bool m_revisionsHasBeenSet; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws