Class CfnInstance

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-12T19:34:00.519Z") @Stability(Stable) public class CfnInstance extends CfnResource implements IInspectable, ITaggable
Specifies an EC2 instance.

If an Elastic IP address is attached to your instance, AWS CloudFormation reattaches the Elastic IP address after it updates the instance. For more information about updating stacks, see AWS CloudFormation Stacks Updates .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 CfnInstance cfnInstance = CfnInstance.Builder.create(this, "MyCfnInstance")
         .additionalInfo("additionalInfo")
         .affinity("affinity")
         .availabilityZone("availabilityZone")
         .blockDeviceMappings(List.of(BlockDeviceMappingProperty.builder()
                 .deviceName("deviceName")
                 // the properties below are optional
                 .ebs(EbsProperty.builder()
                         .deleteOnTermination(false)
                         .encrypted(false)
                         .iops(123)
                         .kmsKeyId("kmsKeyId")
                         .snapshotId("snapshotId")
                         .volumeSize(123)
                         .volumeType("volumeType")
                         .build())
                 .noDevice(NoDeviceProperty.builder().build())
                 .virtualName("virtualName")
                 .build()))
         .cpuOptions(CpuOptionsProperty.builder()
                 .coreCount(123)
                 .threadsPerCore(123)
                 .build())
         .creditSpecification(CreditSpecificationProperty.builder()
                 .cpuCredits("cpuCredits")
                 .build())
         .disableApiTermination(false)
         .ebsOptimized(false)
         .elasticGpuSpecifications(List.of(ElasticGpuSpecificationProperty.builder()
                 .type("type")
                 .build()))
         .elasticInferenceAccelerators(List.of(ElasticInferenceAcceleratorProperty.builder()
                 .type("type")
                 // the properties below are optional
                 .count(123)
                 .build()))
         .enclaveOptions(EnclaveOptionsProperty.builder()
                 .enabled(false)
                 .build())
         .hibernationOptions(HibernationOptionsProperty.builder()
                 .configured(false)
                 .build())
         .hostId("hostId")
         .hostResourceGroupArn("hostResourceGroupArn")
         .iamInstanceProfile("iamInstanceProfile")
         .imageId("imageId")
         .instanceInitiatedShutdownBehavior("instanceInitiatedShutdownBehavior")
         .instanceType("instanceType")
         .ipv6AddressCount(123)
         .ipv6Addresses(List.of(InstanceIpv6AddressProperty.builder()
                 .ipv6Address("ipv6Address")
                 .build()))
         .kernelId("kernelId")
         .keyName("keyName")
         .launchTemplate(LaunchTemplateSpecificationProperty.builder()
                 .version("version")
                 // the properties below are optional
                 .launchTemplateId("launchTemplateId")
                 .launchTemplateName("launchTemplateName")
                 .build())
         .licenseSpecifications(List.of(LicenseSpecificationProperty.builder()
                 .licenseConfigurationArn("licenseConfigurationArn")
                 .build()))
         .monitoring(false)
         .networkInterfaces(List.of(NetworkInterfaceProperty.builder()
                 .deviceIndex("deviceIndex")
                 // the properties below are optional
                 .associateCarrierIpAddress(false)
                 .associatePublicIpAddress(false)
                 .deleteOnTermination(false)
                 .description("description")
                 .groupSet(List.of("groupSet"))
                 .ipv6AddressCount(123)
                 .ipv6Addresses(List.of(InstanceIpv6AddressProperty.builder()
                         .ipv6Address("ipv6Address")
                         .build()))
                 .networkInterfaceId("networkInterfaceId")
                 .privateIpAddress("privateIpAddress")
                 .privateIpAddresses(List.of(PrivateIpAddressSpecificationProperty.builder()
                         .primary(false)
                         .privateIpAddress("privateIpAddress")
                         .build()))
                 .secondaryPrivateIpAddressCount(123)
                 .subnetId("subnetId")
                 .build()))
         .placementGroupName("placementGroupName")
         .privateDnsNameOptions(PrivateDnsNameOptionsProperty.builder()
                 .enableResourceNameDnsAaaaRecord(false)
                 .enableResourceNameDnsARecord(false)
                 .hostnameType("hostnameType")
                 .build())
         .privateIpAddress("privateIpAddress")
         .propagateTagsToVolumeOnCreation(false)
         .ramdiskId("ramdiskId")
         .securityGroupIds(List.of("securityGroupIds"))
         .securityGroups(List.of("securityGroups"))
         .sourceDestCheck(false)
         .ssmAssociations(List.of(SsmAssociationProperty.builder()
                 .documentName("documentName")
                 // the properties below are optional
                 .associationParameters(List.of(AssociationParameterProperty.builder()
                         .key("key")
                         .value(List.of("value"))
                         .build()))
                 .build()))
         .subnetId("subnetId")
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .tenancy("tenancy")
         .userData("userData")
         .volumes(List.of(VolumeProperty.builder()
                 .device("device")
                 .volumeId("volumeId")
                 .build()))
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnInstance

      protected CfnInstance(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnInstance

      protected CfnInstance(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnInstance

      @Stability(Stable) public CfnInstance(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnInstanceProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnInstance

      @Stability(Stable) public CfnInstance(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrAvailabilityZone

      @Stability(Stable) @NotNull public String getAttrAvailabilityZone()
    • getAttrInstanceId

      @Stability(Stable) @NotNull public String getAttrInstanceId()
      The ID of the instance.
    • getAttrPrivateDnsName

      @Stability(Stable) @NotNull public String getAttrPrivateDnsName()
      The private DNS name of the specified instance.

      For example: ip-10-24-34-0.ec2.internal .

    • getAttrPrivateIp

      @Stability(Stable) @NotNull public String getAttrPrivateIp()
      The private IP address of the specified instance.

      For example: 10.24.34.0 .

    • getAttrPublicDnsName

      @Stability(Stable) @NotNull public String getAttrPublicDnsName()
      The public DNS name of the specified instance.

      For example: ec2-107-20-50-45.compute-1.amazonaws.com .

    • getAttrPublicIp

      @Stability(Stable) @NotNull public String getAttrPublicIp()
      The public IP address of the specified instance.

      For example: 192.0.2.0 .

    • getAttrState

      @Stability(Stable) @NotNull public IResolvable getAttrState()
      The current state of the instance.
    • getAttrVpcId

      @Stability(Stable) @NotNull public String getAttrVpcId()
      The ID of the VPC in which the instance is running.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getAdditionalInfo

      @Stability(Stable) @Nullable public String getAdditionalInfo()
      This property is reserved for internal use.
    • setAdditionalInfo

      @Stability(Stable) public void setAdditionalInfo(@Nullable String value)
      This property is reserved for internal use.
    • getAffinity

      @Stability(Stable) @Nullable public String getAffinity()
      Indicates whether the instance is associated with a dedicated host.
    • setAffinity

      @Stability(Stable) public void setAffinity(@Nullable String value)
      Indicates whether the instance is associated with a dedicated host.
    • getAvailabilityZone

      @Stability(Stable) @Nullable public String getAvailabilityZone()
      The Availability Zone of the instance.
    • setAvailabilityZone

      @Stability(Stable) public void setAvailabilityZone(@Nullable String value)
      The Availability Zone of the instance.
    • getBlockDeviceMappings

      @Stability(Stable) @Nullable public Object getBlockDeviceMappings()
      The block device mapping entries that defines the block devices to attach to the instance at launch.
    • setBlockDeviceMappings

      @Stability(Stable) public void setBlockDeviceMappings(@Nullable IResolvable value)
      The block device mapping entries that defines the block devices to attach to the instance at launch.
    • setBlockDeviceMappings

      @Stability(Stable) public void setBlockDeviceMappings(@Nullable List<Object> value)
      The block device mapping entries that defines the block devices to attach to the instance at launch.
    • getCpuOptions

      @Stability(Stable) @Nullable public Object getCpuOptions()
      The CPU options for the instance.
    • setCpuOptions

      @Stability(Stable) public void setCpuOptions(@Nullable IResolvable value)
      The CPU options for the instance.
    • setCpuOptions

      @Stability(Stable) public void setCpuOptions(@Nullable CfnInstance.CpuOptionsProperty value)
      The CPU options for the instance.
    • getCreditSpecification

      @Stability(Stable) @Nullable public Object getCreditSpecification()
      The credit option for CPU usage of the burstable performance instance.
    • setCreditSpecification

      @Stability(Stable) public void setCreditSpecification(@Nullable IResolvable value)
      The credit option for CPU usage of the burstable performance instance.
    • setCreditSpecification

      @Stability(Stable) public void setCreditSpecification(@Nullable CfnInstance.CreditSpecificationProperty value)
      The credit option for CPU usage of the burstable performance instance.
    • getDisableApiTermination

      @Stability(Stable) @Nullable public Object getDisableApiTermination()
      If you set this parameter to true , you can't terminate the instance using the Amazon EC2 console, CLI, or API;
    • setDisableApiTermination

      @Stability(Stable) public void setDisableApiTermination(@Nullable Boolean value)
      If you set this parameter to true , you can't terminate the instance using the Amazon EC2 console, CLI, or API;
    • setDisableApiTermination

      @Stability(Stable) public void setDisableApiTermination(@Nullable IResolvable value)
      If you set this parameter to true , you can't terminate the instance using the Amazon EC2 console, CLI, or API;
    • getEbsOptimized

      @Stability(Stable) @Nullable public Object getEbsOptimized()
      Indicates whether the instance is optimized for Amazon EBS I/O.
    • setEbsOptimized

      @Stability(Stable) public void setEbsOptimized(@Nullable Boolean value)
      Indicates whether the instance is optimized for Amazon EBS I/O.
    • setEbsOptimized

      @Stability(Stable) public void setEbsOptimized(@Nullable IResolvable value)
      Indicates whether the instance is optimized for Amazon EBS I/O.
    • getElasticGpuSpecifications

      @Stability(Stable) @Nullable public Object getElasticGpuSpecifications()
      An elastic GPU to associate with the instance.
    • setElasticGpuSpecifications

      @Stability(Stable) public void setElasticGpuSpecifications(@Nullable IResolvable value)
      An elastic GPU to associate with the instance.
    • setElasticGpuSpecifications

      @Stability(Stable) public void setElasticGpuSpecifications(@Nullable List<Object> value)
      An elastic GPU to associate with the instance.
    • getElasticInferenceAccelerators

      @Stability(Stable) @Nullable public Object getElasticInferenceAccelerators()
      An elastic inference accelerator to associate with the instance.
    • setElasticInferenceAccelerators

      @Stability(Stable) public void setElasticInferenceAccelerators(@Nullable IResolvable value)
      An elastic inference accelerator to associate with the instance.
    • setElasticInferenceAccelerators

      @Stability(Stable) public void setElasticInferenceAccelerators(@Nullable List<Object> value)
      An elastic inference accelerator to associate with the instance.
    • getEnclaveOptions

      @Stability(Stable) @Nullable public Object getEnclaveOptions()
      Indicates whether the instance is enabled for AWS Nitro Enclaves.
    • setEnclaveOptions

      @Stability(Stable) public void setEnclaveOptions(@Nullable IResolvable value)
      Indicates whether the instance is enabled for AWS Nitro Enclaves.
    • setEnclaveOptions

      @Stability(Stable) public void setEnclaveOptions(@Nullable CfnInstance.EnclaveOptionsProperty value)
      Indicates whether the instance is enabled for AWS Nitro Enclaves.
    • getHibernationOptions

      @Stability(Stable) @Nullable public Object getHibernationOptions()
      Indicates whether an instance is enabled for hibernation.
    • setHibernationOptions

      @Stability(Stable) public void setHibernationOptions(@Nullable IResolvable value)
      Indicates whether an instance is enabled for hibernation.
    • setHibernationOptions

      @Stability(Stable) public void setHibernationOptions(@Nullable CfnInstance.HibernationOptionsProperty value)
      Indicates whether an instance is enabled for hibernation.
    • getHostId

      @Stability(Stable) @Nullable public String getHostId()
      If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with.
    • setHostId

      @Stability(Stable) public void setHostId(@Nullable String value)
      If you specify host for the Affinity property, the ID of a dedicated host that the instance is associated with.
    • getHostResourceGroupArn

      @Stability(Stable) @Nullable public String getHostResourceGroupArn()
      The ARN of the host resource group in which to launch the instances.
    • setHostResourceGroupArn

      @Stability(Stable) public void setHostResourceGroupArn(@Nullable String value)
      The ARN of the host resource group in which to launch the instances.
    • getIamInstanceProfile

      @Stability(Stable) @Nullable public String getIamInstanceProfile()
      The name of an IAM instance profile.
    • setIamInstanceProfile

      @Stability(Stable) public void setIamInstanceProfile(@Nullable String value)
      The name of an IAM instance profile.
    • getImageId

      @Stability(Stable) @Nullable public String getImageId()
      The ID of the AMI.
    • setImageId

      @Stability(Stable) public void setImageId(@Nullable String value)
      The ID of the AMI.
    • getInstanceInitiatedShutdownBehavior

      @Stability(Stable) @Nullable public String getInstanceInitiatedShutdownBehavior()
      Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
    • setInstanceInitiatedShutdownBehavior

      @Stability(Stable) public void setInstanceInitiatedShutdownBehavior(@Nullable String value)
      Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
    • getInstanceType

      @Stability(Stable) @Nullable public String getInstanceType()
      The instance type.

      For more information, see Instance types in the Amazon EC2 User Guide .

    • setInstanceType

      @Stability(Stable) public void setInstanceType(@Nullable String value)
      The instance type.

      For more information, see Instance types in the Amazon EC2 User Guide .

    • getIpv6AddressCount

      @Stability(Stable) @Nullable public Number getIpv6AddressCount()
      The number of IPv6 addresses to associate with the primary network interface.
    • setIpv6AddressCount

      @Stability(Stable) public void setIpv6AddressCount(@Nullable Number value)
      The number of IPv6 addresses to associate with the primary network interface.
    • getIpv6Addresses

      @Stability(Stable) @Nullable public Object getIpv6Addresses()
      The IPv6 addresses from the range of the subnet to associate with the primary network interface.
    • setIpv6Addresses

      @Stability(Stable) public void setIpv6Addresses(@Nullable IResolvable value)
      The IPv6 addresses from the range of the subnet to associate with the primary network interface.
    • setIpv6Addresses

      @Stability(Stable) public void setIpv6Addresses(@Nullable List<Object> value)
      The IPv6 addresses from the range of the subnet to associate with the primary network interface.
    • getKernelId

      @Stability(Stable) @Nullable public String getKernelId()
      The ID of the kernel.
    • setKernelId

      @Stability(Stable) public void setKernelId(@Nullable String value)
      The ID of the kernel.
    • getKeyName

      @Stability(Stable) @Nullable public String getKeyName()
      The name of the key pair.

      You can create a key pair using CreateKeyPair or ImportKeyPair .

    • setKeyName

      @Stability(Stable) public void setKeyName(@Nullable String value)
      The name of the key pair.

      You can create a key pair using CreateKeyPair or ImportKeyPair .

    • getLaunchTemplate

      @Stability(Stable) @Nullable public Object getLaunchTemplate()
      The launch template.
    • setLaunchTemplate

      @Stability(Stable) public void setLaunchTemplate(@Nullable IResolvable value)
      The launch template.
    • setLaunchTemplate

      @Stability(Stable) public void setLaunchTemplate(@Nullable CfnInstance.LaunchTemplateSpecificationProperty value)
      The launch template.
    • getLicenseSpecifications

      @Stability(Stable) @Nullable public Object getLicenseSpecifications()
      The license configurations.
    • setLicenseSpecifications

      @Stability(Stable) public void setLicenseSpecifications(@Nullable IResolvable value)
      The license configurations.
    • setLicenseSpecifications

      @Stability(Stable) public void setLicenseSpecifications(@Nullable List<Object> value)
      The license configurations.
    • getMonitoring

      @Stability(Stable) @Nullable public Object getMonitoring()
      Specifies whether detailed monitoring is enabled for the instance.
    • setMonitoring

      @Stability(Stable) public void setMonitoring(@Nullable Boolean value)
      Specifies whether detailed monitoring is enabled for the instance.
    • setMonitoring

      @Stability(Stable) public void setMonitoring(@Nullable IResolvable value)
      Specifies whether detailed monitoring is enabled for the instance.
    • getNetworkInterfaces

      @Stability(Stable) @Nullable public Object getNetworkInterfaces()
      The network interfaces to associate with the instance.
    • setNetworkInterfaces

      @Stability(Stable) public void setNetworkInterfaces(@Nullable IResolvable value)
      The network interfaces to associate with the instance.
    • setNetworkInterfaces

      @Stability(Stable) public void setNetworkInterfaces(@Nullable List<Object> value)
      The network interfaces to associate with the instance.
    • getPlacementGroupName

      @Stability(Stable) @Nullable public String getPlacementGroupName()
      The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).
    • setPlacementGroupName

      @Stability(Stable) public void setPlacementGroupName(@Nullable String value)
      The name of an existing placement group that you want to launch the instance into (cluster | partition | spread).
    • getPrivateDnsNameOptions

      @Stability(Stable) @Nullable public Object getPrivateDnsNameOptions()
      The options for the instance hostname.
    • setPrivateDnsNameOptions

      @Stability(Stable) public void setPrivateDnsNameOptions(@Nullable IResolvable value)
      The options for the instance hostname.
    • setPrivateDnsNameOptions

      @Stability(Stable) public void setPrivateDnsNameOptions(@Nullable CfnInstance.PrivateDnsNameOptionsProperty value)
      The options for the instance hostname.
    • getPrivateIpAddress

      @Stability(Stable) @Nullable public String getPrivateIpAddress()
      The primary IPv4 address.

      You must specify a value from the IPv4 address range of the subnet.

    • setPrivateIpAddress

      @Stability(Stable) public void setPrivateIpAddress(@Nullable String value)
      The primary IPv4 address.

      You must specify a value from the IPv4 address range of the subnet.

    • getPropagateTagsToVolumeOnCreation

      @Stability(Stable) @Nullable public Object getPropagateTagsToVolumeOnCreation()
      Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch.
    • setPropagateTagsToVolumeOnCreation

      @Stability(Stable) public void setPropagateTagsToVolumeOnCreation(@Nullable Boolean value)
      Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch.
    • setPropagateTagsToVolumeOnCreation

      @Stability(Stable) public void setPropagateTagsToVolumeOnCreation(@Nullable IResolvable value)
      Indicates whether to assign the tags from the instance to all of the volumes attached to the instance at launch.
    • getRamdiskId

      @Stability(Stable) @Nullable public String getRamdiskId()
      The ID of the RAM disk to select.
    • setRamdiskId

      @Stability(Stable) public void setRamdiskId(@Nullable String value)
      The ID of the RAM disk to select.
    • getSecurityGroupIds

      @Stability(Stable) @Nullable public List<String> getSecurityGroupIds()
      The IDs of the security groups.
    • setSecurityGroupIds

      @Stability(Stable) public void setSecurityGroupIds(@Nullable List<String> value)
      The IDs of the security groups.
    • getSecurityGroups

      @Stability(Stable) @Nullable public List<String> getSecurityGroups()
      [Default VPC] The names of the security groups.

      For a nondefault VPC, you must use security group IDs instead.

    • setSecurityGroups

      @Stability(Stable) public void setSecurityGroups(@Nullable List<String> value)
      [Default VPC] The names of the security groups.

      For a nondefault VPC, you must use security group IDs instead.

    • getSourceDestCheck

      @Stability(Stable) @Nullable public Object getSourceDestCheck()
      Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.
    • setSourceDestCheck

      @Stability(Stable) public void setSourceDestCheck(@Nullable Boolean value)
      Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.
    • setSourceDestCheck

      @Stability(Stable) public void setSourceDestCheck(@Nullable IResolvable value)
      Enable or disable source/destination checks, which ensure that the instance is either the source or the destination of any traffic that it receives.
    • getSsmAssociations

      @Stability(Stable) @Nullable public Object getSsmAssociations()
      The SSM document and parameter values in AWS Systems Manager to associate with this instance. To use this property, you must specify an IAM instance profile role for the instance. For more information, see Create an IAM instance profile for Systems Manager in the AWS Systems Manager User Guide .
    • setSsmAssociations

      @Stability(Stable) public void setSsmAssociations(@Nullable IResolvable value)
      The SSM document and parameter values in AWS Systems Manager to associate with this instance. To use this property, you must specify an IAM instance profile role for the instance. For more information, see Create an IAM instance profile for Systems Manager in the AWS Systems Manager User Guide .
    • setSsmAssociations

      @Stability(Stable) public void setSsmAssociations(@Nullable List<Object> value)
      The SSM document and parameter values in AWS Systems Manager to associate with this instance. To use this property, you must specify an IAM instance profile role for the instance. For more information, see Create an IAM instance profile for Systems Manager in the AWS Systems Manager User Guide .
    • getSubnetId

      @Stability(Stable) @Nullable public String getSubnetId()
      The ID of the subnet to launch the instance into.
    • setSubnetId

      @Stability(Stable) public void setSubnetId(@Nullable String value)
      The ID of the subnet to launch the instance into.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags to add to the instance.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags to add to the instance.
    • getTenancy

      @Stability(Stable) @Nullable public String getTenancy()
      The tenancy of the instance.
    • setTenancy

      @Stability(Stable) public void setTenancy(@Nullable String value)
      The tenancy of the instance.
    • getUserData

      @Stability(Stable) @Nullable public String getUserData()
      The parameters or scripts to store as user data.
    • setUserData

      @Stability(Stable) public void setUserData(@Nullable String value)
      The parameters or scripts to store as user data.
    • getVolumes

      @Stability(Stable) @Nullable public Object getVolumes()
      The volumes to attach to the instance.
    • setVolumes

      @Stability(Stable) public void setVolumes(@Nullable IResolvable value)
      The volumes to attach to the instance.
    • setVolumes

      @Stability(Stable) public void setVolumes(@Nullable List<Object> value)
      The volumes to attach to the instance.