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

io.github.cdklabs.cdk.verified.permissions.IdentitySourceProps Maven / Gradle / Ivy

The newest version!
package io.github.cdklabs.cdk.verified.permissions;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-11T10:47:53.515Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.cdk.verified.permissions.$Module.class, fqn = "@cdklabs/cdk-verified-permissions.IdentitySourceProps")
@software.amazon.jsii.Jsii.Proxy(IdentitySourceProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface IdentitySourceProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * (experimental) Identity Source configuration.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.verified.permissions.IdentitySourceConfiguration getConfiguration();

    /**
     * (experimental) Policy Store in which you want to store this identity source.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull io.github.cdklabs.cdk.verified.permissions.IPolicyStore getPolicyStore();

    /**
     * (experimental) Principal entity type.
     * 

* Default: - No principal entity type for the identity source. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.String getPrincipalEntityType() { return null; } /** * @return a {@link Builder} of {@link IdentitySourceProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link IdentitySourceProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { io.github.cdklabs.cdk.verified.permissions.IdentitySourceConfiguration configuration; io.github.cdklabs.cdk.verified.permissions.IPolicyStore policyStore; java.lang.String principalEntityType; /** * Sets the value of {@link IdentitySourceProps#getConfiguration} * @param configuration Identity Source configuration. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder configuration(io.github.cdklabs.cdk.verified.permissions.IdentitySourceConfiguration configuration) { this.configuration = configuration; return this; } /** * Sets the value of {@link IdentitySourceProps#getPolicyStore} * @param policyStore Policy Store in which you want to store this identity source. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder policyStore(io.github.cdklabs.cdk.verified.permissions.IPolicyStore policyStore) { this.policyStore = policyStore; return this; } /** * Sets the value of {@link IdentitySourceProps#getPrincipalEntityType} * @param principalEntityType Principal entity type. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder principalEntityType(java.lang.String principalEntityType) { this.principalEntityType = principalEntityType; return this; } /** * Builds the configured instance. * @return a new instance of {@link IdentitySourceProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public IdentitySourceProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link IdentitySourceProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IdentitySourceProps { private final io.github.cdklabs.cdk.verified.permissions.IdentitySourceConfiguration configuration; private final io.github.cdklabs.cdk.verified.permissions.IPolicyStore policyStore; private final java.lang.String principalEntityType; /** * 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.configuration = software.amazon.jsii.Kernel.get(this, "configuration", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.verified.permissions.IdentitySourceConfiguration.class)); this.policyStore = software.amazon.jsii.Kernel.get(this, "policyStore", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.cdk.verified.permissions.IPolicyStore.class)); this.principalEntityType = software.amazon.jsii.Kernel.get(this, "principalEntityType", software.amazon.jsii.NativeType.forClass(java.lang.String.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.configuration = java.util.Objects.requireNonNull(builder.configuration, "configuration is required"); this.policyStore = java.util.Objects.requireNonNull(builder.policyStore, "policyStore is required"); this.principalEntityType = builder.principalEntityType; } @Override public final io.github.cdklabs.cdk.verified.permissions.IdentitySourceConfiguration getConfiguration() { return this.configuration; } @Override public final io.github.cdklabs.cdk.verified.permissions.IPolicyStore getPolicyStore() { return this.policyStore; } @Override public final java.lang.String getPrincipalEntityType() { return this.principalEntityType; } @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("configuration", om.valueToTree(this.getConfiguration())); data.set("policyStore", om.valueToTree(this.getPolicyStore())); if (this.getPrincipalEntityType() != null) { data.set("principalEntityType", om.valueToTree(this.getPrincipalEntityType())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@cdklabs/cdk-verified-permissions.IdentitySourceProps")); 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; IdentitySourceProps.Jsii$Proxy that = (IdentitySourceProps.Jsii$Proxy) o; if (!configuration.equals(that.configuration)) return false; if (!policyStore.equals(that.policyStore)) return false; return this.principalEntityType != null ? this.principalEntityType.equals(that.principalEntityType) : that.principalEntityType == null; } @Override public final int hashCode() { int result = this.configuration.hashCode(); result = 31 * result + (this.policyStore.hashCode()); result = 31 * result + (this.principalEntityType != null ? this.principalEntityType.hashCode() : 0); return result; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy