com.amazonaws.services.workmail.model.CreateMobileDeviceAccessRuleRequest 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 CreateMobileDeviceAccessRuleRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The WorkMail organization under which the rule will be created.
*
*/
private String organizationId;
/**
*
* The idempotency token for the client request.
*
*/
private String clientToken;
/**
*
* The rule name.
*
*/
private String name;
/**
*
* The 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 rule will match.
*
*/
private java.util.List deviceTypes;
/**
*
* Device types that the rule will not match. All other device types will match.
*
*/
private java.util.List notDeviceTypes;
/**
*
* Device models that the rule will match.
*
*/
private java.util.List deviceModels;
/**
*
* Device models that the rule will not match. All other device models will match.
*
*/
private java.util.List notDeviceModels;
/**
*
* Device operating systems that the rule will match.
*
*/
private java.util.List deviceOperatingSystems;
/**
*
* Device operating systems that the rule will not match. All other device operating systems will match.
*
*/
private java.util.List notDeviceOperatingSystems;
/**
*
* Device user agents that the rule will match.
*
*/
private java.util.List deviceUserAgents;
/**
*
* Device user agents that the rule will not match. All other device user agents will match.
*
*/
private java.util.List notDeviceUserAgents;
/**
*
* The WorkMail organization under which the rule will be created.
*
*
* @param organizationId
* The WorkMail organization under which the rule will be created.
*/
public void setOrganizationId(String organizationId) {
this.organizationId = organizationId;
}
/**
*
* The WorkMail organization under which the rule will be created.
*
*
* @return The WorkMail organization under which the rule will be created.
*/
public String getOrganizationId() {
return this.organizationId;
}
/**
*
* The WorkMail organization under which the rule will be created.
*
*
* @param organizationId
* The WorkMail organization under which the rule will be created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest withOrganizationId(String organizationId) {
setOrganizationId(organizationId);
return this;
}
/**
*
* The idempotency token for the client request.
*
*
* @param clientToken
* The idempotency token for the client request.
*/
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
/**
*
* The idempotency token for the client request.
*
*
* @return The idempotency token for the client request.
*/
public String getClientToken() {
return this.clientToken;
}
/**
*
* The idempotency token for the client request.
*
*
* @param clientToken
* The idempotency token for the client request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest withClientToken(String clientToken) {
setClientToken(clientToken);
return this;
}
/**
*
* The rule name.
*
*
* @param name
* The rule name.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The rule name.
*
*
* @return The rule name.
*/
public String getName() {
return this.name;
}
/**
*
* The rule name.
*
*
* @param name
* The rule name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The rule description.
*
*
* @param description
* The rule description.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The rule description.
*
*
* @return The rule description.
*/
public String getDescription() {
return this.description;
}
/**
*
* The rule description.
*
*
* @param description
* The rule description.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest 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 CreateMobileDeviceAccessRuleRequest 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 CreateMobileDeviceAccessRuleRequest withEffect(MobileDeviceAccessRuleEffect effect) {
this.effect = effect.toString();
return this;
}
/**
*
* Device types that the rule will match.
*
*
* @return Device types that the rule will match.
*/
public java.util.List getDeviceTypes() {
return deviceTypes;
}
/**
*
* Device types that the rule will match.
*
*
* @param deviceTypes
* Device types that the 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 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 rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest 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 rule will match.
*
*
* @param deviceTypes
* Device types that the rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest withDeviceTypes(java.util.Collection deviceTypes) {
setDeviceTypes(deviceTypes);
return this;
}
/**
*
* Device types that the rule will not match. All other device types will match.
*
*
* @return Device types that the rule will not match. All other device types will match.
*/
public java.util.List getNotDeviceTypes() {
return notDeviceTypes;
}
/**
*
* Device types that the rule will not match. All other device types will match.
*
*
* @param notDeviceTypes
* Device types that the 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 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 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 CreateMobileDeviceAccessRuleRequest 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 rule will not match. All other device types will match.
*
*
* @param notDeviceTypes
* Device types that the 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 CreateMobileDeviceAccessRuleRequest withNotDeviceTypes(java.util.Collection notDeviceTypes) {
setNotDeviceTypes(notDeviceTypes);
return this;
}
/**
*
* Device models that the rule will match.
*
*
* @return Device models that the rule will match.
*/
public java.util.List getDeviceModels() {
return deviceModels;
}
/**
*
* Device models that the rule will match.
*
*
* @param deviceModels
* Device models that the 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 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 rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest 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 rule will match.
*
*
* @param deviceModels
* Device models that the rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest withDeviceModels(java.util.Collection deviceModels) {
setDeviceModels(deviceModels);
return this;
}
/**
*
* Device models that the rule will not match. All other device models will match.
*
*
* @return Device models that the rule will not match. All other device models will match.
*/
public java.util.List getNotDeviceModels() {
return notDeviceModels;
}
/**
*
* Device models that the rule will not match. All other device models will match.
*
*
* @param notDeviceModels
* Device models that the 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 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 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 CreateMobileDeviceAccessRuleRequest 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 rule will not match. All other device models will match.
*
*
* @param notDeviceModels
* Device models that the 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 CreateMobileDeviceAccessRuleRequest withNotDeviceModels(java.util.Collection notDeviceModels) {
setNotDeviceModels(notDeviceModels);
return this;
}
/**
*
* Device operating systems that the rule will match.
*
*
* @return Device operating systems that the rule will match.
*/
public java.util.List getDeviceOperatingSystems() {
return deviceOperatingSystems;
}
/**
*
* Device operating systems that the rule will match.
*
*
* @param deviceOperatingSystems
* Device operating systems that the 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 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 rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest 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 rule will match.
*
*
* @param deviceOperatingSystems
* Device operating systems that the rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest withDeviceOperatingSystems(java.util.Collection deviceOperatingSystems) {
setDeviceOperatingSystems(deviceOperatingSystems);
return this;
}
/**
*
* Device operating systems that the rule will not match. All other device operating systems will match.
*
*
* @return Device operating systems that the rule will not match. All other device operating systems will
* match.
*/
public java.util.List getNotDeviceOperatingSystems() {
return notDeviceOperatingSystems;
}
/**
*
* Device operating systems that the rule will not match. All other device operating systems will match.
*
*
* @param notDeviceOperatingSystems
* Device operating systems that the 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 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 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 CreateMobileDeviceAccessRuleRequest 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 rule will not match. All other device operating systems will match.
*
*
* @param notDeviceOperatingSystems
* Device operating systems that the 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 CreateMobileDeviceAccessRuleRequest withNotDeviceOperatingSystems(java.util.Collection notDeviceOperatingSystems) {
setNotDeviceOperatingSystems(notDeviceOperatingSystems);
return this;
}
/**
*
* Device user agents that the rule will match.
*
*
* @return Device user agents that the rule will match.
*/
public java.util.List getDeviceUserAgents() {
return deviceUserAgents;
}
/**
*
* Device user agents that the rule will match.
*
*
* @param deviceUserAgents
* Device user agents that the rule will match.
*/
public void setDeviceUserAgents(java.util.Collection deviceUserAgents) {
if (deviceUserAgents == null) {
this.deviceUserAgents = null;
return;
}
this.deviceUserAgents = new java.util.ArrayList(deviceUserAgents);
}
/**
*
* Device user agents that the 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
* Device user agents that the rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest withDeviceUserAgents(String... deviceUserAgents) {
if (this.deviceUserAgents == null) {
setDeviceUserAgents(new java.util.ArrayList(deviceUserAgents.length));
}
for (String ele : deviceUserAgents) {
this.deviceUserAgents.add(ele);
}
return this;
}
/**
*
* Device user agents that the rule will match.
*
*
* @param deviceUserAgents
* Device user agents that the rule will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest withDeviceUserAgents(java.util.Collection deviceUserAgents) {
setDeviceUserAgents(deviceUserAgents);
return this;
}
/**
*
* Device user agents that the rule will not match. All other device user agents will match.
*
*
* @return Device user agents that the rule will not match. All other device user agents will match.
*/
public java.util.List getNotDeviceUserAgents() {
return notDeviceUserAgents;
}
/**
*
* Device user agents that the rule will not match. All other device user agents will match.
*
*
* @param notDeviceUserAgents
* Device user agents that the rule will not match. All other device 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);
}
/**
*
* Device user agents that the rule will not match. All other device 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
* Device user agents that the rule will not match. All other device user agents will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest withNotDeviceUserAgents(String... notDeviceUserAgents) {
if (this.notDeviceUserAgents == null) {
setNotDeviceUserAgents(new java.util.ArrayList(notDeviceUserAgents.length));
}
for (String ele : notDeviceUserAgents) {
this.notDeviceUserAgents.add(ele);
}
return this;
}
/**
*
* Device user agents that the rule will not match. All other device user agents will match.
*
*
* @param notDeviceUserAgents
* Device user agents that the rule will not match. All other device user agents will match.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMobileDeviceAccessRuleRequest 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 (getClientToken() != null)
sb.append("ClientToken: ").append(getClientToken()).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 CreateMobileDeviceAccessRuleRequest == false)
return false;
CreateMobileDeviceAccessRuleRequest other = (CreateMobileDeviceAccessRuleRequest) obj;
if (other.getOrganizationId() == null ^ this.getOrganizationId() == null)
return false;
if (other.getOrganizationId() != null && other.getOrganizationId().equals(this.getOrganizationId()) == false)
return false;
if (other.getClientToken() == null ^ this.getClientToken() == null)
return false;
if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == 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 + ((getClientToken() == null) ? 0 : getClientToken().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 CreateMobileDeviceAccessRuleRequest clone() {
return (CreateMobileDeviceAccessRuleRequest) super.clone();
}
}