/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeDeploy { namespace Model { /** *

Represents the output of a BatchGetApplicationRevisions * operation.

See Also:

AWS * API Reference

*/ class BatchGetApplicationRevisionsResult { public: AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult(); AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult(const Aws::AmazonWebServiceResult& result); AWS_CODEDEPLOY_API BatchGetApplicationRevisionsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the application that corresponds to the revisions.

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

The name of the application that corresponds to the revisions.

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

The name of the application that corresponds to the revisions.

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

The name of the application that corresponds to the revisions.

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

The name of the application that corresponds to the revisions.

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

The name of the application that corresponds to the revisions.

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

The name of the application that corresponds to the revisions.

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

Information about errors that might have occurred during the API call.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

Information about errors that might have occurred during the API call.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessage = value; } /** *

Information about errors that might have occurred during the API call.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessage = std::move(value); } /** *

Information about errors that might have occurred during the API call.

*/ inline void SetErrorMessage(const char* value) { m_errorMessage.assign(value); } /** *

Information about errors that might have occurred during the API call.

*/ inline BatchGetApplicationRevisionsResult& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

Information about errors that might have occurred during the API call.

*/ inline BatchGetApplicationRevisionsResult& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

Information about errors that might have occurred during the API call.

*/ inline BatchGetApplicationRevisionsResult& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

Additional information about the revisions, including the type and * location.

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

Additional information about the revisions, including the type and * location.

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

Additional information about the revisions, including the type and * location.

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

Additional information about the revisions, including the type and * location.

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

Additional information about the revisions, including the type and * location.

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

Additional information about the revisions, including the type and * location.

*/ inline BatchGetApplicationRevisionsResult& AddRevisions(const RevisionInfo& value) { m_revisions.push_back(value); return *this; } /** *

Additional information about the revisions, including the type and * location.

*/ inline BatchGetApplicationRevisionsResult& AddRevisions(RevisionInfo&& value) { m_revisions.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline BatchGetApplicationRevisionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline BatchGetApplicationRevisionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline BatchGetApplicationRevisionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_applicationName; Aws::String m_errorMessage; Aws::Vector m_revisions; Aws::String m_requestId; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws