Class OccCapacityRequestBaseDetails


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20231107")
    public final class OccCapacityRequestBaseDetails
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The details of the create capacity request.

    This model serves as a base for different namespaces.
    Note: Objects should always be created or deserialized using the OccCapacityRequestBaseDetails.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the OccCapacityRequestBaseDetails.Builder, which maintain a set of all explicitly set fields called OccCapacityRequestBaseDetails.Builder.__explicitlySet__. The hashCode() and 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 null from unset null).

    • Constructor Detail

      • OccCapacityRequestBaseDetails

        @Deprecated
        @ConstructorProperties({"resourceType","workloadType","sourceWorkloadType","expectedHandoverQuantity","dateExpectedHandover","actualHandoverQuantity","dateActualHandover","availabilityDomain","associatedOccHandoverResourceBlockList","resourceName","demandQuantity"})
        public OccCapacityRequestBaseDetails​(String resourceType,
                                             String workloadType,
                                             String sourceWorkloadType,
                                             Long expectedHandoverQuantity,
                                             Date dateExpectedHandover,
                                             Long actualHandoverQuantity,
                                             Date dateActualHandover,
                                             String availabilityDomain,
                                             List<AssociatedOccHandoverResourceBlock> associatedOccHandoverResourceBlockList,
                                             String resourceName,
                                             Long demandQuantity)
        Deprecated.
    • Method Detail

      • getResourceType

        public String getResourceType()
        The type of the resource against which the user wants to place a capacity request.
        Returns:
        the value
      • getWorkloadType

        public String getWorkloadType()
        The type of the workload (Generic/ROW).
        Returns:
        the value
      • getSourceWorkloadType

        public String getSourceWorkloadType()
        The WorkloadType from where capacity request are to be transferred.
        Returns:
        the value
      • getExpectedHandoverQuantity

        public Long getExpectedHandoverQuantity()
        The incremental quantity of resources supplied as the provisioning is underway.
        Returns:
        the value
      • getDateExpectedHandover

        public Date getDateExpectedHandover()
        The date on which the latest increment to supplied quantity of resources was delivered.
        Returns:
        the value
      • getActualHandoverQuantity

        public Long getActualHandoverQuantity()
        The actual handed over quantity of resources at the time of request resolution.
        Returns:
        the value
      • getDateActualHandover

        public Date getDateActualHandover()
        The date on which the actual handover quantity of resources is delivered.
        Returns:
        the value
      • getAvailabilityDomain

        public String getAvailabilityDomain()
        The availability domain of the resource which is to be transferred.

        Note that this is only required for Capacity Request Transfer requests.

        Returns:
        the value
      • getAssociatedOccHandoverResourceBlockList

        public List<AssociatedOccHandoverResourceBlock> getAssociatedOccHandoverResourceBlockList()
        A list containing details about occHandoverResourceBlocks which were handed over for the corresponding resource name.
        Returns:
        the value
      • getResourceName

        public String getResourceName()
        The name of the COMPUTE server shape for which the request is made.

        Do not use CAPACITY_CONSTRAINT as the resource name.

        Returns:
        the value
      • getDemandQuantity

        public Long getDemandQuantity()
        The number of compute server’s with name required by the user.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel