/** * 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 WorkSpacesWeb { namespace Model { /** */ class UpdateBrowserSettingsRequest : public WorkSpacesWebRequest { public: AWS_WORKSPACESWEB_API UpdateBrowserSettingsRequest(); // 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 "UpdateBrowserSettings"; } AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override; /** *

A JSON string containing Chrome Enterprise policies that will be applied to * all streaming sessions.

*/ inline const Aws::String& GetBrowserPolicy() const{ return m_browserPolicy; } /** *

A JSON string containing Chrome Enterprise policies that will be applied to * all streaming sessions.

*/ inline bool BrowserPolicyHasBeenSet() const { return m_browserPolicyHasBeenSet; } /** *

A JSON string containing Chrome Enterprise policies that will be applied to * all streaming sessions.

*/ inline void SetBrowserPolicy(const Aws::String& value) { m_browserPolicyHasBeenSet = true; m_browserPolicy = value; } /** *

A JSON string containing Chrome Enterprise policies that will be applied to * all streaming sessions.

*/ inline void SetBrowserPolicy(Aws::String&& value) { m_browserPolicyHasBeenSet = true; m_browserPolicy = std::move(value); } /** *

A JSON string containing Chrome Enterprise policies that will be applied to * all streaming sessions.

*/ inline void SetBrowserPolicy(const char* value) { m_browserPolicyHasBeenSet = true; m_browserPolicy.assign(value); } /** *

A JSON string containing Chrome Enterprise policies that will be applied to * all streaming sessions.

*/ inline UpdateBrowserSettingsRequest& WithBrowserPolicy(const Aws::String& value) { SetBrowserPolicy(value); return *this;} /** *

A JSON string containing Chrome Enterprise policies that will be applied to * all streaming sessions.

*/ inline UpdateBrowserSettingsRequest& WithBrowserPolicy(Aws::String&& value) { SetBrowserPolicy(std::move(value)); return *this;} /** *

A JSON string containing Chrome Enterprise policies that will be applied to * all streaming sessions.

*/ inline UpdateBrowserSettingsRequest& WithBrowserPolicy(const char* value) { SetBrowserPolicy(value); return *this;} /** *

The ARN of the browser settings.

*/ inline const Aws::String& GetBrowserSettingsArn() const{ return m_browserSettingsArn; } /** *

The ARN of the browser settings.

*/ inline bool BrowserSettingsArnHasBeenSet() const { return m_browserSettingsArnHasBeenSet; } /** *

The ARN of the browser settings.

*/ inline void SetBrowserSettingsArn(const Aws::String& value) { m_browserSettingsArnHasBeenSet = true; m_browserSettingsArn = value; } /** *

The ARN of the browser settings.

*/ inline void SetBrowserSettingsArn(Aws::String&& value) { m_browserSettingsArnHasBeenSet = true; m_browserSettingsArn = std::move(value); } /** *

The ARN of the browser settings.

*/ inline void SetBrowserSettingsArn(const char* value) { m_browserSettingsArnHasBeenSet = true; m_browserSettingsArn.assign(value); } /** *

The ARN of the browser settings.

*/ inline UpdateBrowserSettingsRequest& WithBrowserSettingsArn(const Aws::String& value) { SetBrowserSettingsArn(value); return *this;} /** *

The ARN of the browser settings.

*/ inline UpdateBrowserSettingsRequest& WithBrowserSettingsArn(Aws::String&& value) { SetBrowserSettingsArn(std::move(value)); return *this;} /** *

The ARN of the browser settings.

*/ inline UpdateBrowserSettingsRequest& WithBrowserSettingsArn(const char* value) { SetBrowserSettingsArn(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token return the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token return the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token return the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token return the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token return the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token return the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline UpdateBrowserSettingsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token return the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline UpdateBrowserSettingsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. Idempotency ensures that an API request completes * only once. With an idempotent request, if the original request completes * successfully, subsequent retries with the same client token return the result * from the original successful request.

If you do not specify a client * token, one is automatically generated by the AWS SDK.

*/ inline UpdateBrowserSettingsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_browserPolicy; bool m_browserPolicyHasBeenSet = false; Aws::String m_browserSettingsArn; bool m_browserSettingsArnHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace WorkSpacesWeb } // namespace Aws