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

com.amazonaws.services.datazone.model.StartDataSourceRunResult Maven / Gradle / Ivy

Go to download

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

The 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.datazone.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* The timestamp of when data source run was created. *

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

* The configuration snapshot of the data source that is being run. *

*/ private String dataSourceConfigurationSnapshot; /** *

* The identifier of the data source. *

*/ private String dataSourceId; /** *

* The identifier of the Amazon DataZone domain in which to start a data source run. *

*/ private String domainId; /** *

* Specifies the error message that is returned if the operation cannot be successfully completed. *

*/ private DataSourceErrorMessage errorMessage; /** *

* The identifier of the data source run. *

*/ private String id; /** *

* The identifier of the project. *

*/ private String projectId; /** *

* Specifies run statistics for assets. *

*/ private RunStatisticsForAssets runStatisticsForAssets; /** *

* The timestamp of when the data source run was started. *

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

* The status of the data source run. *

*/ private String status; /** *

* The timestamp of when the data source run was stopped. *

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

* The type of the data source run. *

*/ private String type; /** *

* The timestamp of when the data source run was updated. *

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

* The timestamp of when data source run was created. *

* * @param createdAt * The timestamp of when data source run was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* The timestamp of when data source run was created. *

* * @return The timestamp of when data source run was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* The timestamp of when data source run was created. *

* * @param createdAt * The timestamp of when data source run was created. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* The configuration snapshot of the data source that is being run. *

* * @param dataSourceConfigurationSnapshot * The configuration snapshot of the data source that is being run. */ public void setDataSourceConfigurationSnapshot(String dataSourceConfigurationSnapshot) { this.dataSourceConfigurationSnapshot = dataSourceConfigurationSnapshot; } /** *

* The configuration snapshot of the data source that is being run. *

* * @return The configuration snapshot of the data source that is being run. */ public String getDataSourceConfigurationSnapshot() { return this.dataSourceConfigurationSnapshot; } /** *

* The configuration snapshot of the data source that is being run. *

* * @param dataSourceConfigurationSnapshot * The configuration snapshot of the data source that is being run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withDataSourceConfigurationSnapshot(String dataSourceConfigurationSnapshot) { setDataSourceConfigurationSnapshot(dataSourceConfigurationSnapshot); return this; } /** *

* The identifier of the data source. *

* * @param dataSourceId * The identifier of the data source. */ public void setDataSourceId(String dataSourceId) { this.dataSourceId = dataSourceId; } /** *

* The identifier of the data source. *

* * @return The identifier of the data source. */ public String getDataSourceId() { return this.dataSourceId; } /** *

* The identifier of the data source. *

* * @param dataSourceId * The identifier of the data source. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withDataSourceId(String dataSourceId) { setDataSourceId(dataSourceId); return this; } /** *

* The identifier of the Amazon DataZone domain in which to start a data source run. *

* * @param domainId * The identifier of the Amazon DataZone domain in which to start a data source run. */ public void setDomainId(String domainId) { this.domainId = domainId; } /** *

* The identifier of the Amazon DataZone domain in which to start a data source run. *

* * @return The identifier of the Amazon DataZone domain in which to start a data source run. */ public String getDomainId() { return this.domainId; } /** *

* The identifier of the Amazon DataZone domain in which to start a data source run. *

* * @param domainId * The identifier of the Amazon DataZone domain in which to start a data source run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withDomainId(String domainId) { setDomainId(domainId); return this; } /** *

* Specifies the error message that is returned if the operation cannot be successfully completed. *

* * @param errorMessage * Specifies the error message that is returned if the operation cannot be successfully completed. */ public void setErrorMessage(DataSourceErrorMessage errorMessage) { this.errorMessage = errorMessage; } /** *

* Specifies the error message that is returned if the operation cannot be successfully completed. *

* * @return Specifies the error message that is returned if the operation cannot be successfully completed. */ public DataSourceErrorMessage getErrorMessage() { return this.errorMessage; } /** *

* Specifies the error message that is returned if the operation cannot be successfully completed. *

* * @param errorMessage * Specifies the error message that is returned if the operation cannot be successfully completed. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withErrorMessage(DataSourceErrorMessage errorMessage) { setErrorMessage(errorMessage); return this; } /** *

* The identifier of the data source run. *

* * @param id * The identifier of the data source run. */ public void setId(String id) { this.id = id; } /** *

* The identifier of the data source run. *

* * @return The identifier of the data source run. */ public String getId() { return this.id; } /** *

* The identifier of the data source run. *

* * @param id * The identifier of the data source run. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withId(String id) { setId(id); return this; } /** *

* The identifier of the project. *

* * @param projectId * The identifier of the project. */ public void setProjectId(String projectId) { this.projectId = projectId; } /** *

* The identifier of the project. *

* * @return The identifier of the project. */ public String getProjectId() { return this.projectId; } /** *

* The identifier of the project. *

* * @param projectId * The identifier of the project. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withProjectId(String projectId) { setProjectId(projectId); return this; } /** *

* Specifies run statistics for assets. *

* * @param runStatisticsForAssets * Specifies run statistics for assets. */ public void setRunStatisticsForAssets(RunStatisticsForAssets runStatisticsForAssets) { this.runStatisticsForAssets = runStatisticsForAssets; } /** *

* Specifies run statistics for assets. *

* * @return Specifies run statistics for assets. */ public RunStatisticsForAssets getRunStatisticsForAssets() { return this.runStatisticsForAssets; } /** *

* Specifies run statistics for assets. *

* * @param runStatisticsForAssets * Specifies run statistics for assets. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withRunStatisticsForAssets(RunStatisticsForAssets runStatisticsForAssets) { setRunStatisticsForAssets(runStatisticsForAssets); return this; } /** *

* The timestamp of when the data source run was started. *

* * @param startedAt * The timestamp of when the data source run was started. */ public void setStartedAt(java.util.Date startedAt) { this.startedAt = startedAt; } /** *

* The timestamp of when the data source run was started. *

* * @return The timestamp of when the data source run was started. */ public java.util.Date getStartedAt() { return this.startedAt; } /** *

* The timestamp of when the data source run was started. *

* * @param startedAt * The timestamp of when the data source run was started. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withStartedAt(java.util.Date startedAt) { setStartedAt(startedAt); return this; } /** *

* The status of the data source run. *

* * @param status * The status of the data source run. * @see DataSourceRunStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the data source run. *

* * @return The status of the data source run. * @see DataSourceRunStatus */ public String getStatus() { return this.status; } /** *

* The status of the data source run. *

* * @param status * The status of the data source run. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSourceRunStatus */ public StartDataSourceRunResult withStatus(String status) { setStatus(status); return this; } /** *

* The status of the data source run. *

* * @param status * The status of the data source run. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSourceRunStatus */ public StartDataSourceRunResult withStatus(DataSourceRunStatus status) { this.status = status.toString(); return this; } /** *

* The timestamp of when the data source run was stopped. *

* * @param stoppedAt * The timestamp of when the data source run was stopped. */ public void setStoppedAt(java.util.Date stoppedAt) { this.stoppedAt = stoppedAt; } /** *

* The timestamp of when the data source run was stopped. *

* * @return The timestamp of when the data source run was stopped. */ public java.util.Date getStoppedAt() { return this.stoppedAt; } /** *

* The timestamp of when the data source run was stopped. *

* * @param stoppedAt * The timestamp of when the data source run was stopped. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withStoppedAt(java.util.Date stoppedAt) { setStoppedAt(stoppedAt); return this; } /** *

* The type of the data source run. *

* * @param type * The type of the data source run. * @see DataSourceRunType */ public void setType(String type) { this.type = type; } /** *

* The type of the data source run. *

* * @return The type of the data source run. * @see DataSourceRunType */ public String getType() { return this.type; } /** *

* The type of the data source run. *

* * @param type * The type of the data source run. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSourceRunType */ public StartDataSourceRunResult withType(String type) { setType(type); return this; } /** *

* The type of the data source run. *

* * @param type * The type of the data source run. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSourceRunType */ public StartDataSourceRunResult withType(DataSourceRunType type) { this.type = type.toString(); return this; } /** *

* The timestamp of when the data source run was updated. *

* * @param updatedAt * The timestamp of when the data source run was updated. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** *

* The timestamp of when the data source run was updated. *

* * @return The timestamp of when the data source run was updated. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** *

* The timestamp of when the data source run was updated. *

* * @param updatedAt * The timestamp of when the data source run was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public StartDataSourceRunResult withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); 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 (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getDataSourceConfigurationSnapshot() != null) sb.append("DataSourceConfigurationSnapshot: ").append(getDataSourceConfigurationSnapshot()).append(","); if (getDataSourceId() != null) sb.append("DataSourceId: ").append(getDataSourceId()).append(","); if (getDomainId() != null) sb.append("DomainId: ").append(getDomainId()).append(","); if (getErrorMessage() != null) sb.append("ErrorMessage: ").append(getErrorMessage()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getProjectId() != null) sb.append("ProjectId: ").append(getProjectId()).append(","); if (getRunStatisticsForAssets() != null) sb.append("RunStatisticsForAssets: ").append(getRunStatisticsForAssets()).append(","); if (getStartedAt() != null) sb.append("StartedAt: ").append(getStartedAt()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStoppedAt() != null) sb.append("StoppedAt: ").append(getStoppedAt()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartDataSourceRunResult == false) return false; StartDataSourceRunResult other = (StartDataSourceRunResult) obj; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getDataSourceConfigurationSnapshot() == null ^ this.getDataSourceConfigurationSnapshot() == null) return false; if (other.getDataSourceConfigurationSnapshot() != null && other.getDataSourceConfigurationSnapshot().equals(this.getDataSourceConfigurationSnapshot()) == false) return false; if (other.getDataSourceId() == null ^ this.getDataSourceId() == null) return false; if (other.getDataSourceId() != null && other.getDataSourceId().equals(this.getDataSourceId()) == false) return false; if (other.getDomainId() == null ^ this.getDomainId() == null) return false; if (other.getDomainId() != null && other.getDomainId().equals(this.getDomainId()) == false) return false; if (other.getErrorMessage() == null ^ this.getErrorMessage() == null) return false; if (other.getErrorMessage() != null && other.getErrorMessage().equals(this.getErrorMessage()) == 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.getProjectId() == null ^ this.getProjectId() == null) return false; if (other.getProjectId() != null && other.getProjectId().equals(this.getProjectId()) == false) return false; if (other.getRunStatisticsForAssets() == null ^ this.getRunStatisticsForAssets() == null) return false; if (other.getRunStatisticsForAssets() != null && other.getRunStatisticsForAssets().equals(this.getRunStatisticsForAssets()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStoppedAt() == null ^ this.getStoppedAt() == null) return false; if (other.getStoppedAt() != null && other.getStoppedAt().equals(this.getStoppedAt()) == false) return false; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getDataSourceConfigurationSnapshot() == null) ? 0 : getDataSourceConfigurationSnapshot().hashCode()); hashCode = prime * hashCode + ((getDataSourceId() == null) ? 0 : getDataSourceId().hashCode()); hashCode = prime * hashCode + ((getDomainId() == null) ? 0 : getDomainId().hashCode()); hashCode = prime * hashCode + ((getErrorMessage() == null) ? 0 : getErrorMessage().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getProjectId() == null) ? 0 : getProjectId().hashCode()); hashCode = prime * hashCode + ((getRunStatisticsForAssets() == null) ? 0 : getRunStatisticsForAssets().hashCode()); hashCode = prime * hashCode + ((getStartedAt() == null) ? 0 : getStartedAt().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStoppedAt() == null) ? 0 : getStoppedAt().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); return hashCode; } @Override public StartDataSourceRunResult clone() { try { return (StartDataSourceRunResult) 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