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

com.amazonaws.services.alexaforbusiness.model.UpdateProfileRequest 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 2014-2019 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.AmazonWebServiceRequest;

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

    /**
     * 

* The ARN of the room profile to update. Required. *

*/ private String profileArn; /** *

* The updated name for the room profile. *

*/ private String profileName; /** *

* Sets the profile as default if selected. If this is missing, no update is done to the default status. *

*/ private Boolean isDefault; /** *

* The updated timezone for the room profile. *

*/ private String timezone; /** *

* The updated address for the room profile. *

*/ private String address; /** *

* The updated distance unit for the room profile. *

*/ private String distanceUnit; /** *

* The updated temperature unit for the room profile. *

*/ private String temperatureUnit; /** *

* The updated wake word for the room profile. *

*/ private String wakeWord; /** *

* Whether the setup mode of the profile is enabled. *

*/ private Boolean setupModeDisabled; /** *

* The updated maximum volume limit for the room profile. *

*/ private Integer maxVolumeLimit; /** *

* Whether the PSTN setting of the room profile is enabled. *

*/ private Boolean pSTNEnabled; /** *

* The ARN of the room profile to update. Required. *

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

* The ARN of the room profile to update. Required. *

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

* The ARN of the room profile to update. Required. *

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

* The updated name for the room profile. *

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

* The updated name for the room profile. *

* * @return The updated name for the room profile. */ public String getProfileName() { return this.profileName; } /** *

* The updated name for the room profile. *

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

* Sets the profile as default if selected. If this is missing, no update is done to the default status. *

* * @param isDefault * Sets the profile as default if selected. If this is missing, no update is done to the default status. */ public void setIsDefault(Boolean isDefault) { this.isDefault = isDefault; } /** *

* Sets the profile as default if selected. If this is missing, no update is done to the default status. *

* * @return Sets the profile as default if selected. If this is missing, no update is done to the default status. */ public Boolean getIsDefault() { return this.isDefault; } /** *

* Sets the profile as default if selected. If this is missing, no update is done to the default status. *

* * @param isDefault * Sets the profile as default if selected. If this is missing, no update is done to the default status. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProfileRequest withIsDefault(Boolean isDefault) { setIsDefault(isDefault); return this; } /** *

* Sets the profile as default if selected. If this is missing, no update is done to the default status. *

* * @return Sets the profile as default if selected. If this is missing, no update is done to the default status. */ public Boolean isDefault() { return this.isDefault; } /** *

* The updated timezone for the room profile. *

* * @param timezone * The updated timezone for the room profile. */ public void setTimezone(String timezone) { this.timezone = timezone; } /** *

* The updated timezone for the room profile. *

* * @return The updated timezone for the room profile. */ public String getTimezone() { return this.timezone; } /** *

* The updated timezone for the room profile. *

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

* The updated address for the room profile. *

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

* The updated address for the room profile. *

* * @return The updated address for the room profile. */ public String getAddress() { return this.address; } /** *

* The updated address for the room profile. *

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

* The updated distance unit for the room profile. *

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

* The updated distance unit for the room profile. *

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

* The updated distance unit for the room profile. *

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

* The updated distance unit for the room profile. *

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

* The updated temperature unit for the room profile. *

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

* The updated temperature unit for the room profile. *

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

* The updated temperature unit for the room profile. *

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

* The updated temperature unit for the room profile. *

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

* The updated wake word for the room profile. *

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

* The updated wake word for the room profile. *

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

* The updated wake word for the room profile. *

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

* The updated wake word for the room profile. *

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

* Whether the setup mode of the profile is enabled. *

* * @param setupModeDisabled * Whether the setup mode of the profile is enabled. */ public void setSetupModeDisabled(Boolean setupModeDisabled) { this.setupModeDisabled = setupModeDisabled; } /** *

* Whether the setup mode of the profile is enabled. *

* * @return Whether the setup mode of the profile is enabled. */ public Boolean getSetupModeDisabled() { return this.setupModeDisabled; } /** *

* Whether the setup mode of the profile is enabled. *

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

* Whether the setup mode of the profile is enabled. *

* * @return Whether the setup mode of the profile is enabled. */ public Boolean isSetupModeDisabled() { return this.setupModeDisabled; } /** *

* The updated maximum volume limit for the room profile. *

* * @param maxVolumeLimit * The updated maximum volume limit for the room profile. */ public void setMaxVolumeLimit(Integer maxVolumeLimit) { this.maxVolumeLimit = maxVolumeLimit; } /** *

* The updated maximum volume limit for the room profile. *

* * @return The updated maximum volume limit for the room profile. */ public Integer getMaxVolumeLimit() { return this.maxVolumeLimit; } /** *

* The updated maximum volume limit for the room profile. *

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

* Whether the PSTN setting of the room profile is enabled. *

* * @param pSTNEnabled * Whether the PSTN setting of the room profile is enabled. */ public void setPSTNEnabled(Boolean pSTNEnabled) { this.pSTNEnabled = pSTNEnabled; } /** *

* Whether the PSTN setting of the room profile is enabled. *

* * @return Whether the PSTN setting of the room profile is enabled. */ public Boolean getPSTNEnabled() { return this.pSTNEnabled; } /** *

* Whether the PSTN setting of the room profile is enabled. *

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

* Whether the PSTN setting of the room profile is enabled. *

* * @return Whether the PSTN setting of the room profile is enabled. */ public Boolean isPSTNEnabled() { return this.pSTNEnabled; } /** * 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 (getTimezone() != null) sb.append("Timezone: ").append(getTimezone()).append(","); if (getAddress() != null) sb.append("Address: ").append(getAddress()).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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateProfileRequest == false) return false; UpdateProfileRequest other = (UpdateProfileRequest) 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.getTimezone() == null ^ this.getTimezone() == null) return false; if (other.getTimezone() != null && other.getTimezone().equals(this.getTimezone()) == 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.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; 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 + ((getTimezone() == null) ? 0 : getTimezone().hashCode()); hashCode = prime * hashCode + ((getAddress() == null) ? 0 : getAddress().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()); return hashCode; } @Override public UpdateProfileRequest clone() { return (UpdateProfileRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy