Class ScheduledInstanceAvailability

    • Constructor Detail

      • ScheduledInstanceAvailability

        public ScheduledInstanceAvailability()
    • Method Detail

      • setInstanceType

        public void setInstanceType​(String instanceType)

        The instance type. You can specify one of the C3, C4, M4, or R3 instance types.

        Parameters:
        instanceType - The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
      • getInstanceType

        public String getInstanceType()

        The instance type. You can specify one of the C3, C4, M4, or R3 instance types.

        Returns:
        The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
      • withInstanceType

        public ScheduledInstanceAvailability withInstanceType​(String instanceType)

        The instance type. You can specify one of the C3, C4, M4, or R3 instance types.

        Parameters:
        instanceType - The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPlatform

        public void setPlatform​(String platform)

        The platform (Linux/UNIX or Windows).

        Parameters:
        platform - The platform (Linux/UNIX or Windows).
      • getPlatform

        public String getPlatform()

        The platform (Linux/UNIX or Windows).

        Returns:
        The platform (Linux/UNIX or Windows).
      • withPlatform

        public ScheduledInstanceAvailability withPlatform​(String platform)

        The platform (Linux/UNIX or Windows).

        Parameters:
        platform - The platform (Linux/UNIX or Windows).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setNetworkPlatform

        public void setNetworkPlatform​(String networkPlatform)

        The network platform (EC2-Classic or EC2-VPC).

        Parameters:
        networkPlatform - The network platform (EC2-Classic or EC2-VPC).
      • getNetworkPlatform

        public String getNetworkPlatform()

        The network platform (EC2-Classic or EC2-VPC).

        Returns:
        The network platform (EC2-Classic or EC2-VPC).
      • withNetworkPlatform

        public ScheduledInstanceAvailability withNetworkPlatform​(String networkPlatform)

        The network platform (EC2-Classic or EC2-VPC).

        Parameters:
        networkPlatform - The network platform (EC2-Classic or EC2-VPC).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAvailabilityZone

        public void setAvailabilityZone​(String availabilityZone)

        The Availability Zone.

        Parameters:
        availabilityZone - The Availability Zone.
      • getAvailabilityZone

        public String getAvailabilityZone()

        The Availability Zone.

        Returns:
        The Availability Zone.
      • withAvailabilityZone

        public ScheduledInstanceAvailability withAvailabilityZone​(String availabilityZone)

        The Availability Zone.

        Parameters:
        availabilityZone - The Availability Zone.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setPurchaseToken

        public void setPurchaseToken​(String purchaseToken)

        The purchase token. This token expires in two hours.

        Parameters:
        purchaseToken - The purchase token. This token expires in two hours.
      • getPurchaseToken

        public String getPurchaseToken()

        The purchase token. This token expires in two hours.

        Returns:
        The purchase token. This token expires in two hours.
      • withPurchaseToken

        public ScheduledInstanceAvailability withPurchaseToken​(String purchaseToken)

        The purchase token. This token expires in two hours.

        Parameters:
        purchaseToken - The purchase token. This token expires in two hours.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setSlotDurationInHours

        public void setSlotDurationInHours​(Integer slotDurationInHours)

        The number of hours in the schedule.

        Parameters:
        slotDurationInHours - The number of hours in the schedule.
      • getSlotDurationInHours

        public Integer getSlotDurationInHours()

        The number of hours in the schedule.

        Returns:
        The number of hours in the schedule.
      • withSlotDurationInHours

        public ScheduledInstanceAvailability withSlotDurationInHours​(Integer slotDurationInHours)

        The number of hours in the schedule.

        Parameters:
        slotDurationInHours - The number of hours in the schedule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setRecurrence

        public void setRecurrence​(ScheduledInstanceRecurrence recurrence)

        The schedule recurrence.

        Parameters:
        recurrence - The schedule recurrence.
      • setFirstSlotStartTime

        public void setFirstSlotStartTime​(Date firstSlotStartTime)

        The time period for the first schedule to start.

        Parameters:
        firstSlotStartTime - The time period for the first schedule to start.
      • getFirstSlotStartTime

        public Date getFirstSlotStartTime()

        The time period for the first schedule to start.

        Returns:
        The time period for the first schedule to start.
      • withFirstSlotStartTime

        public ScheduledInstanceAvailability withFirstSlotStartTime​(Date firstSlotStartTime)

        The time period for the first schedule to start.

        Parameters:
        firstSlotStartTime - The time period for the first schedule to start.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setHourlyPrice

        public void setHourlyPrice​(String hourlyPrice)

        The hourly price for a single instance.

        Parameters:
        hourlyPrice - The hourly price for a single instance.
      • getHourlyPrice

        public String getHourlyPrice()

        The hourly price for a single instance.

        Returns:
        The hourly price for a single instance.
      • withHourlyPrice

        public ScheduledInstanceAvailability withHourlyPrice​(String hourlyPrice)

        The hourly price for a single instance.

        Parameters:
        hourlyPrice - The hourly price for a single instance.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setTotalScheduledInstanceHours

        public void setTotalScheduledInstanceHours​(Integer totalScheduledInstanceHours)

        The total number of hours for a single instance for the entire term.

        Parameters:
        totalScheduledInstanceHours - The total number of hours for a single instance for the entire term.
      • getTotalScheduledInstanceHours

        public Integer getTotalScheduledInstanceHours()

        The total number of hours for a single instance for the entire term.

        Returns:
        The total number of hours for a single instance for the entire term.
      • withTotalScheduledInstanceHours

        public ScheduledInstanceAvailability withTotalScheduledInstanceHours​(Integer totalScheduledInstanceHours)

        The total number of hours for a single instance for the entire term.

        Parameters:
        totalScheduledInstanceHours - The total number of hours for a single instance for the entire term.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setAvailableInstanceCount

        public void setAvailableInstanceCount​(Integer availableInstanceCount)

        The number of available instances.

        Parameters:
        availableInstanceCount - The number of available instances.
      • getAvailableInstanceCount

        public Integer getAvailableInstanceCount()

        The number of available instances.

        Returns:
        The number of available instances.
      • withAvailableInstanceCount

        public ScheduledInstanceAvailability withAvailableInstanceCount​(Integer availableInstanceCount)

        The number of available instances.

        Parameters:
        availableInstanceCount - The number of available instances.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMinTermDurationInDays

        public void setMinTermDurationInDays​(Integer minTermDurationInDays)

        The minimum term. The only possible value is 365 days.

        Parameters:
        minTermDurationInDays - The minimum term. The only possible value is 365 days.
      • getMinTermDurationInDays

        public Integer getMinTermDurationInDays()

        The minimum term. The only possible value is 365 days.

        Returns:
        The minimum term. The only possible value is 365 days.
      • withMinTermDurationInDays

        public ScheduledInstanceAvailability withMinTermDurationInDays​(Integer minTermDurationInDays)

        The minimum term. The only possible value is 365 days.

        Parameters:
        minTermDurationInDays - The minimum term. The only possible value is 365 days.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setMaxTermDurationInDays

        public void setMaxTermDurationInDays​(Integer maxTermDurationInDays)

        The maximum term. The only possible value is 365 days.

        Parameters:
        maxTermDurationInDays - The maximum term. The only possible value is 365 days.
      • getMaxTermDurationInDays

        public Integer getMaxTermDurationInDays()

        The maximum term. The only possible value is 365 days.

        Returns:
        The maximum term. The only possible value is 365 days.
      • withMaxTermDurationInDays

        public ScheduledInstanceAvailability withMaxTermDurationInDays​(Integer maxTermDurationInDays)

        The maximum term. The only possible value is 365 days.

        Parameters:
        maxTermDurationInDays - The maximum term. The only possible value is 365 days.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object