/** * 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 UpdateServiceRequest : public ProtonRequest { public: AWS_PROTON_API UpdateServiceRequest(); // 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 "UpdateService"; } AWS_PROTON_API Aws::String SerializePayload() const override; AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The edited service description.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The edited service description.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The edited service description.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The edited service description.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The edited service description.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The edited service description.

*/ inline UpdateServiceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The edited service description.

*/ inline UpdateServiceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The edited service description.

*/ inline UpdateServiceRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the service to edit.

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

The name of the service to edit.

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

The name of the service to edit.

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

The name of the service to edit.

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

The name of the service to edit.

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

The name of the service to edit.

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

The name of the service to edit.

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

The name of the service to edit.

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

Lists the service instances to add and the existing service instances to * remain. Omit the existing service instances to delete from the list. * Don't include edits to the existing service instances or pipeline. For * more information, see Edit * a service in the Proton User Guide.

*/ inline const Aws::String& GetSpec() const{ return m_spec; } /** *

Lists the service instances to add and the existing service instances to * remain. Omit the existing service instances to delete from the list. * Don't include edits to the existing service instances or pipeline. For * more information, see Edit * a service in the Proton User Guide.

*/ inline bool SpecHasBeenSet() const { return m_specHasBeenSet; } /** *

Lists the service instances to add and the existing service instances to * remain. Omit the existing service instances to delete from the list. * Don't include edits to the existing service instances or pipeline. For * more information, see Edit * a service in the Proton User Guide.

*/ inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; } /** *

Lists the service instances to add and the existing service instances to * remain. Omit the existing service instances to delete from the list. * Don't include edits to the existing service instances or pipeline. For * more information, see Edit * a service in the Proton User Guide.

*/ inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); } /** *

Lists the service instances to add and the existing service instances to * remain. Omit the existing service instances to delete from the list. * Don't include edits to the existing service instances or pipeline. For * more information, see Edit * a service in the Proton User Guide.

*/ inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); } /** *

Lists the service instances to add and the existing service instances to * remain. Omit the existing service instances to delete from the list. * Don't include edits to the existing service instances or pipeline. For * more information, see Edit * a service in the Proton User Guide.

*/ inline UpdateServiceRequest& WithSpec(const Aws::String& value) { SetSpec(value); return *this;} /** *

Lists the service instances to add and the existing service instances to * remain. Omit the existing service instances to delete from the list. * Don't include edits to the existing service instances or pipeline. For * more information, see Edit * a service in the Proton User Guide.

*/ inline UpdateServiceRequest& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;} /** *

Lists the service instances to add and the existing service instances to * remain. Omit the existing service instances to delete from the list. * Don't include edits to the existing service instances or pipeline. For * more information, see Edit * a service in the Proton User Guide.

*/ inline UpdateServiceRequest& WithSpec(const char* value) { SetSpec(value); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_spec; bool m_specHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws