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

com.amazonaws.services.alexaforbusiness.model.Profile Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Alexa For Business module holds the client classes that are used for communicating with Alexa For Business Service

There is a newer version: 1.12.731
Show newest version
/*
 * Copyright 2013-2018 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.alexaforbusiness.model;

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

/**
 * 

* A room profile with attributes. *

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

* The ARN of a room profile. *

*/ private String profileArn; /** *

* The name of a room profile. *

*/ private String profileName; /** *

* Retrieves if the profile is default or not. *

*/ private Boolean isDefault; /** *

* The address of a room profile. *

*/ private String address; /** *

* The time zone of a room profile. *

*/ private String timezone; /** *

* The distance unit of a room profile. *

*/ private String distanceUnit; /** *

* The temperature unit of a room profile. *

*/ private String temperatureUnit; /** *

* The wake word of a room profile. *

*/ private String wakeWord; /** *

* The setup mode of a room profile. *

*/ private Boolean setupModeDisabled; /** *

* The max volume limit of a room profile. *

*/ private Integer maxVolumeLimit; /** *

* The PSTN setting of a room profile. *

*/ private Boolean pSTNEnabled; /** *

* The ARN of the address book. *

*/ private String addressBookArn; /** *

* The ARN of a room profile. *

* * @param profileArn * The ARN of a room profile. */ public void setProfileArn(String profileArn) { this.profileArn = profileArn; } /** *

* The ARN of a room profile. *

* * @return The ARN of a room profile. */ public String getProfileArn() { return this.profileArn; } /** *

* The ARN of a room profile. *

* * @param profileArn * The ARN of a room profile. * @return Returns a reference to this object so that method calls can be chained together. */ public Profile withProfileArn(String profileArn) { setProfileArn(profileArn); return this; } /** *

* The name of a room profile. *

* * @param profileName * The name of a room profile. */ public void setProfileName(String profileName) { this.profileName = profileName; } /** *

* The name of a room profile. *

* * @return The name of a room profile. */ public String getProfileName() { return this.profileName; } /** *

* The name of a room profile. *

* * @param profileName * The name of a room profile. * @return Returns a reference to this object so that method calls can be chained together. */ public Profile withProfileName(String profileName) { setProfileName(profileName); return this; } /** *

* Retrieves if the profile is default or not. *

* * @param isDefault * Retrieves if the profile is default or not. */ public void setIsDefault(Boolean isDefault) { this.isDefault = isDefault; } /** *

* Retrieves if the profile is default or not. *

* * @return Retrieves if the profile is default or not. */ public Boolean getIsDefault() { return this.isDefault; } /** *

* Retrieves if the profile is default or not. *

* * @param isDefault * Retrieves if the profile is default or not. * @return Returns a reference to this object so that method calls can be chained together. */ public Profile withIsDefault(Boolean isDefault) { setIsDefault(isDefault); return this; } /** *

* Retrieves if the profile is default or not. *

* * @return Retrieves if the profile is default or not. */ public Boolean isDefault() { return this.isDefault; } /** *

* The address of a room profile. *

* * @param address * The address of a room profile. */ public void setAddress(String address) { this.address = address; } /** *

* The address of a room profile. *

* * @return The address of a room profile. */ public String getAddress() { return this.address; } /** *

* The address of a room profile. *

* * @param address * The address of a room profile. * @return Returns a reference to this object so that method calls can be chained together. */ public Profile withAddress(String address) { setAddress(address); return this; } /** *

* The time zone of a room profile. *

* * @param timezone * The time zone of a room profile. */ public void setTimezone(String timezone) { this.timezone = timezone; } /** *

* The time zone of a room profile. *

* * @return The time zone of a room profile. */ public String getTimezone() { return this.timezone; } /** *

* The time zone of a room profile. *

* * @param timezone * The time zone of a room profile. * @return Returns a reference to this object so that method calls can be chained together. */ public Profile withTimezone(String timezone) { setTimezone(timezone); return this; } /** *

* The distance unit of a room profile. *

* * @param distanceUnit * The distance unit of a room profile. * @see DistanceUnit */ public void setDistanceUnit(String distanceUnit) { this.distanceUnit = distanceUnit; } /** *

* The distance unit of a room profile. *

* * @return The distance unit of a room profile. * @see DistanceUnit */ public String getDistanceUnit() { return this.distanceUnit; } /** *

* The distance unit of a room profile. *

* * @param distanceUnit * The distance unit of a room profile. * @return Returns a reference to this object so that method calls can be chained together. * @see DistanceUnit */ public Profile withDistanceUnit(String distanceUnit) { setDistanceUnit(distanceUnit); return this; } /** *

* The distance unit of a room profile. *

* * @param distanceUnit * The distance unit of a room profile. * @return Returns a reference to this object so that method calls can be chained together. * @see DistanceUnit */ public Profile withDistanceUnit(DistanceUnit distanceUnit) { this.distanceUnit = distanceUnit.toString(); return this; } /** *

* The temperature unit of a room profile. *

* * @param temperatureUnit * The temperature unit of a room profile. * @see TemperatureUnit */ public void setTemperatureUnit(String temperatureUnit) { this.temperatureUnit = temperatureUnit; } /** *

* The temperature unit of a room profile. *

* * @return The temperature unit of a room profile. * @see TemperatureUnit */ public String getTemperatureUnit() { return this.temperatureUnit; } /** *

* The temperature unit of a room profile. *

* * @param temperatureUnit * The temperature unit of a room profile. * @return Returns a reference to this object so that method calls can be chained together. * @see TemperatureUnit */ public Profile withTemperatureUnit(String temperatureUnit) { setTemperatureUnit(temperatureUnit); return this; } /** *

* The temperature unit of a room profile. *

* * @param temperatureUnit * The temperature unit of a room profile. * @return Returns a reference to this object so that method calls can be chained together. * @see TemperatureUnit */ public Profile withTemperatureUnit(TemperatureUnit temperatureUnit) { this.temperatureUnit = temperatureUnit.toString(); return this; } /** *

* The wake word of a room profile. *

* * @param wakeWord * The wake word of a room profile. * @see WakeWord */ public void setWakeWord(String wakeWord) { this.wakeWord = wakeWord; } /** *

* The wake word of a room profile. *

* * @return The wake word of a room profile. * @see WakeWord */ public String getWakeWord() { return this.wakeWord; } /** *

* The wake word of a room profile. *

* * @param wakeWord * The wake word of a room profile. * @return Returns a reference to this object so that method calls can be chained together. * @see WakeWord */ public Profile withWakeWord(String wakeWord) { setWakeWord(wakeWord); return this; } /** *

* The wake word of a room profile. *

* * @param wakeWord * The wake word of a room profile. * @return Returns a reference to this object so that method calls can be chained together. * @see WakeWord */ public Profile withWakeWord(WakeWord wakeWord) { this.wakeWord = wakeWord.toString(); return this; } /** *

* The setup mode of a room profile. *

* * @param setupModeDisabled * The setup mode of a room profile. */ public void setSetupModeDisabled(Boolean setupModeDisabled) { this.setupModeDisabled = setupModeDisabled; } /** *

* The setup mode of a room profile. *

* * @return The setup mode of a room profile. */ public Boolean getSetupModeDisabled() { return this.setupModeDisabled; } /** *

* The setup mode of a room profile. *

* * @param setupModeDisabled * The setup mode of a room profile. * @return Returns a reference to this object so that method calls can be chained together. */ public Profile withSetupModeDisabled(Boolean setupModeDisabled) { setSetupModeDisabled(setupModeDisabled); return this; } /** *

* The setup mode of a room profile. *

* * @return The setup mode of a room profile. */ public Boolean isSetupModeDisabled() { return this.setupModeDisabled; } /** *

* The max volume limit of a room profile. *

* * @param maxVolumeLimit * The max volume limit of a room profile. */ public void setMaxVolumeLimit(Integer maxVolumeLimit) { this.maxVolumeLimit = maxVolumeLimit; } /** *

* The max volume limit of a room profile. *

* * @return The max volume limit of a room profile. */ public Integer getMaxVolumeLimit() { return this.maxVolumeLimit; } /** *

* The max volume limit of a room profile. *

* * @param maxVolumeLimit * The max volume limit of a room profile. * @return Returns a reference to this object so that method calls can be chained together. */ public Profile withMaxVolumeLimit(Integer maxVolumeLimit) { setMaxVolumeLimit(maxVolumeLimit); return this; } /** *

* The PSTN setting of a room profile. *

* * @param pSTNEnabled * The PSTN setting of a room profile. */ public void setPSTNEnabled(Boolean pSTNEnabled) { this.pSTNEnabled = pSTNEnabled; } /** *

* The PSTN setting of a room profile. *

* * @return The PSTN setting of a room profile. */ public Boolean getPSTNEnabled() { return this.pSTNEnabled; } /** *

* The PSTN setting of a room profile. *

* * @param pSTNEnabled * The PSTN setting of a room profile. * @return Returns a reference to this object so that method calls can be chained together. */ public Profile withPSTNEnabled(Boolean pSTNEnabled) { setPSTNEnabled(pSTNEnabled); return this; } /** *

* The PSTN setting of a room profile. *

* * @return The PSTN setting of a room profile. */ public Boolean isPSTNEnabled() { return this.pSTNEnabled; } /** *

* The ARN of the address book. *

* * @param addressBookArn * The ARN of the address book. */ public void setAddressBookArn(String addressBookArn) { this.addressBookArn = addressBookArn; } /** *

* The ARN of the address book. *

* * @return The ARN of the address book. */ public String getAddressBookArn() { return this.addressBookArn; } /** *

* The ARN of the address book. *

* * @param addressBookArn * The ARN of the address book. * @return Returns a reference to this object so that method calls can be chained together. */ public Profile withAddressBookArn(String addressBookArn) { setAddressBookArn(addressBookArn); 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 (getProfileArn() != null) sb.append("ProfileArn: ").append(getProfileArn()).append(","); if (getProfileName() != null) sb.append("ProfileName: ").append(getProfileName()).append(","); if (getIsDefault() != null) sb.append("IsDefault: ").append(getIsDefault()).append(","); if (getAddress() != null) sb.append("Address: ").append(getAddress()).append(","); if (getTimezone() != null) sb.append("Timezone: ").append(getTimezone()).append(","); if (getDistanceUnit() != null) sb.append("DistanceUnit: ").append(getDistanceUnit()).append(","); if (getTemperatureUnit() != null) sb.append("TemperatureUnit: ").append(getTemperatureUnit()).append(","); if (getWakeWord() != null) sb.append("WakeWord: ").append(getWakeWord()).append(","); if (getSetupModeDisabled() != null) sb.append("SetupModeDisabled: ").append(getSetupModeDisabled()).append(","); if (getMaxVolumeLimit() != null) sb.append("MaxVolumeLimit: ").append(getMaxVolumeLimit()).append(","); if (getPSTNEnabled() != null) sb.append("PSTNEnabled: ").append(getPSTNEnabled()).append(","); if (getAddressBookArn() != null) sb.append("AddressBookArn: ").append(getAddressBookArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Profile == false) return false; Profile other = (Profile) obj; if (other.getProfileArn() == null ^ this.getProfileArn() == null) return false; if (other.getProfileArn() != null && other.getProfileArn().equals(this.getProfileArn()) == false) return false; if (other.getProfileName() == null ^ this.getProfileName() == null) return false; if (other.getProfileName() != null && other.getProfileName().equals(this.getProfileName()) == false) return false; if (other.getIsDefault() == null ^ this.getIsDefault() == null) return false; if (other.getIsDefault() != null && other.getIsDefault().equals(this.getIsDefault()) == false) return false; if (other.getAddress() == null ^ this.getAddress() == null) return false; if (other.getAddress() != null && other.getAddress().equals(this.getAddress()) == false) return false; if (other.getTimezone() == null ^ this.getTimezone() == null) return false; if (other.getTimezone() != null && other.getTimezone().equals(this.getTimezone()) == false) return false; if (other.getDistanceUnit() == null ^ this.getDistanceUnit() == null) return false; if (other.getDistanceUnit() != null && other.getDistanceUnit().equals(this.getDistanceUnit()) == false) return false; if (other.getTemperatureUnit() == null ^ this.getTemperatureUnit() == null) return false; if (other.getTemperatureUnit() != null && other.getTemperatureUnit().equals(this.getTemperatureUnit()) == false) return false; if (other.getWakeWord() == null ^ this.getWakeWord() == null) return false; if (other.getWakeWord() != null && other.getWakeWord().equals(this.getWakeWord()) == false) return false; if (other.getSetupModeDisabled() == null ^ this.getSetupModeDisabled() == null) return false; if (other.getSetupModeDisabled() != null && other.getSetupModeDisabled().equals(this.getSetupModeDisabled()) == false) return false; if (other.getMaxVolumeLimit() == null ^ this.getMaxVolumeLimit() == null) return false; if (other.getMaxVolumeLimit() != null && other.getMaxVolumeLimit().equals(this.getMaxVolumeLimit()) == false) return false; if (other.getPSTNEnabled() == null ^ this.getPSTNEnabled() == null) return false; if (other.getPSTNEnabled() != null && other.getPSTNEnabled().equals(this.getPSTNEnabled()) == false) return false; if (other.getAddressBookArn() == null ^ this.getAddressBookArn() == null) return false; if (other.getAddressBookArn() != null && other.getAddressBookArn().equals(this.getAddressBookArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProfileArn() == null) ? 0 : getProfileArn().hashCode()); hashCode = prime * hashCode + ((getProfileName() == null) ? 0 : getProfileName().hashCode()); hashCode = prime * hashCode + ((getIsDefault() == null) ? 0 : getIsDefault().hashCode()); hashCode = prime * hashCode + ((getAddress() == null) ? 0 : getAddress().hashCode()); hashCode = prime * hashCode + ((getTimezone() == null) ? 0 : getTimezone().hashCode()); hashCode = prime * hashCode + ((getDistanceUnit() == null) ? 0 : getDistanceUnit().hashCode()); hashCode = prime * hashCode + ((getTemperatureUnit() == null) ? 0 : getTemperatureUnit().hashCode()); hashCode = prime * hashCode + ((getWakeWord() == null) ? 0 : getWakeWord().hashCode()); hashCode = prime * hashCode + ((getSetupModeDisabled() == null) ? 0 : getSetupModeDisabled().hashCode()); hashCode = prime * hashCode + ((getMaxVolumeLimit() == null) ? 0 : getMaxVolumeLimit().hashCode()); hashCode = prime * hashCode + ((getPSTNEnabled() == null) ? 0 : getPSTNEnabled().hashCode()); hashCode = prime * hashCode + ((getAddressBookArn() == null) ? 0 : getAddressBookArn().hashCode()); return hashCode; } @Override public Profile clone() { try { return (Profile) 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.alexaforbusiness.model.transform.ProfileMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy