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

software.amazon.awscdk.services.ecs.CfnCapacityProviderProps Maven / Gradle / Ivy

package software.amazon.awscdk.services.ecs;

/**
 * Properties for defining a `AWS::ECS::CapacityProvider`.
 * 

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-capacityprovider.html */ @javax.annotation.Generated(value = "jsii-pacmak/1.9.0 (build 5c646d5)", date = "2020-07-28T21:12:44.551Z") @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.ecs.$Module.class, fqn = "@aws-cdk/aws-ecs.CfnCapacityProviderProps") @software.amazon.jsii.Jsii.Proxy(CfnCapacityProviderProps.Jsii$Proxy.class) @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public interface CfnCapacityProviderProps extends software.amazon.jsii.JsiiSerializable { /** * `AWS::ECS::CapacityProvider.AutoScalingGroupProvider`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-capacityprovider.html#cfn-ecs-capacityprovider-autoscalinggroupprovider */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @org.jetbrains.annotations.NotNull java.lang.Object getAutoScalingGroupProvider(); /** * `AWS::ECS::CapacityProvider.Name`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-capacityprovider.html#cfn-ecs-capacityprovider-name */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) default @org.jetbrains.annotations.Nullable java.lang.String getName() { return null; } /** * `AWS::ECS::CapacityProvider.Tags`. *

* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ecs-capacityprovider.html#cfn-ecs-capacityprovider-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 CfnCapacityProviderProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) static Builder builder() { return new Builder(); } /** * A builder for {@link CfnCapacityProviderProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { private java.lang.Object autoScalingGroupProvider; private java.lang.String name; private java.util.List tags; /** * Sets the value of {@link CfnCapacityProviderProps#getAutoScalingGroupProvider} * @param autoScalingGroupProvider `AWS::ECS::CapacityProvider.AutoScalingGroupProvider`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder autoScalingGroupProvider(software.amazon.awscdk.services.ecs.CfnCapacityProvider.AutoScalingGroupProviderProperty autoScalingGroupProvider) { this.autoScalingGroupProvider = autoScalingGroupProvider; return this; } /** * Sets the value of {@link CfnCapacityProviderProps#getAutoScalingGroupProvider} * @param autoScalingGroupProvider `AWS::ECS::CapacityProvider.AutoScalingGroupProvider`. This parameter is required. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder autoScalingGroupProvider(software.amazon.awscdk.core.IResolvable autoScalingGroupProvider) { this.autoScalingGroupProvider = autoScalingGroupProvider; return this; } /** * Sets the value of {@link CfnCapacityProviderProps#getName} * @param name `AWS::ECS::CapacityProvider.Name`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder name(java.lang.String name) { this.name = name; return this; } /** * Sets the value of {@link CfnCapacityProviderProps#getTags} * @param tags `AWS::ECS::CapacityProvider.Tags`. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder tags(java.util.List tags) { this.tags = tags; return this; } /** * Builds the configured instance. * @return a new instance of {@link CfnCapacityProviderProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public CfnCapacityProviderProps build() { return new Jsii$Proxy(autoScalingGroupProvider, name, tags); } } /** * An implementation for {@link CfnCapacityProviderProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnCapacityProviderProps { private final java.lang.Object autoScalingGroupProvider; private final java.lang.String name; 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.autoScalingGroupProvider = this.jsiiGet("autoScalingGroupProvider", java.lang.Object.class); this.name = this.jsiiGet("name", java.lang.String.class); this.tags = this.jsiiGet("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}. */ private Jsii$Proxy(final java.lang.Object autoScalingGroupProvider, final java.lang.String name, final java.util.List tags) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.autoScalingGroupProvider = java.util.Objects.requireNonNull(autoScalingGroupProvider, "autoScalingGroupProvider is required"); this.name = name; this.tags = tags; } @Override public java.lang.Object getAutoScalingGroupProvider() { return this.autoScalingGroupProvider; } @Override public java.lang.String getName() { return this.name; } @Override public java.util.List getTags() { return this.tags; } @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("autoScalingGroupProvider", om.valueToTree(this.getAutoScalingGroupProvider())); if (this.getName() != null) { data.set("name", om.valueToTree(this.getName())); } 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-ecs.CfnCapacityProviderProps")); 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; CfnCapacityProviderProps.Jsii$Proxy that = (CfnCapacityProviderProps.Jsii$Proxy) o; if (!autoScalingGroupProvider.equals(that.autoScalingGroupProvider)) return false; if (this.name != null ? !this.name.equals(that.name) : that.name != null) return false; return this.tags != null ? this.tags.equals(that.tags) : that.tags == null; } @Override public int hashCode() { int result = this.autoScalingGroupProvider.hashCode(); result = 31 * result + (this.name != null ? this.name.hashCode() : 0); result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy