com.amazonaws.services.internetmonitor.model.CreateMonitorRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-internetmonitor 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.internetmonitor.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 CreateMonitorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The name of the monitor.
*
*/
private String monitorName;
/**
*
* The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can
* be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
*
*
* You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can
* add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
*
*
*
* If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure
* that it has internet connectivity.
*
*
*/
private java.util.List resources;
/**
*
* A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request.
* Don't reuse the same client token for other API requests.
*
*/
private String clientToken;
/**
*
* The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor.
*
*/
private java.util.Map tags;
/**
*
* The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where
* clients access your application resources from and the ASN or network provider, such as an internet service
* provider (ISP), that clients access the resources through. Setting this limit can help control billing costs.
*
*
* To learn more, see Choosing a
* city-network maximum value in the Amazon CloudWatch Internet Monitor section of the CloudWatch User
* Guide.
*
*/
private Integer maxCityNetworksToMonitor;
/**
*
* Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs.
*
*/
private InternetMeasurementsLogDelivery internetMeasurementsLogDelivery;
/**
*
* The percentage of the internet-facing traffic for your application that you want to monitor with this monitor. If
* you set a city-networks maximum, that limit overrides the traffic percentage that you set.
*
*
* To learn more, see Choosing an
* application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the
* CloudWatch User Guide.
*
*/
private Integer trafficPercentageToMonitor;
/**
*
* Defines the threshold percentages and other configuration information for when Amazon CloudWatch Internet Monitor
* creates a health event. Internet Monitor creates a health event when an internet issue that affects your
* application end users has a health score percentage that is at or below a specific threshold, and, sometimes,
* when other criteria are met.
*
*
* If you don't set a health event threshold, the default value is 95%.
*
*
* For more information, see Change health event thresholds in the Internet Monitor section of the CloudWatch User Guide.
*
*/
private HealthEventsConfig healthEventsConfig;
/**
*
* The name of the monitor.
*
*
* @param monitorName
* The name of the monitor.
*/
public void setMonitorName(String monitorName) {
this.monitorName = monitorName;
}
/**
*
* The name of the monitor.
*
*
* @return The name of the monitor.
*/
public String getMonitorName() {
return this.monitorName;
}
/**
*
* The name of the monitor.
*
*
* @param monitorName
* The name of the monitor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest withMonitorName(String monitorName) {
setMonitorName(monitorName);
return this;
}
/**
*
* The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can
* be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
*
*
* You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can
* add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
*
*
*
* If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure
* that it has internet connectivity.
*
*
*
* @return The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs).
* Resources can be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
*
* You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or
* you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
*
*
*
* If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to
* make sure that it has internet connectivity.
*
*/
public java.util.List getResources() {
return resources;
}
/**
*
* The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can
* be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
*
*
* You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can
* add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
*
*
*
* If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure
* that it has internet connectivity.
*
*
*
* @param resources
* The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs).
* Resources can be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
*
* You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or
* you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
*
*
*
* If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to
* make sure that it has internet connectivity.
*
*/
public void setResources(java.util.Collection resources) {
if (resources == null) {
this.resources = null;
return;
}
this.resources = new java.util.ArrayList(resources);
}
/**
*
* The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can
* be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
*
*
* You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can
* add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
*
*
*
* If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure
* that it has internet connectivity.
*
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setResources(java.util.Collection)} or {@link #withResources(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param resources
* The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs).
* Resources can be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
*
* You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or
* you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
*
*
*
* If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to
* make sure that it has internet connectivity.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest withResources(String... resources) {
if (this.resources == null) {
setResources(new java.util.ArrayList(resources.length));
}
for (String ele : resources) {
this.resources.add(ele);
}
return this;
}
/**
*
* The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs). Resources can
* be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
*
*
* You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or you can
* add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
*
*
*
* If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to make sure
* that it has internet connectivity.
*
*
*
* @param resources
* The resources to include in a monitor, which you provide as a set of Amazon Resource Names (ARNs).
* Resources can be VPCs, NLBs, Amazon CloudFront distributions, or Amazon WorkSpaces directories.
*
* You can add a combination of VPCs and CloudFront distributions, or you can add WorkSpaces directories, or
* you can add NLBs. You can't add NLBs or WorkSpaces directories together with any other resources.
*
*
*
* If you add only Amazon VPC resources, at least one VPC must have an Internet Gateway attached to it, to
* make sure that it has internet connectivity.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest withResources(java.util.Collection resources) {
setResources(resources);
return this;
}
/**
*
* A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request.
* Don't reuse the same client token for other API requests.
*
*
* @param clientToken
* A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API
* request. Don't reuse the same client token for other API requests.
*/
public void setClientToken(String clientToken) {
this.clientToken = clientToken;
}
/**
*
* A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request.
* Don't reuse the same client token for other API requests.
*
*
* @return A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API
* request. Don't reuse the same client token for other API requests.
*/
public String getClientToken() {
return this.clientToken;
}
/**
*
* A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API request.
* Don't reuse the same client token for other API requests.
*
*
* @param clientToken
* A unique, case-sensitive string of up to 64 ASCII characters that you specify to make an idempotent API
* request. Don't reuse the same client token for other API requests.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest withClientToken(String clientToken) {
setClientToken(clientToken);
return this;
}
/**
*
* The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor.
*
*
* @return The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor.
*/
public java.util.Map getTags() {
return tags;
}
/**
*
* The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor.
*
*
* @param tags
* The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor.
*/
public void setTags(java.util.Map tags) {
this.tags = tags;
}
/**
*
* The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor.
*
*
* @param tags
* The tags for a monitor. You can add a maximum of 50 tags in Internet Monitor.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see CreateMonitorRequest#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest addTagsEntry(String key, String value) {
if (null == this.tags) {
this.tags = new java.util.HashMap();
}
if (this.tags.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.tags.put(key, value);
return this;
}
/**
* Removes all the entries added into Tags.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where
* clients access your application resources from and the ASN or network provider, such as an internet service
* provider (ISP), that clients access the resources through. Setting this limit can help control billing costs.
*
*
* To learn more, see Choosing a
* city-network maximum value in the Amazon CloudWatch Internet Monitor section of the CloudWatch User
* Guide.
*
*
* @param maxCityNetworksToMonitor
* The maximum number of city-networks to monitor for your resources. A city-network is the location (city)
* where clients access your application resources from and the ASN or network provider, such as an internet
* service provider (ISP), that clients access the resources through. Setting this limit can help control
* billing costs.
*
* To learn more, see Choosing
* a city-network maximum value in the Amazon CloudWatch Internet Monitor section of the CloudWatch
* User Guide.
*/
public void setMaxCityNetworksToMonitor(Integer maxCityNetworksToMonitor) {
this.maxCityNetworksToMonitor = maxCityNetworksToMonitor;
}
/**
*
* The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where
* clients access your application resources from and the ASN or network provider, such as an internet service
* provider (ISP), that clients access the resources through. Setting this limit can help control billing costs.
*
*
* To learn more, see Choosing a
* city-network maximum value in the Amazon CloudWatch Internet Monitor section of the CloudWatch User
* Guide.
*
*
* @return The maximum number of city-networks to monitor for your resources. A city-network is the location (city)
* where clients access your application resources from and the ASN or network provider, such as an internet
* service provider (ISP), that clients access the resources through. Setting this limit can help control
* billing costs.
*
* To learn more, see Choosing
* a city-network maximum value in the Amazon CloudWatch Internet Monitor section of the CloudWatch
* User Guide.
*/
public Integer getMaxCityNetworksToMonitor() {
return this.maxCityNetworksToMonitor;
}
/**
*
* The maximum number of city-networks to monitor for your resources. A city-network is the location (city) where
* clients access your application resources from and the ASN or network provider, such as an internet service
* provider (ISP), that clients access the resources through. Setting this limit can help control billing costs.
*
*
* To learn more, see Choosing a
* city-network maximum value in the Amazon CloudWatch Internet Monitor section of the CloudWatch User
* Guide.
*
*
* @param maxCityNetworksToMonitor
* The maximum number of city-networks to monitor for your resources. A city-network is the location (city)
* where clients access your application resources from and the ASN or network provider, such as an internet
* service provider (ISP), that clients access the resources through. Setting this limit can help control
* billing costs.
*
* To learn more, see Choosing
* a city-network maximum value in the Amazon CloudWatch Internet Monitor section of the CloudWatch
* User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest withMaxCityNetworksToMonitor(Integer maxCityNetworksToMonitor) {
setMaxCityNetworksToMonitor(maxCityNetworksToMonitor);
return this;
}
/**
*
* Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs.
*
*
* @param internetMeasurementsLogDelivery
* Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs.
*/
public void setInternetMeasurementsLogDelivery(InternetMeasurementsLogDelivery internetMeasurementsLogDelivery) {
this.internetMeasurementsLogDelivery = internetMeasurementsLogDelivery;
}
/**
*
* Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs.
*
*
* @return Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs.
*/
public InternetMeasurementsLogDelivery getInternetMeasurementsLogDelivery() {
return this.internetMeasurementsLogDelivery;
}
/**
*
* Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs.
*
*
* @param internetMeasurementsLogDelivery
* Publish internet measurements for Internet Monitor to an Amazon S3 bucket in addition to CloudWatch Logs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest withInternetMeasurementsLogDelivery(InternetMeasurementsLogDelivery internetMeasurementsLogDelivery) {
setInternetMeasurementsLogDelivery(internetMeasurementsLogDelivery);
return this;
}
/**
*
* The percentage of the internet-facing traffic for your application that you want to monitor with this monitor. If
* you set a city-networks maximum, that limit overrides the traffic percentage that you set.
*
*
* To learn more, see Choosing an
* application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the
* CloudWatch User Guide.
*
*
* @param trafficPercentageToMonitor
* The percentage of the internet-facing traffic for your application that you want to monitor with this
* monitor. If you set a city-networks maximum, that limit overrides the traffic percentage that you set.
*
* To learn more, see Choosing an
* application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the
* CloudWatch User Guide.
*/
public void setTrafficPercentageToMonitor(Integer trafficPercentageToMonitor) {
this.trafficPercentageToMonitor = trafficPercentageToMonitor;
}
/**
*
* The percentage of the internet-facing traffic for your application that you want to monitor with this monitor. If
* you set a city-networks maximum, that limit overrides the traffic percentage that you set.
*
*
* To learn more, see Choosing an
* application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the
* CloudWatch User Guide.
*
*
* @return The percentage of the internet-facing traffic for your application that you want to monitor with this
* monitor. If you set a city-networks maximum, that limit overrides the traffic percentage that you
* set.
*
* To learn more, see Choosing
* an application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of
* the CloudWatch User Guide.
*/
public Integer getTrafficPercentageToMonitor() {
return this.trafficPercentageToMonitor;
}
/**
*
* The percentage of the internet-facing traffic for your application that you want to monitor with this monitor. If
* you set a city-networks maximum, that limit overrides the traffic percentage that you set.
*
*
* To learn more, see Choosing an
* application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the
* CloudWatch User Guide.
*
*
* @param trafficPercentageToMonitor
* The percentage of the internet-facing traffic for your application that you want to monitor with this
* monitor. If you set a city-networks maximum, that limit overrides the traffic percentage that you set.
*
* To learn more, see Choosing an
* application traffic percentage to monitor in the Amazon CloudWatch Internet Monitor section of the
* CloudWatch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest withTrafficPercentageToMonitor(Integer trafficPercentageToMonitor) {
setTrafficPercentageToMonitor(trafficPercentageToMonitor);
return this;
}
/**
*
* Defines the threshold percentages and other configuration information for when Amazon CloudWatch Internet Monitor
* creates a health event. Internet Monitor creates a health event when an internet issue that affects your
* application end users has a health score percentage that is at or below a specific threshold, and, sometimes,
* when other criteria are met.
*
*
* If you don't set a health event threshold, the default value is 95%.
*
*
* For more information, see Change health event thresholds in the Internet Monitor section of the CloudWatch User Guide.
*
*
* @param healthEventsConfig
* Defines the threshold percentages and other configuration information for when Amazon CloudWatch Internet
* Monitor creates a health event. Internet Monitor creates a health event when an internet issue that
* affects your application end users has a health score percentage that is at or below a specific threshold,
* and, sometimes, when other criteria are met.
*
* If you don't set a health event threshold, the default value is 95%.
*
*
* For more information, see Change health event thresholds in the Internet Monitor section of the CloudWatch User Guide.
*/
public void setHealthEventsConfig(HealthEventsConfig healthEventsConfig) {
this.healthEventsConfig = healthEventsConfig;
}
/**
*
* Defines the threshold percentages and other configuration information for when Amazon CloudWatch Internet Monitor
* creates a health event. Internet Monitor creates a health event when an internet issue that affects your
* application end users has a health score percentage that is at or below a specific threshold, and, sometimes,
* when other criteria are met.
*
*
* If you don't set a health event threshold, the default value is 95%.
*
*
* For more information, see Change health event thresholds in the Internet Monitor section of the CloudWatch User Guide.
*
*
* @return Defines the threshold percentages and other configuration information for when Amazon CloudWatch Internet
* Monitor creates a health event. Internet Monitor creates a health event when an internet issue that
* affects your application end users has a health score percentage that is at or below a specific
* threshold, and, sometimes, when other criteria are met.
*
* If you don't set a health event threshold, the default value is 95%.
*
*
* For more information, see Change health event thresholds in the Internet Monitor section of the CloudWatch User Guide.
*/
public HealthEventsConfig getHealthEventsConfig() {
return this.healthEventsConfig;
}
/**
*
* Defines the threshold percentages and other configuration information for when Amazon CloudWatch Internet Monitor
* creates a health event. Internet Monitor creates a health event when an internet issue that affects your
* application end users has a health score percentage that is at or below a specific threshold, and, sometimes,
* when other criteria are met.
*
*
* If you don't set a health event threshold, the default value is 95%.
*
*
* For more information, see Change health event thresholds in the Internet Monitor section of the CloudWatch User Guide.
*
*
* @param healthEventsConfig
* Defines the threshold percentages and other configuration information for when Amazon CloudWatch Internet
* Monitor creates a health event. Internet Monitor creates a health event when an internet issue that
* affects your application end users has a health score percentage that is at or below a specific threshold,
* and, sometimes, when other criteria are met.
*
* If you don't set a health event threshold, the default value is 95%.
*
*
* For more information, see Change health event thresholds in the Internet Monitor section of the CloudWatch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateMonitorRequest withHealthEventsConfig(HealthEventsConfig healthEventsConfig) {
setHealthEventsConfig(healthEventsConfig);
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 (getMonitorName() != null)
sb.append("MonitorName: ").append(getMonitorName()).append(",");
if (getResources() != null)
sb.append("Resources: ").append(getResources()).append(",");
if (getClientToken() != null)
sb.append("ClientToken: ").append(getClientToken()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getMaxCityNetworksToMonitor() != null)
sb.append("MaxCityNetworksToMonitor: ").append(getMaxCityNetworksToMonitor()).append(",");
if (getInternetMeasurementsLogDelivery() != null)
sb.append("InternetMeasurementsLogDelivery: ").append(getInternetMeasurementsLogDelivery()).append(",");
if (getTrafficPercentageToMonitor() != null)
sb.append("TrafficPercentageToMonitor: ").append(getTrafficPercentageToMonitor()).append(",");
if (getHealthEventsConfig() != null)
sb.append("HealthEventsConfig: ").append(getHealthEventsConfig());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateMonitorRequest == false)
return false;
CreateMonitorRequest other = (CreateMonitorRequest) obj;
if (other.getMonitorName() == null ^ this.getMonitorName() == null)
return false;
if (other.getMonitorName() != null && other.getMonitorName().equals(this.getMonitorName()) == false)
return false;
if (other.getResources() == null ^ this.getResources() == null)
return false;
if (other.getResources() != null && other.getResources().equals(this.getResources()) == 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.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getMaxCityNetworksToMonitor() == null ^ this.getMaxCityNetworksToMonitor() == null)
return false;
if (other.getMaxCityNetworksToMonitor() != null && other.getMaxCityNetworksToMonitor().equals(this.getMaxCityNetworksToMonitor()) == false)
return false;
if (other.getInternetMeasurementsLogDelivery() == null ^ this.getInternetMeasurementsLogDelivery() == null)
return false;
if (other.getInternetMeasurementsLogDelivery() != null
&& other.getInternetMeasurementsLogDelivery().equals(this.getInternetMeasurementsLogDelivery()) == false)
return false;
if (other.getTrafficPercentageToMonitor() == null ^ this.getTrafficPercentageToMonitor() == null)
return false;
if (other.getTrafficPercentageToMonitor() != null && other.getTrafficPercentageToMonitor().equals(this.getTrafficPercentageToMonitor()) == false)
return false;
if (other.getHealthEventsConfig() == null ^ this.getHealthEventsConfig() == null)
return false;
if (other.getHealthEventsConfig() != null && other.getHealthEventsConfig().equals(this.getHealthEventsConfig()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMonitorName() == null) ? 0 : getMonitorName().hashCode());
hashCode = prime * hashCode + ((getResources() == null) ? 0 : getResources().hashCode());
hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getMaxCityNetworksToMonitor() == null) ? 0 : getMaxCityNetworksToMonitor().hashCode());
hashCode = prime * hashCode + ((getInternetMeasurementsLogDelivery() == null) ? 0 : getInternetMeasurementsLogDelivery().hashCode());
hashCode = prime * hashCode + ((getTrafficPercentageToMonitor() == null) ? 0 : getTrafficPercentageToMonitor().hashCode());
hashCode = prime * hashCode + ((getHealthEventsConfig() == null) ? 0 : getHealthEventsConfig().hashCode());
return hashCode;
}
@Override
public CreateMonitorRequest clone() {
return (CreateMonitorRequest) super.clone();
}
}