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

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

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

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

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

* See Secret Manager Profile setup. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getProfile(); /** * Flag that indicates whether the response returns the total number of items (totalCount) in the response. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Boolean getIncludeCount() { return null; } /** * 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 items that the response returns per page. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.Number getItemsPerPage() { return null; } /** * Unique 24-hexadecimal digit string that identifies the organization that contains your projects. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getOrgId() { return null; } /** * Human-readable label that identifies this organization. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getOrgName() { 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; } /** * 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; } /** * List of unique 24-hexadecimal digit strings that identifies each team. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getTeamIds() { 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 MongoDB Cloud user invited to join the organization. */ @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 CfnOrgInvitationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnOrgInvitationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String profile; java.lang.Boolean includeCount; java.lang.String invitationId; java.lang.Number itemsPerPage; java.lang.String orgId; java.lang.String orgName; java.lang.Number pageNum; java.util.List roles; java.util.List teamIds; java.lang.Number totalCount; java.lang.String username; /** * Sets the value of {@link CfnOrgInvitationProps#getProfile} * @param profile The profile is defined in AWS Secret manager. This parameter is required. * 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 CfnOrgInvitationProps#getIncludeCount} * @param includeCount Flag that indicates whether the response returns the total number of items (totalCount) in the response. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder includeCount(java.lang.Boolean includeCount) { this.includeCount = includeCount; return this; } /** * Sets the value of {@link CfnOrgInvitationProps#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 CfnOrgInvitationProps#getItemsPerPage} * @param itemsPerPage Number of items that the response returns per page. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder itemsPerPage(java.lang.Number itemsPerPage) { this.itemsPerPage = itemsPerPage; return this; } /** * Sets the value of {@link CfnOrgInvitationProps#getOrgId} * @param orgId Unique 24-hexadecimal digit string that identifies the organization that contains your projects. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder orgId(java.lang.String orgId) { this.orgId = orgId; return this; } /** * Sets the value of {@link CfnOrgInvitationProps#getOrgName} * @param orgName Human-readable label that identifies this organization. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder orgName(java.lang.String orgName) { this.orgName = orgName; return this; } /** * Sets the value of {@link CfnOrgInvitationProps#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 CfnOrgInvitationProps#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 CfnOrgInvitationProps#getTeamIds} * @param teamIds List of unique 24-hexadecimal digit strings that identifies each team. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder teamIds(java.util.List teamIds) { this.teamIds = teamIds; return this; } /** * Sets the value of {@link CfnOrgInvitationProps#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 CfnOrgInvitationProps#getUsername} * @param username Email address of the MongoDB Cloud user invited to join the organization. * @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 CfnOrgInvitationProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnOrgInvitationProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CfnOrgInvitationProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnOrgInvitationProps { private final java.lang.String profile; private final java.lang.Boolean includeCount; private final java.lang.String invitationId; private final java.lang.Number itemsPerPage; private final java.lang.String orgId; private final java.lang.String orgName; private final java.lang.Number pageNum; private final java.util.List roles; private final java.util.List teamIds; 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.profile = software.amazon.jsii.Kernel.get(this, "profile", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.includeCount = software.amazon.jsii.Kernel.get(this, "includeCount", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.invitationId = software.amazon.jsii.Kernel.get(this, "invitationId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.itemsPerPage = software.amazon.jsii.Kernel.get(this, "itemsPerPage", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.orgId = software.amazon.jsii.Kernel.get(this, "orgId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.orgName = software.amazon.jsii.Kernel.get(this, "orgName", 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.roles = software.amazon.jsii.Kernel.get(this, "roles", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(org.mongodb.awscdk.resources.mongodbatlas.CfnOrgInvitationPropsRoles.class))); this.teamIds = software.amazon.jsii.Kernel.get(this, "teamIds", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.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.profile = java.util.Objects.requireNonNull(builder.profile, "profile is required"); this.includeCount = builder.includeCount; this.invitationId = builder.invitationId; this.itemsPerPage = builder.itemsPerPage; this.orgId = builder.orgId; this.orgName = builder.orgName; this.pageNum = builder.pageNum; this.roles = (java.util.List)builder.roles; this.teamIds = builder.teamIds; this.totalCount = builder.totalCount; this.username = builder.username; } @Override public final java.lang.String getProfile() { return this.profile; } @Override public final java.lang.Boolean getIncludeCount() { return this.includeCount; } @Override public final java.lang.String getInvitationId() { return this.invitationId; } @Override public final java.lang.Number getItemsPerPage() { return this.itemsPerPage; } @Override public final java.lang.String getOrgId() { return this.orgId; } @Override public final java.lang.String getOrgName() { return this.orgName; } @Override public final java.lang.Number getPageNum() { return this.pageNum; } @Override public final java.util.List getRoles() { return this.roles; } @Override public final java.util.List getTeamIds() { return this.teamIds; } @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(); data.set("profile", om.valueToTree(this.getProfile())); if (this.getIncludeCount() != null) { data.set("includeCount", om.valueToTree(this.getIncludeCount())); } if (this.getInvitationId() != null) { data.set("invitationId", om.valueToTree(this.getInvitationId())); } if (this.getItemsPerPage() != null) { data.set("itemsPerPage", om.valueToTree(this.getItemsPerPage())); } if (this.getOrgId() != null) { data.set("orgId", om.valueToTree(this.getOrgId())); } if (this.getOrgName() != null) { data.set("orgName", om.valueToTree(this.getOrgName())); } if (this.getPageNum() != null) { data.set("pageNum", om.valueToTree(this.getPageNum())); } if (this.getRoles() != null) { data.set("roles", om.valueToTree(this.getRoles())); } if (this.getTeamIds() != null) { data.set("teamIds", om.valueToTree(this.getTeamIds())); } 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.CfnOrgInvitationProps")); 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; CfnOrgInvitationProps.Jsii$Proxy that = (CfnOrgInvitationProps.Jsii$Proxy) o; if (!profile.equals(that.profile)) return false; if (this.includeCount != null ? !this.includeCount.equals(that.includeCount) : that.includeCount != null) return false; if (this.invitationId != null ? !this.invitationId.equals(that.invitationId) : that.invitationId != null) return false; if (this.itemsPerPage != null ? !this.itemsPerPage.equals(that.itemsPerPage) : that.itemsPerPage != null) return false; if (this.orgId != null ? !this.orgId.equals(that.orgId) : that.orgId != null) return false; if (this.orgName != null ? !this.orgName.equals(that.orgName) : that.orgName != null) return false; if (this.pageNum != null ? !this.pageNum.equals(that.pageNum) : that.pageNum != null) return false; if (this.roles != null ? !this.roles.equals(that.roles) : that.roles != null) return false; if (this.teamIds != null ? !this.teamIds.equals(that.teamIds) : that.teamIds != 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.profile.hashCode(); result = 31 * result + (this.includeCount != null ? this.includeCount.hashCode() : 0); result = 31 * result + (this.invitationId != null ? this.invitationId.hashCode() : 0); result = 31 * result + (this.itemsPerPage != null ? this.itemsPerPage.hashCode() : 0); result = 31 * result + (this.orgId != null ? this.orgId.hashCode() : 0); result = 31 * result + (this.orgName != null ? this.orgName.hashCode() : 0); result = 31 * result + (this.pageNum != null ? this.pageNum.hashCode() : 0); result = 31 * result + (this.roles != null ? this.roles.hashCode() : 0); result = 31 * result + (this.teamIds != null ? this.teamIds.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