Class AwsEc2Properties


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20220509")
    public final class AwsEc2Properties
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    AWS virtual machine related properties.
    Note: Objects should always be created or deserialized using the AwsEc2Properties.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the AwsEc2Properties.Builder, which maintain a set of all explicitly set fields called AwsEc2Properties.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
    • Constructor Detail

      • AwsEc2Properties

        @Deprecated
        @ConstructorProperties({"architecture","bootMode","capacityReservationKey","areElasticInferenceAcceleratorsPresent","isEnclaveOptions","isHibernationOptions","imageKey","instanceKey","instanceLifecycle","instanceType","ipAddress","ipv6Address","kernelKey","timeLaunch","licenses","maintenanceOptions","monitoring","networkInterfaces","placement","privateDnsName","privateIpAddress","rootDeviceName","rootDeviceType","securityGroups","isSourceDestCheck","isSpotInstance","sriovNetSupport","state","subnetKey","tags","tpmSupport","virtualizationType","vpcKey"})
        public AwsEc2Properties​(String architecture,
                                String bootMode,
                                String capacityReservationKey,
                                Boolean areElasticInferenceAcceleratorsPresent,
                                Boolean isEnclaveOptions,
                                Boolean isHibernationOptions,
                                String imageKey,
                                String instanceKey,
                                String instanceLifecycle,
                                String instanceType,
                                String ipAddress,
                                String ipv6Address,
                                String kernelKey,
                                Date timeLaunch,
                                List<String> licenses,
                                String maintenanceOptions,
                                String monitoring,
                                List<InstanceNetworkInterface> networkInterfaces,
                                Placement placement,
                                String privateDnsName,
                                String privateIpAddress,
                                String rootDeviceName,
                                String rootDeviceType,
                                List<GroupIdentifier> securityGroups,
                                Boolean isSourceDestCheck,
                                Boolean isSpotInstance,
                                String sriovNetSupport,
                                InstanceState state,
                                String subnetKey,
                                List<Tag> tags,
                                String tpmSupport,
                                String virtualizationType,
                                String vpcKey)
        Deprecated.
    • Method Detail

      • getArchitecture

        public String getArchitecture()
        The architecture of the image.
        Returns:
        the value
      • getBootMode

        public String getBootMode()
        The boot mode of the instance.
        Returns:
        the value
      • getCapacityReservationKey

        public String getCapacityReservationKey()
        The ID of the Capacity Reservation.
        Returns:
        the value
      • getAreElasticInferenceAcceleratorsPresent

        public Boolean getAreElasticInferenceAcceleratorsPresent()
        Indicates if the elastic inference accelerators attached to an instance
        Returns:
        the value
      • getIsEnclaveOptions

        public Boolean getIsEnclaveOptions()
        Indicates whether the instance is enabled for AWS Nitro Enclaves.
        Returns:
        the value
      • getIsHibernationOptions

        public Boolean getIsHibernationOptions()
        Indicates whether the instance is enabled for hibernation.
        Returns:
        the value
      • getImageKey

        public String getImageKey()
        The ID of the AMI used to launch the instance.
        Returns:
        the value
      • getInstanceKey

        public String getInstanceKey()
        The ID of the instance.
        Returns:
        the value
      • getInstanceLifecycle

        public String getInstanceLifecycle()
        Indicates whether this is a Spot Instance or a Scheduled Instance.
        Returns:
        the value
      • getInstanceType

        public String getInstanceType()
        The instance type.
        Returns:
        the value
      • getIpAddress

        public String getIpAddress()
        The public IPv4 address, or the Carrier IP address assigned to the instance.
        Returns:
        the value
      • getIpv6Address

        public String getIpv6Address()
        The IPv6 address assigned to the instance.
        Returns:
        the value
      • getKernelKey

        public String getKernelKey()
        The kernel associated with this instance, if applicable.
        Returns:
        the value
      • getTimeLaunch

        public Date getTimeLaunch()
        The time the instance was launched.
        Returns:
        the value
      • getLicenses

        public List<String> getLicenses()
        The license configurations for the instance.
        Returns:
        the value
      • getMaintenanceOptions

        public String getMaintenanceOptions()
        Provides information on the recovery and maintenance options of your instance.
        Returns:
        the value
      • getMonitoring

        public String getMonitoring()
        The monitoring for the instance.
        Returns:
        the value
      • getNetworkInterfaces

        public List<InstanceNetworkInterface> getNetworkInterfaces()
        The network interfaces for the instance.
        Returns:
        the value
      • getPlacement

        public Placement getPlacement()
      • getPrivateDnsName

        public String getPrivateDnsName()
        (IPv4 only) The private DNS hostname name assigned to the instance.
        Returns:
        the value
      • getPrivateIpAddress

        public String getPrivateIpAddress()
        The private IPv4 address assigned to the instance.
        Returns:
        the value
      • getRootDeviceName

        public String getRootDeviceName()
        The device name of the root device volume.
        Returns:
        the value
      • getRootDeviceType

        public String getRootDeviceType()
        The root device type used by the AMI.

        The AMI can use an EBS volume or an instance store volume.

        Returns:
        the value
      • getSecurityGroups

        public List<GroupIdentifier> getSecurityGroups()
        The security groups for the instance.
        Returns:
        the value
      • getIsSourceDestCheck

        public Boolean getIsSourceDestCheck()
        Indicates whether source/destination checking is enabled.
        Returns:
        the value
      • getIsSpotInstance

        public Boolean getIsSpotInstance()
        If the request is a Spot Instance request, this value will be true.
        Returns:
        the value
      • getSriovNetSupport

        public String getSriovNetSupport()
        Specifies whether enhanced networking with the Intel 82599 Virtual Function interface is enabled.
        Returns:
        the value
      • getSubnetKey

        public String getSubnetKey()
        EC2-VPC The ID of the subnet in which the instance is running.
        Returns:
        the value
      • getTags

        public List<Tag> getTags()
        Any tags assigned to the instance.
        Returns:
        the value
      • getTpmSupport

        public String getTpmSupport()
        If the instance is configured for NitroTPM support, the value is v2.0.
        Returns:
        the value
      • getVirtualizationType

        public String getVirtualizationType()
        The virtualization type of the instance.
        Returns:
        the value
      • getVpcKey

        public String getVpcKey()
        EC2-VPC The ID of the VPC in which the instance is running.
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel