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

com.aliyun.ros.cdk.cas.CertificateProps Maven / Gradle / Ivy

package com.aliyun.ros.cdk.cas;

/**
 * Properties for defining a Certificate.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cas-certificate */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-04-09T06:05:30.651Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.cas.$Module.class, fqn = "@alicloud/ros-cdk-cas.CertificateProps") @software.amazon.jsii.Jsii.Proxy(CertificateProps.Jsii$Proxy.class) public interface CertificateProps extends software.amazon.jsii.JsiiSerializable { /** * Property cert: Specify the content of the certificate. *

* To use the PEM encoding format. */ @org.jetbrains.annotations.NotNull java.lang.Object getCert(); /** * Property key: Specify the certificate private key content. *

* To use the PEM encoding format. */ @org.jetbrains.annotations.NotNull java.lang.Object getKey(); /** * Property name: Custom certificate name. *

* The certificate name under a user cannot be duplicated. */ @org.jetbrains.annotations.NotNull java.lang.Object getName(); /** * Property lang: Specifies the language type for requesting and receiving messages. */ default @org.jetbrains.annotations.Nullable java.lang.Object getLang() { return null; } /** * Property sourceIp: Specifies the source IP address of the request. */ default @org.jetbrains.annotations.Nullable java.lang.Object getSourceIp() { return null; } /** * @return a {@link Builder} of {@link CertificateProps} */ static Builder builder() { return new Builder(); } /** * A builder for {@link CertificateProps} */ public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object cert; java.lang.Object key; java.lang.Object name; java.lang.Object lang; java.lang.Object sourceIp; /** * Sets the value of {@link CertificateProps#getCert} * @param cert Property cert: Specify the content of the certificate. This parameter is required. * To use the PEM encoding format. * @return {@code this} */ public Builder cert(java.lang.String cert) { this.cert = cert; return this; } /** * Sets the value of {@link CertificateProps#getCert} * @param cert Property cert: Specify the content of the certificate. This parameter is required. * To use the PEM encoding format. * @return {@code this} */ public Builder cert(com.aliyun.ros.cdk.core.IResolvable cert) { this.cert = cert; return this; } /** * Sets the value of {@link CertificateProps#getKey} * @param key Property key: Specify the certificate private key content. This parameter is required. * To use the PEM encoding format. * @return {@code this} */ public Builder key(java.lang.String key) { this.key = key; return this; } /** * Sets the value of {@link CertificateProps#getKey} * @param key Property key: Specify the certificate private key content. This parameter is required. * To use the PEM encoding format. * @return {@code this} */ public Builder key(com.aliyun.ros.cdk.core.IResolvable key) { this.key = key; return this; } /** * Sets the value of {@link CertificateProps#getName} * @param name Property name: Custom certificate name. This parameter is required. * The certificate name under a user cannot be duplicated. * @return {@code this} */ public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link CertificateProps#getName} * @param name Property name: Custom certificate name. This parameter is required. * The certificate name under a user cannot be duplicated. * @return {@code this} */ public Builder name(com.aliyun.ros.cdk.core.IResolvable name) { this.name = name; return this; } /** * Sets the value of {@link CertificateProps#getLang} * @param lang Property lang: Specifies the language type for requesting and receiving messages. * @return {@code this} */ public Builder lang(java.lang.String lang) { this.lang = lang; return this; } /** * Sets the value of {@link CertificateProps#getLang} * @param lang Property lang: Specifies the language type for requesting and receiving messages. * @return {@code this} */ public Builder lang(com.aliyun.ros.cdk.core.IResolvable lang) { this.lang = lang; return this; } /** * Sets the value of {@link CertificateProps#getSourceIp} * @param sourceIp Property sourceIp: Specifies the source IP address of the request. * @return {@code this} */ public Builder sourceIp(java.lang.String sourceIp) { this.sourceIp = sourceIp; return this; } /** * Sets the value of {@link CertificateProps#getSourceIp} * @param sourceIp Property sourceIp: Specifies the source IP address of the request. * @return {@code this} */ public Builder sourceIp(com.aliyun.ros.cdk.core.IResolvable sourceIp) { this.sourceIp = sourceIp; return this; } /** * Builds the configured instance. * @return a new instance of {@link CertificateProps} * @throws NullPointerException if any required attribute was not provided */ @Override public CertificateProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link CertificateProps} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CertificateProps { private final java.lang.Object cert; private final java.lang.Object key; private final java.lang.Object name; private final java.lang.Object lang; private final java.lang.Object sourceIp; /** * 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.cert = software.amazon.jsii.Kernel.get(this, "cert", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.key = software.amazon.jsii.Kernel.get(this, "key", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.name = software.amazon.jsii.Kernel.get(this, "name", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.lang = software.amazon.jsii.Kernel.get(this, "lang", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.sourceIp = software.amazon.jsii.Kernel.get(this, "sourceIp", 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.cert = java.util.Objects.requireNonNull(builder.cert, "cert is required"); this.key = java.util.Objects.requireNonNull(builder.key, "key is required"); this.name = java.util.Objects.requireNonNull(builder.name, "name is required"); this.lang = builder.lang; this.sourceIp = builder.sourceIp; } @Override public final java.lang.Object getCert() { return this.cert; } @Override public final java.lang.Object getKey() { return this.key; } @Override public final java.lang.Object getName() { return this.name; } @Override public final java.lang.Object getLang() { return this.lang; } @Override public final java.lang.Object getSourceIp() { return this.sourceIp; } @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("cert", om.valueToTree(this.getCert())); data.set("key", om.valueToTree(this.getKey())); data.set("name", om.valueToTree(this.getName())); if (this.getLang() != null) { data.set("lang", om.valueToTree(this.getLang())); } if (this.getSourceIp() != null) { data.set("sourceIp", om.valueToTree(this.getSourceIp())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-cas.CertificateProps")); 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; CertificateProps.Jsii$Proxy that = (CertificateProps.Jsii$Proxy) o; if (!cert.equals(that.cert)) return false; if (!key.equals(that.key)) return false; if (!name.equals(that.name)) return false; if (this.lang != null ? !this.lang.equals(that.lang) : that.lang != null) return false; return this.sourceIp != null ? this.sourceIp.equals(that.sourceIp) : that.sourceIp == null; } @Override public final int hashCode() { int result = this.cert.hashCode(); result = 31 * result + (this.key.hashCode()); result = 31 * result + (this.name.hashCode()); result = 31 * result + (this.lang != null ? this.lang.hashCode() : 0); result = 31 * result + (this.sourceIp != null ? this.sourceIp.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy