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

com.amazonaws.services.s3control.model.AsyncOperation Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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.s3control.model;

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

/**
 * 

* A container for the information about an asynchronous operation. *

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

* The time that the request was sent to the service. *

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

* The specific operation for the asynchronous request. *

*/ private String operation; /** *

* The request token associated with the request. *

*/ private String requestTokenARN; /** *

* The parameters associated with the request. *

*/ private AsyncRequestParameters requestParameters; /** *

* The current status of the request. *

*/ private String requestStatus; /** *

* The details of the response. *

*/ private AsyncResponseDetails responseDetails; /** *

* The time that the request was sent to the service. *

* * @param creationTime * The time that the request was sent to the service. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time that the request was sent to the service. *

* * @return The time that the request was sent to the service. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time that the request was sent to the service. *

* * @param creationTime * The time that the request was sent to the service. * @return Returns a reference to this object so that method calls can be chained together. */ public AsyncOperation withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The specific operation for the asynchronous request. *

* * @param operation * The specific operation for the asynchronous request. * @see AsyncOperationName */ public void setOperation(String operation) { this.operation = operation; } /** *

* The specific operation for the asynchronous request. *

* * @return The specific operation for the asynchronous request. * @see AsyncOperationName */ public String getOperation() { return this.operation; } /** *

* The specific operation for the asynchronous request. *

* * @param operation * The specific operation for the asynchronous request. * @return Returns a reference to this object so that method calls can be chained together. * @see AsyncOperationName */ public AsyncOperation withOperation(String operation) { setOperation(operation); return this; } /** *

* The specific operation for the asynchronous request. *

* * @param operation * The specific operation for the asynchronous request. * @return Returns a reference to this object so that method calls can be chained together. * @see AsyncOperationName */ public AsyncOperation withOperation(AsyncOperationName operation) { this.operation = operation.toString(); return this; } /** *

* The request token associated with the request. *

* * @param requestTokenARN * The request token associated with the request. */ public void setRequestTokenARN(String requestTokenARN) { this.requestTokenARN = requestTokenARN; } /** *

* The request token associated with the request. *

* * @return The request token associated with the request. */ public String getRequestTokenARN() { return this.requestTokenARN; } /** *

* The request token associated with the request. *

* * @param requestTokenARN * The request token associated with the request. * @return Returns a reference to this object so that method calls can be chained together. */ public AsyncOperation withRequestTokenARN(String requestTokenARN) { setRequestTokenARN(requestTokenARN); return this; } /** *

* The parameters associated with the request. *

* * @param requestParameters * The parameters associated with the request. */ public void setRequestParameters(AsyncRequestParameters requestParameters) { this.requestParameters = requestParameters; } /** *

* The parameters associated with the request. *

* * @return The parameters associated with the request. */ public AsyncRequestParameters getRequestParameters() { return this.requestParameters; } /** *

* The parameters associated with the request. *

* * @param requestParameters * The parameters associated with the request. * @return Returns a reference to this object so that method calls can be chained together. */ public AsyncOperation withRequestParameters(AsyncRequestParameters requestParameters) { setRequestParameters(requestParameters); return this; } /** *

* The current status of the request. *

* * @param requestStatus * The current status of the request. */ public void setRequestStatus(String requestStatus) { this.requestStatus = requestStatus; } /** *

* The current status of the request. *

* * @return The current status of the request. */ public String getRequestStatus() { return this.requestStatus; } /** *

* The current status of the request. *

* * @param requestStatus * The current status of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public AsyncOperation withRequestStatus(String requestStatus) { setRequestStatus(requestStatus); return this; } /** *

* The details of the response. *

* * @param responseDetails * The details of the response. */ public void setResponseDetails(AsyncResponseDetails responseDetails) { this.responseDetails = responseDetails; } /** *

* The details of the response. *

* * @return The details of the response. */ public AsyncResponseDetails getResponseDetails() { return this.responseDetails; } /** *

* The details of the response. *

* * @param responseDetails * The details of the response. * @return Returns a reference to this object so that method calls can be chained together. */ public AsyncOperation withResponseDetails(AsyncResponseDetails responseDetails) { setResponseDetails(responseDetails); 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 (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getOperation() != null) sb.append("Operation: ").append(getOperation()).append(","); if (getRequestTokenARN() != null) sb.append("RequestTokenARN: ").append(getRequestTokenARN()).append(","); if (getRequestParameters() != null) sb.append("RequestParameters: ").append(getRequestParameters()).append(","); if (getRequestStatus() != null) sb.append("RequestStatus: ").append(getRequestStatus()).append(","); if (getResponseDetails() != null) sb.append("ResponseDetails: ").append(getResponseDetails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AsyncOperation == false) return false; AsyncOperation other = (AsyncOperation) obj; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getOperation() == null ^ this.getOperation() == null) return false; if (other.getOperation() != null && other.getOperation().equals(this.getOperation()) == false) return false; if (other.getRequestTokenARN() == null ^ this.getRequestTokenARN() == null) return false; if (other.getRequestTokenARN() != null && other.getRequestTokenARN().equals(this.getRequestTokenARN()) == false) return false; if (other.getRequestParameters() == null ^ this.getRequestParameters() == null) return false; if (other.getRequestParameters() != null && other.getRequestParameters().equals(this.getRequestParameters()) == false) return false; if (other.getRequestStatus() == null ^ this.getRequestStatus() == null) return false; if (other.getRequestStatus() != null && other.getRequestStatus().equals(this.getRequestStatus()) == false) return false; if (other.getResponseDetails() == null ^ this.getResponseDetails() == null) return false; if (other.getResponseDetails() != null && other.getResponseDetails().equals(this.getResponseDetails()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getOperation() == null) ? 0 : getOperation().hashCode()); hashCode = prime * hashCode + ((getRequestTokenARN() == null) ? 0 : getRequestTokenARN().hashCode()); hashCode = prime * hashCode + ((getRequestParameters() == null) ? 0 : getRequestParameters().hashCode()); hashCode = prime * hashCode + ((getRequestStatus() == null) ? 0 : getRequestStatus().hashCode()); hashCode = prime * hashCode + ((getResponseDetails() == null) ? 0 : getResponseDetails().hashCode()); return hashCode; } @Override public AsyncOperation clone() { try { return (AsyncOperation) 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