/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Proton { namespace Model { /** */ class GetServiceInstanceRequest : public ProtonRequest { public: AWS_PROTON_API GetServiceInstanceRequest(); // 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 "GetServiceInstance"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of a service instance that you want to get the detailed data * for.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of a service instance that you want to get the detailed data * for.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of a service instance that you want to get the detailed data * for.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of a service instance that you want to get the detailed data * for.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of a service instance that you want to get the detailed data * for.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of a service instance that you want to get the detailed data * for.

*/ inline GetServiceInstanceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of a service instance that you want to get the detailed data * for.

*/ inline GetServiceInstanceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of a service instance that you want to get the detailed data * for.

*/ inline GetServiceInstanceRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the service that you want the service instance input for.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service that you want the service instance input for.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service that you want the service instance input for.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service that you want the service instance input for.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service that you want the service instance input for.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service that you want the service instance input for.

*/ inline GetServiceInstanceRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service that you want the service instance input for.

*/ inline GetServiceInstanceRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service that you want the service instance input for.

*/ inline GetServiceInstanceRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws