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

com.huaweicloud.sdk.iam.v3.model.IdentityprovidersResult 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 com.huaweicloud.sdk.iam.v3.model.IdentityprovidersLinks;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import java.util.Objects;

/**
 * 
 */
public class IdentityprovidersResult  {



    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="id")
    
    private String id;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="description")
    
    private String description;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="enabled")
    
    private Boolean enabled;


    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="remote_ids")
    
    private List remoteIds = null;
    

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value="links")
    
    private IdentityprovidersLinks links;

    public IdentityprovidersResult withId(String id) {
        this.id = id;
        return this;
    }

    


    /**
     * 身份提供商ID。
     * @return id
     */
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    

    public IdentityprovidersResult withDescription(String description) {
        this.description = description;
        return this;
    }

    


    /**
     * 身份提供商描述信息。
     * @return description
     */
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    

    public IdentityprovidersResult withEnabled(Boolean enabled) {
        this.enabled = enabled;
        return this;
    }

    


    /**
     * 身份提供商是否启用,true为启用,false为停用,默认为false。
     * @return enabled
     */
    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    

    public IdentityprovidersResult withRemoteIds(List remoteIds) {
        this.remoteIds = remoteIds;
        return this;
    }

    
    public IdentityprovidersResult addRemoteIdsItem(String remoteIdsItem) {
        if(this.remoteIds == null) {
            this.remoteIds = new ArrayList<>();
        }
        this.remoteIds.add(remoteIdsItem);
        return this;
    }

    public IdentityprovidersResult withRemoteIds(Consumer> remoteIdsSetter) {
        if(this.remoteIds == null) {
            this.remoteIds = new ArrayList<>();
        }
        remoteIdsSetter.accept(this.remoteIds);
        return this;
    }

    /**
     * 身份提供商的联邦用户ID列表。
     * @return remoteIds
     */
    public List getRemoteIds() {
        return remoteIds;
    }

    public void setRemoteIds(List remoteIds) {
        this.remoteIds = remoteIds;
    }

    

    public IdentityprovidersResult withLinks(IdentityprovidersLinks links) {
        this.links = links;
        return this;
    }

    public IdentityprovidersResult withLinks(Consumer linksSetter) {
        if(this.links == null ){
            this.links = new IdentityprovidersLinks();
            linksSetter.accept(this.links);
        }
        
        return this;
    }


    /**
     * Get links
     * @return links
     */
    public IdentityprovidersLinks getLinks() {
        return links;
    }

    public void setLinks(IdentityprovidersLinks links) {
        this.links = links;
    }

    

    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        IdentityprovidersResult identityprovidersResult = (IdentityprovidersResult) o;
        return Objects.equals(this.id, identityprovidersResult.id) &&
            Objects.equals(this.description, identityprovidersResult.description) &&
            Objects.equals(this.enabled, identityprovidersResult.enabled) &&
            Objects.equals(this.remoteIds, identityprovidersResult.remoteIds) &&
            Objects.equals(this.links, identityprovidersResult.links);
    }
    @Override
    public int hashCode() {
        return Objects.hash(id, description, enabled, remoteIds, links);
    }
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class IdentityprovidersResult {\n");
        sb.append("    id: ").append(toIndentedString(id)).append("\n");
        sb.append("    description: ").append(toIndentedString(description)).append("\n");
        sb.append("    enabled: ").append(toIndentedString(enabled)).append("\n");
        sb.append("    remoteIds: ").append(toIndentedString(remoteIds)).append("\n");
        sb.append("    links: ").append(toIndentedString(links)).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