
com.amazonaws.services.iot.model.UpdateSecurityProfileRequest Maven / Gradle / Ivy
/*
* Copyright 2015-2020 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.iot.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateSecurityProfileRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the security profile you want to update.
*
*/
private String securityProfileName;
/**
*
* A description of the security profile.
*
*/
private String securityProfileDescription;
/**
*
* Specifies the behaviors that, when violated by a device (thing), cause an alert.
*
*/
private java.util.List behaviors;
/**
*
* Where the alerts are sent. (Alerts are always sent to the console.)
*
*/
private java.util.Map alertTargets;
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors
, but it is also retained for any metric specified here.
*
*
* Note: This API field is deprecated. Please use
* UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
*
*/
@Deprecated
private java.util.List additionalMetricsToRetain;
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors, but it is also retained for any metric specified here.
*
*/
private java.util.List additionalMetricsToRetainV2;
/**
*
* If true, delete all behaviors
defined for this security profile. If any behaviors
are
* defined in the current invocation, an exception occurs.
*
*/
private Boolean deleteBehaviors;
/**
*
* If true, delete all alertTargets
defined for this security profile. If any alertTargets
* are defined in the current invocation, an exception occurs.
*
*/
private Boolean deleteAlertTargets;
/**
*
* If true, delete all additionalMetricsToRetain
defined for this security profile. If any
* additionalMetricsToRetain
are defined in the current invocation, an exception occurs.
*
*/
private Boolean deleteAdditionalMetricsToRetain;
/**
*
* The expected version of the security profile. A new version is generated whenever the security profile is
* updated. If you specify a value that is different from the actual version, a
* VersionConflictException
is thrown.
*
*/
private Long expectedVersion;
/**
*
* The name of the security profile you want to update.
*
*
* @param securityProfileName
* The name of the security profile you want to update.
*/
public void setSecurityProfileName(String securityProfileName) {
this.securityProfileName = securityProfileName;
}
/**
*
* The name of the security profile you want to update.
*
*
* @return The name of the security profile you want to update.
*/
public String getSecurityProfileName() {
return this.securityProfileName;
}
/**
*
* The name of the security profile you want to update.
*
*
* @param securityProfileName
* The name of the security profile you want to update.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withSecurityProfileName(String securityProfileName) {
setSecurityProfileName(securityProfileName);
return this;
}
/**
*
* A description of the security profile.
*
*
* @param securityProfileDescription
* A description of the security profile.
*/
public void setSecurityProfileDescription(String securityProfileDescription) {
this.securityProfileDescription = securityProfileDescription;
}
/**
*
* A description of the security profile.
*
*
* @return A description of the security profile.
*/
public String getSecurityProfileDescription() {
return this.securityProfileDescription;
}
/**
*
* A description of the security profile.
*
*
* @param securityProfileDescription
* A description of the security profile.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withSecurityProfileDescription(String securityProfileDescription) {
setSecurityProfileDescription(securityProfileDescription);
return this;
}
/**
*
* Specifies the behaviors that, when violated by a device (thing), cause an alert.
*
*
* @return Specifies the behaviors that, when violated by a device (thing), cause an alert.
*/
public java.util.List getBehaviors() {
return behaviors;
}
/**
*
* Specifies the behaviors that, when violated by a device (thing), cause an alert.
*
*
* @param behaviors
* Specifies the behaviors that, when violated by a device (thing), cause an alert.
*/
public void setBehaviors(java.util.Collection behaviors) {
if (behaviors == null) {
this.behaviors = null;
return;
}
this.behaviors = new java.util.ArrayList(behaviors);
}
/**
*
* Specifies the behaviors that, when violated by a device (thing), cause an alert.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setBehaviors(java.util.Collection)} or {@link #withBehaviors(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param behaviors
* Specifies the behaviors that, when violated by a device (thing), cause an alert.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withBehaviors(Behavior... behaviors) {
if (this.behaviors == null) {
setBehaviors(new java.util.ArrayList(behaviors.length));
}
for (Behavior ele : behaviors) {
this.behaviors.add(ele);
}
return this;
}
/**
*
* Specifies the behaviors that, when violated by a device (thing), cause an alert.
*
*
* @param behaviors
* Specifies the behaviors that, when violated by a device (thing), cause an alert.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withBehaviors(java.util.Collection behaviors) {
setBehaviors(behaviors);
return this;
}
/**
*
* Where the alerts are sent. (Alerts are always sent to the console.)
*
*
* @return Where the alerts are sent. (Alerts are always sent to the console.)
*/
public java.util.Map getAlertTargets() {
return alertTargets;
}
/**
*
* Where the alerts are sent. (Alerts are always sent to the console.)
*
*
* @param alertTargets
* Where the alerts are sent. (Alerts are always sent to the console.)
*/
public void setAlertTargets(java.util.Map alertTargets) {
this.alertTargets = alertTargets;
}
/**
*
* Where the alerts are sent. (Alerts are always sent to the console.)
*
*
* @param alertTargets
* Where the alerts are sent. (Alerts are always sent to the console.)
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withAlertTargets(java.util.Map alertTargets) {
setAlertTargets(alertTargets);
return this;
}
/**
* Add a single AlertTargets entry
*
* @see UpdateSecurityProfileRequest#withAlertTargets
* @returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest addAlertTargetsEntry(String key, AlertTarget value) {
if (null == this.alertTargets) {
this.alertTargets = new java.util.HashMap();
}
if (this.alertTargets.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.alertTargets.put(key, value);
return this;
}
/**
* Removes all the entries added into AlertTargets.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest clearAlertTargetsEntries() {
this.alertTargets = null;
return this;
}
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors
, but it is also retained for any metric specified here.
*
*
* Note: This API field is deprecated. Please use
* UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
*
*
* @return A list of metrics whose data is retained (stored). By default, data is retained for any metric used in
* the profile's behaviors
, but it is also retained for any metric specified here.
*
* Note: This API field is deprecated. Please use
* UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
*/
@Deprecated
public java.util.List getAdditionalMetricsToRetain() {
return additionalMetricsToRetain;
}
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors
, but it is also retained for any metric specified here.
*
*
* Note: This API field is deprecated. Please use
* UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
*
*
* @param additionalMetricsToRetain
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors
, but it is also retained for any metric specified here.
*
* Note: This API field is deprecated. Please use
* UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
*/
@Deprecated
public void setAdditionalMetricsToRetain(java.util.Collection additionalMetricsToRetain) {
if (additionalMetricsToRetain == null) {
this.additionalMetricsToRetain = null;
return;
}
this.additionalMetricsToRetain = new java.util.ArrayList(additionalMetricsToRetain);
}
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors
, but it is also retained for any metric specified here.
*
*
* Note: This API field is deprecated. Please use
* UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAdditionalMetricsToRetain(java.util.Collection)} or
* {@link #withAdditionalMetricsToRetain(java.util.Collection)} if you want to override the existing values.
*
*
* @param additionalMetricsToRetain
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors
, but it is also retained for any metric specified here.
*
* Note: This API field is deprecated. Please use
* UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
* @return Returns a reference to this object so that method calls can be chained together.
*/
@Deprecated
public UpdateSecurityProfileRequest withAdditionalMetricsToRetain(String... additionalMetricsToRetain) {
if (this.additionalMetricsToRetain == null) {
setAdditionalMetricsToRetain(new java.util.ArrayList(additionalMetricsToRetain.length));
}
for (String ele : additionalMetricsToRetain) {
this.additionalMetricsToRetain.add(ele);
}
return this;
}
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors
, but it is also retained for any metric specified here.
*
*
* Note: This API field is deprecated. Please use
* UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
*
*
* @param additionalMetricsToRetain
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors
, but it is also retained for any metric specified here.
*
* Note: This API field is deprecated. Please use
* UpdateSecurityProfileRequest$additionalMetricsToRetainV2 instead.
* @return Returns a reference to this object so that method calls can be chained together.
*/
@Deprecated
public UpdateSecurityProfileRequest withAdditionalMetricsToRetain(java.util.Collection additionalMetricsToRetain) {
setAdditionalMetricsToRetain(additionalMetricsToRetain);
return this;
}
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors, but it is also retained for any metric specified here.
*
*
* @return A list of metrics whose data is retained (stored). By default, data is retained for any metric used in
* the profile's behaviors, but it is also retained for any metric specified here.
*/
public java.util.List getAdditionalMetricsToRetainV2() {
return additionalMetricsToRetainV2;
}
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors, but it is also retained for any metric specified here.
*
*
* @param additionalMetricsToRetainV2
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors, but it is also retained for any metric specified here.
*/
public void setAdditionalMetricsToRetainV2(java.util.Collection additionalMetricsToRetainV2) {
if (additionalMetricsToRetainV2 == null) {
this.additionalMetricsToRetainV2 = null;
return;
}
this.additionalMetricsToRetainV2 = new java.util.ArrayList(additionalMetricsToRetainV2);
}
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors, but it is also retained for any metric specified here.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAdditionalMetricsToRetainV2(java.util.Collection)} or
* {@link #withAdditionalMetricsToRetainV2(java.util.Collection)} if you want to override the existing values.
*
*
* @param additionalMetricsToRetainV2
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors, but it is also retained for any metric specified here.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withAdditionalMetricsToRetainV2(MetricToRetain... additionalMetricsToRetainV2) {
if (this.additionalMetricsToRetainV2 == null) {
setAdditionalMetricsToRetainV2(new java.util.ArrayList(additionalMetricsToRetainV2.length));
}
for (MetricToRetain ele : additionalMetricsToRetainV2) {
this.additionalMetricsToRetainV2.add(ele);
}
return this;
}
/**
*
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors, but it is also retained for any metric specified here.
*
*
* @param additionalMetricsToRetainV2
* A list of metrics whose data is retained (stored). By default, data is retained for any metric used in the
* profile's behaviors, but it is also retained for any metric specified here.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withAdditionalMetricsToRetainV2(java.util.Collection additionalMetricsToRetainV2) {
setAdditionalMetricsToRetainV2(additionalMetricsToRetainV2);
return this;
}
/**
*
* If true, delete all behaviors
defined for this security profile. If any behaviors
are
* defined in the current invocation, an exception occurs.
*
*
* @param deleteBehaviors
* If true, delete all behaviors
defined for this security profile. If any
* behaviors
are defined in the current invocation, an exception occurs.
*/
public void setDeleteBehaviors(Boolean deleteBehaviors) {
this.deleteBehaviors = deleteBehaviors;
}
/**
*
* If true, delete all behaviors
defined for this security profile. If any behaviors
are
* defined in the current invocation, an exception occurs.
*
*
* @return If true, delete all behaviors
defined for this security profile. If any
* behaviors
are defined in the current invocation, an exception occurs.
*/
public Boolean getDeleteBehaviors() {
return this.deleteBehaviors;
}
/**
*
* If true, delete all behaviors
defined for this security profile. If any behaviors
are
* defined in the current invocation, an exception occurs.
*
*
* @param deleteBehaviors
* If true, delete all behaviors
defined for this security profile. If any
* behaviors
are defined in the current invocation, an exception occurs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withDeleteBehaviors(Boolean deleteBehaviors) {
setDeleteBehaviors(deleteBehaviors);
return this;
}
/**
*
* If true, delete all behaviors
defined for this security profile. If any behaviors
are
* defined in the current invocation, an exception occurs.
*
*
* @return If true, delete all behaviors
defined for this security profile. If any
* behaviors
are defined in the current invocation, an exception occurs.
*/
public Boolean isDeleteBehaviors() {
return this.deleteBehaviors;
}
/**
*
* If true, delete all alertTargets
defined for this security profile. If any alertTargets
* are defined in the current invocation, an exception occurs.
*
*
* @param deleteAlertTargets
* If true, delete all alertTargets
defined for this security profile. If any
* alertTargets
are defined in the current invocation, an exception occurs.
*/
public void setDeleteAlertTargets(Boolean deleteAlertTargets) {
this.deleteAlertTargets = deleteAlertTargets;
}
/**
*
* If true, delete all alertTargets
defined for this security profile. If any alertTargets
* are defined in the current invocation, an exception occurs.
*
*
* @return If true, delete all alertTargets
defined for this security profile. If any
* alertTargets
are defined in the current invocation, an exception occurs.
*/
public Boolean getDeleteAlertTargets() {
return this.deleteAlertTargets;
}
/**
*
* If true, delete all alertTargets
defined for this security profile. If any alertTargets
* are defined in the current invocation, an exception occurs.
*
*
* @param deleteAlertTargets
* If true, delete all alertTargets
defined for this security profile. If any
* alertTargets
are defined in the current invocation, an exception occurs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withDeleteAlertTargets(Boolean deleteAlertTargets) {
setDeleteAlertTargets(deleteAlertTargets);
return this;
}
/**
*
* If true, delete all alertTargets
defined for this security profile. If any alertTargets
* are defined in the current invocation, an exception occurs.
*
*
* @return If true, delete all alertTargets
defined for this security profile. If any
* alertTargets
are defined in the current invocation, an exception occurs.
*/
public Boolean isDeleteAlertTargets() {
return this.deleteAlertTargets;
}
/**
*
* If true, delete all additionalMetricsToRetain
defined for this security profile. If any
* additionalMetricsToRetain
are defined in the current invocation, an exception occurs.
*
*
* @param deleteAdditionalMetricsToRetain
* If true, delete all additionalMetricsToRetain
defined for this security profile. If any
* additionalMetricsToRetain
are defined in the current invocation, an exception occurs.
*/
public void setDeleteAdditionalMetricsToRetain(Boolean deleteAdditionalMetricsToRetain) {
this.deleteAdditionalMetricsToRetain = deleteAdditionalMetricsToRetain;
}
/**
*
* If true, delete all additionalMetricsToRetain
defined for this security profile. If any
* additionalMetricsToRetain
are defined in the current invocation, an exception occurs.
*
*
* @return If true, delete all additionalMetricsToRetain
defined for this security profile. If any
* additionalMetricsToRetain
are defined in the current invocation, an exception occurs.
*/
public Boolean getDeleteAdditionalMetricsToRetain() {
return this.deleteAdditionalMetricsToRetain;
}
/**
*
* If true, delete all additionalMetricsToRetain
defined for this security profile. If any
* additionalMetricsToRetain
are defined in the current invocation, an exception occurs.
*
*
* @param deleteAdditionalMetricsToRetain
* If true, delete all additionalMetricsToRetain
defined for this security profile. If any
* additionalMetricsToRetain
are defined in the current invocation, an exception occurs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withDeleteAdditionalMetricsToRetain(Boolean deleteAdditionalMetricsToRetain) {
setDeleteAdditionalMetricsToRetain(deleteAdditionalMetricsToRetain);
return this;
}
/**
*
* If true, delete all additionalMetricsToRetain
defined for this security profile. If any
* additionalMetricsToRetain
are defined in the current invocation, an exception occurs.
*
*
* @return If true, delete all additionalMetricsToRetain
defined for this security profile. If any
* additionalMetricsToRetain
are defined in the current invocation, an exception occurs.
*/
public Boolean isDeleteAdditionalMetricsToRetain() {
return this.deleteAdditionalMetricsToRetain;
}
/**
*
* The expected version of the security profile. A new version is generated whenever the security profile is
* updated. If you specify a value that is different from the actual version, a
* VersionConflictException
is thrown.
*
*
* @param expectedVersion
* The expected version of the security profile. A new version is generated whenever the security profile is
* updated. If you specify a value that is different from the actual version, a
* VersionConflictException
is thrown.
*/
public void setExpectedVersion(Long expectedVersion) {
this.expectedVersion = expectedVersion;
}
/**
*
* The expected version of the security profile. A new version is generated whenever the security profile is
* updated. If you specify a value that is different from the actual version, a
* VersionConflictException
is thrown.
*
*
* @return The expected version of the security profile. A new version is generated whenever the security profile is
* updated. If you specify a value that is different from the actual version, a
* VersionConflictException
is thrown.
*/
public Long getExpectedVersion() {
return this.expectedVersion;
}
/**
*
* The expected version of the security profile. A new version is generated whenever the security profile is
* updated. If you specify a value that is different from the actual version, a
* VersionConflictException
is thrown.
*
*
* @param expectedVersion
* The expected version of the security profile. A new version is generated whenever the security profile is
* updated. If you specify a value that is different from the actual version, a
* VersionConflictException
is thrown.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateSecurityProfileRequest withExpectedVersion(Long expectedVersion) {
setExpectedVersion(expectedVersion);
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 (getSecurityProfileName() != null)
sb.append("SecurityProfileName: ").append(getSecurityProfileName()).append(",");
if (getSecurityProfileDescription() != null)
sb.append("SecurityProfileDescription: ").append(getSecurityProfileDescription()).append(",");
if (getBehaviors() != null)
sb.append("Behaviors: ").append(getBehaviors()).append(",");
if (getAlertTargets() != null)
sb.append("AlertTargets: ").append(getAlertTargets()).append(",");
if (getAdditionalMetricsToRetain() != null)
sb.append("AdditionalMetricsToRetain: ").append(getAdditionalMetricsToRetain()).append(",");
if (getAdditionalMetricsToRetainV2() != null)
sb.append("AdditionalMetricsToRetainV2: ").append(getAdditionalMetricsToRetainV2()).append(",");
if (getDeleteBehaviors() != null)
sb.append("DeleteBehaviors: ").append(getDeleteBehaviors()).append(",");
if (getDeleteAlertTargets() != null)
sb.append("DeleteAlertTargets: ").append(getDeleteAlertTargets()).append(",");
if (getDeleteAdditionalMetricsToRetain() != null)
sb.append("DeleteAdditionalMetricsToRetain: ").append(getDeleteAdditionalMetricsToRetain()).append(",");
if (getExpectedVersion() != null)
sb.append("ExpectedVersion: ").append(getExpectedVersion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateSecurityProfileRequest == false)
return false;
UpdateSecurityProfileRequest other = (UpdateSecurityProfileRequest) obj;
if (other.getSecurityProfileName() == null ^ this.getSecurityProfileName() == null)
return false;
if (other.getSecurityProfileName() != null && other.getSecurityProfileName().equals(this.getSecurityProfileName()) == false)
return false;
if (other.getSecurityProfileDescription() == null ^ this.getSecurityProfileDescription() == null)
return false;
if (other.getSecurityProfileDescription() != null && other.getSecurityProfileDescription().equals(this.getSecurityProfileDescription()) == false)
return false;
if (other.getBehaviors() == null ^ this.getBehaviors() == null)
return false;
if (other.getBehaviors() != null && other.getBehaviors().equals(this.getBehaviors()) == false)
return false;
if (other.getAlertTargets() == null ^ this.getAlertTargets() == null)
return false;
if (other.getAlertTargets() != null && other.getAlertTargets().equals(this.getAlertTargets()) == false)
return false;
if (other.getAdditionalMetricsToRetain() == null ^ this.getAdditionalMetricsToRetain() == null)
return false;
if (other.getAdditionalMetricsToRetain() != null && other.getAdditionalMetricsToRetain().equals(this.getAdditionalMetricsToRetain()) == false)
return false;
if (other.getAdditionalMetricsToRetainV2() == null ^ this.getAdditionalMetricsToRetainV2() == null)
return false;
if (other.getAdditionalMetricsToRetainV2() != null && other.getAdditionalMetricsToRetainV2().equals(this.getAdditionalMetricsToRetainV2()) == false)
return false;
if (other.getDeleteBehaviors() == null ^ this.getDeleteBehaviors() == null)
return false;
if (other.getDeleteBehaviors() != null && other.getDeleteBehaviors().equals(this.getDeleteBehaviors()) == false)
return false;
if (other.getDeleteAlertTargets() == null ^ this.getDeleteAlertTargets() == null)
return false;
if (other.getDeleteAlertTargets() != null && other.getDeleteAlertTargets().equals(this.getDeleteAlertTargets()) == false)
return false;
if (other.getDeleteAdditionalMetricsToRetain() == null ^ this.getDeleteAdditionalMetricsToRetain() == null)
return false;
if (other.getDeleteAdditionalMetricsToRetain() != null
&& other.getDeleteAdditionalMetricsToRetain().equals(this.getDeleteAdditionalMetricsToRetain()) == false)
return false;
if (other.getExpectedVersion() == null ^ this.getExpectedVersion() == null)
return false;
if (other.getExpectedVersion() != null && other.getExpectedVersion().equals(this.getExpectedVersion()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSecurityProfileName() == null) ? 0 : getSecurityProfileName().hashCode());
hashCode = prime * hashCode + ((getSecurityProfileDescription() == null) ? 0 : getSecurityProfileDescription().hashCode());
hashCode = prime * hashCode + ((getBehaviors() == null) ? 0 : getBehaviors().hashCode());
hashCode = prime * hashCode + ((getAlertTargets() == null) ? 0 : getAlertTargets().hashCode());
hashCode = prime * hashCode + ((getAdditionalMetricsToRetain() == null) ? 0 : getAdditionalMetricsToRetain().hashCode());
hashCode = prime * hashCode + ((getAdditionalMetricsToRetainV2() == null) ? 0 : getAdditionalMetricsToRetainV2().hashCode());
hashCode = prime * hashCode + ((getDeleteBehaviors() == null) ? 0 : getDeleteBehaviors().hashCode());
hashCode = prime * hashCode + ((getDeleteAlertTargets() == null) ? 0 : getDeleteAlertTargets().hashCode());
hashCode = prime * hashCode + ((getDeleteAdditionalMetricsToRetain() == null) ? 0 : getDeleteAdditionalMetricsToRetain().hashCode());
hashCode = prime * hashCode + ((getExpectedVersion() == null) ? 0 : getExpectedVersion().hashCode());
return hashCode;
}
@Override
public UpdateSecurityProfileRequest clone() {
return (UpdateSecurityProfileRequest) super.clone();
}
}