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

com.amazonaws.services.iottwinmaker.model.SyncJobSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT TwinMaker module holds the client classes that are used for communicating with AWS IoT TwinMaker 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.iottwinmaker.model;

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

/**
 * 

* The SyncJob summary. *

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

* The SyncJob summary ARN. *

*/ private String arn; /** *

* The ID of the workspace that contains the sync job. *

*/ private String workspaceId; /** *

* The sync source. *

*/ private String syncSource; /** *

* The SyncJob summaries status. *

*/ private SyncJobStatus status; /** *

* The creation date and time. *

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

* The update date and time. *

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

* The SyncJob summary ARN. *

* * @param arn * The SyncJob summary ARN. */ public void setArn(String arn) { this.arn = arn; } /** *

* The SyncJob summary ARN. *

* * @return The SyncJob summary ARN. */ public String getArn() { return this.arn; } /** *

* The SyncJob summary ARN. *

* * @param arn * The SyncJob summary ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public SyncJobSummary withArn(String arn) { setArn(arn); return this; } /** *

* The ID of the workspace that contains the sync job. *

* * @param workspaceId * The ID of the workspace that contains the sync job. */ public void setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; } /** *

* The ID of the workspace that contains the sync job. *

* * @return The ID of the workspace that contains the sync job. */ public String getWorkspaceId() { return this.workspaceId; } /** *

* The ID of the workspace that contains the sync job. *

* * @param workspaceId * The ID of the workspace that contains the sync job. * @return Returns a reference to this object so that method calls can be chained together. */ public SyncJobSummary withWorkspaceId(String workspaceId) { setWorkspaceId(workspaceId); return this; } /** *

* The sync source. *

* * @param syncSource * The sync source. */ public void setSyncSource(String syncSource) { this.syncSource = syncSource; } /** *

* The sync source. *

* * @return The sync source. */ public String getSyncSource() { return this.syncSource; } /** *

* The sync source. *

* * @param syncSource * The sync source. * @return Returns a reference to this object so that method calls can be chained together. */ public SyncJobSummary withSyncSource(String syncSource) { setSyncSource(syncSource); return this; } /** *

* The SyncJob summaries status. *

* * @param status * The SyncJob summaries status. */ public void setStatus(SyncJobStatus status) { this.status = status; } /** *

* The SyncJob summaries status. *

* * @return The SyncJob summaries status. */ public SyncJobStatus getStatus() { return this.status; } /** *

* The SyncJob summaries status. *

* * @param status * The SyncJob summaries status. * @return Returns a reference to this object so that method calls can be chained together. */ public SyncJobSummary withStatus(SyncJobStatus status) { setStatus(status); return this; } /** *

* The creation date and time. *

* * @param creationDateTime * The creation date and time. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** *

* The creation date and time. *

* * @return The creation date and time. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** *

* The creation date and time. *

* * @param creationDateTime * The creation date and time. * @return Returns a reference to this object so that method calls can be chained together. */ public SyncJobSummary withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** *

* The update date and time. *

* * @param updateDateTime * The update date and time. */ public void setUpdateDateTime(java.util.Date updateDateTime) { this.updateDateTime = updateDateTime; } /** *

* The update date and time. *

* * @return The update date and time. */ public java.util.Date getUpdateDateTime() { return this.updateDateTime; } /** *

* The update date and time. *

* * @param updateDateTime * The update date and time. * @return Returns a reference to this object so that method calls can be chained together. */ public SyncJobSummary withUpdateDateTime(java.util.Date updateDateTime) { setUpdateDateTime(updateDateTime); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getWorkspaceId() != null) sb.append("WorkspaceId: ").append(getWorkspaceId()).append(","); if (getSyncSource() != null) sb.append("SyncSource: ").append(getSyncSource()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getUpdateDateTime() != null) sb.append("UpdateDateTime: ").append(getUpdateDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SyncJobSummary == false) return false; SyncJobSummary other = (SyncJobSummary) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getWorkspaceId() == null ^ this.getWorkspaceId() == null) return false; if (other.getWorkspaceId() != null && other.getWorkspaceId().equals(this.getWorkspaceId()) == false) return false; if (other.getSyncSource() == null ^ this.getSyncSource() == null) return false; if (other.getSyncSource() != null && other.getSyncSource().equals(this.getSyncSource()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getUpdateDateTime() == null ^ this.getUpdateDateTime() == null) return false; if (other.getUpdateDateTime() != null && other.getUpdateDateTime().equals(this.getUpdateDateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getWorkspaceId() == null) ? 0 : getWorkspaceId().hashCode()); hashCode = prime * hashCode + ((getSyncSource() == null) ? 0 : getSyncSource().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getUpdateDateTime() == null) ? 0 : getUpdateDateTime().hashCode()); return hashCode; } @Override public SyncJobSummary clone() { try { return (SyncJobSummary) 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.iottwinmaker.model.transform.SyncJobSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy