/** * 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 OpsWorks { namespace Model { /** */ class DescribeAppsRequest : public OpsWorksRequest { public: AWS_OPSWORKS_API DescribeAppsRequest(); // 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 "DescribeApps"; } AWS_OPSWORKS_API Aws::String SerializePayload() const override; AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The app stack ID. If you use this parameter, DescribeApps * returns a description of the apps in the specified stack.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

The app stack ID. If you use this parameter, DescribeApps * returns a description of the apps in the specified stack.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

The app stack ID. If you use this parameter, DescribeApps * returns a description of the apps in the specified stack.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

The app stack ID. If you use this parameter, DescribeApps * returns a description of the apps in the specified stack.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

The app stack ID. If you use this parameter, DescribeApps * returns a description of the apps in the specified stack.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

The app stack ID. If you use this parameter, DescribeApps * returns a description of the apps in the specified stack.

*/ inline DescribeAppsRequest& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The app stack ID. If you use this parameter, DescribeApps * returns a description of the apps in the specified stack.

*/ inline DescribeAppsRequest& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

The app stack ID. If you use this parameter, DescribeApps * returns a description of the apps in the specified stack.

*/ inline DescribeAppsRequest& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

An array of app IDs for the apps to be described. If you use this parameter, * DescribeApps returns a description of the specified apps. * Otherwise, it returns a description of every app.

*/ inline const Aws::Vector& GetAppIds() const{ return m_appIds; } /** *

An array of app IDs for the apps to be described. If you use this parameter, * DescribeApps returns a description of the specified apps. * Otherwise, it returns a description of every app.

*/ inline bool AppIdsHasBeenSet() const { return m_appIdsHasBeenSet; } /** *

An array of app IDs for the apps to be described. If you use this parameter, * DescribeApps returns a description of the specified apps. * Otherwise, it returns a description of every app.

*/ inline void SetAppIds(const Aws::Vector& value) { m_appIdsHasBeenSet = true; m_appIds = value; } /** *

An array of app IDs for the apps to be described. If you use this parameter, * DescribeApps returns a description of the specified apps. * Otherwise, it returns a description of every app.

*/ inline void SetAppIds(Aws::Vector&& value) { m_appIdsHasBeenSet = true; m_appIds = std::move(value); } /** *

An array of app IDs for the apps to be described. If you use this parameter, * DescribeApps returns a description of the specified apps. * Otherwise, it returns a description of every app.

*/ inline DescribeAppsRequest& WithAppIds(const Aws::Vector& value) { SetAppIds(value); return *this;} /** *

An array of app IDs for the apps to be described. If you use this parameter, * DescribeApps returns a description of the specified apps. * Otherwise, it returns a description of every app.

*/ inline DescribeAppsRequest& WithAppIds(Aws::Vector&& value) { SetAppIds(std::move(value)); return *this;} /** *

An array of app IDs for the apps to be described. If you use this parameter, * DescribeApps returns a description of the specified apps. * Otherwise, it returns a description of every app.

*/ inline DescribeAppsRequest& AddAppIds(const Aws::String& value) { m_appIdsHasBeenSet = true; m_appIds.push_back(value); return *this; } /** *

An array of app IDs for the apps to be described. If you use this parameter, * DescribeApps returns a description of the specified apps. * Otherwise, it returns a description of every app.

*/ inline DescribeAppsRequest& AddAppIds(Aws::String&& value) { m_appIdsHasBeenSet = true; m_appIds.push_back(std::move(value)); return *this; } /** *

An array of app IDs for the apps to be described. If you use this parameter, * DescribeApps returns a description of the specified apps. * Otherwise, it returns a description of every app.

*/ inline DescribeAppsRequest& AddAppIds(const char* value) { m_appIdsHasBeenSet = true; m_appIds.push_back(value); return *this; } private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::Vector m_appIds; bool m_appIdsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws