com.cloudsnorkel.cdk.github.runners.Ec2RunnerProviderProps Maven / Gradle / Ivy
Show all versions of cdk.github.runners Show documentation
package com.cloudsnorkel.cdk.github.runners;
/**
* (experimental) Properties for {@link Ec2RunnerProvider} construct.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-09-14T02:42:19.411Z")
@software.amazon.jsii.Jsii(module = com.cloudsnorkel.cdk.github.runners.$Module.class, fqn = "@cloudsnorkel/cdk-github-runners.Ec2RunnerProviderProps")
@software.amazon.jsii.Jsii.Proxy(Ec2RunnerProviderProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface Ec2RunnerProviderProps extends software.amazon.jsii.JsiiSerializable, com.cloudsnorkel.cdk.github.runners.RunnerProviderProps {
/**
* @deprecated use imageBuilder
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated)
@Deprecated
default @org.jetbrains.annotations.Nullable com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder getAmiBuilder() {
return null;
}
/**
* (experimental) Runner image builder used to build AMI containing GitHub Runner and all requirements.
*
* The image builder determines the OS and architecture of the runner.
*
* Default: Ec2RunnerProvider.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;
}
/**
* (experimental) Instance type for launched runner instances.
*
* Default: m6i.large
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.InstanceType getInstanceType() {
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: ['ec2']
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.util.List getLabels() {
return null;
}
/**
* (deprecated) Security Group to assign to launched runner instances.
*
* 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 launched runner instances.
*
* 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 spot instances to save money.
*
* Spot instances are cheaper but not always available and can be stopped prematurely.
*
* Default: false
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.Boolean getSpot() {
return null;
}
/**
* (experimental) Set a maximum price for spot instances.
*
* Default: no max price (you will pay current spot price)
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable java.lang.String getSpotMaxPrice() {
return null;
}
/**
* (experimental) Size of volume available for launched runner instances.
*
* This modifies the boot volume size and doesn't add any additional volumes.
*
* Default: 30GB
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.Size getStorageSize() {
return null;
}
/**
* (deprecated) Subnet where the runner instances will be launched.
*
* Default: default subnet of account's default VPC
*
* @deprecated use {@link vpc } and {@link subnetSelection }
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated)
@Deprecated
default @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ec2.ISubnet getSubnet() {
return null;
}
/**
* (experimental) Where to place the network interfaces within the VPC.
*
* Only the first matched subnet will be used.
*
* Default: default VPC subnet
*/
@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 where runner instances will be launched.
*
* 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 Ec2RunnerProviderProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link Ec2RunnerProviderProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public static final class Builder implements software.amazon.jsii.Builder {
com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder amiBuilder;
com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder imageBuilder;
software.amazon.awscdk.services.ec2.InstanceType instanceType;
java.util.List labels;
software.amazon.awscdk.services.ec2.ISecurityGroup securityGroup;
java.util.List securityGroups;
java.lang.Boolean spot;
java.lang.String spotMaxPrice;
software.amazon.awscdk.Size storageSize;
software.amazon.awscdk.services.ec2.ISubnet subnet;
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 Ec2RunnerProviderProps#getAmiBuilder}
* @param amiBuilder the value to be set.
* @return {@code this}
* @deprecated use imageBuilder
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated)
@Deprecated
public Builder amiBuilder(com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder amiBuilder) {
this.amiBuilder = amiBuilder;
return this;
}
/**
* Sets the value of {@link Ec2RunnerProviderProps#getImageBuilder}
* @param imageBuilder Runner image builder used to build AMI 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 Ec2RunnerProviderProps#getInstanceType}
* @param instanceType Instance type for launched runner instances.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder instanceType(software.amazon.awscdk.services.ec2.InstanceType instanceType) {
this.instanceType = instanceType;
return this;
}
/**
* Sets the value of {@link Ec2RunnerProviderProps#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 Ec2RunnerProviderProps#getSecurityGroup}
* @param securityGroup Security Group to assign to launched runner instances.
* @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 Ec2RunnerProviderProps#getSecurityGroups}
* @param securityGroups Security groups to assign to launched runner instances.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@SuppressWarnings("unchecked")
public Builder securityGroups(java.util.List extends software.amazon.awscdk.services.ec2.ISecurityGroup> securityGroups) {
this.securityGroups = (java.util.List)securityGroups;
return this;
}
/**
* Sets the value of {@link Ec2RunnerProviderProps#getSpot}
* @param spot Use spot instances to save money.
* Spot instances are cheaper but not always available and can be stopped prematurely.
* @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 Ec2RunnerProviderProps#getSpotMaxPrice}
* @param spotMaxPrice Set a maximum price for spot instances.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder spotMaxPrice(java.lang.String spotMaxPrice) {
this.spotMaxPrice = spotMaxPrice;
return this;
}
/**
* Sets the value of {@link Ec2RunnerProviderProps#getStorageSize}
* @param storageSize Size of volume available for launched runner instances.
* This modifies the boot volume size and doesn't add any additional volumes.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public Builder storageSize(software.amazon.awscdk.Size storageSize) {
this.storageSize = storageSize;
return this;
}
/**
* Sets the value of {@link Ec2RunnerProviderProps#getSubnet}
* @param subnet Subnet where the runner instances will be launched.
* @return {@code this}
* @deprecated use {@link vpc } and {@link subnetSelection }
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Deprecated)
@Deprecated
public Builder subnet(software.amazon.awscdk.services.ec2.ISubnet subnet) {
this.subnet = subnet;
return this;
}
/**
* Sets the value of {@link Ec2RunnerProviderProps#getSubnetSelection}
* @param subnetSelection Where to place the network interfaces within the VPC.
* Only the first matched subnet will be used.
* @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 Ec2RunnerProviderProps#getVpc}
* @param vpc VPC where runner instances will be launched.
* @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 Ec2RunnerProviderProps#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 Ec2RunnerProviderProps#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 Ec2RunnerProviderProps}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public Ec2RunnerProviderProps build() {
return new Jsii$Proxy(this);
}
}
/**
* An implementation for {@link Ec2RunnerProviderProps}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements Ec2RunnerProviderProps {
private final com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder amiBuilder;
private final com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder imageBuilder;
private final software.amazon.awscdk.services.ec2.InstanceType instanceType;
private final java.util.List labels;
private final software.amazon.awscdk.services.ec2.ISecurityGroup securityGroup;
private final java.util.List securityGroups;
private final java.lang.Boolean spot;
private final java.lang.String spotMaxPrice;
private final software.amazon.awscdk.Size storageSize;
private final software.amazon.awscdk.services.ec2.ISubnet subnet;
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.amiBuilder = software.amazon.jsii.Kernel.get(this, "amiBuilder", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder.class));
this.imageBuilder = software.amazon.jsii.Kernel.get(this, "imageBuilder", software.amazon.jsii.NativeType.forClass(com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder.class));
this.instanceType = software.amazon.jsii.Kernel.get(this, "instanceType", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.InstanceType.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.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.spotMaxPrice = software.amazon.jsii.Kernel.get(this, "spotMaxPrice", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.storageSize = software.amazon.jsii.Kernel.get(this, "storageSize", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.Size.class));
this.subnet = software.amazon.jsii.Kernel.get(this, "subnet", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.ISubnet.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.amiBuilder = builder.amiBuilder;
this.imageBuilder = builder.imageBuilder;
this.instanceType = builder.instanceType;
this.labels = builder.labels;
this.securityGroup = builder.securityGroup;
this.securityGroups = (java.util.List)builder.securityGroups;
this.spot = builder.spot;
this.spotMaxPrice = builder.spotMaxPrice;
this.storageSize = builder.storageSize;
this.subnet = builder.subnet;
this.subnetSelection = builder.subnetSelection;
this.vpc = builder.vpc;
this.logRetention = builder.logRetention;
this.retryOptions = builder.retryOptions;
}
@Override
public final com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder getAmiBuilder() {
return this.amiBuilder;
}
@Override
public final com.cloudsnorkel.cdk.github.runners.IRunnerImageBuilder getImageBuilder() {
return this.imageBuilder;
}
@Override
public final software.amazon.awscdk.services.ec2.InstanceType getInstanceType() {
return this.instanceType;
}
@Override
public final java.util.List getLabels() {
return this.labels;
}
@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 java.lang.String getSpotMaxPrice() {
return this.spotMaxPrice;
}
@Override
public final software.amazon.awscdk.Size getStorageSize() {
return this.storageSize;
}
@Override
public final software.amazon.awscdk.services.ec2.ISubnet getSubnet() {
return this.subnet;
}
@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.getAmiBuilder() != null) {
data.set("amiBuilder", om.valueToTree(this.getAmiBuilder()));
}
if (this.getImageBuilder() != null) {
data.set("imageBuilder", om.valueToTree(this.getImageBuilder()));
}
if (this.getInstanceType() != null) {
data.set("instanceType", om.valueToTree(this.getInstanceType()));
}
if (this.getLabels() != null) {
data.set("labels", om.valueToTree(this.getLabels()));
}
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.getSpotMaxPrice() != null) {
data.set("spotMaxPrice", om.valueToTree(this.getSpotMaxPrice()));
}
if (this.getStorageSize() != null) {
data.set("storageSize", om.valueToTree(this.getStorageSize()));
}
if (this.getSubnet() != null) {
data.set("subnet", om.valueToTree(this.getSubnet()));
}
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.Ec2RunnerProviderProps"));
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;
Ec2RunnerProviderProps.Jsii$Proxy that = (Ec2RunnerProviderProps.Jsii$Proxy) o;
if (this.amiBuilder != null ? !this.amiBuilder.equals(that.amiBuilder) : that.amiBuilder != null) return false;
if (this.imageBuilder != null ? !this.imageBuilder.equals(that.imageBuilder) : that.imageBuilder != null) return false;
if (this.instanceType != null ? !this.instanceType.equals(that.instanceType) : that.instanceType != null) return false;
if (this.labels != null ? !this.labels.equals(that.labels) : that.labels != 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.spotMaxPrice != null ? !this.spotMaxPrice.equals(that.spotMaxPrice) : that.spotMaxPrice != null) return false;
if (this.storageSize != null ? !this.storageSize.equals(that.storageSize) : that.storageSize != null) return false;
if (this.subnet != null ? !this.subnet.equals(that.subnet) : that.subnet != 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.amiBuilder != null ? this.amiBuilder.hashCode() : 0;
result = 31 * result + (this.imageBuilder != null ? this.imageBuilder.hashCode() : 0);
result = 31 * result + (this.instanceType != null ? this.instanceType.hashCode() : 0);
result = 31 * result + (this.labels != null ? this.labels.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.spotMaxPrice != null ? this.spotMaxPrice.hashCode() : 0);
result = 31 * result + (this.storageSize != null ? this.storageSize.hashCode() : 0);
result = 31 * result + (this.subnet != null ? this.subnet.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;
}
}
}