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

com.amazonaws.services.internetmonitor.model.GetInternetEventResult Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show newest version
/*
 * 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;

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

    /**
     * 

* The internally-generated identifier of an internet event. *

*/ private String eventId; /** *

* The Amazon Resource Name (ARN) of the internet event. *

*/ private String eventArn; /** *

* The time when the internet event started. *

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

* The time when the internet event ended. If the event hasn't ended yet, this value is empty. *

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

* The impacted location, such as a city, where clients access Amazon Web Services application resources. *

*/ private ClientLocation clientLocation; /** *

* The type of network impairment. *

*/ private String eventType; /** *

* The status of the internet event. *

*/ private String eventStatus; /** *

* The internally-generated identifier of an internet event. *

* * @param eventId * The internally-generated identifier of an internet event. */ public void setEventId(String eventId) { this.eventId = eventId; } /** *

* The internally-generated identifier of an internet event. *

* * @return The internally-generated identifier of an internet event. */ public String getEventId() { return this.eventId; } /** *

* The internally-generated identifier of an internet event. *

* * @param eventId * The internally-generated identifier of an internet event. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInternetEventResult withEventId(String eventId) { setEventId(eventId); return this; } /** *

* The Amazon Resource Name (ARN) of the internet event. *

* * @param eventArn * The Amazon Resource Name (ARN) of the internet event. */ public void setEventArn(String eventArn) { this.eventArn = eventArn; } /** *

* The Amazon Resource Name (ARN) of the internet event. *

* * @return The Amazon Resource Name (ARN) of the internet event. */ public String getEventArn() { return this.eventArn; } /** *

* The Amazon Resource Name (ARN) of the internet event. *

* * @param eventArn * The Amazon Resource Name (ARN) of the internet event. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInternetEventResult withEventArn(String eventArn) { setEventArn(eventArn); return this; } /** *

* The time when the internet event started. *

* * @param startedAt * The time when the internet event started. */ public void setStartedAt(java.util.Date startedAt) { this.startedAt = startedAt; } /** *

* The time when the internet event started. *

* * @return The time when the internet event started. */ public java.util.Date getStartedAt() { return this.startedAt; } /** *

* The time when the internet event started. *

* * @param startedAt * The time when the internet event started. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInternetEventResult withStartedAt(java.util.Date startedAt) { setStartedAt(startedAt); return this; } /** *

* The time when the internet event ended. If the event hasn't ended yet, this value is empty. *

* * @param endedAt * The time when the internet event ended. If the event hasn't ended yet, this value is empty. */ public void setEndedAt(java.util.Date endedAt) { this.endedAt = endedAt; } /** *

* The time when the internet event ended. If the event hasn't ended yet, this value is empty. *

* * @return The time when the internet event ended. If the event hasn't ended yet, this value is empty. */ public java.util.Date getEndedAt() { return this.endedAt; } /** *

* The time when the internet event ended. If the event hasn't ended yet, this value is empty. *

* * @param endedAt * The time when the internet event ended. If the event hasn't ended yet, this value is empty. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInternetEventResult withEndedAt(java.util.Date endedAt) { setEndedAt(endedAt); return this; } /** *

* The impacted location, such as a city, where clients access Amazon Web Services application resources. *

* * @param clientLocation * The impacted location, such as a city, where clients access Amazon Web Services application resources. */ public void setClientLocation(ClientLocation clientLocation) { this.clientLocation = clientLocation; } /** *

* The impacted location, such as a city, where clients access Amazon Web Services application resources. *

* * @return The impacted location, such as a city, where clients access Amazon Web Services application resources. */ public ClientLocation getClientLocation() { return this.clientLocation; } /** *

* The impacted location, such as a city, where clients access Amazon Web Services application resources. *

* * @param clientLocation * The impacted location, such as a city, where clients access Amazon Web Services application resources. * @return Returns a reference to this object so that method calls can be chained together. */ public GetInternetEventResult withClientLocation(ClientLocation clientLocation) { setClientLocation(clientLocation); return this; } /** *

* The type of network impairment. *

* * @param eventType * The type of network impairment. * @see InternetEventType */ public void setEventType(String eventType) { this.eventType = eventType; } /** *

* The type of network impairment. *

* * @return The type of network impairment. * @see InternetEventType */ public String getEventType() { return this.eventType; } /** *

* The type of network impairment. *

* * @param eventType * The type of network impairment. * @return Returns a reference to this object so that method calls can be chained together. * @see InternetEventType */ public GetInternetEventResult withEventType(String eventType) { setEventType(eventType); return this; } /** *

* The type of network impairment. *

* * @param eventType * The type of network impairment. * @return Returns a reference to this object so that method calls can be chained together. * @see InternetEventType */ public GetInternetEventResult withEventType(InternetEventType eventType) { this.eventType = eventType.toString(); return this; } /** *

* The status of the internet event. *

* * @param eventStatus * The status of the internet event. * @see InternetEventStatus */ public void setEventStatus(String eventStatus) { this.eventStatus = eventStatus; } /** *

* The status of the internet event. *

* * @return The status of the internet event. * @see InternetEventStatus */ public String getEventStatus() { return this.eventStatus; } /** *

* The status of the internet event. *

* * @param eventStatus * The status of the internet event. * @return Returns a reference to this object so that method calls can be chained together. * @see InternetEventStatus */ public GetInternetEventResult withEventStatus(String eventStatus) { setEventStatus(eventStatus); return this; } /** *

* The status of the internet event. *

* * @param eventStatus * The status of the internet event. * @return Returns a reference to this object so that method calls can be chained together. * @see InternetEventStatus */ public GetInternetEventResult withEventStatus(InternetEventStatus eventStatus) { this.eventStatus = eventStatus.toString(); 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 (getEventId() != null) sb.append("EventId: ").append(getEventId()).append(","); if (getEventArn() != null) sb.append("EventArn: ").append(getEventArn()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(","); if (getEndedAt() != null) sb.append("EndedAt: ").append(getEndedAt()).append(","); if (getClientLocation() != null) sb.append("ClientLocation: ").append(getClientLocation()).append(","); if (getEventType() != null) sb.append("EventType: ").append(getEventType()).append(","); if (getEventStatus() != null) sb.append("EventStatus: ").append(getEventStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetInternetEventResult == false) return false; GetInternetEventResult other = (GetInternetEventResult) obj; if (other.getEventId() == null ^ this.getEventId() == null) return false; if (other.getEventId() != null && other.getEventId().equals(this.getEventId()) == false) return false; if (other.getEventArn() == null ^ this.getEventArn() == null) return false; if (other.getEventArn() != null && other.getEventArn().equals(this.getEventArn()) == false) return false; if (other.getStartedAt() == null ^ this.getStartedAt() == null) return false; if (other.getStartedAt() != null && other.getStartedAt().equals(this.getStartedAt()) == false) return false; if (other.getEndedAt() == null ^ this.getEndedAt() == null) return false; if (other.getEndedAt() != null && other.getEndedAt().equals(this.getEndedAt()) == false) return false; if (other.getClientLocation() == null ^ this.getClientLocation() == null) return false; if (other.getClientLocation() != null && other.getClientLocation().equals(this.getClientLocation()) == false) return false; if (other.getEventType() == null ^ this.getEventType() == null) return false; if (other.getEventType() != null && other.getEventType().equals(this.getEventType()) == false) return false; if (other.getEventStatus() == null ^ this.getEventStatus() == null) return false; if (other.getEventStatus() != null && other.getEventStatus().equals(this.getEventStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEventId() == null) ? 0 : getEventId().hashCode()); hashCode = prime * hashCode + ((getEventArn() == null) ? 0 : getEventArn().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getEndedAt() == null) ? 0 : getEndedAt().hashCode()); hashCode = prime * hashCode + ((getClientLocation() == null) ? 0 : getClientLocation().hashCode()); hashCode = prime * hashCode + ((getEventType() == null) ? 0 : getEventType().hashCode()); hashCode = prime * hashCode + ((getEventStatus() == null) ? 0 : getEventStatus().hashCode()); return hashCode; } @Override public GetInternetEventResult clone() { try { return (GetInternetEventResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy