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

org.mongodb.awscdk.resources.mongodbatlas.CfnProjectInvitationProps Maven / Gradle / Ivy

There is a newer version: 3.9.0
Show newest version
package org.mongodb.awscdk.resources.mongodbatlas;

/**
 * Returns, adds, and edits collections of clusters and users in MongoDB Cloud.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.101.0 (build b95fe5d)", date = "2024-07-30T09:54:28.973Z")
@software.amazon.jsii.Jsii(module = org.mongodb.awscdk.resources.mongodbatlas.$Module.class, fqn = "awscdk-resources-mongodbatlas.CfnProjectInvitationProps")
@software.amazon.jsii.Jsii.Proxy(CfnProjectInvitationProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CfnProjectInvitationProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * Unique 24-hexadecimal digit string that identifies the invitation.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.String getInvitationId() {
        return null;
    }

    /**
     * Number of the page that displays the current set of the total objects that the response returns.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Number getPageNum() {
        return null;
    }

    /**
     * The profile is defined in AWS Secret manager.
     * 

* See Secret Manager Profile setup. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getProfile() { return null; } /** * Unique 24-hexadecimal digit string that identifies your project. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getProjectId() { return null; } /** * One or more organization or project level roles to assign to the MongoDB Cloud user. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getRoles() { return null; } /** * Number of documents returned in this response. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Number getTotalCount() { return null; } /** * Email address of the user account invited to this project. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getUsername() { return null; } /** * @return a {@link Builder} of {@link CfnProjectInvitationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnProjectInvitationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String invitationId; java.lang.Number pageNum; java.lang.String profile; java.lang.String projectId; java.util.List roles; java.lang.Number totalCount; java.lang.String username; /** * Sets the value of {@link CfnProjectInvitationProps#getInvitationId} * @param invitationId Unique 24-hexadecimal digit string that identifies the invitation. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder invitationId(java.lang.String invitationId) { this.invitationId = invitationId; return this; } /** * Sets the value of {@link CfnProjectInvitationProps#getPageNum} * @param pageNum Number of the page that displays the current set of the total objects that the response returns. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder pageNum(java.lang.Number pageNum) { this.pageNum = pageNum; return this; } /** * Sets the value of {@link CfnProjectInvitationProps#getProfile} * @param profile The profile is defined in AWS Secret manager. * See Secret Manager Profile setup. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder profile(java.lang.String profile) { this.profile = profile; return this; } /** * Sets the value of {@link CfnProjectInvitationProps#getProjectId} * @param projectId Unique 24-hexadecimal digit string that identifies your project. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder projectId(java.lang.String projectId) { this.projectId = projectId; return this; } /** * Sets the value of {@link CfnProjectInvitationProps#getRoles} * @param roles One or more organization or project level roles to assign to the MongoDB Cloud user. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @SuppressWarnings("unchecked") public Builder roles(java.util.List roles) { this.roles = (java.util.List)roles; return this; } /** * Sets the value of {@link CfnProjectInvitationProps#getTotalCount} * @param totalCount Number of documents returned in this response. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder totalCount(java.lang.Number totalCount) { this.totalCount = totalCount; return this; } /** * Sets the value of {@link CfnProjectInvitationProps#getUsername} * @param username Email address of the user account invited to this project. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder username(java.lang.String username) { this.username = username; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnProjectInvitationProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnProjectInvitationProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CfnProjectInvitationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnProjectInvitationProps { private final java.lang.String invitationId; private final java.lang.Number pageNum; private final java.lang.String profile; private final java.lang.String projectId; private final java.util.List roles; private final java.lang.Number totalCount; private final java.lang.String username; /** * 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.invitationId = software.amazon.jsii.Kernel.get(this, "invitationId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.pageNum = software.amazon.jsii.Kernel.get(this, "pageNum", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.profile = software.amazon.jsii.Kernel.get(this, "profile", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.projectId = software.amazon.jsii.Kernel.get(this, "projectId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.roles = software.amazon.jsii.Kernel.get(this, "roles", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.CfnProjectInvitationPropsRoles.class))); this.totalCount = software.amazon.jsii.Kernel.get(this, "totalCount", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.username = software.amazon.jsii.Kernel.get(this, "username", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ @SuppressWarnings("unchecked") protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.invitationId = builder.invitationId; this.pageNum = builder.pageNum; this.profile = builder.profile; this.projectId = builder.projectId; this.roles = (java.util.List)builder.roles; this.totalCount = builder.totalCount; this.username = builder.username; } @Override public final java.lang.String getInvitationId() { return this.invitationId; } @Override public final java.lang.Number getPageNum() { return this.pageNum; } @Override public final java.lang.String getProfile() { return this.profile; } @Override public final java.lang.String getProjectId() { return this.projectId; } @Override public final java.util.List getRoles() { return this.roles; } @Override public final java.lang.Number getTotalCount() { return this.totalCount; } @Override public final java.lang.String getUsername() { return this.username; } @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(); if (this.getInvitationId() != null) { data.set("invitationId", om.valueToTree(this.getInvitationId())); } if (this.getPageNum() != null) { data.set("pageNum", om.valueToTree(this.getPageNum())); } if (this.getProfile() != null) { data.set("profile", om.valueToTree(this.getProfile())); } if (this.getProjectId() != null) { data.set("projectId", om.valueToTree(this.getProjectId())); } if (this.getRoles() != null) { data.set("roles", om.valueToTree(this.getRoles())); } if (this.getTotalCount() != null) { data.set("totalCount", om.valueToTree(this.getTotalCount())); } if (this.getUsername() != null) { data.set("username", om.valueToTree(this.getUsername())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("awscdk-resources-mongodbatlas.CfnProjectInvitationProps")); 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; CfnProjectInvitationProps.Jsii$Proxy that = (CfnProjectInvitationProps.Jsii$Proxy) o; if (this.invitationId != null ? !this.invitationId.equals(that.invitationId) : that.invitationId != null) return false; if (this.pageNum != null ? !this.pageNum.equals(that.pageNum) : that.pageNum != null) return false; if (this.profile != null ? !this.profile.equals(that.profile) : that.profile != null) return false; if (this.projectId != null ? !this.projectId.equals(that.projectId) : that.projectId != null) return false; if (this.roles != null ? !this.roles.equals(that.roles) : that.roles != null) return false; if (this.totalCount != null ? !this.totalCount.equals(that.totalCount) : that.totalCount != null) return false; return this.username != null ? this.username.equals(that.username) : that.username == null; } @Override public final int hashCode() { int result = this.invitationId != null ? this.invitationId.hashCode() : 0; result = 31 * result + (this.pageNum != null ? this.pageNum.hashCode() : 0); result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0); result = 31 * result + (this.projectId != null ? this.projectId.hashCode() : 0); result = 31 * result + (this.roles != null ? this.roles.hashCode() : 0); result = 31 * result + (this.totalCount != null ? this.totalCount.hashCode() : 0); result = 31 * result + (this.username != null ? this.username.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy