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

software.amazon.awscdk.cxapi.EndpointServiceAvailabilityZonesContextQuery Maven / Gradle / Ivy

There is a newer version: 2.167.1
Show newest version
package software.amazon.awscdk.cxapi;

/**
 * Query to hosted zone context provider.
 * 

* Example: *

*

 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.cxapi.*;
 * EndpointServiceAvailabilityZonesContextQuery endpointServiceAvailabilityZonesContextQuery = EndpointServiceAvailabilityZonesContextQuery.builder()
 *         .account("account")
 *         .region("region")
 *         .serviceName("serviceName")
 *         .build();
 * 
*/ @javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-11T15:55:51.760Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.cxapi.$Module.class, fqn = "@aws-cdk/cx-api.EndpointServiceAvailabilityZonesContextQuery") @software.amazon.jsii.Jsii.Proxy(EndpointServiceAvailabilityZonesContextQuery.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface EndpointServiceAvailabilityZonesContextQuery extends software.amazon.jsii.JsiiSerializable { /** * Query account. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getAccount() { return null; } /** * Query region. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getRegion() { return null; } /** * Query service name. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getServiceName() { return null; } /** * @return a {@link Builder} of {@link EndpointServiceAvailabilityZonesContextQuery} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link EndpointServiceAvailabilityZonesContextQuery} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { java.lang.String account; java.lang.String region; java.lang.String serviceName; /** * Sets the value of {@link EndpointServiceAvailabilityZonesContextQuery#getAccount} * @param account Query account. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder account(java.lang.String account) { this.account = account; return this; } /** * Sets the value of {@link EndpointServiceAvailabilityZonesContextQuery#getRegion} * @param region Query region. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder region(java.lang.String region) { this.region = region; return this; } /** * Sets the value of {@link EndpointServiceAvailabilityZonesContextQuery#getServiceName} * @param serviceName Query service name. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder serviceName(java.lang.String serviceName) { this.serviceName = serviceName; return this; } /** * Builds the configured instance. * @return a new instance of {@link EndpointServiceAvailabilityZonesContextQuery} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public EndpointServiceAvailabilityZonesContextQuery build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link EndpointServiceAvailabilityZonesContextQuery} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements EndpointServiceAvailabilityZonesContextQuery { private final java.lang.String account; private final java.lang.String region; private final java.lang.String serviceName; /** * 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.account = software.amazon.jsii.Kernel.get(this, "account", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.region = software.amazon.jsii.Kernel.get(this, "region", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.serviceName = software.amazon.jsii.Kernel.get(this, "serviceName", 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.account = builder.account; this.region = builder.region; this.serviceName = builder.serviceName; } @Override public final java.lang.String getAccount() { return this.account; } @Override public final java.lang.String getRegion() { return this.region; } @Override public final java.lang.String getServiceName() { return this.serviceName; } @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.getAccount() != null) { data.set("account", om.valueToTree(this.getAccount())); } if (this.getRegion() != null) { data.set("region", om.valueToTree(this.getRegion())); } if (this.getServiceName() != null) { data.set("serviceName", om.valueToTree(this.getServiceName())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/cx-api.EndpointServiceAvailabilityZonesContextQuery")); 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; EndpointServiceAvailabilityZonesContextQuery.Jsii$Proxy that = (EndpointServiceAvailabilityZonesContextQuery.Jsii$Proxy) o; if (this.account != null ? !this.account.equals(that.account) : that.account != null) return false; if (this.region != null ? !this.region.equals(that.region) : that.region != null) return false; return this.serviceName != null ? this.serviceName.equals(that.serviceName) : that.serviceName == null; } @Override public final int hashCode() { int result = this.account != null ? this.account.hashCode() : 0; result = 31 * result + (this.region != null ? this.region.hashCode() : 0); result = 31 * result + (this.serviceName != null ? this.serviceName.hashCode() : 0); return result; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy