
com.oracle.bmc.mysql.responses.GetWorkRequestResponse Maven / Gradle / Ivy
/**
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
*/
package com.oracle.bmc.mysql.responses;
import com.oracle.bmc.mysql.model.*;
@javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415")
@lombok.Builder(builderClassName = "Builder")
@lombok.Getter
public class GetWorkRequestResponse {
/**
* HTTP status code returned by the operation.
*/
private final int __httpStatusCode__;
/**
* For optimistic concurrency control. See `if-match`.
*
*/
private String etag;
/**
* A decimal number representing the number of seconds the client should wait before polling this endpoint again.
*/
private Integer retryAfter;
/**
* Unique Oracle-assigned identifier for the request. If you need to contact
* Oracle about a particular request, please provide the request ID.
*
*/
private String opcRequestId;
/**
* The returned WorkRequest instance, or null if {@link #isNotModified()} is true.
*/
private WorkRequest workRequest;
/**
* Flag to indicate whether or not the object was modified. If this is true,
* the getter for the object itself will return null. Callers should check this
* if they specified one of the request params that might result in a conditional
* response (like 'if-match'/'if-none-match').
*/
private boolean isNotModified;
public static class Builder {
/**
* Copy method to populate the builder with values from the given instance.
* @return this builder instance
*/
public Builder copy(GetWorkRequestResponse o) {
__httpStatusCode__(o.get__httpStatusCode__());
etag(o.getEtag());
retryAfter(o.getRetryAfter());
opcRequestId(o.getOpcRequestId());
workRequest(o.getWorkRequest());
isNotModified(o.isNotModified());
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy