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

com.oracle.bmc.rover.model.RoverWorkload Maven / Gradle / Ivy

Go to download

This project contains the SDK distribution used for Oracle Cloud Infrastructure, and all the dependencies that can be shaded. It also has Maven dependencies that cannot be shaded. Therefore, use this module to depend on the shaded distribution via Maven -- it will shade everything that can be shaded, and automatically pull in the other dependencies.

There is a newer version: 3.55.2
Show newest version
/**
 * Copyright (c) 2016, 2024, 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.rover.model;

/**
 * Information about a RoverWorkload. 
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set * fields into account. The constructor, on the other hand, does not take the explicitly set fields * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201210") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = RoverWorkload.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class RoverWorkload extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "name", "compartmentId", "id", "size", "objectCount", "prefix", "rangeStart", "rangeEnd", "workloadType", "workRequestId" }) public RoverWorkload( String name, String compartmentId, String id, String size, String objectCount, String prefix, String rangeStart, String rangeEnd, String workloadType, String workRequestId) { super(); this.name = name; this.compartmentId = compartmentId; this.id = id; this.size = size; this.objectCount = objectCount; this.prefix = prefix; this.rangeStart = rangeStart; this.rangeEnd = rangeEnd; this.workloadType = workloadType; this.workRequestId = workRequestId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** Name of the Rover Workload */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** * Name of the Rover Workload * * @param name the value to set * @return this builder */ public Builder name(String name) { this.name = name; this.__explicitlySet__.add("name"); return this; } /** The OCID of the compartment containing the workload. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** * The OCID of the compartment containing the workload. * * @param compartmentId the value to set * @return this builder */ public Builder compartmentId(String compartmentId) { this.compartmentId = compartmentId; this.__explicitlySet__.add("compartmentId"); return this; } /** The Unique Oracle ID (OCID) that is immutable on creation. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** * The Unique Oracle ID (OCID) that is immutable on creation. * * @param id the value to set * @return this builder */ public Builder id(String id) { this.id = id; this.__explicitlySet__.add("id"); return this; } /** Size of the workload. */ @com.fasterxml.jackson.annotation.JsonProperty("size") private String size; /** * Size of the workload. * * @param size the value to set * @return this builder */ public Builder size(String size) { this.size = size; this.__explicitlySet__.add("size"); return this; } /** Number of objects in a workload. */ @com.fasterxml.jackson.annotation.JsonProperty("objectCount") private String objectCount; /** * Number of objects in a workload. * * @param objectCount the value to set * @return this builder */ public Builder objectCount(String objectCount) { this.objectCount = objectCount; this.__explicitlySet__.add("objectCount"); return this; } /** Prefix to filter objects in case it is a bucket. */ @com.fasterxml.jackson.annotation.JsonProperty("prefix") private String prefix; /** * Prefix to filter objects in case it is a bucket. * * @param prefix the value to set * @return this builder */ public Builder prefix(String prefix) { this.prefix = prefix; this.__explicitlySet__.add("prefix"); return this; } /** Start of the range in a bucket. */ @com.fasterxml.jackson.annotation.JsonProperty("rangeStart") private String rangeStart; /** * Start of the range in a bucket. * * @param rangeStart the value to set * @return this builder */ public Builder rangeStart(String rangeStart) { this.rangeStart = rangeStart; this.__explicitlySet__.add("rangeStart"); return this; } /** End of the range in a bucket. */ @com.fasterxml.jackson.annotation.JsonProperty("rangeEnd") private String rangeEnd; /** * End of the range in a bucket. * * @param rangeEnd the value to set * @return this builder */ public Builder rangeEnd(String rangeEnd) { this.rangeEnd = rangeEnd; this.__explicitlySet__.add("rangeEnd"); return this; } /** The type of workload */ @com.fasterxml.jackson.annotation.JsonProperty("workloadType") private String workloadType; /** * The type of workload * * @param workloadType the value to set * @return this builder */ public Builder workloadType(String workloadType) { this.workloadType = workloadType; this.__explicitlySet__.add("workloadType"); return this; } /** The compute work request id to track progress of custom image exports. */ @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") private String workRequestId; /** * The compute work request id to track progress of custom image exports. * * @param workRequestId the value to set * @return this builder */ public Builder workRequestId(String workRequestId) { this.workRequestId = workRequestId; this.__explicitlySet__.add("workRequestId"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public RoverWorkload build() { RoverWorkload model = new RoverWorkload( this.name, this.compartmentId, this.id, this.size, this.objectCount, this.prefix, this.rangeStart, this.rangeEnd, this.workloadType, this.workRequestId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(RoverWorkload model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } if (model.wasPropertyExplicitlySet("size")) { this.size(model.getSize()); } if (model.wasPropertyExplicitlySet("objectCount")) { this.objectCount(model.getObjectCount()); } if (model.wasPropertyExplicitlySet("prefix")) { this.prefix(model.getPrefix()); } if (model.wasPropertyExplicitlySet("rangeStart")) { this.rangeStart(model.getRangeStart()); } if (model.wasPropertyExplicitlySet("rangeEnd")) { this.rangeEnd(model.getRangeEnd()); } if (model.wasPropertyExplicitlySet("workloadType")) { this.workloadType(model.getWorkloadType()); } if (model.wasPropertyExplicitlySet("workRequestId")) { this.workRequestId(model.getWorkRequestId()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** Name of the Rover Workload */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** * Name of the Rover Workload * * @return the value */ public String getName() { return name; } /** The OCID of the compartment containing the workload. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** * The OCID of the compartment containing the workload. * * @return the value */ public String getCompartmentId() { return compartmentId; } /** The Unique Oracle ID (OCID) that is immutable on creation. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** * The Unique Oracle ID (OCID) that is immutable on creation. * * @return the value */ public String getId() { return id; } /** Size of the workload. */ @com.fasterxml.jackson.annotation.JsonProperty("size") private final String size; /** * Size of the workload. * * @return the value */ public String getSize() { return size; } /** Number of objects in a workload. */ @com.fasterxml.jackson.annotation.JsonProperty("objectCount") private final String objectCount; /** * Number of objects in a workload. * * @return the value */ public String getObjectCount() { return objectCount; } /** Prefix to filter objects in case it is a bucket. */ @com.fasterxml.jackson.annotation.JsonProperty("prefix") private final String prefix; /** * Prefix to filter objects in case it is a bucket. * * @return the value */ public String getPrefix() { return prefix; } /** Start of the range in a bucket. */ @com.fasterxml.jackson.annotation.JsonProperty("rangeStart") private final String rangeStart; /** * Start of the range in a bucket. * * @return the value */ public String getRangeStart() { return rangeStart; } /** End of the range in a bucket. */ @com.fasterxml.jackson.annotation.JsonProperty("rangeEnd") private final String rangeEnd; /** * End of the range in a bucket. * * @return the value */ public String getRangeEnd() { return rangeEnd; } /** The type of workload */ @com.fasterxml.jackson.annotation.JsonProperty("workloadType") private final String workloadType; /** * The type of workload * * @return the value */ public String getWorkloadType() { return workloadType; } /** The compute work request id to track progress of custom image exports. */ @com.fasterxml.jackson.annotation.JsonProperty("workRequestId") private final String workRequestId; /** * The compute work request id to track progress of custom image exports. * * @return the value */ public String getWorkRequestId() { return workRequestId; } @Override public String toString() { return this.toString(true); } /** * Return a string representation of the object. * * @param includeByteArrayContents true to include the full contents of byte arrays * @return string representation */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("RoverWorkload("); sb.append("super=").append(super.toString()); sb.append("name=").append(String.valueOf(this.name)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", id=").append(String.valueOf(this.id)); sb.append(", size=").append(String.valueOf(this.size)); sb.append(", objectCount=").append(String.valueOf(this.objectCount)); sb.append(", prefix=").append(String.valueOf(this.prefix)); sb.append(", rangeStart=").append(String.valueOf(this.rangeStart)); sb.append(", rangeEnd=").append(String.valueOf(this.rangeEnd)); sb.append(", workloadType=").append(String.valueOf(this.workloadType)); sb.append(", workRequestId=").append(String.valueOf(this.workRequestId)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RoverWorkload)) { return false; } RoverWorkload other = (RoverWorkload) o; return java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.size, other.size) && java.util.Objects.equals(this.objectCount, other.objectCount) && java.util.Objects.equals(this.prefix, other.prefix) && java.util.Objects.equals(this.rangeStart, other.rangeStart) && java.util.Objects.equals(this.rangeEnd, other.rangeEnd) && java.util.Objects.equals(this.workloadType, other.workloadType) && java.util.Objects.equals(this.workRequestId, other.workRequestId) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.size == null ? 43 : this.size.hashCode()); result = (result * PRIME) + (this.objectCount == null ? 43 : this.objectCount.hashCode()); result = (result * PRIME) + (this.prefix == null ? 43 : this.prefix.hashCode()); result = (result * PRIME) + (this.rangeStart == null ? 43 : this.rangeStart.hashCode()); result = (result * PRIME) + (this.rangeEnd == null ? 43 : this.rangeEnd.hashCode()); result = (result * PRIME) + (this.workloadType == null ? 43 : this.workloadType.hashCode()); result = (result * PRIME) + (this.workRequestId == null ? 43 : this.workRequestId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy