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

com.aliyun.ros.cdk.cloudsso.RosUserProps Maven / Gradle / Ivy

Go to download

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

There is a newer version: 1.8.0
Show newest version
package com.aliyun.ros.cdk.cloudsso;

/**
 * Properties for defining a RosUser.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cloudsso-user */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:05.601Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cloudsso.$Module.class, fqn = "@alicloud/ros-cdk-cloudsso.RosUserProps") @software.amazon.jsii.Jsii.Proxy(RosUserProps.Jsii$Proxy.class) public interface RosUserProps extends software.amazon.jsii.JsiiSerializable { /** */ @org.jetbrains.annotations.NotNull java.lang.Object getDirectoryId(); /** */ @org.jetbrains.annotations.NotNull java.lang.Object getUserName(); /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getDescription() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getDisplayName() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getEmail() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getFirstName() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getLastName() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getStatus() { return null; } /** * @return a {@link Builder} of {@link RosUserProps} */ static Builder builder() { return new Builder(); } /** * A builder for {@link RosUserProps} */ public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object directoryId; java.lang.Object userName; java.lang.Object description; java.lang.Object displayName; java.lang.Object email; java.lang.Object firstName; java.lang.Object lastName; java.lang.Object status; /** * Sets the value of {@link RosUserProps#getDirectoryId} * @param directoryId the value to be set. This parameter is required. * @return {@code this} */ public Builder directoryId(java.lang.String directoryId) { this.directoryId = directoryId; return this; } /** * Sets the value of {@link RosUserProps#getDirectoryId} * @param directoryId the value to be set. This parameter is required. * @return {@code this} */ public Builder directoryId(com.aliyun.ros.cdk.core.IResolvable directoryId) { this.directoryId = directoryId; return this; } /** * Sets the value of {@link RosUserProps#getUserName} * @param userName the value to be set. This parameter is required. * @return {@code this} */ public Builder userName(java.lang.String userName) { this.userName = userName; return this; } /** * Sets the value of {@link RosUserProps#getUserName} * @param userName the value to be set. This parameter is required. * @return {@code this} */ public Builder userName(com.aliyun.ros.cdk.core.IResolvable userName) { this.userName = userName; return this; } /** * Sets the value of {@link RosUserProps#getDescription} * @param description the value to be set. * @return {@code this} */ public Builder description(java.lang.String description) { this.description = description; return this; } /** * Sets the value of {@link RosUserProps#getDescription} * @param description the value to be set. * @return {@code this} */ public Builder description(com.aliyun.ros.cdk.core.IResolvable description) { this.description = description; return this; } /** * Sets the value of {@link RosUserProps#getDisplayName} * @param displayName the value to be set. * @return {@code this} */ public Builder displayName(java.lang.String displayName) { this.displayName = displayName; return this; } /** * Sets the value of {@link RosUserProps#getDisplayName} * @param displayName the value to be set. * @return {@code this} */ public Builder displayName(com.aliyun.ros.cdk.core.IResolvable displayName) { this.displayName = displayName; return this; } /** * Sets the value of {@link RosUserProps#getEmail} * @param email the value to be set. * @return {@code this} */ public Builder email(java.lang.String email) { this.email = email; return this; } /** * Sets the value of {@link RosUserProps#getEmail} * @param email the value to be set. * @return {@code this} */ public Builder email(com.aliyun.ros.cdk.core.IResolvable email) { this.email = email; return this; } /** * Sets the value of {@link RosUserProps#getFirstName} * @param firstName the value to be set. * @return {@code this} */ public Builder firstName(java.lang.String firstName) { this.firstName = firstName; return this; } /** * Sets the value of {@link RosUserProps#getFirstName} * @param firstName the value to be set. * @return {@code this} */ public Builder firstName(com.aliyun.ros.cdk.core.IResolvable firstName) { this.firstName = firstName; return this; } /** * Sets the value of {@link RosUserProps#getLastName} * @param lastName the value to be set. * @return {@code this} */ public Builder lastName(java.lang.String lastName) { this.lastName = lastName; return this; } /** * Sets the value of {@link RosUserProps#getLastName} * @param lastName the value to be set. * @return {@code this} */ public Builder lastName(com.aliyun.ros.cdk.core.IResolvable lastName) { this.lastName = lastName; return this; } /** * Sets the value of {@link RosUserProps#getStatus} * @param status the value to be set. * @return {@code this} */ public Builder status(java.lang.String status) { this.status = status; return this; } /** * Sets the value of {@link RosUserProps#getStatus} * @param status the value to be set. * @return {@code this} */ public Builder status(com.aliyun.ros.cdk.core.IResolvable status) { this.status = status; return this; } /** * Builds the configured instance. * @return a new instance of {@link RosUserProps} * @throws NullPointerException if any required attribute was not provided */ @Override public RosUserProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link RosUserProps} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RosUserProps { private final java.lang.Object directoryId; private final java.lang.Object userName; private final java.lang.Object description; private final java.lang.Object displayName; private final java.lang.Object email; private final java.lang.Object firstName; private final java.lang.Object lastName; private final java.lang.Object status; /** * Constructor that initializes the object based on values retrieved from the JsiiObject. * @param objRef Reference to the JSII managed object. */ protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); this.directoryId = software.amazon.jsii.Kernel.get(this, "directoryId", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.userName = software.amazon.jsii.Kernel.get(this, "userName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.description = software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.displayName = software.amazon.jsii.Kernel.get(this, "displayName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.email = software.amazon.jsii.Kernel.get(this, "email", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.firstName = software.amazon.jsii.Kernel.get(this, "firstName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.lastName = software.amazon.jsii.Kernel.get(this, "lastName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.status = software.amazon.jsii.Kernel.get(this, "status", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.directoryId = java.util.Objects.requireNonNull(builder.directoryId, "directoryId is required"); this.userName = java.util.Objects.requireNonNull(builder.userName, "userName is required"); this.description = builder.description; this.displayName = builder.displayName; this.email = builder.email; this.firstName = builder.firstName; this.lastName = builder.lastName; this.status = builder.status; } @Override public final java.lang.Object getDirectoryId() { return this.directoryId; } @Override public final java.lang.Object getUserName() { return this.userName; } @Override public final java.lang.Object getDescription() { return this.description; } @Override public final java.lang.Object getDisplayName() { return this.displayName; } @Override public final java.lang.Object getEmail() { return this.email; } @Override public final java.lang.Object getFirstName() { return this.firstName; } @Override public final java.lang.Object getLastName() { return this.lastName; } @Override public final java.lang.Object getStatus() { return this.status; } @Override @software.amazon.jsii.Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() { final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE; final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); data.set("directoryId", om.valueToTree(this.getDirectoryId())); data.set("userName", om.valueToTree(this.getUserName())); if (this.getDescription() != null) { data.set("description", om.valueToTree(this.getDescription())); } if (this.getDisplayName() != null) { data.set("displayName", om.valueToTree(this.getDisplayName())); } if (this.getEmail() != null) { data.set("email", om.valueToTree(this.getEmail())); } if (this.getFirstName() != null) { data.set("firstName", om.valueToTree(this.getFirstName())); } if (this.getLastName() != null) { data.set("lastName", om.valueToTree(this.getLastName())); } if (this.getStatus() != null) { data.set("status", om.valueToTree(this.getStatus())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-cloudsso.RosUserProps")); struct.set("data", data); final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); obj.set("$jsii.struct", struct); return obj; } @Override public final boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; RosUserProps.Jsii$Proxy that = (RosUserProps.Jsii$Proxy) o; if (!directoryId.equals(that.directoryId)) return false; if (!userName.equals(that.userName)) return false; if (this.description != null ? !this.description.equals(that.description) : that.description != null) return false; if (this.displayName != null ? !this.displayName.equals(that.displayName) : that.displayName != null) return false; if (this.email != null ? !this.email.equals(that.email) : that.email != null) return false; if (this.firstName != null ? !this.firstName.equals(that.firstName) : that.firstName != null) return false; if (this.lastName != null ? !this.lastName.equals(that.lastName) : that.lastName != null) return false; return this.status != null ? this.status.equals(that.status) : that.status == null; } @Override public final int hashCode() { int result = this.directoryId.hashCode(); result = 31 * result + (this.userName.hashCode()); result = 31 * result + (this.description != null ? this.description.hashCode() : 0); result = 31 * result + (this.displayName != null ? this.displayName.hashCode() : 0); result = 31 * result + (this.email != null ? this.email.hashCode() : 0); result = 31 * result + (this.firstName != null ? this.firstName.hashCode() : 0); result = 31 * result + (this.lastName != null ? this.lastName.hashCode() : 0); result = 31 * result + (this.status != null ? this.status.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy