dev.bf2.ffm.ams.client.models.RoleBindingRequest Maven / Gradle / Ivy
/*
* 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* RoleBindingRequest
*/
@JsonPropertyOrder({
RoleBindingRequest.JSON_PROPERTY_ACCOUNT_GROUP_ID,
RoleBindingRequest.JSON_PROPERTY_ACCOUNT_ID,
RoleBindingRequest.JSON_PROPERTY_CONFIG_MANAGED,
RoleBindingRequest.JSON_PROPERTY_MANAGED_BY,
RoleBindingRequest.JSON_PROPERTY_ORGANIZATION_ID,
RoleBindingRequest.JSON_PROPERTY_ROLE_ID,
RoleBindingRequest.JSON_PROPERTY_SUBSCRIPTION_ID,
RoleBindingRequest.JSON_PROPERTY_TYPE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class RoleBindingRequest {
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 RoleBindingRequest() {
}
public RoleBindingRequest 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 RoleBindingRequest 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 RoleBindingRequest 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 RoleBindingRequest 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 RoleBindingRequest 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 RoleBindingRequest roleId(String roleId) {
this.roleId = roleId;
return this;
}
/**
* Get roleId
* @return roleId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ROLE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRoleId() {
return roleId;
}
@JsonProperty(JSON_PROPERTY_ROLE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRoleId(String roleId) {
this.roleId = roleId;
}
public RoleBindingRequest 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 RoleBindingRequest type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setType(String type) {
this.type = type;
}
/**
* Return true if this RoleBindingRequest object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RoleBindingRequest roleBindingRequest = (RoleBindingRequest) o;
return Objects.equals(this.accountGroupId, roleBindingRequest.accountGroupId) &&
Objects.equals(this.accountId, roleBindingRequest.accountId) &&
Objects.equals(this.configManaged, roleBindingRequest.configManaged) &&
Objects.equals(this.managedBy, roleBindingRequest.managedBy) &&
Objects.equals(this.organizationId, roleBindingRequest.organizationId) &&
Objects.equals(this.roleId, roleBindingRequest.roleId) &&
Objects.equals(this.subscriptionId, roleBindingRequest.subscriptionId) &&
Objects.equals(this.type, roleBindingRequest.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 RoleBindingRequest {\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 ");
}
}