/** * 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 DescribeServiceErrorsRequest : public OpsWorksRequest { public: AWS_OPSWORKS_API DescribeServiceErrorsRequest(); // 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 "DescribeServiceErrors"; } AWS_OPSWORKS_API Aws::String SerializePayload() const override; AWS_OPSWORKS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The stack ID. If you use this parameter, DescribeServiceErrors * returns descriptions of the errors associated with the specified stack.

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

The stack ID. If you use this parameter, DescribeServiceErrors * returns descriptions of the errors associated with the specified stack.

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

The stack ID. If you use this parameter, DescribeServiceErrors * returns descriptions of the errors associated with the specified stack.

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

The stack ID. If you use this parameter, DescribeServiceErrors * returns descriptions of the errors associated with the specified stack.

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

The stack ID. If you use this parameter, DescribeServiceErrors * returns descriptions of the errors associated with the specified stack.

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

The stack ID. If you use this parameter, DescribeServiceErrors * returns descriptions of the errors associated with the specified stack.

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

The stack ID. If you use this parameter, DescribeServiceErrors * returns descriptions of the errors associated with the specified stack.

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

The stack ID. If you use this parameter, DescribeServiceErrors * returns descriptions of the errors associated with the specified stack.

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

The instance ID. If you use this parameter, * DescribeServiceErrors returns descriptions of the errors associated * with the specified instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The instance ID. If you use this parameter, * DescribeServiceErrors returns descriptions of the errors associated * with the specified instance.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The instance ID. If you use this parameter, * DescribeServiceErrors returns descriptions of the errors associated * with the specified instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The instance ID. If you use this parameter, * DescribeServiceErrors returns descriptions of the errors associated * with the specified instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The instance ID. If you use this parameter, * DescribeServiceErrors returns descriptions of the errors associated * with the specified instance.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The instance ID. If you use this parameter, * DescribeServiceErrors returns descriptions of the errors associated * with the specified instance.

*/ inline DescribeServiceErrorsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The instance ID. If you use this parameter, * DescribeServiceErrors returns descriptions of the errors associated * with the specified instance.

*/ inline DescribeServiceErrorsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The instance ID. If you use this parameter, * DescribeServiceErrors returns descriptions of the errors associated * with the specified instance.

*/ inline DescribeServiceErrorsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

An array of service error IDs. If you use this parameter, * DescribeServiceErrors returns descriptions of the specified errors. * Otherwise, it returns a description of every error.

*/ inline const Aws::Vector& GetServiceErrorIds() const{ return m_serviceErrorIds; } /** *

An array of service error IDs. If you use this parameter, * DescribeServiceErrors returns descriptions of the specified errors. * Otherwise, it returns a description of every error.

*/ inline bool ServiceErrorIdsHasBeenSet() const { return m_serviceErrorIdsHasBeenSet; } /** *

An array of service error IDs. If you use this parameter, * DescribeServiceErrors returns descriptions of the specified errors. * Otherwise, it returns a description of every error.

*/ inline void SetServiceErrorIds(const Aws::Vector& value) { m_serviceErrorIdsHasBeenSet = true; m_serviceErrorIds = value; } /** *

An array of service error IDs. If you use this parameter, * DescribeServiceErrors returns descriptions of the specified errors. * Otherwise, it returns a description of every error.

*/ inline void SetServiceErrorIds(Aws::Vector&& value) { m_serviceErrorIdsHasBeenSet = true; m_serviceErrorIds = std::move(value); } /** *

An array of service error IDs. If you use this parameter, * DescribeServiceErrors returns descriptions of the specified errors. * Otherwise, it returns a description of every error.

*/ inline DescribeServiceErrorsRequest& WithServiceErrorIds(const Aws::Vector& value) { SetServiceErrorIds(value); return *this;} /** *

An array of service error IDs. If you use this parameter, * DescribeServiceErrors returns descriptions of the specified errors. * Otherwise, it returns a description of every error.

*/ inline DescribeServiceErrorsRequest& WithServiceErrorIds(Aws::Vector&& value) { SetServiceErrorIds(std::move(value)); return *this;} /** *

An array of service error IDs. If you use this parameter, * DescribeServiceErrors returns descriptions of the specified errors. * Otherwise, it returns a description of every error.

*/ inline DescribeServiceErrorsRequest& AddServiceErrorIds(const Aws::String& value) { m_serviceErrorIdsHasBeenSet = true; m_serviceErrorIds.push_back(value); return *this; } /** *

An array of service error IDs. If you use this parameter, * DescribeServiceErrors returns descriptions of the specified errors. * Otherwise, it returns a description of every error.

*/ inline DescribeServiceErrorsRequest& AddServiceErrorIds(Aws::String&& value) { m_serviceErrorIdsHasBeenSet = true; m_serviceErrorIds.push_back(std::move(value)); return *this; } /** *

An array of service error IDs. If you use this parameter, * DescribeServiceErrors returns descriptions of the specified errors. * Otherwise, it returns a description of every error.

*/ inline DescribeServiceErrorsRequest& AddServiceErrorIds(const char* value) { m_serviceErrorIdsHasBeenSet = true; m_serviceErrorIds.push_back(value); return *this; } private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::Vector m_serviceErrorIds; bool m_serviceErrorIdsHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws