ApiParcelUsageHost (cloudera-manager-api-swagger 7.8.1 API)
Date: 2022-11-17

com.cloudera.api.swagger.model

## Class ApiParcelUsageHost

- java.lang.Object
- - com.cloudera.api.swagger.model.ApiParcelUsageHost

-     @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
                 date="2022-11-17T16:22:50.425Z")
      public class ApiParcelUsageHost
      extends Object

  This object is used to represent a host within an ApiParcelUsage.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ApiParcelUsageHost()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ApiParcelUsageHost` | `addRolesItem(ApiParcelUsageRole rolesItem)`
    `boolean` | `equals(Object o)`
    `ApiHostRef` | `getHostRef()` A reference to the corresponding Host object.
    `List<ApiParcelUsageRole>` | `getRoles()` A collection of the roles present on the host.
    `int` | `hashCode()`
    `ApiParcelUsageHost` | `hostRef(ApiHostRef hostRef)`
    `ApiParcelUsageHost` | `roles(List<ApiParcelUsageRole> roles)`
    `void` | `setHostRef(ApiHostRef hostRef)`
    `void` | `setRoles(List<ApiParcelUsageRole> roles)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ApiParcelUsageHost

          public ApiParcelUsageHost()

  - ### Method Detail

    - #### hostRef

          public ApiParcelUsageHost hostRef(ApiHostRef hostRef)

    - #### getHostRef

          public ApiHostRef getHostRef()

      A reference to the corresponding Host object.
      Returns:
        hostRef

    - #### setHostRef

          public void setHostRef(ApiHostRef hostRef)

    - #### roles

          public ApiParcelUsageHost roles(List<ApiParcelUsageRole> roles)

    - #### addRolesItem

          public ApiParcelUsageHost addRolesItem(ApiParcelUsageRole rolesItem)

    - #### getRoles

          public List<ApiParcelUsageRole> getRoles()

      A collection of the roles present on the host.
      Returns:
        roles

    - #### setRoles

          public void setRoles(List<ApiParcelUsageRole> roles)

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2022. All rights reserved.