All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.workspaces.model.WorkspaceAccessProperties Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon WorkSpaces module holds the client classes that are used for communicating with Amazon WorkSpaces Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.workspaces.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The device types and operating systems that can be used to access a WorkSpace. For more information, see Amazon * WorkSpaces Client Network Requirements. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class WorkspaceAccessProperties implements Serializable, Cloneable, StructuredPojo { /** *

* Indicates whether users can use Windows clients to access their WorkSpaces. *

*/ private String deviceTypeWindows; /** *

* Indicates whether users can use macOS clients to access their WorkSpaces. *

*/ private String deviceTypeOsx; /** *

* Indicates whether users can access their WorkSpaces through a web browser. *

*/ private String deviceTypeWeb; /** *

* Indicates whether users can use iOS devices to access their WorkSpaces. *

*/ private String deviceTypeIos; /** *

* Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces. *

*/ private String deviceTypeAndroid; /** *

* Indicates whether users can use Chromebooks to access their WorkSpaces. *

*/ private String deviceTypeChromeOs; /** *

* Indicates whether users can use zero client devices to access their WorkSpaces. *

*/ private String deviceTypeZeroClient; /** *

* Indicates whether users can use Linux clients to access their WorkSpaces. *

*/ private String deviceTypeLinux; /** *

* Indicates whether users can use Windows clients to access their WorkSpaces. *

* * @param deviceTypeWindows * Indicates whether users can use Windows clients to access their WorkSpaces. * @see AccessPropertyValue */ public void setDeviceTypeWindows(String deviceTypeWindows) { this.deviceTypeWindows = deviceTypeWindows; } /** *

* Indicates whether users can use Windows clients to access their WorkSpaces. *

* * @return Indicates whether users can use Windows clients to access their WorkSpaces. * @see AccessPropertyValue */ public String getDeviceTypeWindows() { return this.deviceTypeWindows; } /** *

* Indicates whether users can use Windows clients to access their WorkSpaces. *

* * @param deviceTypeWindows * Indicates whether users can use Windows clients to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeWindows(String deviceTypeWindows) { setDeviceTypeWindows(deviceTypeWindows); return this; } /** *

* Indicates whether users can use Windows clients to access their WorkSpaces. *

* * @param deviceTypeWindows * Indicates whether users can use Windows clients to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeWindows(AccessPropertyValue deviceTypeWindows) { this.deviceTypeWindows = deviceTypeWindows.toString(); return this; } /** *

* Indicates whether users can use macOS clients to access their WorkSpaces. *

* * @param deviceTypeOsx * Indicates whether users can use macOS clients to access their WorkSpaces. * @see AccessPropertyValue */ public void setDeviceTypeOsx(String deviceTypeOsx) { this.deviceTypeOsx = deviceTypeOsx; } /** *

* Indicates whether users can use macOS clients to access their WorkSpaces. *

* * @return Indicates whether users can use macOS clients to access their WorkSpaces. * @see AccessPropertyValue */ public String getDeviceTypeOsx() { return this.deviceTypeOsx; } /** *

* Indicates whether users can use macOS clients to access their WorkSpaces. *

* * @param deviceTypeOsx * Indicates whether users can use macOS clients to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeOsx(String deviceTypeOsx) { setDeviceTypeOsx(deviceTypeOsx); return this; } /** *

* Indicates whether users can use macOS clients to access their WorkSpaces. *

* * @param deviceTypeOsx * Indicates whether users can use macOS clients to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeOsx(AccessPropertyValue deviceTypeOsx) { this.deviceTypeOsx = deviceTypeOsx.toString(); return this; } /** *

* Indicates whether users can access their WorkSpaces through a web browser. *

* * @param deviceTypeWeb * Indicates whether users can access their WorkSpaces through a web browser. * @see AccessPropertyValue */ public void setDeviceTypeWeb(String deviceTypeWeb) { this.deviceTypeWeb = deviceTypeWeb; } /** *

* Indicates whether users can access their WorkSpaces through a web browser. *

* * @return Indicates whether users can access their WorkSpaces through a web browser. * @see AccessPropertyValue */ public String getDeviceTypeWeb() { return this.deviceTypeWeb; } /** *

* Indicates whether users can access their WorkSpaces through a web browser. *

* * @param deviceTypeWeb * Indicates whether users can access their WorkSpaces through a web browser. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeWeb(String deviceTypeWeb) { setDeviceTypeWeb(deviceTypeWeb); return this; } /** *

* Indicates whether users can access their WorkSpaces through a web browser. *

* * @param deviceTypeWeb * Indicates whether users can access their WorkSpaces through a web browser. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeWeb(AccessPropertyValue deviceTypeWeb) { this.deviceTypeWeb = deviceTypeWeb.toString(); return this; } /** *

* Indicates whether users can use iOS devices to access their WorkSpaces. *

* * @param deviceTypeIos * Indicates whether users can use iOS devices to access their WorkSpaces. * @see AccessPropertyValue */ public void setDeviceTypeIos(String deviceTypeIos) { this.deviceTypeIos = deviceTypeIos; } /** *

* Indicates whether users can use iOS devices to access their WorkSpaces. *

* * @return Indicates whether users can use iOS devices to access their WorkSpaces. * @see AccessPropertyValue */ public String getDeviceTypeIos() { return this.deviceTypeIos; } /** *

* Indicates whether users can use iOS devices to access their WorkSpaces. *

* * @param deviceTypeIos * Indicates whether users can use iOS devices to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeIos(String deviceTypeIos) { setDeviceTypeIos(deviceTypeIos); return this; } /** *

* Indicates whether users can use iOS devices to access their WorkSpaces. *

* * @param deviceTypeIos * Indicates whether users can use iOS devices to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeIos(AccessPropertyValue deviceTypeIos) { this.deviceTypeIos = deviceTypeIos.toString(); return this; } /** *

* Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces. *

* * @param deviceTypeAndroid * Indicates whether users can use Android and Android-compatible Chrome OS devices to access their * WorkSpaces. * @see AccessPropertyValue */ public void setDeviceTypeAndroid(String deviceTypeAndroid) { this.deviceTypeAndroid = deviceTypeAndroid; } /** *

* Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces. *

* * @return Indicates whether users can use Android and Android-compatible Chrome OS devices to access their * WorkSpaces. * @see AccessPropertyValue */ public String getDeviceTypeAndroid() { return this.deviceTypeAndroid; } /** *

* Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces. *

* * @param deviceTypeAndroid * Indicates whether users can use Android and Android-compatible Chrome OS devices to access their * WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeAndroid(String deviceTypeAndroid) { setDeviceTypeAndroid(deviceTypeAndroid); return this; } /** *

* Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces. *

* * @param deviceTypeAndroid * Indicates whether users can use Android and Android-compatible Chrome OS devices to access their * WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeAndroid(AccessPropertyValue deviceTypeAndroid) { this.deviceTypeAndroid = deviceTypeAndroid.toString(); return this; } /** *

* Indicates whether users can use Chromebooks to access their WorkSpaces. *

* * @param deviceTypeChromeOs * Indicates whether users can use Chromebooks to access their WorkSpaces. * @see AccessPropertyValue */ public void setDeviceTypeChromeOs(String deviceTypeChromeOs) { this.deviceTypeChromeOs = deviceTypeChromeOs; } /** *

* Indicates whether users can use Chromebooks to access their WorkSpaces. *

* * @return Indicates whether users can use Chromebooks to access their WorkSpaces. * @see AccessPropertyValue */ public String getDeviceTypeChromeOs() { return this.deviceTypeChromeOs; } /** *

* Indicates whether users can use Chromebooks to access their WorkSpaces. *

* * @param deviceTypeChromeOs * Indicates whether users can use Chromebooks to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeChromeOs(String deviceTypeChromeOs) { setDeviceTypeChromeOs(deviceTypeChromeOs); return this; } /** *

* Indicates whether users can use Chromebooks to access their WorkSpaces. *

* * @param deviceTypeChromeOs * Indicates whether users can use Chromebooks to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeChromeOs(AccessPropertyValue deviceTypeChromeOs) { this.deviceTypeChromeOs = deviceTypeChromeOs.toString(); return this; } /** *

* Indicates whether users can use zero client devices to access their WorkSpaces. *

* * @param deviceTypeZeroClient * Indicates whether users can use zero client devices to access their WorkSpaces. * @see AccessPropertyValue */ public void setDeviceTypeZeroClient(String deviceTypeZeroClient) { this.deviceTypeZeroClient = deviceTypeZeroClient; } /** *

* Indicates whether users can use zero client devices to access their WorkSpaces. *

* * @return Indicates whether users can use zero client devices to access their WorkSpaces. * @see AccessPropertyValue */ public String getDeviceTypeZeroClient() { return this.deviceTypeZeroClient; } /** *

* Indicates whether users can use zero client devices to access their WorkSpaces. *

* * @param deviceTypeZeroClient * Indicates whether users can use zero client devices to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeZeroClient(String deviceTypeZeroClient) { setDeviceTypeZeroClient(deviceTypeZeroClient); return this; } /** *

* Indicates whether users can use zero client devices to access their WorkSpaces. *

* * @param deviceTypeZeroClient * Indicates whether users can use zero client devices to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeZeroClient(AccessPropertyValue deviceTypeZeroClient) { this.deviceTypeZeroClient = deviceTypeZeroClient.toString(); return this; } /** *

* Indicates whether users can use Linux clients to access their WorkSpaces. *

* * @param deviceTypeLinux * Indicates whether users can use Linux clients to access their WorkSpaces. * @see AccessPropertyValue */ public void setDeviceTypeLinux(String deviceTypeLinux) { this.deviceTypeLinux = deviceTypeLinux; } /** *

* Indicates whether users can use Linux clients to access their WorkSpaces. *

* * @return Indicates whether users can use Linux clients to access their WorkSpaces. * @see AccessPropertyValue */ public String getDeviceTypeLinux() { return this.deviceTypeLinux; } /** *

* Indicates whether users can use Linux clients to access their WorkSpaces. *

* * @param deviceTypeLinux * Indicates whether users can use Linux clients to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeLinux(String deviceTypeLinux) { setDeviceTypeLinux(deviceTypeLinux); return this; } /** *

* Indicates whether users can use Linux clients to access their WorkSpaces. *

* * @param deviceTypeLinux * Indicates whether users can use Linux clients to access their WorkSpaces. * @return Returns a reference to this object so that method calls can be chained together. * @see AccessPropertyValue */ public WorkspaceAccessProperties withDeviceTypeLinux(AccessPropertyValue deviceTypeLinux) { this.deviceTypeLinux = deviceTypeLinux.toString(); 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 (getDeviceTypeWindows() != null) sb.append("DeviceTypeWindows: ").append(getDeviceTypeWindows()).append(","); if (getDeviceTypeOsx() != null) sb.append("DeviceTypeOsx: ").append(getDeviceTypeOsx()).append(","); if (getDeviceTypeWeb() != null) sb.append("DeviceTypeWeb: ").append(getDeviceTypeWeb()).append(","); if (getDeviceTypeIos() != null) sb.append("DeviceTypeIos: ").append(getDeviceTypeIos()).append(","); if (getDeviceTypeAndroid() != null) sb.append("DeviceTypeAndroid: ").append(getDeviceTypeAndroid()).append(","); if (getDeviceTypeChromeOs() != null) sb.append("DeviceTypeChromeOs: ").append(getDeviceTypeChromeOs()).append(","); if (getDeviceTypeZeroClient() != null) sb.append("DeviceTypeZeroClient: ").append(getDeviceTypeZeroClient()).append(","); if (getDeviceTypeLinux() != null) sb.append("DeviceTypeLinux: ").append(getDeviceTypeLinux()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof WorkspaceAccessProperties == false) return false; WorkspaceAccessProperties other = (WorkspaceAccessProperties) obj; if (other.getDeviceTypeWindows() == null ^ this.getDeviceTypeWindows() == null) return false; if (other.getDeviceTypeWindows() != null && other.getDeviceTypeWindows().equals(this.getDeviceTypeWindows()) == false) return false; if (other.getDeviceTypeOsx() == null ^ this.getDeviceTypeOsx() == null) return false; if (other.getDeviceTypeOsx() != null && other.getDeviceTypeOsx().equals(this.getDeviceTypeOsx()) == false) return false; if (other.getDeviceTypeWeb() == null ^ this.getDeviceTypeWeb() == null) return false; if (other.getDeviceTypeWeb() != null && other.getDeviceTypeWeb().equals(this.getDeviceTypeWeb()) == false) return false; if (other.getDeviceTypeIos() == null ^ this.getDeviceTypeIos() == null) return false; if (other.getDeviceTypeIos() != null && other.getDeviceTypeIos().equals(this.getDeviceTypeIos()) == false) return false; if (other.getDeviceTypeAndroid() == null ^ this.getDeviceTypeAndroid() == null) return false; if (other.getDeviceTypeAndroid() != null && other.getDeviceTypeAndroid().equals(this.getDeviceTypeAndroid()) == false) return false; if (other.getDeviceTypeChromeOs() == null ^ this.getDeviceTypeChromeOs() == null) return false; if (other.getDeviceTypeChromeOs() != null && other.getDeviceTypeChromeOs().equals(this.getDeviceTypeChromeOs()) == false) return false; if (other.getDeviceTypeZeroClient() == null ^ this.getDeviceTypeZeroClient() == null) return false; if (other.getDeviceTypeZeroClient() != null && other.getDeviceTypeZeroClient().equals(this.getDeviceTypeZeroClient()) == false) return false; if (other.getDeviceTypeLinux() == null ^ this.getDeviceTypeLinux() == null) return false; if (other.getDeviceTypeLinux() != null && other.getDeviceTypeLinux().equals(this.getDeviceTypeLinux()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeviceTypeWindows() == null) ? 0 : getDeviceTypeWindows().hashCode()); hashCode = prime * hashCode + ((getDeviceTypeOsx() == null) ? 0 : getDeviceTypeOsx().hashCode()); hashCode = prime * hashCode + ((getDeviceTypeWeb() == null) ? 0 : getDeviceTypeWeb().hashCode()); hashCode = prime * hashCode + ((getDeviceTypeIos() == null) ? 0 : getDeviceTypeIos().hashCode()); hashCode = prime * hashCode + ((getDeviceTypeAndroid() == null) ? 0 : getDeviceTypeAndroid().hashCode()); hashCode = prime * hashCode + ((getDeviceTypeChromeOs() == null) ? 0 : getDeviceTypeChromeOs().hashCode()); hashCode = prime * hashCode + ((getDeviceTypeZeroClient() == null) ? 0 : getDeviceTypeZeroClient().hashCode()); hashCode = prime * hashCode + ((getDeviceTypeLinux() == null) ? 0 : getDeviceTypeLinux().hashCode()); return hashCode; } @Override public WorkspaceAccessProperties clone() { try { return (WorkspaceAccessProperties) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.workspaces.model.transform.WorkspaceAccessPropertiesMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy