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

The self-service action identifier.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The self-service action identifier.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The self-service action identifier.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The self-service action identifier.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The self-service action identifier.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The self-service action identifier.

*/ inline UpdateServiceActionRequest& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The self-service action identifier.

*/ inline UpdateServiceActionRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The self-service action identifier.

*/ inline UpdateServiceActionRequest& WithId(const char* value) { SetId(value); return *this;} /** *

The self-service action name.

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

The self-service action name.

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

The self-service action name.

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

The self-service action name.

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

The self-service action name.

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

The self-service action name.

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

The self-service action name.

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

The self-service action name.

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

A map that defines the self-service action.

*/ inline const Aws::Map& GetDefinition() const{ return m_definition; } /** *

A map that defines the self-service action.

*/ inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; } /** *

A map that defines the self-service action.

*/ inline void SetDefinition(const Aws::Map& value) { m_definitionHasBeenSet = true; m_definition = value; } /** *

A map that defines the self-service action.

*/ inline void SetDefinition(Aws::Map&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); } /** *

A map that defines the self-service action.

*/ inline UpdateServiceActionRequest& WithDefinition(const Aws::Map& value) { SetDefinition(value); return *this;} /** *

A map that defines the self-service action.

*/ inline UpdateServiceActionRequest& WithDefinition(Aws::Map&& value) { SetDefinition(std::move(value)); return *this;} /** *

A map that defines the self-service action.

*/ inline UpdateServiceActionRequest& AddDefinition(const ServiceActionDefinitionKey& key, const Aws::String& value) { m_definitionHasBeenSet = true; m_definition.emplace(key, value); return *this; } /** *

A map that defines the self-service action.

*/ inline UpdateServiceActionRequest& AddDefinition(ServiceActionDefinitionKey&& key, const Aws::String& value) { m_definitionHasBeenSet = true; m_definition.emplace(std::move(key), value); return *this; } /** *

A map that defines the self-service action.

*/ inline UpdateServiceActionRequest& AddDefinition(const ServiceActionDefinitionKey& key, Aws::String&& value) { m_definitionHasBeenSet = true; m_definition.emplace(key, std::move(value)); return *this; } /** *

A map that defines the self-service action.

*/ inline UpdateServiceActionRequest& AddDefinition(ServiceActionDefinitionKey&& key, Aws::String&& value) { m_definitionHasBeenSet = true; m_definition.emplace(std::move(key), std::move(value)); return *this; } /** *

A map that defines the self-service action.

*/ inline UpdateServiceActionRequest& AddDefinition(ServiceActionDefinitionKey&& key, const char* value) { m_definitionHasBeenSet = true; m_definition.emplace(std::move(key), value); return *this; } /** *

A map that defines the self-service action.

*/ inline UpdateServiceActionRequest& AddDefinition(const ServiceActionDefinitionKey& key, const char* value) { m_definitionHasBeenSet = true; m_definition.emplace(key, value); return *this; } /** *

The self-service action description.

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

The self-service action description.

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

The self-service action description.

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

The self-service action description.

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

The self-service action description.

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

The self-service action description.

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

The self-service action description.

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

The self-service action description.

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

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline const Aws::String& GetAcceptLanguage() const{ return m_acceptLanguage; } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline bool AcceptLanguageHasBeenSet() const { return m_acceptLanguageHasBeenSet; } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline void SetAcceptLanguage(const Aws::String& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = value; } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline void SetAcceptLanguage(Aws::String&& value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage = std::move(value); } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline void SetAcceptLanguage(const char* value) { m_acceptLanguageHasBeenSet = true; m_acceptLanguage.assign(value); } /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline UpdateServiceActionRequest& WithAcceptLanguage(const Aws::String& value) { SetAcceptLanguage(value); return *this;} /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline UpdateServiceActionRequest& WithAcceptLanguage(Aws::String&& value) { SetAcceptLanguage(std::move(value)); return *this;} /** *

The language code.

  • jp - Japanese

  • *
  • zh - Chinese

*/ inline UpdateServiceActionRequest& WithAcceptLanguage(const char* value) { SetAcceptLanguage(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_definition; bool m_definitionHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_acceptLanguage; bool m_acceptLanguageHasBeenSet = false; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws