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

com.amazonaws.services.cloudwatchrum.model.AppMonitorSummary Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
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.cloudwatchrum.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* A structure that includes some data about app monitors and their settings. *

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

* The date and time that the app monitor was created. *

*/ private String created; /** *

* The unique ID of this app monitor. *

*/ private String id; /** *

* The date and time of the most recent changes to this app monitor's configuration. *

*/ private String lastModified; /** *

* The name of this app monitor. *

*/ private String name; /** *

* The current state of this app monitor. *

*/ private String state; /** *

* The date and time that the app monitor was created. *

* * @param created * The date and time that the app monitor was created. */ public void setCreated(String created) { this.created = created; } /** *

* The date and time that the app monitor was created. *

* * @return The date and time that the app monitor was created. */ public String getCreated() { return this.created; } /** *

* The date and time that the app monitor was created. *

* * @param created * The date and time that the app monitor was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitorSummary withCreated(String created) { setCreated(created); return this; } /** *

* The unique ID of this app monitor. *

* * @param id * The unique ID of this app monitor. */ public void setId(String id) { this.id = id; } /** *

* The unique ID of this app monitor. *

* * @return The unique ID of this app monitor. */ public String getId() { return this.id; } /** *

* The unique ID of this app monitor. *

* * @param id * The unique ID of this app monitor. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitorSummary withId(String id) { setId(id); return this; } /** *

* The date and time of the most recent changes to this app monitor's configuration. *

* * @param lastModified * The date and time of the most recent changes to this app monitor's configuration. */ public void setLastModified(String lastModified) { this.lastModified = lastModified; } /** *

* The date and time of the most recent changes to this app monitor's configuration. *

* * @return The date and time of the most recent changes to this app monitor's configuration. */ public String getLastModified() { return this.lastModified; } /** *

* The date and time of the most recent changes to this app monitor's configuration. *

* * @param lastModified * The date and time of the most recent changes to this app monitor's configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public AppMonitorSummary withLastModified(String lastModified) { setLastModified(lastModified); return this; } /** *

* The name of this app monitor. *

* * @param name * The name of this app monitor. */ public void setName(String name) { this.name = name; } /** *

* The name of this app monitor. *

* * @return The name of this app monitor. */ public String getName() { return this.name; } /** *

* The name of this app monitor. *

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

* The current state of this app monitor. *

* * @param state * The current state of this app monitor. * @see StateEnum */ public void setState(String state) { this.state = state; } /** *

* The current state of this app monitor. *

* * @return The current state of this app monitor. * @see StateEnum */ public String getState() { return this.state; } /** *

* The current state of this app monitor. *

* * @param state * The current state of this app monitor. * @return Returns a reference to this object so that method calls can be chained together. * @see StateEnum */ public AppMonitorSummary withState(String state) { setState(state); return this; } /** *

* The current state of this app monitor. *

* * @param state * The current state of this app monitor. * @return Returns a reference to this object so that method calls can be chained together. * @see StateEnum */ public AppMonitorSummary withState(StateEnum state) { this.state = state.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 (getCreated() != null) sb.append("Created: ").append(getCreated()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getLastModified() != null) sb.append("LastModified: ").append(getLastModified()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getState() != null) sb.append("State: ").append(getState()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AppMonitorSummary == false) return false; AppMonitorSummary other = (AppMonitorSummary) obj; if (other.getCreated() == null ^ this.getCreated() == null) return false; if (other.getCreated() != null && other.getCreated().equals(this.getCreated()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getLastModified() == null ^ this.getLastModified() == null) return false; if (other.getLastModified() != null && other.getLastModified().equals(this.getLastModified()) == 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.getState() == null ^ this.getState() == null) return false; if (other.getState() != null && other.getState().equals(this.getState()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreated() == null) ? 0 : getCreated().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getLastModified() == null) ? 0 : getLastModified().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode()); return hashCode; } @Override public AppMonitorSummary clone() { try { return (AppMonitorSummary) 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.cloudwatchrum.model.transform.AppMonitorSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy