software.amazon.awscdk.services.networkmanager.CfnTransitGatewayRegistrationProps Maven / Gradle / Ivy
Show all versions of networkmanager Show documentation
package software.amazon.awscdk.services.networkmanager;
/**
* Properties for defining a `AWS::NetworkManager::TransitGatewayRegistration`.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayregistration.html
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.9.0 (build 5c646d5)", date = "2020-07-18T01:27:07.571Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.networkmanager.$Module.class, fqn = "@aws-cdk/aws-networkmanager.CfnTransitGatewayRegistrationProps")
@software.amazon.jsii.Jsii.Proxy(CfnTransitGatewayRegistrationProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CfnTransitGatewayRegistrationProps extends software.amazon.jsii.JsiiSerializable {
/**
* `AWS::NetworkManager::TransitGatewayRegistration.GlobalNetworkId`.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayregistration.html#cfn-networkmanager-transitgatewayregistration-globalnetworkid
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getGlobalNetworkId();
/**
* `AWS::NetworkManager::TransitGatewayRegistration.TransitGatewayArn`.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-networkmanager-transitgatewayregistration.html#cfn-networkmanager-transitgatewayregistration-transitgatewayarn
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getTransitGatewayArn();
/**
* @return a {@link Builder} of {@link CfnTransitGatewayRegistrationProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CfnTransitGatewayRegistrationProps}
*/
@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 transitGatewayArn;
/**
* Sets the value of {@link CfnTransitGatewayRegistrationProps#getGlobalNetworkId}
* @param globalNetworkId `AWS::NetworkManager::TransitGatewayRegistration.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 CfnTransitGatewayRegistrationProps#getTransitGatewayArn}
* @param transitGatewayArn `AWS::NetworkManager::TransitGatewayRegistration.TransitGatewayArn`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder transitGatewayArn(java.lang.String transitGatewayArn) {
this.transitGatewayArn = transitGatewayArn;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CfnTransitGatewayRegistrationProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public CfnTransitGatewayRegistrationProps build() {
return new Jsii$Proxy(globalNetworkId, transitGatewayArn);
}
}
/**
* An implementation for {@link CfnTransitGatewayRegistrationProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnTransitGatewayRegistrationProps {
private final java.lang.String globalNetworkId;
private final java.lang.String transitGatewayArn;
/**
* 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 = this.jsiiGet("globalNetworkId", java.lang.String.class);
this.transitGatewayArn = this.jsiiGet("transitGatewayArn", java.lang.String.class);
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
private Jsii$Proxy(final java.lang.String globalNetworkId, final java.lang.String transitGatewayArn) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.globalNetworkId = java.util.Objects.requireNonNull(globalNetworkId, "globalNetworkId is required");
this.transitGatewayArn = java.util.Objects.requireNonNull(transitGatewayArn, "transitGatewayArn is required");
}
@Override
public java.lang.String getGlobalNetworkId() {
return this.globalNetworkId;
}
@Override
public java.lang.String getTransitGatewayArn() {
return this.transitGatewayArn;
}
@Override
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()));
data.set("transitGatewayArn", om.valueToTree(this.getTransitGatewayArn()));
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.CfnTransitGatewayRegistrationProps"));
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 boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CfnTransitGatewayRegistrationProps.Jsii$Proxy that = (CfnTransitGatewayRegistrationProps.Jsii$Proxy) o;
if (!globalNetworkId.equals(that.globalNetworkId)) return false;
return this.transitGatewayArn.equals(that.transitGatewayArn);
}
@Override
public int hashCode() {
int result = this.globalNetworkId.hashCode();
result = 31 * result + (this.transitGatewayArn.hashCode());
return result;
}
}
}