Name | Type | Description | Notes |
---|---|---|---|
DesiredAmount | Pointer to int32 | Required for "MANUAL" and "SCHEDULED" auto scaling group. Number of instances to be launched | [optional] |
MinimumAmount | Pointer to int32 | Required for "CPU_BASED". The minimum number of instances that should be running | [optional] |
MaximumAmount | Pointer to int32 | Required for "CPU_BASED" auto scaling group. The maximum number of instances that can be running | [optional] |
CpuThreshold | Pointer to int32 | Required for "CPU_BASED" auto scaling group. The target average CPU utilization for scaling | [optional] |
WarmupTime | Pointer to int32 | Required for "CPU_BASED" auto scaling group. Warm-up time in seconds for new instances | [optional] |
CooldownTime | Pointer to int32 | Required for "CPU_BASED" auto scaling group. Cool-down time in seconds for new instances | [optional] |
InstanceId | string | The instance on which instances will be based on. This instance needs to be either Running or Stopped | |
Reference | string | The identifying name set to the auto scaling group | |
Type | string | ||
StartsAt | Pointer to time.Time | Required for "SCHEDULED" auto scaling group. Date and time (UTC) that the instances need to be launched | [optional] |
EndsAt | Pointer to time.Time | Required for "SCHEDULED" auto scaling group. Date and time (UTC) that the instances need to be terminated | [optional] |
func NewCreateAutoScalingGroupOpts(instanceId string, reference string, type_ string, ) *CreateAutoScalingGroupOpts
NewCreateAutoScalingGroupOpts instantiates a new CreateAutoScalingGroupOpts object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewCreateAutoScalingGroupOptsWithDefaults() *CreateAutoScalingGroupOpts
NewCreateAutoScalingGroupOptsWithDefaults instantiates a new CreateAutoScalingGroupOpts object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *CreateAutoScalingGroupOpts) GetDesiredAmount() int32
GetDesiredAmount returns the DesiredAmount field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetDesiredAmountOk() (*int32, bool)
GetDesiredAmountOk returns a tuple with the DesiredAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetDesiredAmount(v int32)
SetDesiredAmount sets DesiredAmount field to given value.
func (o *CreateAutoScalingGroupOpts) HasDesiredAmount() bool
HasDesiredAmount returns a boolean if a field has been set.
func (o *CreateAutoScalingGroupOpts) GetMinimumAmount() int32
GetMinimumAmount returns the MinimumAmount field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetMinimumAmountOk() (*int32, bool)
GetMinimumAmountOk returns a tuple with the MinimumAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetMinimumAmount(v int32)
SetMinimumAmount sets MinimumAmount field to given value.
func (o *CreateAutoScalingGroupOpts) HasMinimumAmount() bool
HasMinimumAmount returns a boolean if a field has been set.
func (o *CreateAutoScalingGroupOpts) GetMaximumAmount() int32
GetMaximumAmount returns the MaximumAmount field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetMaximumAmountOk() (*int32, bool)
GetMaximumAmountOk returns a tuple with the MaximumAmount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetMaximumAmount(v int32)
SetMaximumAmount sets MaximumAmount field to given value.
func (o *CreateAutoScalingGroupOpts) HasMaximumAmount() bool
HasMaximumAmount returns a boolean if a field has been set.
func (o *CreateAutoScalingGroupOpts) GetCpuThreshold() int32
GetCpuThreshold returns the CpuThreshold field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetCpuThresholdOk() (*int32, bool)
GetCpuThresholdOk returns a tuple with the CpuThreshold field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetCpuThreshold(v int32)
SetCpuThreshold sets CpuThreshold field to given value.
func (o *CreateAutoScalingGroupOpts) HasCpuThreshold() bool
HasCpuThreshold returns a boolean if a field has been set.
func (o *CreateAutoScalingGroupOpts) GetWarmupTime() int32
GetWarmupTime returns the WarmupTime field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetWarmupTimeOk() (*int32, bool)
GetWarmupTimeOk returns a tuple with the WarmupTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetWarmupTime(v int32)
SetWarmupTime sets WarmupTime field to given value.
func (o *CreateAutoScalingGroupOpts) HasWarmupTime() bool
HasWarmupTime returns a boolean if a field has been set.
func (o *CreateAutoScalingGroupOpts) GetCooldownTime() int32
GetCooldownTime returns the CooldownTime field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetCooldownTimeOk() (*int32, bool)
GetCooldownTimeOk returns a tuple with the CooldownTime field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetCooldownTime(v int32)
SetCooldownTime sets CooldownTime field to given value.
func (o *CreateAutoScalingGroupOpts) HasCooldownTime() bool
HasCooldownTime returns a boolean if a field has been set.
func (o *CreateAutoScalingGroupOpts) GetInstanceId() string
GetInstanceId returns the InstanceId field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetInstanceIdOk() (*string, bool)
GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetInstanceId(v string)
SetInstanceId sets InstanceId field to given value.
func (o *CreateAutoScalingGroupOpts) GetReference() string
GetReference returns the Reference field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetReferenceOk() (*string, bool)
GetReferenceOk returns a tuple with the Reference field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetReference(v string)
SetReference sets Reference field to given value.
func (o *CreateAutoScalingGroupOpts) GetType() string
GetType returns the Type field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetTypeOk() (*string, bool)
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetType(v string)
SetType sets Type field to given value.
func (o *CreateAutoScalingGroupOpts) GetStartsAt() time.Time
GetStartsAt returns the StartsAt field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetStartsAtOk() (*time.Time, bool)
GetStartsAtOk returns a tuple with the StartsAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetStartsAt(v time.Time)
SetStartsAt sets StartsAt field to given value.
func (o *CreateAutoScalingGroupOpts) HasStartsAt() bool
HasStartsAt returns a boolean if a field has been set.
func (o *CreateAutoScalingGroupOpts) GetEndsAt() time.Time
GetEndsAt returns the EndsAt field if non-nil, zero value otherwise.
func (o *CreateAutoScalingGroupOpts) GetEndsAtOk() (*time.Time, bool)
GetEndsAtOk returns a tuple with the EndsAt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *CreateAutoScalingGroupOpts) SetEndsAt(v time.Time)
SetEndsAt sets EndsAt field to given value.
func (o *CreateAutoScalingGroupOpts) HasEndsAt() bool
HasEndsAt returns a boolean if a field has been set.