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

com.amazonaws.services.ssmsap.model.Operation Maven / Gradle / Ivy

Go to download

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

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

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

/**
 * 

* The operations performed by AWS Systems Manager for SAP. *

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

* The ID of the operation. *

*/ private String id; /** *

* The type of the operation. *

*/ private String type; /** *

* The status of the operation. *

*/ private String status; /** *

* The status message of the operation. *

*/ private String statusMessage; /** *

* The properties of the operation. *

*/ private java.util.Map properties; /** *

* The resource type of the operation. *

*/ private String resourceType; /** *

* The resource ID of the operation. *

*/ private String resourceId; /** *

* The Amazon Resource Name (ARN) of the operation. *

*/ private String resourceArn; /** *

* The start time of the operation. *

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

* The end time of the operation. *

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

* The time at which the operation was last updated. *

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

* The ID of the operation. *

* * @param id * The ID of the operation. */ public void setId(String id) { this.id = id; } /** *

* The ID of the operation. *

* * @return The ID of the operation. */ public String getId() { return this.id; } /** *

* The ID of the operation. *

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

* The type of the operation. *

* * @param type * The type of the operation. */ public void setType(String type) { this.type = type; } /** *

* The type of the operation. *

* * @return The type of the operation. */ public String getType() { return this.type; } /** *

* The type of the operation. *

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

* The status of the operation. *

* * @param status * The status of the operation. * @see OperationStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the operation. *

* * @return The status of the operation. * @see OperationStatus */ public String getStatus() { return this.status; } /** *

* The status of the operation. *

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

* The status of the operation. *

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

* The status message of the operation. *

* * @param statusMessage * The status message of the operation. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** *

* The status message of the operation. *

* * @return The status message of the operation. */ public String getStatusMessage() { return this.statusMessage; } /** *

* The status message of the operation. *

* * @param statusMessage * The status message of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Operation withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** *

* The properties of the operation. *

* * @return The properties of the operation. */ public java.util.Map getProperties() { return properties; } /** *

* The properties of the operation. *

* * @param properties * The properties of the operation. */ public void setProperties(java.util.Map properties) { this.properties = properties; } /** *

* The properties of the operation. *

* * @param properties * The properties of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Operation withProperties(java.util.Map properties) { setProperties(properties); return this; } /** * Add a single Properties entry * * @see Operation#withProperties * @returns a reference to this object so that method calls can be chained together. */ public Operation addPropertiesEntry(String key, String value) { if (null == this.properties) { this.properties = new java.util.HashMap(); } if (this.properties.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.properties.put(key, value); return this; } /** * Removes all the entries added into Properties. * * @return Returns a reference to this object so that method calls can be chained together. */ public Operation clearPropertiesEntries() { this.properties = null; return this; } /** *

* The resource type of the operation. *

* * @param resourceType * The resource type of the operation. */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* The resource type of the operation. *

* * @return The resource type of the operation. */ public String getResourceType() { return this.resourceType; } /** *

* The resource type of the operation. *

* * @param resourceType * The resource type of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Operation withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* The resource ID of the operation. *

* * @param resourceId * The resource ID of the operation. */ public void setResourceId(String resourceId) { this.resourceId = resourceId; } /** *

* The resource ID of the operation. *

* * @return The resource ID of the operation. */ public String getResourceId() { return this.resourceId; } /** *

* The resource ID of the operation. *

* * @param resourceId * The resource ID of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Operation withResourceId(String resourceId) { setResourceId(resourceId); return this; } /** *

* The Amazon Resource Name (ARN) of the operation. *

* * @param resourceArn * The Amazon Resource Name (ARN) of the operation. */ public void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } /** *

* The Amazon Resource Name (ARN) of the operation. *

* * @return The Amazon Resource Name (ARN) of the operation. */ public String getResourceArn() { return this.resourceArn; } /** *

* The Amazon Resource Name (ARN) of the operation. *

* * @param resourceArn * The Amazon Resource Name (ARN) of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Operation withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; } /** *

* The start time of the operation. *

* * @param startTime * The start time of the operation. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start time of the operation. *

* * @return The start time of the operation. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start time of the operation. *

* * @param startTime * The start time of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Operation withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* The end time of the operation. *

* * @param endTime * The end time of the operation. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end time of the operation. *

* * @return The end time of the operation. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end time of the operation. *

* * @param endTime * The end time of the operation. * @return Returns a reference to this object so that method calls can be chained together. */ public Operation withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The time at which the operation was last updated. *

* * @param lastUpdatedTime * The time at which the operation was last updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* The time at which the operation was last updated. *

* * @return The time at which the operation was last updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* The time at which the operation was last updated. *

* * @param lastUpdatedTime * The time at which the operation was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Operation withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getProperties() != null) sb.append("Properties: ").append(getProperties()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getResourceId() != null) sb.append("ResourceId: ").append(getResourceId()).append(","); if (getResourceArn() != null) sb.append("ResourceArn: ").append(getResourceArn()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Operation == false) return false; Operation other = (Operation) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; if (other.getProperties() == null ^ this.getProperties() == null) return false; if (other.getProperties() != null && other.getProperties().equals(this.getProperties()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getResourceId() == null ^ this.getResourceId() == null) return false; if (other.getResourceId() != null && other.getResourceId().equals(this.getResourceId()) == false) return false; if (other.getResourceArn() == null ^ this.getResourceArn() == null) return false; if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getProperties() == null) ? 0 : getProperties().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getResourceId() == null) ? 0 : getResourceId().hashCode()); hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); return hashCode; } @Override public Operation clone() { try { return (Operation) 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.ssmsap.model.transform.OperationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy