com.amazonaws.services.workspacesweb.model.UpdateBrowserSettingsRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-workspacesweb Show documentation
/*
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.workspacesweb.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateBrowserSettingsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
*
*/
private String browserPolicy;
/**
*
* The ARN of the browser settings.
*
*/
private String browserSettingsArn;
/**
*
* 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.
*
*/
private String clientToken;
/**
*
* A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
*
*
* @param browserPolicy
* A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
*/
public void setBrowserPolicy(String browserPolicy) {
this.browserPolicy = browserPolicy;
}
/**
*
* A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
*
*
* @return A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
*/
public String getBrowserPolicy() {
return this.browserPolicy;
}
/**
*
* A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
*
*
* @param browserPolicy
* A JSON string containing Chrome Enterprise policies that will be applied to all streaming sessions.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrowserSettingsRequest withBrowserPolicy(String browserPolicy) {
setBrowserPolicy(browserPolicy);
return this;
}
/**
*
* The ARN of the browser settings.
*
*
* @param browserSettingsArn
* The ARN of the browser settings.
*/
public void setBrowserSettingsArn(String browserSettingsArn) {
this.browserSettingsArn = browserSettingsArn;
}
/**
*
* The ARN of the browser settings.
*
*
* @return The ARN of the browser settings.
*/
public String getBrowserSettingsArn() {
return this.browserSettingsArn;
}
/**
*
* The ARN of the browser settings.
*
*
* @param browserSettingsArn
* The ARN of the browser settings.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrowserSettingsRequest withBrowserSettingsArn(String browserSettingsArn) {
setBrowserSettingsArn(browserSettingsArn);
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.
*
*
* @param 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.
*/
public void setClientToken(String clientToken) {
this.clientToken = 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.
*
*
* @return 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.
*/
public String getClientToken() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateBrowserSettingsRequest withClientToken(String clientToken) {
setClientToken(clientToken);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getBrowserPolicy() != null)
sb.append("BrowserPolicy: ").append("***Sensitive Data Redacted***").append(",");
if (getBrowserSettingsArn() != null)
sb.append("BrowserSettingsArn: ").append(getBrowserSettingsArn()).append(",");
if (getClientToken() != null)
sb.append("ClientToken: ").append(getClientToken());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateBrowserSettingsRequest == false)
return false;
UpdateBrowserSettingsRequest other = (UpdateBrowserSettingsRequest) obj;
if (other.getBrowserPolicy() == null ^ this.getBrowserPolicy() == null)
return false;
if (other.getBrowserPolicy() != null && other.getBrowserPolicy().equals(this.getBrowserPolicy()) == false)
return false;
if (other.getBrowserSettingsArn() == null ^ this.getBrowserSettingsArn() == null)
return false;
if (other.getBrowserSettingsArn() != null && other.getBrowserSettingsArn().equals(this.getBrowserSettingsArn()) == false)
return false;
if (other.getClientToken() == null ^ this.getClientToken() == null)
return false;
if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getBrowserPolicy() == null) ? 0 : getBrowserPolicy().hashCode());
hashCode = prime * hashCode + ((getBrowserSettingsArn() == null) ? 0 : getBrowserSettingsArn().hashCode());
hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode());
return hashCode;
}
@Override
public UpdateBrowserSettingsRequest clone() {
return (UpdateBrowserSettingsRequest) super.clone();
}
}