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

Represents the input of a GetApplicationRevision * operation.

See Also:

AWS * API Reference

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

The name of the application that corresponds to the revision.

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

The name of the application that corresponds to the revision.

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

The name of the application that corresponds to the revision.

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

The name of the application that corresponds to the revision.

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

The name of the application that corresponds to the revision.

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

The name of the application that corresponds to the revision.

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

The name of the application that corresponds to the revision.

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

The name of the application that corresponds to the revision.

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

Information about the application revision to get, including type and * location.

*/ inline const RevisionLocation& GetRevision() const{ return m_revision; } /** *

Information about the application revision to get, including type and * location.

*/ inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; } /** *

Information about the application revision to get, including type and * location.

*/ inline void SetRevision(const RevisionLocation& value) { m_revisionHasBeenSet = true; m_revision = value; } /** *

Information about the application revision to get, including type and * location.

*/ inline void SetRevision(RevisionLocation&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); } /** *

Information about the application revision to get, including type and * location.

*/ inline GetApplicationRevisionRequest& WithRevision(const RevisionLocation& value) { SetRevision(value); return *this;} /** *

Information about the application revision to get, including type and * location.

*/ inline GetApplicationRevisionRequest& WithRevision(RevisionLocation&& value) { SetRevision(std::move(value)); return *this;} private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; RevisionLocation m_revision; bool m_revisionHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws