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

com.cloudsnorkel.cdk.github.runners.FargateRunnerProviderProps Maven / Gradle / Ivy

Go to download

CDK construct to create GitHub Actions self-hosted runners. A webhook listens to events and creates ephemeral runners on the fly.

There is a newer version: 0.14.6
Show newest version
package com.cloudsnorkel.cdk.github.runners;

/**
 * (experimental) Properties for FargateRunnerProvider.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-14T02:42:19.437Z")
@software.amazon.jsii.Jsii(module = com.cloudsnorkel.cdk.github.runners.$Module.class, fqn = "@cloudsnorkel/cdk-github-runners.FargateRunnerProviderProps")
@software.amazon.jsii.Jsii.Proxy(FargateRunnerProviderProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface FargateRunnerProviderProps extends software.amazon.jsii.JsiiSerializable, com.cloudsnorkel.cdk.github.runners.RunnerProviderProps {

    /**
     * (experimental) Assign public IP to the runner task.
     * 

* Make sure the task will have access to GitHub. A public IP might be required unless you have NAT gateway. *

* Default: true */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getAssignPublicIp() { return null; } /** * (experimental) Existing Fargate cluster to use. *

* Default: a new cluster */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ecs.Cluster getCluster() { return null; } /** * (experimental) The number of cpu units used by the task. *

* For tasks using the Fargate launch type, * this field is required and you must use one of the following values, * which determines your range of valid values for the memory parameter: *

* 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) *

* 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) *

* 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) *

* 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) *

* 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) *

* Default: 1024 */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Number getCpu() { return null; } /** * (experimental) The amount (in GiB) of ephemeral storage to be allocated to the task. *

* The maximum supported value is 200 GiB. *

* NOTE: This parameter is only supported for tasks hosted on AWS Fargate using platform version 1.4.0 or later. *

* Default: 20 */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Number getEphemeralStorageGiB() { return null; } /** * (experimental) Runner image builder used to build Docker images containing GitHub Runner and all requirements. *

* The image builder determines the OS and architecture of the runner. *

* Default: FargateRunnerProvider.imageBuilder() */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder getImageBuilder() { return null; } /** * (deprecated) GitHub Actions label used for this provider. *

* Default: undefined *

* @deprecated use {@link labels } instead */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated default @org.jetbrains.annotations.Nullable java.lang.String getLabel() { return null; } /** * (experimental) GitHub Actions labels used for this provider. *

* These labels are used to identify which provider should spawn a new on-demand runner. Every job sends a webhook with the labels it's looking for * based on runs-on. We match the labels from the webhook with the labels specified here. If all the labels specified here are present in the * job's labels, this provider will be chosen and spawn a new runner. *

* Default: ['fargate'] */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.util.List getLabels() { return null; } /** * (experimental) The amount (in MiB) of memory used by the task. *

* For tasks using the Fargate launch type, * this field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: *

* 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU) *

* 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU) *

* 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU) *

* Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU) *

* Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) *

* Default: 2048 */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Number getMemoryLimitMiB() { return null; } /** * (deprecated) Security group to assign to the task. *

* Default: a new security group *

* @deprecated use {@link securityGroups } */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.ISecurityGroup getSecurityGroup() { return null; } /** * (experimental) Security groups to assign to the task. *

* Default: a new security group */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.util.List getSecurityGroups() { return null; } /** * (experimental) Use Fargate spot capacity provider to save money. *

*

    *
  • Runners may fail to start due to missing capacity.
  • *
  • Runners might be stopped prematurely with spot pricing.
  • *
*

* Default: false */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable java.lang.Boolean getSpot() { return null; } /** * (experimental) Subnets to run the runners in. *

* Default: Fargate default */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.SubnetSelection getSubnetSelection() { return null; } /** * (experimental) VPC to launch the runners in. *

* Default: default account VPC */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.IVpc getVpc() { return null; } /** * @return a {@link Builder} of {@link FargateRunnerProviderProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) static Builder builder() { return new Builder(); } /** * A builder for {@link FargateRunnerProviderProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { java.lang.Boolean assignPublicIp; software.amazon.awscdk.services.ecs.Cluster cluster; java.lang.Number cpu; java.lang.Number ephemeralStorageGiB; com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder imageBuilder; java.lang.String label; java.util.List labels; java.lang.Number memoryLimitMiB; software.amazon.awscdk.services.ec2.ISecurityGroup securityGroup; java.util.List securityGroups; java.lang.Boolean spot; software.amazon.awscdk.services.ec2.SubnetSelection subnetSelection; software.amazon.awscdk.services.ec2.IVpc vpc; software.amazon.awscdk.services.logs.RetentionDays logRetention; com.cloudsnorkel.cdk.github.runners.ProviderRetryOptions retryOptions; /** * Sets the value of {@link FargateRunnerProviderProps#getAssignPublicIp} * @param assignPublicIp Assign public IP to the runner task. * Make sure the task will have access to GitHub. A public IP might be required unless you have NAT gateway. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder assignPublicIp(java.lang.Boolean assignPublicIp) { this.assignPublicIp = assignPublicIp; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getCluster} * @param cluster Existing Fargate cluster to use. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder cluster(software.amazon.awscdk.services.ecs.Cluster cluster) { this.cluster = cluster; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getCpu} * @param cpu The number of cpu units used by the task. * For tasks using the Fargate launch type, * this field is required and you must use one of the following values, * which determines your range of valid values for the memory parameter: *

* 256 (.25 vCPU) - Available memory values: 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) *

* 512 (.5 vCPU) - Available memory values: 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) *

* 1024 (1 vCPU) - Available memory values: 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) *

* 2048 (2 vCPU) - Available memory values: Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) *

* 4096 (4 vCPU) - Available memory values: Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder cpu(java.lang.Number cpu) { this.cpu = cpu; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getEphemeralStorageGiB} * @param ephemeralStorageGiB The amount (in GiB) of ephemeral storage to be allocated to the task. * The maximum supported value is 200 GiB. *

* NOTE: This parameter is only supported for tasks hosted on AWS Fargate using platform version 1.4.0 or later. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder ephemeralStorageGiB(java.lang.Number ephemeralStorageGiB) { this.ephemeralStorageGiB = ephemeralStorageGiB; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getImageBuilder} * @param imageBuilder Runner image builder used to build Docker images containing GitHub Runner and all requirements. * The image builder determines the OS and architecture of the runner. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder imageBuilder(com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder imageBuilder) { this.imageBuilder = imageBuilder; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getLabel} * @param label GitHub Actions label used for this provider. * @return {@code this} * @deprecated use {@link labels } instead */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public Builder label(java.lang.String label) { this.label = label; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getLabels} * @param labels GitHub Actions labels used for this provider. * These labels are used to identify which provider should spawn a new on-demand runner. Every job sends a webhook with the labels it's looking for * based on runs-on. We match the labels from the webhook with the labels specified here. If all the labels specified here are present in the * job's labels, this provider will be chosen and spawn a new runner. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder labels(java.util.List labels) { this.labels = labels; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getMemoryLimitMiB} * @param memoryLimitMiB The amount (in MiB) of memory used by the task. * For tasks using the Fargate launch type, * this field is required and you must use one of the following values, which determines your range of valid values for the cpu parameter: *

* 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available cpu values: 256 (.25 vCPU) *

* 1024 (1 GB), 2048 (2 GB), 3072 (3 GB), 4096 (4 GB) - Available cpu values: 512 (.5 vCPU) *

* 2048 (2 GB), 3072 (3 GB), 4096 (4 GB), 5120 (5 GB), 6144 (6 GB), 7168 (7 GB), 8192 (8 GB) - Available cpu values: 1024 (1 vCPU) *

* Between 4096 (4 GB) and 16384 (16 GB) in increments of 1024 (1 GB) - Available cpu values: 2048 (2 vCPU) *

* Between 8192 (8 GB) and 30720 (30 GB) in increments of 1024 (1 GB) - Available cpu values: 4096 (4 vCPU) * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder memoryLimitMiB(java.lang.Number memoryLimitMiB) { this.memoryLimitMiB = memoryLimitMiB; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getSecurityGroup} * @param securityGroup Security group to assign to the task. * @return {@code this} * @deprecated use {@link securityGroups } */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public Builder securityGroup(software.amazon.awscdk.services.ec2.ISecurityGroup securityGroup) { this.securityGroup = securityGroup; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getSecurityGroups} * @param securityGroups Security groups to assign to the task. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @SuppressWarnings("unchecked") public Builder securityGroups(java.util.List securityGroups) { this.securityGroups = (java.util.List)securityGroups; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getSpot} * @param spot Use Fargate spot capacity provider to save money. *

    *
  • Runners may fail to start due to missing capacity.
  • *
  • Runners might be stopped prematurely with spot pricing.
  • *
* @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder spot(java.lang.Boolean spot) { this.spot = spot; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getSubnetSelection} * @param subnetSelection Subnets to run the runners in. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder subnetSelection(software.amazon.awscdk.services.ec2.SubnetSelection subnetSelection) { this.subnetSelection = subnetSelection; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getVpc} * @param vpc VPC to launch the runners in. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder vpc(software.amazon.awscdk.services.ec2.IVpc vpc) { this.vpc = vpc; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getLogRetention} * @param logRetention The number of days log events are kept in CloudWatch Logs. * When updating * this property, unsetting it doesn't remove the log retention policy. To * remove the retention policy, set the value to INFINITE. * @return {@code this} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder logRetention(software.amazon.awscdk.services.logs.RetentionDays logRetention) { this.logRetention = logRetention; return this; } /** * Sets the value of {@link FargateRunnerProviderProps#getRetryOptions} * @param retryOptions the value to be set. * @return {@code this} * @deprecated use {@link retryOptions } on {@link GitHubRunners } instead */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated) @Deprecated public Builder retryOptions(com.cloudsnorkel.cdk.github.runners.ProviderRetryOptions retryOptions) { this.retryOptions = retryOptions; return this; } /** * Builds the configured instance. * @return a new instance of {@link FargateRunnerProviderProps} * @throws NullPointerException if any required attribute was not provided */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public FargateRunnerProviderProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link FargateRunnerProviderProps} */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements FargateRunnerProviderProps { private final java.lang.Boolean assignPublicIp; private final software.amazon.awscdk.services.ecs.Cluster cluster; private final java.lang.Number cpu; private final java.lang.Number ephemeralStorageGiB; private final com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder imageBuilder; private final java.lang.String label; private final java.util.List labels; private final java.lang.Number memoryLimitMiB; private final software.amazon.awscdk.services.ec2.ISecurityGroup securityGroup; private final java.util.List securityGroups; private final java.lang.Boolean spot; private final software.amazon.awscdk.services.ec2.SubnetSelection subnetSelection; private final software.amazon.awscdk.services.ec2.IVpc vpc; private final software.amazon.awscdk.services.logs.RetentionDays logRetention; private final com.cloudsnorkel.cdk.github.runners.ProviderRetryOptions retryOptions; /** * 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.assignPublicIp = software.amazon.jsii.Kernel.get(this, "assignPublicIp", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.cluster = software.amazon.jsii.Kernel.get(this, "cluster", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ecs.Cluster.class)); this.cpu = software.amazon.jsii.Kernel.get(this, "cpu", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.ephemeralStorageGiB = software.amazon.jsii.Kernel.get(this, "ephemeralStorageGiB", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.imageBuilder = software.amazon.jsii.Kernel.get(this, "imageBuilder", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder.class)); this.label = software.amazon.jsii.Kernel.get(this, "label", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); this.labels = software.amazon.jsii.Kernel.get(this, "labels", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class))); this.memoryLimitMiB = software.amazon.jsii.Kernel.get(this, "memoryLimitMiB", software.amazon.jsii.NativeType.forClass(java.lang.Number.class)); this.securityGroup = software.amazon.jsii.Kernel.get(this, "securityGroup", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISecurityGroup.class)); this.securityGroups = software.amazon.jsii.Kernel.get(this, "securityGroups", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISecurityGroup.class))); this.spot = software.amazon.jsii.Kernel.get(this, "spot", software.amazon.jsii.NativeType.forClass(java.lang.Boolean.class)); this.subnetSelection = software.amazon.jsii.Kernel.get(this, "subnetSelection", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.SubnetSelection.class)); this.vpc = software.amazon.jsii.Kernel.get(this, "vpc", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.IVpc.class)); this.logRetention = software.amazon.jsii.Kernel.get(this, "logRetention", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.logs.RetentionDays.class)); this.retryOptions = software.amazon.jsii.Kernel.get(this, "retryOptions", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.ProviderRetryOptions.class)); } /** * Constructor that initializes the object based on literal property values passed by the {@link Builder}. */ @SuppressWarnings("unchecked") protected Jsii$Proxy(final Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.assignPublicIp = builder.assignPublicIp; this.cluster = builder.cluster; this.cpu = builder.cpu; this.ephemeralStorageGiB = builder.ephemeralStorageGiB; this.imageBuilder = builder.imageBuilder; this.label = builder.label; this.labels = builder.labels; this.memoryLimitMiB = builder.memoryLimitMiB; this.securityGroup = builder.securityGroup; this.securityGroups = (java.util.List)builder.securityGroups; this.spot = builder.spot; this.subnetSelection = builder.subnetSelection; this.vpc = builder.vpc; this.logRetention = builder.logRetention; this.retryOptions = builder.retryOptions; } @Override public final java.lang.Boolean getAssignPublicIp() { return this.assignPublicIp; } @Override public final software.amazon.awscdk.services.ecs.Cluster getCluster() { return this.cluster; } @Override public final java.lang.Number getCpu() { return this.cpu; } @Override public final java.lang.Number getEphemeralStorageGiB() { return this.ephemeralStorageGiB; } @Override public final com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder getImageBuilder() { return this.imageBuilder; } @Override public final java.lang.String getLabel() { return this.label; } @Override public final java.util.List getLabels() { return this.labels; } @Override public final java.lang.Number getMemoryLimitMiB() { return this.memoryLimitMiB; } @Override public final software.amazon.awscdk.services.ec2.ISecurityGroup getSecurityGroup() { return this.securityGroup; } @Override public final java.util.List getSecurityGroups() { return this.securityGroups; } @Override public final java.lang.Boolean getSpot() { return this.spot; } @Override public final software.amazon.awscdk.services.ec2.SubnetSelection getSubnetSelection() { return this.subnetSelection; } @Override public final software.amazon.awscdk.services.ec2.IVpc getVpc() { return this.vpc; } @Override public final software.amazon.awscdk.services.logs.RetentionDays getLogRetention() { return this.logRetention; } @Override public final com.cloudsnorkel.cdk.github.runners.ProviderRetryOptions getRetryOptions() { return this.retryOptions; } @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.getAssignPublicIp() != null) { data.set("assignPublicIp", om.valueToTree(this.getAssignPublicIp())); } if (this.getCluster() != null) { data.set("cluster", om.valueToTree(this.getCluster())); } if (this.getCpu() != null) { data.set("cpu", om.valueToTree(this.getCpu())); } if (this.getEphemeralStorageGiB() != null) { data.set("ephemeralStorageGiB", om.valueToTree(this.getEphemeralStorageGiB())); } if (this.getImageBuilder() != null) { data.set("imageBuilder", om.valueToTree(this.getImageBuilder())); } if (this.getLabel() != null) { data.set("label", om.valueToTree(this.getLabel())); } if (this.getLabels() != null) { data.set("labels", om.valueToTree(this.getLabels())); } if (this.getMemoryLimitMiB() != null) { data.set("memoryLimitMiB", om.valueToTree(this.getMemoryLimitMiB())); } if (this.getSecurityGroup() != null) { data.set("securityGroup", om.valueToTree(this.getSecurityGroup())); } if (this.getSecurityGroups() != null) { data.set("securityGroups", om.valueToTree(this.getSecurityGroups())); } if (this.getSpot() != null) { data.set("spot", om.valueToTree(this.getSpot())); } if (this.getSubnetSelection() != null) { data.set("subnetSelection", om.valueToTree(this.getSubnetSelection())); } if (this.getVpc() != null) { data.set("vpc", om.valueToTree(this.getVpc())); } if (this.getLogRetention() != null) { data.set("logRetention", om.valueToTree(this.getLogRetention())); } if (this.getRetryOptions() != null) { data.set("retryOptions", om.valueToTree(this.getRetryOptions())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@cloudsnorkel/cdk-github-runners.FargateRunnerProviderProps")); 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; FargateRunnerProviderProps.Jsii$Proxy that = (FargateRunnerProviderProps.Jsii$Proxy) o; if (this.assignPublicIp != null ? !this.assignPublicIp.equals(that.assignPublicIp) : that.assignPublicIp != null) return false; if (this.cluster != null ? !this.cluster.equals(that.cluster) : that.cluster != null) return false; if (this.cpu != null ? !this.cpu.equals(that.cpu) : that.cpu != null) return false; if (this.ephemeralStorageGiB != null ? !this.ephemeralStorageGiB.equals(that.ephemeralStorageGiB) : that.ephemeralStorageGiB != null) return false; if (this.imageBuilder != null ? !this.imageBuilder.equals(that.imageBuilder) : that.imageBuilder != null) return false; if (this.label != null ? !this.label.equals(that.label) : that.label != null) return false; if (this.labels != null ? !this.labels.equals(that.labels) : that.labels != null) return false; if (this.memoryLimitMiB != null ? !this.memoryLimitMiB.equals(that.memoryLimitMiB) : that.memoryLimitMiB != null) return false; if (this.securityGroup != null ? !this.securityGroup.equals(that.securityGroup) : that.securityGroup != null) return false; if (this.securityGroups != null ? !this.securityGroups.equals(that.securityGroups) : that.securityGroups != null) return false; if (this.spot != null ? !this.spot.equals(that.spot) : that.spot != null) return false; if (this.subnetSelection != null ? !this.subnetSelection.equals(that.subnetSelection) : that.subnetSelection != null) return false; if (this.vpc != null ? !this.vpc.equals(that.vpc) : that.vpc != null) return false; if (this.logRetention != null ? !this.logRetention.equals(that.logRetention) : that.logRetention != null) return false; return this.retryOptions != null ? this.retryOptions.equals(that.retryOptions) : that.retryOptions == null; } @Override public final int hashCode() { int result = this.assignPublicIp != null ? this.assignPublicIp.hashCode() : 0; result = 31 * result + (this.cluster != null ? this.cluster.hashCode() : 0); result = 31 * result + (this.cpu != null ? this.cpu.hashCode() : 0); result = 31 * result + (this.ephemeralStorageGiB != null ? this.ephemeralStorageGiB.hashCode() : 0); result = 31 * result + (this.imageBuilder != null ? this.imageBuilder.hashCode() : 0); result = 31 * result + (this.label != null ? this.label.hashCode() : 0); result = 31 * result + (this.labels != null ? this.labels.hashCode() : 0); result = 31 * result + (this.memoryLimitMiB != null ? this.memoryLimitMiB.hashCode() : 0); result = 31 * result + (this.securityGroup != null ? this.securityGroup.hashCode() : 0); result = 31 * result + (this.securityGroups != null ? this.securityGroups.hashCode() : 0); result = 31 * result + (this.spot != null ? this.spot.hashCode() : 0); result = 31 * result + (this.subnetSelection != null ? this.subnetSelection.hashCode() : 0); result = 31 * result + (this.vpc != null ? this.vpc.hashCode() : 0); result = 31 * result + (this.logRetention != null ? this.logRetention.hashCode() : 0); result = 31 * result + (this.retryOptions != null ? this.retryOptions.hashCode() : 0); return result; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy