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

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

package software.amazon.awscdk.services.networkmanager;

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

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

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

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

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

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-site.html#cfn-networkmanager-site-tags */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.util.List getTags() { return null; } /** * @return a {@link Builder} of {@link CfnSiteProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnSiteProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { private java.lang.String globalNetworkId; private java.lang.String description; private java.lang.Object location; private java.util.List tags; /** * Sets the value of {@link CfnSiteProps#getGlobalNetworkId} * @param globalNetworkId `AWS::NetworkManager::Site.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 CfnSiteProps#getDescription} * @param description `AWS::NetworkManager::Site.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 CfnSiteProps#getLocation} * @param location `AWS::NetworkManager::Site.Location`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder location(software.amazon.awscdk.core.IResolvable location) { this.location = location; return this; } /** * Sets the value of {@link CfnSiteProps#getLocation} * @param location `AWS::NetworkManager::Site.Location`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder location(software.amazon.awscdk.services.networkmanager.CfnSite.LocationProperty location) { this.location = location; return this; } /** * Sets the value of {@link CfnSiteProps#getTags} * @param tags `AWS::NetworkManager::Site.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; } /** * Builds the configured instance. * @return a new instance of {@link CfnSiteProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnSiteProps build() { return new Jsii$Proxy(globalNetworkId, description, location, tags); } } /** * An implementation for {@link CfnSiteProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnSiteProps { private final java.lang.String globalNetworkId; private final java.lang.String description; private final java.lang.Object location; private final java.util.List tags; /** * 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.globalNetworkId = software.amazon.jsii.Kernel.get(this, "globalNetworkId", 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.location = software.amazon.jsii.Kernel.get(this, "location", software.amazon.jsii.NativeType.forClass(java.lang.Object.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))); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ @SuppressWarnings("unchecked") protected Jsii$Proxy(final java.lang.String globalNetworkId, final java.lang.String description, final java.lang.Object location, final java.util.List tags) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.globalNetworkId = java.util.Objects.requireNonNull(globalNetworkId, "globalNetworkId is required"); this.description = description; this.location = location; this.tags = (java.util.List)tags; } @Override public final java.lang.String getGlobalNetworkId() { return this.globalNetworkId; } @Override public final java.lang.String getDescription() { return this.description; } @Override public final java.lang.Object getLocation() { return this.location; } @Override public final java.util.List getTags() { return this.tags; } @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("globalNetworkId", om.valueToTree(this.getGlobalNetworkId())); if (this.getDescription() != null) { data.set("description", om.valueToTree(this.getDescription())); } if (this.getLocation() != null) { data.set("location", om.valueToTree(this.getLocation())); } if (this.getTags() != null) { data.set("tags", om.valueToTree(this.getTags())); } 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.CfnSiteProps")); 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; CfnSiteProps.Jsii$Proxy that = (CfnSiteProps.Jsii$Proxy) o; if (!globalNetworkId.equals(that.globalNetworkId)) return false; if (this.description != null ? !this.description.equals(that.description) : that.description != null) return false; if (this.location != null ? !this.location.equals(that.location) : that.location != null) return false; return this.tags != null ? this.tags.equals(that.tags) : that.tags == null; } @Override public final int hashCode() { int result = this.globalNetworkId.hashCode(); result = 31 * result + (this.description != null ? this.description.hashCode() : 0); result = 31 * result + (this.location != null ? this.location.hashCode() : 0); result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy