/** * 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 Cloud9 { namespace Model { /** */ class UpdateEnvironmentRequest : public Cloud9Request { public: AWS_CLOUD9_API UpdateEnvironmentRequest(); // 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 "UpdateEnvironment"; } AWS_CLOUD9_API Aws::String SerializePayload() const override; AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the environment to change settings.

*/ inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } /** *

The ID of the environment to change settings.

*/ inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } /** *

The ID of the environment to change settings.

*/ inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } /** *

The ID of the environment to change settings.

*/ inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } /** *

The ID of the environment to change settings.

*/ inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } /** *

The ID of the environment to change settings.

*/ inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

The ID of the environment to change settings.

*/ inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} /** *

The ID of the environment to change settings.

*/ inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} /** *

A replacement name for the environment.

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

A replacement name for the environment.

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

A replacement name for the environment.

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

A replacement name for the environment.

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

A replacement name for the environment.

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

A replacement name for the environment.

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

A replacement name for the environment.

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

A replacement name for the environment.

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

Any new or replacement description for the environment.

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

Any new or replacement description for the environment.

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

Any new or replacement description for the environment.

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

Any new or replacement description for the environment.

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

Any new or replacement description for the environment.

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

Any new or replacement description for the environment.

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

Any new or replacement description for the environment.

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

Any new or replacement description for the environment.

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

Allows the environment owner to turn on or turn off the Amazon Web Services * managed temporary credentials for an Cloud9 environment by using one of the * following values:

  • ENABLE

  • * DISABLE

Only the environment owner can * change the status of managed temporary credentials. An * AccessDeniedException is thrown if an attempt to turn on or turn * off managed temporary credentials is made by an account that's not the * environment owner.

*/ inline const ManagedCredentialsAction& GetManagedCredentialsAction() const{ return m_managedCredentialsAction; } /** *

Allows the environment owner to turn on or turn off the Amazon Web Services * managed temporary credentials for an Cloud9 environment by using one of the * following values:

  • ENABLE

  • * DISABLE

Only the environment owner can * change the status of managed temporary credentials. An * AccessDeniedException is thrown if an attempt to turn on or turn * off managed temporary credentials is made by an account that's not the * environment owner.

*/ inline bool ManagedCredentialsActionHasBeenSet() const { return m_managedCredentialsActionHasBeenSet; } /** *

Allows the environment owner to turn on or turn off the Amazon Web Services * managed temporary credentials for an Cloud9 environment by using one of the * following values:

  • ENABLE

  • * DISABLE

Only the environment owner can * change the status of managed temporary credentials. An * AccessDeniedException is thrown if an attempt to turn on or turn * off managed temporary credentials is made by an account that's not the * environment owner.

*/ inline void SetManagedCredentialsAction(const ManagedCredentialsAction& value) { m_managedCredentialsActionHasBeenSet = true; m_managedCredentialsAction = value; } /** *

Allows the environment owner to turn on or turn off the Amazon Web Services * managed temporary credentials for an Cloud9 environment by using one of the * following values:

  • ENABLE

  • * DISABLE

Only the environment owner can * change the status of managed temporary credentials. An * AccessDeniedException is thrown if an attempt to turn on or turn * off managed temporary credentials is made by an account that's not the * environment owner.

*/ inline void SetManagedCredentialsAction(ManagedCredentialsAction&& value) { m_managedCredentialsActionHasBeenSet = true; m_managedCredentialsAction = std::move(value); } /** *

Allows the environment owner to turn on or turn off the Amazon Web Services * managed temporary credentials for an Cloud9 environment by using one of the * following values:

  • ENABLE

  • * DISABLE

Only the environment owner can * change the status of managed temporary credentials. An * AccessDeniedException is thrown if an attempt to turn on or turn * off managed temporary credentials is made by an account that's not the * environment owner.

*/ inline UpdateEnvironmentRequest& WithManagedCredentialsAction(const ManagedCredentialsAction& value) { SetManagedCredentialsAction(value); return *this;} /** *

Allows the environment owner to turn on or turn off the Amazon Web Services * managed temporary credentials for an Cloud9 environment by using one of the * following values:

  • ENABLE

  • * DISABLE

Only the environment owner can * change the status of managed temporary credentials. An * AccessDeniedException is thrown if an attempt to turn on or turn * off managed temporary credentials is made by an account that's not the * environment owner.

*/ inline UpdateEnvironmentRequest& WithManagedCredentialsAction(ManagedCredentialsAction&& value) { SetManagedCredentialsAction(std::move(value)); return *this;} private: Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ManagedCredentialsAction m_managedCredentialsAction; bool m_managedCredentialsActionHasBeenSet = false; }; } // namespace Model } // namespace Cloud9 } // namespace Aws