com.amazonaws.services.sagemaker.model.EdgeDeploymentPlanSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-sagemaker Show documentation
/*
* 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.sagemaker.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Contains information summarizing an edge deployment plan.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class EdgeDeploymentPlanSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The ARN of the edge deployment plan.
*
*/
private String edgeDeploymentPlanArn;
/**
*
* The name of the edge deployment plan.
*
*/
private String edgeDeploymentPlanName;
/**
*
* The name of the device fleet used for the deployment.
*
*/
private String deviceFleetName;
/**
*
* The number of edge devices with the successful deployment.
*
*/
private Integer edgeDeploymentSuccess;
/**
*
* The number of edge devices yet to pick up the deployment, or in progress.
*
*/
private Integer edgeDeploymentPending;
/**
*
* The number of edge devices that failed the deployment.
*
*/
private Integer edgeDeploymentFailed;
/**
*
* The time when the edge deployment plan was created.
*
*/
private java.util.Date creationTime;
/**
*
* The time when the edge deployment plan was last updated.
*
*/
private java.util.Date lastModifiedTime;
/**
*
* The ARN of the edge deployment plan.
*
*
* @param edgeDeploymentPlanArn
* The ARN of the edge deployment plan.
*/
public void setEdgeDeploymentPlanArn(String edgeDeploymentPlanArn) {
this.edgeDeploymentPlanArn = edgeDeploymentPlanArn;
}
/**
*
* The ARN of the edge deployment plan.
*
*
* @return The ARN of the edge deployment plan.
*/
public String getEdgeDeploymentPlanArn() {
return this.edgeDeploymentPlanArn;
}
/**
*
* The ARN of the edge deployment plan.
*
*
* @param edgeDeploymentPlanArn
* The ARN of the edge deployment plan.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EdgeDeploymentPlanSummary withEdgeDeploymentPlanArn(String edgeDeploymentPlanArn) {
setEdgeDeploymentPlanArn(edgeDeploymentPlanArn);
return this;
}
/**
*
* The name of the edge deployment plan.
*
*
* @param edgeDeploymentPlanName
* The name of the edge deployment plan.
*/
public void setEdgeDeploymentPlanName(String edgeDeploymentPlanName) {
this.edgeDeploymentPlanName = edgeDeploymentPlanName;
}
/**
*
* The name of the edge deployment plan.
*
*
* @return The name of the edge deployment plan.
*/
public String getEdgeDeploymentPlanName() {
return this.edgeDeploymentPlanName;
}
/**
*
* The name of the edge deployment plan.
*
*
* @param edgeDeploymentPlanName
* The name of the edge deployment plan.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EdgeDeploymentPlanSummary withEdgeDeploymentPlanName(String edgeDeploymentPlanName) {
setEdgeDeploymentPlanName(edgeDeploymentPlanName);
return this;
}
/**
*
* The name of the device fleet used for the deployment.
*
*
* @param deviceFleetName
* The name of the device fleet used for the deployment.
*/
public void setDeviceFleetName(String deviceFleetName) {
this.deviceFleetName = deviceFleetName;
}
/**
*
* The name of the device fleet used for the deployment.
*
*
* @return The name of the device fleet used for the deployment.
*/
public String getDeviceFleetName() {
return this.deviceFleetName;
}
/**
*
* The name of the device fleet used for the deployment.
*
*
* @param deviceFleetName
* The name of the device fleet used for the deployment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EdgeDeploymentPlanSummary withDeviceFleetName(String deviceFleetName) {
setDeviceFleetName(deviceFleetName);
return this;
}
/**
*
* The number of edge devices with the successful deployment.
*
*
* @param edgeDeploymentSuccess
* The number of edge devices with the successful deployment.
*/
public void setEdgeDeploymentSuccess(Integer edgeDeploymentSuccess) {
this.edgeDeploymentSuccess = edgeDeploymentSuccess;
}
/**
*
* The number of edge devices with the successful deployment.
*
*
* @return The number of edge devices with the successful deployment.
*/
public Integer getEdgeDeploymentSuccess() {
return this.edgeDeploymentSuccess;
}
/**
*
* The number of edge devices with the successful deployment.
*
*
* @param edgeDeploymentSuccess
* The number of edge devices with the successful deployment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EdgeDeploymentPlanSummary withEdgeDeploymentSuccess(Integer edgeDeploymentSuccess) {
setEdgeDeploymentSuccess(edgeDeploymentSuccess);
return this;
}
/**
*
* The number of edge devices yet to pick up the deployment, or in progress.
*
*
* @param edgeDeploymentPending
* The number of edge devices yet to pick up the deployment, or in progress.
*/
public void setEdgeDeploymentPending(Integer edgeDeploymentPending) {
this.edgeDeploymentPending = edgeDeploymentPending;
}
/**
*
* The number of edge devices yet to pick up the deployment, or in progress.
*
*
* @return The number of edge devices yet to pick up the deployment, or in progress.
*/
public Integer getEdgeDeploymentPending() {
return this.edgeDeploymentPending;
}
/**
*
* The number of edge devices yet to pick up the deployment, or in progress.
*
*
* @param edgeDeploymentPending
* The number of edge devices yet to pick up the deployment, or in progress.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EdgeDeploymentPlanSummary withEdgeDeploymentPending(Integer edgeDeploymentPending) {
setEdgeDeploymentPending(edgeDeploymentPending);
return this;
}
/**
*
* The number of edge devices that failed the deployment.
*
*
* @param edgeDeploymentFailed
* The number of edge devices that failed the deployment.
*/
public void setEdgeDeploymentFailed(Integer edgeDeploymentFailed) {
this.edgeDeploymentFailed = edgeDeploymentFailed;
}
/**
*
* The number of edge devices that failed the deployment.
*
*
* @return The number of edge devices that failed the deployment.
*/
public Integer getEdgeDeploymentFailed() {
return this.edgeDeploymentFailed;
}
/**
*
* The number of edge devices that failed the deployment.
*
*
* @param edgeDeploymentFailed
* The number of edge devices that failed the deployment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EdgeDeploymentPlanSummary withEdgeDeploymentFailed(Integer edgeDeploymentFailed) {
setEdgeDeploymentFailed(edgeDeploymentFailed);
return this;
}
/**
*
* The time when the edge deployment plan was created.
*
*
* @param creationTime
* The time when the edge deployment plan was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The time when the edge deployment plan was created.
*
*
* @return The time when the edge deployment plan was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The time when the edge deployment plan was created.
*
*
* @param creationTime
* The time when the edge deployment plan was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EdgeDeploymentPlanSummary withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The time when the edge deployment plan was last updated.
*
*
* @param lastModifiedTime
* The time when the edge deployment plan was last updated.
*/
public void setLastModifiedTime(java.util.Date lastModifiedTime) {
this.lastModifiedTime = lastModifiedTime;
}
/**
*
* The time when the edge deployment plan was last updated.
*
*
* @return The time when the edge deployment plan was last updated.
*/
public java.util.Date getLastModifiedTime() {
return this.lastModifiedTime;
}
/**
*
* The time when the edge deployment plan was last updated.
*
*
* @param lastModifiedTime
* The time when the edge deployment plan was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public EdgeDeploymentPlanSummary withLastModifiedTime(java.util.Date lastModifiedTime) {
setLastModifiedTime(lastModifiedTime);
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 (getEdgeDeploymentPlanArn() != null)
sb.append("EdgeDeploymentPlanArn: ").append(getEdgeDeploymentPlanArn()).append(",");
if (getEdgeDeploymentPlanName() != null)
sb.append("EdgeDeploymentPlanName: ").append(getEdgeDeploymentPlanName()).append(",");
if (getDeviceFleetName() != null)
sb.append("DeviceFleetName: ").append(getDeviceFleetName()).append(",");
if (getEdgeDeploymentSuccess() != null)
sb.append("EdgeDeploymentSuccess: ").append(getEdgeDeploymentSuccess()).append(",");
if (getEdgeDeploymentPending() != null)
sb.append("EdgeDeploymentPending: ").append(getEdgeDeploymentPending()).append(",");
if (getEdgeDeploymentFailed() != null)
sb.append("EdgeDeploymentFailed: ").append(getEdgeDeploymentFailed()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getLastModifiedTime() != null)
sb.append("LastModifiedTime: ").append(getLastModifiedTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof EdgeDeploymentPlanSummary == false)
return false;
EdgeDeploymentPlanSummary other = (EdgeDeploymentPlanSummary) obj;
if (other.getEdgeDeploymentPlanArn() == null ^ this.getEdgeDeploymentPlanArn() == null)
return false;
if (other.getEdgeDeploymentPlanArn() != null && other.getEdgeDeploymentPlanArn().equals(this.getEdgeDeploymentPlanArn()) == false)
return false;
if (other.getEdgeDeploymentPlanName() == null ^ this.getEdgeDeploymentPlanName() == null)
return false;
if (other.getEdgeDeploymentPlanName() != null && other.getEdgeDeploymentPlanName().equals(this.getEdgeDeploymentPlanName()) == false)
return false;
if (other.getDeviceFleetName() == null ^ this.getDeviceFleetName() == null)
return false;
if (other.getDeviceFleetName() != null && other.getDeviceFleetName().equals(this.getDeviceFleetName()) == false)
return false;
if (other.getEdgeDeploymentSuccess() == null ^ this.getEdgeDeploymentSuccess() == null)
return false;
if (other.getEdgeDeploymentSuccess() != null && other.getEdgeDeploymentSuccess().equals(this.getEdgeDeploymentSuccess()) == false)
return false;
if (other.getEdgeDeploymentPending() == null ^ this.getEdgeDeploymentPending() == null)
return false;
if (other.getEdgeDeploymentPending() != null && other.getEdgeDeploymentPending().equals(this.getEdgeDeploymentPending()) == false)
return false;
if (other.getEdgeDeploymentFailed() == null ^ this.getEdgeDeploymentFailed() == null)
return false;
if (other.getEdgeDeploymentFailed() != null && other.getEdgeDeploymentFailed().equals(this.getEdgeDeploymentFailed()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null)
return false;
if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getEdgeDeploymentPlanArn() == null) ? 0 : getEdgeDeploymentPlanArn().hashCode());
hashCode = prime * hashCode + ((getEdgeDeploymentPlanName() == null) ? 0 : getEdgeDeploymentPlanName().hashCode());
hashCode = prime * hashCode + ((getDeviceFleetName() == null) ? 0 : getDeviceFleetName().hashCode());
hashCode = prime * hashCode + ((getEdgeDeploymentSuccess() == null) ? 0 : getEdgeDeploymentSuccess().hashCode());
hashCode = prime * hashCode + ((getEdgeDeploymentPending() == null) ? 0 : getEdgeDeploymentPending().hashCode());
hashCode = prime * hashCode + ((getEdgeDeploymentFailed() == null) ? 0 : getEdgeDeploymentFailed().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode());
return hashCode;
}
@Override
public EdgeDeploymentPlanSummary clone() {
try {
return (EdgeDeploymentPlanSummary) 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.sagemaker.model.transform.EdgeDeploymentPlanSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}