com.huaweicloud.sdk.iam.v3.model.KeystoneShowRegionRequest Maven / Gradle / Ivy
package com.huaweicloud.sdk.iam.v3.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.function.Consumer;
import java.util.Objects;
/**
* Request Object
*/
public class KeystoneShowRegionRequest {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value="region_id")
private String regionId;
public KeystoneShowRegionRequest withRegionId(String regionId) {
this.regionId = regionId;
return this;
}
/**
* 待查询的区域ID。可以使用[查询区域列表](https://support.huaweicloud.com/api-iam/iam_05_0001.html)接口获取,控制台获取方法请参见:[获取区域ID](https://console.huaweicloud.com/iam/?agencyId=d15f57bd355d4514bd9618bd648dd432®ion=cn-east-2&locale=zh-cn#/iam/projects)
* @return regionId
*/
public String getRegionId() {
return regionId;
}
public void setRegionId(String regionId) {
this.regionId = regionId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
KeystoneShowRegionRequest keystoneShowRegionRequest = (KeystoneShowRegionRequest) o;
return Objects.equals(this.regionId, keystoneShowRegionRequest.regionId);
}
@Override
public int hashCode() {
return Objects.hash(regionId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class KeystoneShowRegionRequest {\n");
sb.append(" regionId: ").append(toIndentedString(regionId)).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(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}