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

dev.bf2.ffm.ams.client.models.RoleBindingCreateRequest Maven / Gradle / Ivy

There is a newer version: 0.0.2
Show newest version
/*
 * Account Management Service API
 * Manage user subscriptions and clusters
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package dev.bf2.ffm.ams.client.models;

import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import dev.bf2.ffm.ams.client.models.RoleBindingRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;


/**
 * RoleBindingCreateRequest
 */
@JsonPropertyOrder({
  RoleBindingCreateRequest.JSON_PROPERTY_ACCOUNT_GROUP_ID,
  RoleBindingCreateRequest.JSON_PROPERTY_ACCOUNT_ID,
  RoleBindingCreateRequest.JSON_PROPERTY_CONFIG_MANAGED,
  RoleBindingCreateRequest.JSON_PROPERTY_MANAGED_BY,
  RoleBindingCreateRequest.JSON_PROPERTY_ORGANIZATION_ID,
  RoleBindingCreateRequest.JSON_PROPERTY_ROLE_ID,
  RoleBindingCreateRequest.JSON_PROPERTY_SUBSCRIPTION_ID,
  RoleBindingCreateRequest.JSON_PROPERTY_TYPE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RoleBindingCreateRequest {
  public static final String JSON_PROPERTY_ACCOUNT_GROUP_ID = "account_group_id";
  private String accountGroupId;

  public static final String JSON_PROPERTY_ACCOUNT_ID = "account_id";
  private String accountId;

  public static final String JSON_PROPERTY_CONFIG_MANAGED = "config_managed";
  private Boolean configManaged;

  public static final String JSON_PROPERTY_MANAGED_BY = "managed_by";
  private String managedBy;

  public static final String JSON_PROPERTY_ORGANIZATION_ID = "organization_id";
  private String organizationId;

  public static final String JSON_PROPERTY_ROLE_ID = "role_id";
  private String roleId;

  public static final String JSON_PROPERTY_SUBSCRIPTION_ID = "subscription_id";
  private String subscriptionId;

  public static final String JSON_PROPERTY_TYPE = "type";
  private String type;

  public RoleBindingCreateRequest() { 
  }

  public RoleBindingCreateRequest accountGroupId(String accountGroupId) {
    this.accountGroupId = accountGroupId;
    return this;
  }

   /**
   * Get accountGroupId
   * @return accountGroupId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUP_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getAccountGroupId() {
    return accountGroupId;
  }


  @JsonProperty(JSON_PROPERTY_ACCOUNT_GROUP_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAccountGroupId(String accountGroupId) {
    this.accountGroupId = accountGroupId;
  }


  public RoleBindingCreateRequest accountId(String accountId) {
    this.accountId = accountId;
    return this;
  }

   /**
   * Get accountId
   * @return accountId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getAccountId() {
    return accountId;
  }


  @JsonProperty(JSON_PROPERTY_ACCOUNT_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setAccountId(String accountId) {
    this.accountId = accountId;
  }


  public RoleBindingCreateRequest configManaged(Boolean configManaged) {
    this.configManaged = configManaged;
    return this;
  }

   /**
   * Get configManaged
   * @return configManaged
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_CONFIG_MANAGED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Boolean getConfigManaged() {
    return configManaged;
  }


  @JsonProperty(JSON_PROPERTY_CONFIG_MANAGED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setConfigManaged(Boolean configManaged) {
    this.configManaged = configManaged;
  }


  public RoleBindingCreateRequest managedBy(String managedBy) {
    this.managedBy = managedBy;
    return this;
  }

   /**
   * Get managedBy
   * @return managedBy
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_MANAGED_BY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getManagedBy() {
    return managedBy;
  }


  @JsonProperty(JSON_PROPERTY_MANAGED_BY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setManagedBy(String managedBy) {
    this.managedBy = managedBy;
  }


  public RoleBindingCreateRequest organizationId(String organizationId) {
    this.organizationId = organizationId;
    return this;
  }

   /**
   * Get organizationId
   * @return organizationId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getOrganizationId() {
    return organizationId;
  }


  @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setOrganizationId(String organizationId) {
    this.organizationId = organizationId;
  }


  public RoleBindingCreateRequest roleId(String roleId) {
    this.roleId = roleId;
    return this;
  }

   /**
   * Get roleId
   * @return roleId
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_ROLE_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getRoleId() {
    return roleId;
  }


  @JsonProperty(JSON_PROPERTY_ROLE_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setRoleId(String roleId) {
    this.roleId = roleId;
  }


  public RoleBindingCreateRequest subscriptionId(String subscriptionId) {
    this.subscriptionId = subscriptionId;
    return this;
  }

   /**
   * Get subscriptionId
   * @return subscriptionId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getSubscriptionId() {
    return subscriptionId;
  }


  @JsonProperty(JSON_PROPERTY_SUBSCRIPTION_ID)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setSubscriptionId(String subscriptionId) {
    this.subscriptionId = subscriptionId;
  }


  public RoleBindingCreateRequest type(String type) {
    this.type = type;
    return this;
  }

   /**
   * Get type
   * @return type
  **/
  @javax.annotation.Nonnull
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getType() {
    return type;
  }


  @JsonProperty(JSON_PROPERTY_TYPE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setType(String type) {
    this.type = type;
  }


  /**
   * Return true if this RoleBindingCreateRequest object is equal to o.
   */
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RoleBindingCreateRequest roleBindingCreateRequest = (RoleBindingCreateRequest) o;
    return Objects.equals(this.accountGroupId, roleBindingCreateRequest.accountGroupId) &&
        Objects.equals(this.accountId, roleBindingCreateRequest.accountId) &&
        Objects.equals(this.configManaged, roleBindingCreateRequest.configManaged) &&
        Objects.equals(this.managedBy, roleBindingCreateRequest.managedBy) &&
        Objects.equals(this.organizationId, roleBindingCreateRequest.organizationId) &&
        Objects.equals(this.roleId, roleBindingCreateRequest.roleId) &&
        Objects.equals(this.subscriptionId, roleBindingCreateRequest.subscriptionId) &&
        Objects.equals(this.type, roleBindingCreateRequest.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(accountGroupId, accountId, configManaged, managedBy, organizationId, roleId, subscriptionId, type);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RoleBindingCreateRequest {\n");
    sb.append("    accountGroupId: ").append(toIndentedString(accountGroupId)).append("\n");
    sb.append("    accountId: ").append(toIndentedString(accountId)).append("\n");
    sb.append("    configManaged: ").append(toIndentedString(configManaged)).append("\n");
    sb.append("    managedBy: ").append(toIndentedString(managedBy)).append("\n");
    sb.append("    organizationId: ").append(toIndentedString(organizationId)).append("\n");
    sb.append("    roleId: ").append(toIndentedString(roleId)).append("\n");
    sb.append("    subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy