com.volcengine.sts.model.AssumeRoleRequest Maven / Gradle / Ivy
/*
* sts
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: common-version
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.volcengine.sts.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.volcengine.sts.model.TagForAssumeRoleInput;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.*;
import javax.validation.Valid;
/**
* AssumeRoleRequest
*/
public class AssumeRoleRequest {
@SerializedName("DurationSeconds")
private Integer durationSeconds = null;
@SerializedName("Policy")
private String policy = null;
@SerializedName("RoleSessionName")
private String roleSessionName = null;
@SerializedName("RoleTrn")
private String roleTrn = null;
@SerializedName("Tags")
private List tags = null;
public AssumeRoleRequest durationSeconds(Integer durationSeconds) {
this.durationSeconds = durationSeconds;
return this;
}
/**
* Get durationSeconds
* @return durationSeconds
**/
@Schema(description = "")
public Integer getDurationSeconds() {
return durationSeconds;
}
public void setDurationSeconds(Integer durationSeconds) {
this.durationSeconds = durationSeconds;
}
public AssumeRoleRequest policy(String policy) {
this.policy = policy;
return this;
}
/**
* Get policy
* @return policy
**/
@Schema(description = "")
public String getPolicy() {
return policy;
}
public void setPolicy(String policy) {
this.policy = policy;
}
public AssumeRoleRequest roleSessionName(String roleSessionName) {
this.roleSessionName = roleSessionName;
return this;
}
/**
* Get roleSessionName
* @return roleSessionName
**/
@NotNull
@Schema(required = true, description = "")
public String getRoleSessionName() {
return roleSessionName;
}
public void setRoleSessionName(String roleSessionName) {
this.roleSessionName = roleSessionName;
}
public AssumeRoleRequest roleTrn(String roleTrn) {
this.roleTrn = roleTrn;
return this;
}
/**
* Get roleTrn
* @return roleTrn
**/
@NotNull
@Schema(required = true, description = "")
public String getRoleTrn() {
return roleTrn;
}
public void setRoleTrn(String roleTrn) {
this.roleTrn = roleTrn;
}
public AssumeRoleRequest tags(List tags) {
this.tags = tags;
return this;
}
public AssumeRoleRequest addTagsItem(TagForAssumeRoleInput tagsItem) {
if (this.tags == null) {
this.tags = new ArrayList();
}
this.tags.add(tagsItem);
return this;
}
/**
* Get tags
* @return tags
**/
@Valid
@Schema(description = "")
public List getTags() {
return tags;
}
public void setTags(List tags) {
this.tags = tags;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AssumeRoleRequest assumeRoleRequest = (AssumeRoleRequest) o;
return Objects.equals(this.durationSeconds, assumeRoleRequest.durationSeconds) &&
Objects.equals(this.policy, assumeRoleRequest.policy) &&
Objects.equals(this.roleSessionName, assumeRoleRequest.roleSessionName) &&
Objects.equals(this.roleTrn, assumeRoleRequest.roleTrn) &&
Objects.equals(this.tags, assumeRoleRequest.tags);
}
@Override
public int hashCode() {
return Objects.hash(durationSeconds, policy, roleSessionName, roleTrn, tags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AssumeRoleRequest {\n");
sb.append(" durationSeconds: ").append(toIndentedString(durationSeconds)).append("\n");
sb.append(" policy: ").append(toIndentedString(policy)).append("\n");
sb.append(" roleSessionName: ").append(toIndentedString(roleSessionName)).append("\n");
sb.append(" roleTrn: ").append(toIndentedString(roleTrn)).append("\n");
sb.append(" tags: ").append(toIndentedString(tags)).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 ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy