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

com.amazonaws.services.workmail.model.MobileDeviceAccessRule Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2016-2021 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A rule that controls access to mobile devices for an Amazon WorkMail group. *

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

* The ID assigned to a mobile access rule. *

*/ private String mobileDeviceAccessRuleId; /** *

* The name of a mobile access rule. *

*/ private String name; /** *

* The description of a mobile access rule. *

*/ private String description; /** *

* The effect of the rule when it matches. Allowed values are ALLOW or DENY. *

*/ private String effect; /** *

* Device types that a rule will match. *

*/ private java.util.List deviceTypes; /** *

* Device types that a rule will not match. All other device types will match. *

*/ private java.util.List notDeviceTypes; /** *

* Device models that a rule will match. *

*/ private java.util.List deviceModels; /** *

* Device models that a rule will not match. All other device models will match. *

*/ private java.util.List notDeviceModels; /** *

* Device operating systems that a rule will match. *

*/ private java.util.List deviceOperatingSystems; /** *

* Device operating systems that a rule will not match. All other device types will match. *

*/ private java.util.List notDeviceOperatingSystems; /** *

* Device user agents that a rule will match. *

*/ private java.util.List deviceUserAgents; /** *

* Device user agents that a rule will not match. All other device user agents will match. *

*/ private java.util.List notDeviceUserAgents; /** *

* The date and time at which an access rule was created. *

*/ private java.util.Date dateCreated; /** *

* The date and time at which an access rule was modified. *

*/ private java.util.Date dateModified; /** *

* The ID assigned to a mobile access rule. *

* * @param mobileDeviceAccessRuleId * The ID assigned to a mobile access rule. */ public void setMobileDeviceAccessRuleId(String mobileDeviceAccessRuleId) { this.mobileDeviceAccessRuleId = mobileDeviceAccessRuleId; } /** *

* The ID assigned to a mobile access rule. *

* * @return The ID assigned to a mobile access rule. */ public String getMobileDeviceAccessRuleId() { return this.mobileDeviceAccessRuleId; } /** *

* The ID assigned to a mobile access rule. *

* * @param mobileDeviceAccessRuleId * The ID assigned to a mobile access rule. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule withMobileDeviceAccessRuleId(String mobileDeviceAccessRuleId) { setMobileDeviceAccessRuleId(mobileDeviceAccessRuleId); return this; } /** *

* The name of a mobile access rule. *

* * @param name * The name of a mobile access rule. */ public void setName(String name) { this.name = name; } /** *

* The name of a mobile access rule. *

* * @return The name of a mobile access rule. */ public String getName() { return this.name; } /** *

* The name of a mobile access rule. *

* * @param name * The name of a mobile access rule. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule withName(String name) { setName(name); return this; } /** *

* The description of a mobile access rule. *

* * @param description * The description of a mobile access rule. */ public void setDescription(String description) { this.description = description; } /** *

* The description of a mobile access rule. *

* * @return The description of a mobile access rule. */ public String getDescription() { return this.description; } /** *

* The description of a mobile access rule. *

* * @param description * The description of a mobile access rule. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule 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 MobileDeviceAccessRule 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 MobileDeviceAccessRule withEffect(MobileDeviceAccessRuleEffect effect) { this.effect = effect.toString(); return this; } /** *

* Device types that a rule will match. *

* * @return Device types that a rule will match. */ public java.util.List getDeviceTypes() { return deviceTypes; } /** *

* Device types that a rule will match. *

* * @param deviceTypes * Device types that a 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 a 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 a rule will match. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule 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 a rule will match. *

* * @param deviceTypes * Device types that a rule will match. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule withDeviceTypes(java.util.Collection deviceTypes) { setDeviceTypes(deviceTypes); return this; } /** *

* Device types that a rule will not match. All other device types will match. *

* * @return Device types that a rule will not match. All other device types will match. */ public java.util.List getNotDeviceTypes() { return notDeviceTypes; } /** *

* Device types that a rule will not match. All other device types will match. *

* * @param notDeviceTypes * Device types that a 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 a 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 a 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 MobileDeviceAccessRule 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 a rule will not match. All other device types will match. *

* * @param notDeviceTypes * Device types that a 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 MobileDeviceAccessRule withNotDeviceTypes(java.util.Collection notDeviceTypes) { setNotDeviceTypes(notDeviceTypes); return this; } /** *

* Device models that a rule will match. *

* * @return Device models that a rule will match. */ public java.util.List getDeviceModels() { return deviceModels; } /** *

* Device models that a rule will match. *

* * @param deviceModels * Device models that a 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 a 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 a rule will match. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule 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 a rule will match. *

* * @param deviceModels * Device models that a rule will match. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule withDeviceModels(java.util.Collection deviceModels) { setDeviceModels(deviceModels); return this; } /** *

* Device models that a rule will not match. All other device models will match. *

* * @return Device models that a rule will not match. All other device models will match. */ public java.util.List getNotDeviceModels() { return notDeviceModels; } /** *

* Device models that a rule will not match. All other device models will match. *

* * @param notDeviceModels * Device models that a 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 a 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 a 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 MobileDeviceAccessRule 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 a rule will not match. All other device models will match. *

* * @param notDeviceModels * Device models that a 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 MobileDeviceAccessRule withNotDeviceModels(java.util.Collection notDeviceModels) { setNotDeviceModels(notDeviceModels); return this; } /** *

* Device operating systems that a rule will match. *

* * @return Device operating systems that a rule will match. */ public java.util.List getDeviceOperatingSystems() { return deviceOperatingSystems; } /** *

* Device operating systems that a rule will match. *

* * @param deviceOperatingSystems * Device operating systems that a 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 a 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 a rule will match. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule 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 a rule will match. *

* * @param deviceOperatingSystems * Device operating systems that a rule will match. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule withDeviceOperatingSystems(java.util.Collection deviceOperatingSystems) { setDeviceOperatingSystems(deviceOperatingSystems); return this; } /** *

* Device operating systems that a rule will not match. All other device types will match. *

* * @return Device operating systems that a rule will not match. All other device types will match. */ public java.util.List getNotDeviceOperatingSystems() { return notDeviceOperatingSystems; } /** *

* Device operating systems that a rule will not match. All other device types will match. *

* * @param notDeviceOperatingSystems * Device operating systems that a rule will not match. All other device types 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 a rule will not match. All other device types 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 a 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 MobileDeviceAccessRule 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 a rule will not match. All other device types will match. *

* * @param notDeviceOperatingSystems * Device operating systems that a 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 MobileDeviceAccessRule withNotDeviceOperatingSystems(java.util.Collection notDeviceOperatingSystems) { setNotDeviceOperatingSystems(notDeviceOperatingSystems); return this; } /** *

* Device user agents that a rule will match. *

* * @return Device user agents that a rule will match. */ public java.util.List getDeviceUserAgents() { return deviceUserAgents; } /** *

* Device user agents that a rule will match. *

* * @param deviceUserAgents * Device user agents that a 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 a 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 a rule will match. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule 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 a rule will match. *

* * @param deviceUserAgents * Device user agents that a rule will match. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule withDeviceUserAgents(java.util.Collection deviceUserAgents) { setDeviceUserAgents(deviceUserAgents); return this; } /** *

* Device user agents that a rule will not match. All other device user agents will match. *

* * @return Device user agents that a rule will not match. All other device user agents will match. */ public java.util.List getNotDeviceUserAgents() { return notDeviceUserAgents; } /** *

* Device user agents that a rule will not match. All other device user agents will match. *

* * @param notDeviceUserAgents * Device user agents that a 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 a 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 a 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 MobileDeviceAccessRule 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 a rule will not match. All other device user agents will match. *

* * @param notDeviceUserAgents * Device user agents that a 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 MobileDeviceAccessRule withNotDeviceUserAgents(java.util.Collection notDeviceUserAgents) { setNotDeviceUserAgents(notDeviceUserAgents); return this; } /** *

* The date and time at which an access rule was created. *

* * @param dateCreated * The date and time at which an access rule was created. */ public void setDateCreated(java.util.Date dateCreated) { this.dateCreated = dateCreated; } /** *

* The date and time at which an access rule was created. *

* * @return The date and time at which an access rule was created. */ public java.util.Date getDateCreated() { return this.dateCreated; } /** *

* The date and time at which an access rule was created. *

* * @param dateCreated * The date and time at which an access rule was created. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule withDateCreated(java.util.Date dateCreated) { setDateCreated(dateCreated); return this; } /** *

* The date and time at which an access rule was modified. *

* * @param dateModified * The date and time at which an access rule was modified. */ public void setDateModified(java.util.Date dateModified) { this.dateModified = dateModified; } /** *

* The date and time at which an access rule was modified. *

* * @return The date and time at which an access rule was modified. */ public java.util.Date getDateModified() { return this.dateModified; } /** *

* The date and time at which an access rule was modified. *

* * @param dateModified * The date and time at which an access rule was modified. * @return Returns a reference to this object so that method calls can be chained together. */ public MobileDeviceAccessRule withDateModified(java.util.Date dateModified) { setDateModified(dateModified); 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 (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()).append(","); if (getDateCreated() != null) sb.append("DateCreated: ").append(getDateCreated()).append(","); if (getDateModified() != null) sb.append("DateModified: ").append(getDateModified()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MobileDeviceAccessRule == false) return false; MobileDeviceAccessRule other = (MobileDeviceAccessRule) obj; 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; if (other.getDateCreated() == null ^ this.getDateCreated() == null) return false; if (other.getDateCreated() != null && other.getDateCreated().equals(this.getDateCreated()) == false) return false; if (other.getDateModified() == null ^ this.getDateModified() == null) return false; if (other.getDateModified() != null && other.getDateModified().equals(this.getDateModified()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; 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()); hashCode = prime * hashCode + ((getDateCreated() == null) ? 0 : getDateCreated().hashCode()); hashCode = prime * hashCode + ((getDateModified() == null) ? 0 : getDateModified().hashCode()); return hashCode; } @Override public MobileDeviceAccessRule clone() { try { return (MobileDeviceAccessRule) 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.workmail.model.transform.MobileDeviceAccessRuleMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy