EC2InstanceDetails
import "github.com/aws/aws-sdk-go/service/costexplorer"
type EC2InstanceDetails struct { AvailabilityZone *string `type:"string"` CurrentGeneration *bool `type:"boolean"` Family *string `type:"string"` InstanceType *string `type:"string"` Platform *string `type:"string"` Region *string `type:"string"` SizeFlexEligible *bool `type:"boolean"` Tenancy *string `type:"string"` }
Details about the Amazon EC2 instances that AWS recommends that you purchase.
- AvailabilityZone
-
Type:
*string
The Availability Zone of the recommended reservation.
- CurrentGeneration
-
Type:
*bool
Whether the recommendation is for a current-generation instance.
- Family
-
Type:
*string
The instance family of the recommended reservation.
- InstanceType
-
Type:
*string
The type of instance that AWS recommends.
- Platform
-
Type:
*string
The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.
- Region
-
Type:
*string
The AWS Region of the recommended reservation.
- SizeFlexEligible
-
Type:
*bool
Whether the recommended reservation is size flexible.
- Tenancy
-
Type:
*string
Whether the recommended reservation is dedicated or shared.
Method
GoString
func (s EC2InstanceDetails) GoString() string
GoString returns the string representation
SetAvailabilityZone
func (s *EC2InstanceDetails) SetAvailabilityZone(v string) *EC2InstanceDetails
SetAvailabilityZone sets the AvailabilityZone field's value.
SetCurrentGeneration
func (s *EC2InstanceDetails) SetCurrentGeneration(v bool) *EC2InstanceDetails
SetCurrentGeneration sets the CurrentGeneration field's value.
SetFamily
func (s *EC2InstanceDetails) SetFamily(v string) *EC2InstanceDetails
SetFamily sets the Family field's value.
SetInstanceType
func (s *EC2InstanceDetails) SetInstanceType(v string) *EC2InstanceDetails
SetInstanceType sets the InstanceType field's value.
SetPlatform
func (s *EC2InstanceDetails) SetPlatform(v string) *EC2InstanceDetails
SetPlatform sets the Platform field's value.
SetRegion
func (s *EC2InstanceDetails) SetRegion(v string) *EC2InstanceDetails
SetRegion sets the Region field's value.
SetSizeFlexEligible
func (s *EC2InstanceDetails) SetSizeFlexEligible(v bool) *EC2InstanceDetails
SetSizeFlexEligible sets the SizeFlexEligible field's value.
SetTenancy
func (s *EC2InstanceDetails) SetTenancy(v string) *EC2InstanceDetails
SetTenancy sets the Tenancy field's value.
String
func (s EC2InstanceDetails) String() string
String returns the string representation