/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace AmplifyBackend { namespace Model { class GetBackendResult { public: AWS_AMPLIFYBACKEND_API GetBackendResult(); AWS_AMPLIFYBACKEND_API GetBackendResult(const Aws::AmazonWebServiceResult& result); AWS_AMPLIFYBACKEND_API GetBackendResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A stringified version of the cli.json file for your Amplify project.

*/ inline const Aws::String& GetAmplifyFeatureFlags() const{ return m_amplifyFeatureFlags; } /** *

A stringified version of the cli.json file for your Amplify project.

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

A stringified version of the cli.json file for your Amplify project.

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

A stringified version of the cli.json file for your Amplify project.

*/ inline void SetAmplifyFeatureFlags(const char* value) { m_amplifyFeatureFlags.assign(value); } /** *

A stringified version of the cli.json file for your Amplify project.

*/ inline GetBackendResult& WithAmplifyFeatureFlags(const Aws::String& value) { SetAmplifyFeatureFlags(value); return *this;} /** *

A stringified version of the cli.json file for your Amplify project.

*/ inline GetBackendResult& WithAmplifyFeatureFlags(Aws::String&& value) { SetAmplifyFeatureFlags(std::move(value)); return *this;} /** *

A stringified version of the cli.json file for your Amplify project.

*/ inline GetBackendResult& WithAmplifyFeatureFlags(const char* value) { SetAmplifyFeatureFlags(value); return *this;} /** *

A stringified version of the current configs for your Amplify project.

*/ inline const Aws::String& GetAmplifyMetaConfig() const{ return m_amplifyMetaConfig; } /** *

A stringified version of the current configs for your Amplify project.

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

A stringified version of the current configs for your Amplify project.

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

A stringified version of the current configs for your Amplify project.

*/ inline void SetAmplifyMetaConfig(const char* value) { m_amplifyMetaConfig.assign(value); } /** *

A stringified version of the current configs for your Amplify project.

*/ inline GetBackendResult& WithAmplifyMetaConfig(const Aws::String& value) { SetAmplifyMetaConfig(value); return *this;} /** *

A stringified version of the current configs for your Amplify project.

*/ inline GetBackendResult& WithAmplifyMetaConfig(Aws::String&& value) { SetAmplifyMetaConfig(std::move(value)); return *this;} /** *

A stringified version of the current configs for your Amplify project.

*/ inline GetBackendResult& WithAmplifyMetaConfig(const char* value) { SetAmplifyMetaConfig(value); return *this;} /** *

The app ID.

*/ inline const Aws::String& GetAppId() const{ return m_appId; } /** *

The app ID.

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

The app ID.

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

The app ID.

*/ inline void SetAppId(const char* value) { m_appId.assign(value); } /** *

The app ID.

*/ inline GetBackendResult& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

The app ID.

*/ inline GetBackendResult& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** *

The app ID.

*/ inline GetBackendResult& WithAppId(const char* value) { SetAppId(value); return *this;} /** *

The name of the app.

*/ inline const Aws::String& GetAppName() const{ return m_appName; } /** *

The name of the app.

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

The name of the app.

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

The name of the app.

*/ inline void SetAppName(const char* value) { m_appName.assign(value); } /** *

The name of the app.

*/ inline GetBackendResult& WithAppName(const Aws::String& value) { SetAppName(value); return *this;} /** *

The name of the app.

*/ inline GetBackendResult& WithAppName(Aws::String&& value) { SetAppName(std::move(value)); return *this;} /** *

The name of the app.

*/ inline GetBackendResult& WithAppName(const char* value) { SetAppName(value); return *this;} /** *

A list of backend environments in an array.

*/ inline const Aws::Vector& GetBackendEnvironmentList() const{ return m_backendEnvironmentList; } /** *

A list of backend environments in an array.

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

A list of backend environments in an array.

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

A list of backend environments in an array.

*/ inline GetBackendResult& WithBackendEnvironmentList(const Aws::Vector& value) { SetBackendEnvironmentList(value); return *this;} /** *

A list of backend environments in an array.

*/ inline GetBackendResult& WithBackendEnvironmentList(Aws::Vector&& value) { SetBackendEnvironmentList(std::move(value)); return *this;} /** *

A list of backend environments in an array.

*/ inline GetBackendResult& AddBackendEnvironmentList(const Aws::String& value) { m_backendEnvironmentList.push_back(value); return *this; } /** *

A list of backend environments in an array.

*/ inline GetBackendResult& AddBackendEnvironmentList(Aws::String&& value) { m_backendEnvironmentList.push_back(std::move(value)); return *this; } /** *

A list of backend environments in an array.

*/ inline GetBackendResult& AddBackendEnvironmentList(const char* value) { m_backendEnvironmentList.push_back(value); return *this; } /** *

The name of the backend environment.

*/ inline const Aws::String& GetBackendEnvironmentName() const{ return m_backendEnvironmentName; } /** *

The name of the backend environment.

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

The name of the backend environment.

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

The name of the backend environment.

*/ inline void SetBackendEnvironmentName(const char* value) { m_backendEnvironmentName.assign(value); } /** *

The name of the backend environment.

*/ inline GetBackendResult& WithBackendEnvironmentName(const Aws::String& value) { SetBackendEnvironmentName(value); return *this;} /** *

The name of the backend environment.

*/ inline GetBackendResult& WithBackendEnvironmentName(Aws::String&& value) { SetBackendEnvironmentName(std::move(value)); return *this;} /** *

The name of the backend environment.

*/ inline GetBackendResult& WithBackendEnvironmentName(const char* value) { SetBackendEnvironmentName(value); return *this;} /** *

If the request failed, this is the returned error.

*/ inline const Aws::String& GetError() const{ return m_error; } /** *

If the request failed, this is the returned error.

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

If the request failed, this is the returned error.

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

If the request failed, this is the returned error.

*/ inline void SetError(const char* value) { m_error.assign(value); } /** *

If the request failed, this is the returned error.

*/ inline GetBackendResult& WithError(const Aws::String& value) { SetError(value); return *this;} /** *

If the request failed, this is the returned error.

*/ inline GetBackendResult& WithError(Aws::String&& value) { SetError(std::move(value)); return *this;} /** *

If the request failed, this is the returned error.

*/ inline GetBackendResult& WithError(const char* value) { SetError(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 GetBackendResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetBackendResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetBackendResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_amplifyFeatureFlags; Aws::String m_amplifyMetaConfig; Aws::String m_appId; Aws::String m_appName; Aws::Vector m_backendEnvironmentList; Aws::String m_backendEnvironmentName; Aws::String m_error; Aws::String m_requestId; }; } // namespace Model } // namespace AmplifyBackend } // namespace Aws