ca.wheatstalk.cdkecskeycloak.AddTargetPortPublisherProps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdk-ecs-keycloak Show documentation
Show all versions of cdk-ecs-keycloak Show documentation
@wheatstalk/cdk-ecs-keycloak
package ca.wheatstalk.cdkecskeycloak;
/**
* Information about how to register with a load balancer.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.29.0 (build 41df200)", date = "2021-04-28T04:27:48.334Z")
@software.amazon.jsii.Jsii(module = ca.wheatstalk.cdkecskeycloak.$Module.class, fqn = "@wheatstalk/cdk-ecs-keycloak.AddTargetPortPublisherProps")
@software.amazon.jsii.Jsii.Proxy(AddTargetPortPublisherProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface AddTargetPortPublisherProps extends software.amazon.jsii.JsiiSerializable {
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationListener getListener();
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getConditions() {
return null;
}
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getPriority() {
return null;
}
/**
* @return a {@link Builder} of {@link AddTargetPortPublisherProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link AddTargetPortPublisherProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationListener listener;
private java.util.List conditions;
private java.lang.Number priority;
/**
* Sets the value of {@link AddTargetPortPublisherProps#getListener}
* @param listener the value to be set. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder listener(software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationListener listener) {
this.listener = listener;
return this;
}
/**
* Sets the value of {@link AddTargetPortPublisherProps#getConditions}
* @param conditions the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@SuppressWarnings("unchecked")
public Builder conditions(java.util.List extends software.amazon.awscdk.services.elasticloadbalancingv2.ListenerCondition> conditions) {
this.conditions = (java.util.List)conditions;
return this;
}
/**
* Sets the value of {@link AddTargetPortPublisherProps#getPriority}
* @param priority the value to be set.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder priority(java.lang.Number priority) {
this.priority = priority;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link AddTargetPortPublisherProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public AddTargetPortPublisherProps build() {
return new Jsii$Proxy(listener, conditions, priority);
}
}
/**
* An implementation for {@link AddTargetPortPublisherProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AddTargetPortPublisherProps {
private final software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationListener listener;
private final java.util.List conditions;
private final java.lang.Number priority;
/**
* 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.listener = software.amazon.jsii.Kernel.get(this, "listener", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationListener.class));
this.conditions = software.amazon.jsii.Kernel.get(this, "conditions", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.elasticloadbalancingv2.ListenerCondition.class)));
this.priority = software.amazon.jsii.Kernel.get(this, "priority", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
@SuppressWarnings("unchecked")
protected Jsii$Proxy(final software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationListener listener, final java.util.List extends software.amazon.awscdk.services.elasticloadbalancingv2.ListenerCondition> conditions, final java.lang.Number priority) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.listener = java.util.Objects.requireNonNull(listener, "listener is required");
this.conditions = (java.util.List)conditions;
this.priority = priority;
}
@Override
public final software.amazon.awscdk.services.elasticloadbalancingv2.IApplicationListener getListener() {
return this.listener;
}
@Override
public final java.util.List getConditions() {
return this.conditions;
}
@Override
public final java.lang.Number getPriority() {
return this.priority;
}
@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("listener", om.valueToTree(this.getListener()));
if (this.getConditions() != null) {
data.set("conditions", om.valueToTree(this.getConditions()));
}
if (this.getPriority() != null) {
data.set("priority", om.valueToTree(this.getPriority()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@wheatstalk/cdk-ecs-keycloak.AddTargetPortPublisherProps"));
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;
AddTargetPortPublisherProps.Jsii$Proxy that = (AddTargetPortPublisherProps.Jsii$Proxy) o;
if (!listener.equals(that.listener)) return false;
if (this.conditions != null ? !this.conditions.equals(that.conditions) : that.conditions != null) return false;
return this.priority != null ? this.priority.equals(that.priority) : that.priority == null;
}
@Override
public final int hashCode() {
int result = this.listener.hashCode();
result = 31 * result + (this.conditions != null ? this.conditions.hashCode() : 0);
result = 31 * result + (this.priority != null ? this.priority.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy