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

software.amazon.awscdk.services.networkmanager.CfnLinkProps Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.networkmanager;

/**
 * Properties for defining a `AWS::NetworkManager::Link`.
 * 

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-link.html */ @javax.annotation.Generated(value = "jsii-pacmak/1.15.0 (build 585166b)", date = "2021-01-06T15:17:13.148Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.networkmanager.$Module.class, fqn = "@aws-cdk/aws-networkmanager.CfnLinkProps") @software.amazon.jsii.Jsii.Proxy(CfnLinkProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface CfnLinkProps extends software.amazon.jsii.JsiiSerializable { /** * `AWS::NetworkManager::Link.Bandwidth`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-link.html#cfn-networkmanager-link-bandwidth */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.Object getBandwidth(); /** * `AWS::NetworkManager::Link.GlobalNetworkId`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-link.html#cfn-networkmanager-link-globalnetworkid */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getGlobalNetworkId(); /** * `AWS::NetworkManager::Link.SiteId`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-link.html#cfn-networkmanager-link-siteid */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.String getSiteId(); /** * `AWS::NetworkManager::Link.Description`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-link.html#cfn-networkmanager-link-description */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getDescription() { return null; } /** * `AWS::NetworkManager::Link.Provider`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-link.html#cfn-networkmanager-link-provider */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getProvider() { return null; } /** * `AWS::NetworkManager::Link.Tags`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-link.html#cfn-networkmanager-link-tags */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getTags() { return null; } /** * `AWS::NetworkManager::Link.Type`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-link.html#cfn-networkmanager-link-type */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getType() { return null; } /** * @return a {@link Builder} of {@link CfnLinkProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnLinkProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { private java.lang.Object bandwidth; private java.lang.String globalNetworkId; private java.lang.String siteId; private java.lang.String description; private java.lang.String provider; private java.util.List tags; private java.lang.String type; /** * Sets the value of {@link CfnLinkProps#getBandwidth} * @param bandwidth `AWS::NetworkManager::Link.Bandwidth`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder bandwidth(software.amazon.awscdk.services.networkmanager.CfnLink.BandwidthProperty bandwidth) { this.bandwidth = bandwidth; return this; } /** * Sets the value of {@link CfnLinkProps#getBandwidth} * @param bandwidth `AWS::NetworkManager::Link.Bandwidth`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder bandwidth(software.amazon.awscdk.core.IResolvable bandwidth) { this.bandwidth = bandwidth; return this; } /** * Sets the value of {@link CfnLinkProps#getGlobalNetworkId} * @param globalNetworkId `AWS::NetworkManager::Link.GlobalNetworkId`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder globalNetworkId(java.lang.String globalNetworkId) { this.globalNetworkId = globalNetworkId; return this; } /** * Sets the value of {@link CfnLinkProps#getSiteId} * @param siteId `AWS::NetworkManager::Link.SiteId`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder siteId(java.lang.String siteId) { this.siteId = siteId; return this; } /** * Sets the value of {@link CfnLinkProps#getDescription} * @param description `AWS::NetworkManager::Link.Description`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder description(java.lang.String description) { this.description = description; return this; } /** * Sets the value of {@link CfnLinkProps#getProvider} * @param provider `AWS::NetworkManager::Link.Provider`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder provider(java.lang.String provider) { this.provider = provider; return this; } /** * Sets the value of {@link CfnLinkProps#getTags} * @param tags `AWS::NetworkManager::Link.Tags`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @SuppressWarnings("unchecked") public Builder tags(java.util.List tags) { this.tags = (java.util.List)tags; return this; } /** * Sets the value of {@link CfnLinkProps#getType} * @param type `AWS::NetworkManager::Link.Type`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder type(java.lang.String type) { this.type = type; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnLinkProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnLinkProps build() { return new Jsii$Proxy(bandwidth, globalNetworkId, siteId, description, provider, tags, type); } } /** * An implementation for {@link CfnLinkProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnLinkProps { private final java.lang.Object bandwidth; private final java.lang.String globalNetworkId; private final java.lang.String siteId; private final java.lang.String description; private final java.lang.String provider; private final java.util.List tags; private final java.lang.String type; /** * 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.bandwidth = software.amazon.jsii.Kernel.get(this, "bandwidth", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.globalNetworkId = software.amazon.jsii.Kernel.get(this, "globalNetworkId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.siteId = software.amazon.jsii.Kernel.get(this, "siteId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.description = software.amazon.jsii.Kernel.get(this, "description", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.provider = software.amazon.jsii.Kernel.get(this, "provider", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.CfnTag.class))); this.type = software.amazon.jsii.Kernel.get(this, "type", 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 java.lang.Object bandwidth, final java.lang.String globalNetworkId, final java.lang.String siteId, final java.lang.String description, final java.lang.String provider, final java.util.List tags, final java.lang.String type) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.bandwidth = java.util.Objects.requireNonNull(bandwidth, "bandwidth is required"); this.globalNetworkId = java.util.Objects.requireNonNull(globalNetworkId, "globalNetworkId is required"); this.siteId = java.util.Objects.requireNonNull(siteId, "siteId is required"); this.description = description; this.provider = provider; this.tags = (java.util.List)tags; this.type = type; } @Override public final java.lang.Object getBandwidth() { return this.bandwidth; } @Override public final java.lang.String getGlobalNetworkId() { return this.globalNetworkId; } @Override public final java.lang.String getSiteId() { return this.siteId; } @Override public final java.lang.String getDescription() { return this.description; } @Override public final java.lang.String getProvider() { return this.provider; } @Override public final java.util.List getTags() { return this.tags; } @Override public final java.lang.String getType() { return this.type; } @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("bandwidth", om.valueToTree(this.getBandwidth())); data.set("globalNetworkId", om.valueToTree(this.getGlobalNetworkId())); data.set("siteId", om.valueToTree(this.getSiteId())); if (this.getDescription() != null) { data.set("description", om.valueToTree(this.getDescription())); } if (this.getProvider() != null) { data.set("provider", om.valueToTree(this.getProvider())); } if (this.getTags() != null) { data.set("tags", om.valueToTree(this.getTags())); } if (this.getType() != null) { data.set("type", om.valueToTree(this.getType())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@aws-cdk/aws-networkmanager.CfnLinkProps")); 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; CfnLinkProps.Jsii$Proxy that = (CfnLinkProps.Jsii$Proxy) o; if (!bandwidth.equals(that.bandwidth)) return false; if (!globalNetworkId.equals(that.globalNetworkId)) return false; if (!siteId.equals(that.siteId)) return false; if (this.description != null ? !this.description.equals(that.description) : that.description != null) return false; if (this.provider != null ? !this.provider.equals(that.provider) : that.provider != null) return false; if (this.tags != null ? !this.tags.equals(that.tags) : that.tags != null) return false; return this.type != null ? this.type.equals(that.type) : that.type == null; } @Override public final int hashCode() { int result = this.bandwidth.hashCode(); result = 31 * result + (this.globalNetworkId.hashCode()); result = 31 * result + (this.siteId.hashCode()); result = 31 * result + (this.description != null ? this.description.hashCode() : 0); result = 31 * result + (this.provider != null ? this.provider.hashCode() : 0); result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0); result = 31 * result + (this.type != null ? this.type.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy