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

com.amazonaws.services.panorama.model.ReportedRuntimeContextState Maven / Gradle / Ivy

Go to download

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

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

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

/**
 * 

* An application instance's state. *

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

* The application's desired state. *

*/ private String desiredState; /** *

* The application's reported status. *

*/ private String deviceReportedStatus; /** *

* When the device reported the application's state. *

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

* The device's name. *

*/ private String runtimeContextName; /** *

* The application's desired state. *

* * @param desiredState * The application's desired state. * @see DesiredState */ public void setDesiredState(String desiredState) { this.desiredState = desiredState; } /** *

* The application's desired state. *

* * @return The application's desired state. * @see DesiredState */ public String getDesiredState() { return this.desiredState; } /** *

* The application's desired state. *

* * @param desiredState * The application's desired state. * @return Returns a reference to this object so that method calls can be chained together. * @see DesiredState */ public ReportedRuntimeContextState withDesiredState(String desiredState) { setDesiredState(desiredState); return this; } /** *

* The application's desired state. *

* * @param desiredState * The application's desired state. * @return Returns a reference to this object so that method calls can be chained together. * @see DesiredState */ public ReportedRuntimeContextState withDesiredState(DesiredState desiredState) { this.desiredState = desiredState.toString(); return this; } /** *

* The application's reported status. *

* * @param deviceReportedStatus * The application's reported status. * @see DeviceReportedStatus */ public void setDeviceReportedStatus(String deviceReportedStatus) { this.deviceReportedStatus = deviceReportedStatus; } /** *

* The application's reported status. *

* * @return The application's reported status. * @see DeviceReportedStatus */ public String getDeviceReportedStatus() { return this.deviceReportedStatus; } /** *

* The application's reported status. *

* * @param deviceReportedStatus * The application's reported status. * @return Returns a reference to this object so that method calls can be chained together. * @see DeviceReportedStatus */ public ReportedRuntimeContextState withDeviceReportedStatus(String deviceReportedStatus) { setDeviceReportedStatus(deviceReportedStatus); return this; } /** *

* The application's reported status. *

* * @param deviceReportedStatus * The application's reported status. * @return Returns a reference to this object so that method calls can be chained together. * @see DeviceReportedStatus */ public ReportedRuntimeContextState withDeviceReportedStatus(DeviceReportedStatus deviceReportedStatus) { this.deviceReportedStatus = deviceReportedStatus.toString(); return this; } /** *

* When the device reported the application's state. *

* * @param deviceReportedTime * When the device reported the application's state. */ public void setDeviceReportedTime(java.util.Date deviceReportedTime) { this.deviceReportedTime = deviceReportedTime; } /** *

* When the device reported the application's state. *

* * @return When the device reported the application's state. */ public java.util.Date getDeviceReportedTime() { return this.deviceReportedTime; } /** *

* When the device reported the application's state. *

* * @param deviceReportedTime * When the device reported the application's state. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportedRuntimeContextState withDeviceReportedTime(java.util.Date deviceReportedTime) { setDeviceReportedTime(deviceReportedTime); return this; } /** *

* The device's name. *

* * @param runtimeContextName * The device's name. */ public void setRuntimeContextName(String runtimeContextName) { this.runtimeContextName = runtimeContextName; } /** *

* The device's name. *

* * @return The device's name. */ public String getRuntimeContextName() { return this.runtimeContextName; } /** *

* The device's name. *

* * @param runtimeContextName * The device's name. * @return Returns a reference to this object so that method calls can be chained together. */ public ReportedRuntimeContextState withRuntimeContextName(String runtimeContextName) { setRuntimeContextName(runtimeContextName); 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 (getDesiredState() != null) sb.append("DesiredState: ").append(getDesiredState()).append(","); if (getDeviceReportedStatus() != null) sb.append("DeviceReportedStatus: ").append(getDeviceReportedStatus()).append(","); if (getDeviceReportedTime() != null) sb.append("DeviceReportedTime: ").append(getDeviceReportedTime()).append(","); if (getRuntimeContextName() != null) sb.append("RuntimeContextName: ").append(getRuntimeContextName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReportedRuntimeContextState == false) return false; ReportedRuntimeContextState other = (ReportedRuntimeContextState) obj; if (other.getDesiredState() == null ^ this.getDesiredState() == null) return false; if (other.getDesiredState() != null && other.getDesiredState().equals(this.getDesiredState()) == false) return false; if (other.getDeviceReportedStatus() == null ^ this.getDeviceReportedStatus() == null) return false; if (other.getDeviceReportedStatus() != null && other.getDeviceReportedStatus().equals(this.getDeviceReportedStatus()) == false) return false; if (other.getDeviceReportedTime() == null ^ this.getDeviceReportedTime() == null) return false; if (other.getDeviceReportedTime() != null && other.getDeviceReportedTime().equals(this.getDeviceReportedTime()) == false) return false; if (other.getRuntimeContextName() == null ^ this.getRuntimeContextName() == null) return false; if (other.getRuntimeContextName() != null && other.getRuntimeContextName().equals(this.getRuntimeContextName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDesiredState() == null) ? 0 : getDesiredState().hashCode()); hashCode = prime * hashCode + ((getDeviceReportedStatus() == null) ? 0 : getDeviceReportedStatus().hashCode()); hashCode = prime * hashCode + ((getDeviceReportedTime() == null) ? 0 : getDeviceReportedTime().hashCode()); hashCode = prime * hashCode + ((getRuntimeContextName() == null) ? 0 : getRuntimeContextName().hashCode()); return hashCode; } @Override public ReportedRuntimeContextState clone() { try { return (ReportedRuntimeContextState) 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.panorama.model.transform.ReportedRuntimeContextStateMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy