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

com.amazonaws.services.iottwinmaker.model.GetSyncJobResult 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;

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

    /**
     * 

* The sync job ARN. *

*/ private String arn; /** *

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

*/ private String workspaceId; /** *

* The sync soucre. *

* *

* Currently the only supported syncSource is SITEWISE . *

*
*/ private String syncSource; /** *

* The sync IAM role. *

*/ private String syncRole; /** *

* The SyncJob response 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 sync job ARN. *

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

* The sync job ARN. *

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

* The sync job ARN. *

* * @param arn * The sync job ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSyncJobResult 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 GetSyncJobResult withWorkspaceId(String workspaceId) { setWorkspaceId(workspaceId); return this; } /** *

* The sync soucre. *

* *

* Currently the only supported syncSource is SITEWISE . *

*
* * @param syncSource * The sync soucre.

*

* Currently the only supported syncSource is SITEWISE . *

*/ public void setSyncSource(String syncSource) { this.syncSource = syncSource; } /** *

* The sync soucre. *

* *

* Currently the only supported syncSource is SITEWISE . *

*
* * @return The sync soucre.

*

* Currently the only supported syncSource is SITEWISE . *

*/ public String getSyncSource() { return this.syncSource; } /** *

* The sync soucre. *

* *

* Currently the only supported syncSource is SITEWISE . *

*
* * @param syncSource * The sync soucre.

*

* Currently the only supported syncSource is SITEWISE . *

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

* The sync IAM role. *

* * @param syncRole * The sync IAM role. */ public void setSyncRole(String syncRole) { this.syncRole = syncRole; } /** *

* The sync IAM role. *

* * @return The sync IAM role. */ public String getSyncRole() { return this.syncRole; } /** *

* The sync IAM role. *

* * @param syncRole * The sync IAM role. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSyncJobResult withSyncRole(String syncRole) { setSyncRole(syncRole); return this; } /** *

* The SyncJob response status. *

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

* The SyncJob response status. *

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

* The SyncJob response status. *

* * @param status * The SyncJob response status. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSyncJobResult 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 GetSyncJobResult 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 GetSyncJobResult 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 (getSyncRole() != null) sb.append("SyncRole: ").append(getSyncRole()).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 GetSyncJobResult == false) return false; GetSyncJobResult other = (GetSyncJobResult) 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.getSyncRole() == null ^ this.getSyncRole() == null) return false; if (other.getSyncRole() != null && other.getSyncRole().equals(this.getSyncRole()) == 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 + ((getSyncRole() == null) ? 0 : getSyncRole().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 GetSyncJobResult clone() { try { return (GetSyncJobResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy