com.amazonaws.services.workmail.model.UpdateMobileDeviceAccessRuleRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-workmail Show documentation
/*
* Copyright 2019-2024 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.workmail.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 UpdateMobileDeviceAccessRuleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The WorkMail organization under which the rule will be updated.
*
*/
private String organizationId;
/**
*
* The identifier of the rule to be updated.
*
*/
private String mobileDeviceAccessRuleId;
/**
*
* The updated rule name.
*
*/
private String name;
/**
*
* The updated rule description.
*
*/
private String description;
/**
*
* The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
*
*/
private String effect;
/**
*
* Device types that the updated rule will match.
*
*/
private java.util.List deviceTypes;
/**
*
* Device types that the updated rule will not match. All other device types will match.
*
*/
private java.util.List notDeviceTypes;
/**
*
* Device models that the updated rule will match.
*
*/
private java.util.List deviceModels;
/**
*
* Device models that the updated rule will not match. All other device models will match.
*
*/
private java.util.List notDeviceModels;
/**
*
* Device operating systems that the updated rule will match.
*
*/
private java.util.List deviceOperatingSystems;
/**
*
* Device operating systems that the updated rule will not match. All other device operating systems will
* match.
*
*/
private java.util.List notDeviceOperatingSystems;
/**
*
* User agents that the updated rule will match.
*
*/
private java.util.List deviceUserAgents;
/**
*
* User agents that the updated rule will not match. All other user agents will match.
*
*/
private java.util.List notDeviceUserAgents;
/**
*
* The WorkMail organization under which the rule will be updated.
*
*
* @param organizationId
* The WorkMail organization under which the rule will be updated.
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
/**
*
* The WorkMail organization under which the rule will be updated.
*
*
* @return The WorkMail organization under which the rule will be updated.
*/
public String getOrganizationId() {
return this.organizationId;
}
/**
*
* The WorkMail organization under which the rule will be updated.
*
*
* @param organizationId
* The WorkMail organization under which the rule will be updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withOrganizationId(String organizationId) {
setOrganizationId(organizationId);
return this;
}
/**
*
* The identifier of the rule to be updated.
*
*
* @param mobileDeviceAccessRuleId
* The identifier of the rule to be updated.
*/
public void setMobileDeviceAccessRuleId(String mobileDeviceAccessRuleId) {
this.mobileDeviceAccessRuleId = mobileDeviceAccessRuleId;
}
/**
*
* The identifier of the rule to be updated.
*
*
* @return The identifier of the rule to be updated.
*/
public String getMobileDeviceAccessRuleId() {
return this.mobileDeviceAccessRuleId;
}
/**
*
* The identifier of the rule to be updated.
*
*
* @param mobileDeviceAccessRuleId
* The identifier of the rule to be updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withMobileDeviceAccessRuleId(String mobileDeviceAccessRuleId) {
setMobileDeviceAccessRuleId(mobileDeviceAccessRuleId);
return this;
}
/**
*
* The updated rule name.
*
*
* @param name
* The updated rule name.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The updated rule name.
*
*
* @return The updated rule name.
*/
public String getName() {
return this.name;
}
/**
*
* The updated rule name.
*
*
* @param name
* The updated rule name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The updated rule description.
*
*
* @param description
* The updated rule description.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The updated rule description.
*
*
* @return The updated rule description.
*/
public String getDescription() {
return this.description;
}
/**
*
* The updated rule description.
*
*
* @param description
* The updated rule description.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
*
*
* @param effect
* The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
* @see MobileDeviceAccessRuleEffect
*/
public void setEffect(String effect) {
this.effect = effect;
}
/**
*
* The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
*
*
* @return The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
* @see MobileDeviceAccessRuleEffect
*/
public String getEffect() {
return this.effect;
}
/**
*
* The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
*
*
* @param effect
* The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MobileDeviceAccessRuleEffect
*/
public UpdateMobileDeviceAccessRuleRequest withEffect(String effect) {
setEffect(effect);
return this;
}
/**
*
* The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
*
*
* @param effect
* The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MobileDeviceAccessRuleEffect
*/
public UpdateMobileDeviceAccessRuleRequest withEffect(MobileDeviceAccessRuleEffect effect) {
this.effect = effect.toString();
return this;
}
/**
*
* Device types that the updated rule will match.
*
*
* @return Device types that the updated rule will match.
*/
public java.util.List getDeviceTypes() {
return deviceTypes;
}
/**
*
* Device types that the updated rule will match.
*
*
* @param deviceTypes
* Device types that the updated rule will match.
*/
public void setDeviceTypes(java.util.Collection deviceTypes) {
if (deviceTypes == null) {
this.deviceTypes = null;
return;
}
this.deviceTypes = new java.util.ArrayList(deviceTypes);
}
/**
*
* Device types that the updated rule will match.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDeviceTypes(java.util.Collection)} or {@link #withDeviceTypes(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param deviceTypes
* Device types that the updated rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withDeviceTypes(String... deviceTypes) {
if (this.deviceTypes == null) {
setDeviceTypes(new java.util.ArrayList(deviceTypes.length));
}
for (String ele : deviceTypes) {
this.deviceTypes.add(ele);
}
return this;
}
/**
*
* Device types that the updated rule will match.
*
*
* @param deviceTypes
* Device types that the updated rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withDeviceTypes(java.util.Collection deviceTypes) {
setDeviceTypes(deviceTypes);
return this;
}
/**
*
* Device types that the updated rule will not match. All other device types will match.
*
*
* @return Device types that the updated rule will not match. All other device types will match.
*/
public java.util.List getNotDeviceTypes() {
return notDeviceTypes;
}
/**
*
* Device types that the updated rule will not match. All other device types will match.
*
*
* @param notDeviceTypes
* Device types that the updated rule will not match. All other device types will match.
*/
public void setNotDeviceTypes(java.util.Collection notDeviceTypes) {
if (notDeviceTypes == null) {
this.notDeviceTypes = null;
return;
}
this.notDeviceTypes = new java.util.ArrayList(notDeviceTypes);
}
/**
*
* Device types that the updated rule will not match. All other device types will match.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNotDeviceTypes(java.util.Collection)} or {@link #withNotDeviceTypes(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param notDeviceTypes
* Device types that the updated rule will not match. All other device types will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withNotDeviceTypes(String... notDeviceTypes) {
if (this.notDeviceTypes == null) {
setNotDeviceTypes(new java.util.ArrayList(notDeviceTypes.length));
}
for (String ele : notDeviceTypes) {
this.notDeviceTypes.add(ele);
}
return this;
}
/**
*
* Device types that the updated rule will not match. All other device types will match.
*
*
* @param notDeviceTypes
* Device types that the updated rule will not match. All other device types will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withNotDeviceTypes(java.util.Collection notDeviceTypes) {
setNotDeviceTypes(notDeviceTypes);
return this;
}
/**
*
* Device models that the updated rule will match.
*
*
* @return Device models that the updated rule will match.
*/
public java.util.List getDeviceModels() {
return deviceModels;
}
/**
*
* Device models that the updated rule will match.
*
*
* @param deviceModels
* Device models that the updated rule will match.
*/
public void setDeviceModels(java.util.Collection deviceModels) {
if (deviceModels == null) {
this.deviceModels = null;
return;
}
this.deviceModels = new java.util.ArrayList(deviceModels);
}
/**
*
* Device models that the updated rule will match.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDeviceModels(java.util.Collection)} or {@link #withDeviceModels(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param deviceModels
* Device models that the updated rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withDeviceModels(String... deviceModels) {
if (this.deviceModels == null) {
setDeviceModels(new java.util.ArrayList(deviceModels.length));
}
for (String ele : deviceModels) {
this.deviceModels.add(ele);
}
return this;
}
/**
*
* Device models that the updated rule will match.
*
*
* @param deviceModels
* Device models that the updated rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withDeviceModels(java.util.Collection deviceModels) {
setDeviceModels(deviceModels);
return this;
}
/**
*
* Device models that the updated rule will not match. All other device models will match.
*
*
* @return Device models that the updated rule will not match. All other device models will match.
*/
public java.util.List getNotDeviceModels() {
return notDeviceModels;
}
/**
*
* Device models that the updated rule will not match. All other device models will match.
*
*
* @param notDeviceModels
* Device models that the updated rule will not match. All other device models will match.
*/
public void setNotDeviceModels(java.util.Collection notDeviceModels) {
if (notDeviceModels == null) {
this.notDeviceModels = null;
return;
}
this.notDeviceModels = new java.util.ArrayList(notDeviceModels);
}
/**
*
* Device models that the updated rule will not match. All other device models will match.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNotDeviceModels(java.util.Collection)} or {@link #withNotDeviceModels(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param notDeviceModels
* Device models that the updated rule will not match. All other device models will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withNotDeviceModels(String... notDeviceModels) {
if (this.notDeviceModels == null) {
setNotDeviceModels(new java.util.ArrayList(notDeviceModels.length));
}
for (String ele : notDeviceModels) {
this.notDeviceModels.add(ele);
}
return this;
}
/**
*
* Device models that the updated rule will not match. All other device models will match.
*
*
* @param notDeviceModels
* Device models that the updated rule will not match. All other device models will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withNotDeviceModels(java.util.Collection notDeviceModels) {
setNotDeviceModels(notDeviceModels);
return this;
}
/**
*
* Device operating systems that the updated rule will match.
*
*
* @return Device operating systems that the updated rule will match.
*/
public java.util.List getDeviceOperatingSystems() {
return deviceOperatingSystems;
}
/**
*
* Device operating systems that the updated rule will match.
*
*
* @param deviceOperatingSystems
* Device operating systems that the updated rule will match.
*/
public void setDeviceOperatingSystems(java.util.Collection deviceOperatingSystems) {
if (deviceOperatingSystems == null) {
this.deviceOperatingSystems = null;
return;
}
this.deviceOperatingSystems = new java.util.ArrayList(deviceOperatingSystems);
}
/**
*
* Device operating systems that the updated rule will match.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDeviceOperatingSystems(java.util.Collection)} or
* {@link #withDeviceOperatingSystems(java.util.Collection)} if you want to override the existing values.
*
*
* @param deviceOperatingSystems
* Device operating systems that the updated rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withDeviceOperatingSystems(String... deviceOperatingSystems) {
if (this.deviceOperatingSystems == null) {
setDeviceOperatingSystems(new java.util.ArrayList(deviceOperatingSystems.length));
}
for (String ele : deviceOperatingSystems) {
this.deviceOperatingSystems.add(ele);
}
return this;
}
/**
*
* Device operating systems that the updated rule will match.
*
*
* @param deviceOperatingSystems
* Device operating systems that the updated rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withDeviceOperatingSystems(java.util.Collection deviceOperatingSystems) {
setDeviceOperatingSystems(deviceOperatingSystems);
return this;
}
/**
*
* Device operating systems that the updated rule will not match. All other device operating systems will
* match.
*
*
* @return Device operating systems that the updated rule will not match. All other device operating systems
* will match.
*/
public java.util.List getNotDeviceOperatingSystems() {
return notDeviceOperatingSystems;
}
/**
*
* Device operating systems that the updated rule will not match. All other device operating systems will
* match.
*
*
* @param notDeviceOperatingSystems
* Device operating systems that the updated rule will not match. All other device operating systems
* will match.
*/
public void setNotDeviceOperatingSystems(java.util.Collection notDeviceOperatingSystems) {
if (notDeviceOperatingSystems == null) {
this.notDeviceOperatingSystems = null;
return;
}
this.notDeviceOperatingSystems = new java.util.ArrayList(notDeviceOperatingSystems);
}
/**
*
* Device operating systems that the updated rule will not match. All other device operating systems will
* match.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNotDeviceOperatingSystems(java.util.Collection)} or
* {@link #withNotDeviceOperatingSystems(java.util.Collection)} if you want to override the existing values.
*
*
* @param notDeviceOperatingSystems
* Device operating systems that the updated rule will not match. All other device operating systems
* will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withNotDeviceOperatingSystems(String... notDeviceOperatingSystems) {
if (this.notDeviceOperatingSystems == null) {
setNotDeviceOperatingSystems(new java.util.ArrayList(notDeviceOperatingSystems.length));
}
for (String ele : notDeviceOperatingSystems) {
this.notDeviceOperatingSystems.add(ele);
}
return this;
}
/**
*
* Device operating systems that the updated rule will not match. All other device operating systems will
* match.
*
*
* @param notDeviceOperatingSystems
* Device operating systems that the updated rule will not match. All other device operating systems
* will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withNotDeviceOperatingSystems(java.util.Collection notDeviceOperatingSystems) {
setNotDeviceOperatingSystems(notDeviceOperatingSystems);
return this;
}
/**
*
* User agents that the updated rule will match.
*
*
* @return User agents that the updated rule will match.
*/
public java.util.List getDeviceUserAgents() {
return deviceUserAgents;
}
/**
*
* User agents that the updated rule will match.
*
*
* @param deviceUserAgents
* User agents that the updated rule will match.
*/
public void setDeviceUserAgents(java.util.Collection deviceUserAgents) {
if (deviceUserAgents == null) {
this.deviceUserAgents = null;
return;
}
this.deviceUserAgents = new java.util.ArrayList(deviceUserAgents);
}
/**
*
* User agents that the updated rule will match.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDeviceUserAgents(java.util.Collection)} or {@link #withDeviceUserAgents(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param deviceUserAgents
* User agents that the updated rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withDeviceUserAgents(String... deviceUserAgents) {
if (this.deviceUserAgents == null) {
setDeviceUserAgents(new java.util.ArrayList(deviceUserAgents.length));
}
for (String ele : deviceUserAgents) {
this.deviceUserAgents.add(ele);
}
return this;
}
/**
*
* User agents that the updated rule will match.
*
*
* @param deviceUserAgents
* User agents that the updated rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withDeviceUserAgents(java.util.Collection deviceUserAgents) {
setDeviceUserAgents(deviceUserAgents);
return this;
}
/**
*
* User agents that the updated rule will not match. All other user agents will match.
*
*
* @return User agents that the updated rule will not match. All other user agents will match.
*/
public java.util.List getNotDeviceUserAgents() {
return notDeviceUserAgents;
}
/**
*
* User agents that the updated rule will not match. All other user agents will match.
*
*
* @param notDeviceUserAgents
* User agents that the updated rule will not match. All other user agents will match.
*/
public void setNotDeviceUserAgents(java.util.Collection notDeviceUserAgents) {
if (notDeviceUserAgents == null) {
this.notDeviceUserAgents = null;
return;
}
this.notDeviceUserAgents = new java.util.ArrayList(notDeviceUserAgents);
}
/**
*
* User agents that the updated rule will not match. All other user agents will match.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNotDeviceUserAgents(java.util.Collection)} or {@link #withNotDeviceUserAgents(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param notDeviceUserAgents
* User agents that the updated rule will not match. All other user agents will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withNotDeviceUserAgents(String... notDeviceUserAgents) {
if (this.notDeviceUserAgents == null) {
setNotDeviceUserAgents(new java.util.ArrayList(notDeviceUserAgents.length));
}
for (String ele : notDeviceUserAgents) {
this.notDeviceUserAgents.add(ele);
}
return this;
}
/**
*
* User agents that the updated rule will not match. All other user agents will match.
*
*
* @param notDeviceUserAgents
* User agents that the updated rule will not match. All other user agents will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateMobileDeviceAccessRuleRequest withNotDeviceUserAgents(java.util.Collection notDeviceUserAgents) {
setNotDeviceUserAgents(notDeviceUserAgents);
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 (getOrganizationId() != null)
sb.append("OrganizationId: ").append(getOrganizationId()).append(",");
if (getMobileDeviceAccessRuleId() != null)
sb.append("MobileDeviceAccessRuleId: ").append(getMobileDeviceAccessRuleId()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getEffect() != null)
sb.append("Effect: ").append(getEffect()).append(",");
if (getDeviceTypes() != null)
sb.append("DeviceTypes: ").append(getDeviceTypes()).append(",");
if (getNotDeviceTypes() != null)
sb.append("NotDeviceTypes: ").append(getNotDeviceTypes()).append(",");
if (getDeviceModels() != null)
sb.append("DeviceModels: ").append(getDeviceModels()).append(",");
if (getNotDeviceModels() != null)
sb.append("NotDeviceModels: ").append(getNotDeviceModels()).append(",");
if (getDeviceOperatingSystems() != null)
sb.append("DeviceOperatingSystems: ").append(getDeviceOperatingSystems()).append(",");
if (getNotDeviceOperatingSystems() != null)
sb.append("NotDeviceOperatingSystems: ").append(getNotDeviceOperatingSystems()).append(",");
if (getDeviceUserAgents() != null)
sb.append("DeviceUserAgents: ").append(getDeviceUserAgents()).append(",");
if (getNotDeviceUserAgents() != null)
sb.append("NotDeviceUserAgents: ").append(getNotDeviceUserAgents());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateMobileDeviceAccessRuleRequest == false)
return false;
UpdateMobileDeviceAccessRuleRequest other = (UpdateMobileDeviceAccessRuleRequest) obj;
if (other.getOrganizationId() == null ^ this.getOrganizationId() == null)
return false;
if (other.getOrganizationId() != null && other.getOrganizationId().equals(this.getOrganizationId()) == false)
return false;
if (other.getMobileDeviceAccessRuleId() == null ^ this.getMobileDeviceAccessRuleId() == null)
return false;
if (other.getMobileDeviceAccessRuleId() != null && other.getMobileDeviceAccessRuleId().equals(this.getMobileDeviceAccessRuleId()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getEffect() == null ^ this.getEffect() == null)
return false;
if (other.getEffect() != null && other.getEffect().equals(this.getEffect()) == false)
return false;
if (other.getDeviceTypes() == null ^ this.getDeviceTypes() == null)
return false;
if (other.getDeviceTypes() != null && other.getDeviceTypes().equals(this.getDeviceTypes()) == false)
return false;
if (other.getNotDeviceTypes() == null ^ this.getNotDeviceTypes() == null)
return false;
if (other.getNotDeviceTypes() != null && other.getNotDeviceTypes().equals(this.getNotDeviceTypes()) == false)
return false;
if (other.getDeviceModels() == null ^ this.getDeviceModels() == null)
return false;
if (other.getDeviceModels() != null && other.getDeviceModels().equals(this.getDeviceModels()) == false)
return false;
if (other.getNotDeviceModels() == null ^ this.getNotDeviceModels() == null)
return false;
if (other.getNotDeviceModels() != null && other.getNotDeviceModels().equals(this.getNotDeviceModels()) == false)
return false;
if (other.getDeviceOperatingSystems() == null ^ this.getDeviceOperatingSystems() == null)
return false;
if (other.getDeviceOperatingSystems() != null && other.getDeviceOperatingSystems().equals(this.getDeviceOperatingSystems()) == false)
return false;
if (other.getNotDeviceOperatingSystems() == null ^ this.getNotDeviceOperatingSystems() == null)
return false;
if (other.getNotDeviceOperatingSystems() != null && other.getNotDeviceOperatingSystems().equals(this.getNotDeviceOperatingSystems()) == false)
return false;
if (other.getDeviceUserAgents() == null ^ this.getDeviceUserAgents() == null)
return false;
if (other.getDeviceUserAgents() != null && other.getDeviceUserAgents().equals(this.getDeviceUserAgents()) == false)
return false;
if (other.getNotDeviceUserAgents() == null ^ this.getNotDeviceUserAgents() == null)
return false;
if (other.getNotDeviceUserAgents() != null && other.getNotDeviceUserAgents().equals(this.getNotDeviceUserAgents()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getOrganizationId() == null) ? 0 : getOrganizationId().hashCode());
hashCode = prime * hashCode + ((getMobileDeviceAccessRuleId() == null) ? 0 : getMobileDeviceAccessRuleId().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getEffect() == null) ? 0 : getEffect().hashCode());
hashCode = prime * hashCode + ((getDeviceTypes() == null) ? 0 : getDeviceTypes().hashCode());
hashCode = prime * hashCode + ((getNotDeviceTypes() == null) ? 0 : getNotDeviceTypes().hashCode());
hashCode = prime * hashCode + ((getDeviceModels() == null) ? 0 : getDeviceModels().hashCode());
hashCode = prime * hashCode + ((getNotDeviceModels() == null) ? 0 : getNotDeviceModels().hashCode());
hashCode = prime * hashCode + ((getDeviceOperatingSystems() == null) ? 0 : getDeviceOperatingSystems().hashCode());
hashCode = prime * hashCode + ((getNotDeviceOperatingSystems() == null) ? 0 : getNotDeviceOperatingSystems().hashCode());
hashCode = prime * hashCode + ((getDeviceUserAgents() == null) ? 0 : getDeviceUserAgents().hashCode());
hashCode = prime * hashCode + ((getNotDeviceUserAgents() == null) ? 0 : getNotDeviceUserAgents().hashCode());
return hashCode;
}
@Override
public UpdateMobileDeviceAccessRuleRequest clone() {
return (UpdateMobileDeviceAccessRuleRequest) super.clone();
}
}