131 lines
4.6 KiB
C++
131 lines
4.6 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
|
|
#include <aws/codedeploy/CodeDeployRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/codedeploy/model/RevisionLocation.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace CodeDeploy
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents the input of a <code>GetApplicationRevision</code>
|
|
* operation.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/GetApplicationRevisionInput">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_CODEDEPLOY_API GetApplicationRevisionRequest : public CodeDeployRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the application that corresponds to the revision.</p>
|
|
*/
|
|
inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
|
|
|
|
/**
|
|
* <p>The name of the application that corresponds to the revision.</p>
|
|
*/
|
|
inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the application that corresponds to the revision.</p>
|
|
*/
|
|
inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
|
|
|
|
/**
|
|
* <p>The name of the application that corresponds to the revision.</p>
|
|
*/
|
|
inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the application that corresponds to the revision.</p>
|
|
*/
|
|
inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the application that corresponds to the revision.</p>
|
|
*/
|
|
inline GetApplicationRevisionRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the application that corresponds to the revision.</p>
|
|
*/
|
|
inline GetApplicationRevisionRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the application that corresponds to the revision.</p>
|
|
*/
|
|
inline GetApplicationRevisionRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Information about the application revision to get, including type and
|
|
* location.</p>
|
|
*/
|
|
inline const RevisionLocation& GetRevision() const{ return m_revision; }
|
|
|
|
/**
|
|
* <p>Information about the application revision to get, including type and
|
|
* location.</p>
|
|
*/
|
|
inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Information about the application revision to get, including type and
|
|
* location.</p>
|
|
*/
|
|
inline void SetRevision(const RevisionLocation& value) { m_revisionHasBeenSet = true; m_revision = value; }
|
|
|
|
/**
|
|
* <p>Information about the application revision to get, including type and
|
|
* location.</p>
|
|
*/
|
|
inline void SetRevision(RevisionLocation&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
|
|
|
|
/**
|
|
* <p>Information about the application revision to get, including type and
|
|
* location.</p>
|
|
*/
|
|
inline GetApplicationRevisionRequest& WithRevision(const RevisionLocation& value) { SetRevision(value); return *this;}
|
|
|
|
/**
|
|
* <p>Information about the application revision to get, including type and
|
|
* location.</p>
|
|
*/
|
|
inline GetApplicationRevisionRequest& WithRevision(RevisionLocation&& value) { SetRevision(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_applicationName;
|
|
bool m_applicationNameHasBeenSet;
|
|
|
|
RevisionLocation m_revision;
|
|
bool m_revisionHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CodeDeploy
|
|
} // namespace Aws
|