AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

CoverageHours

import "github.com/aws/aws-sdk-go/service/costexplorer"

type CoverageHours struct { CoverageHoursPercentage *string `type:"string"` OnDemandHours *string `type:"string"` ReservedHours *string `type:"string"` TotalRunningHours *string `type:"string"` }

How long a running instance either used a reservation or was On-Demand.

CoverageHoursPercentage

Type: *string

The percentage of instance hours that a reservation covered.

OnDemandHours

Type: *string

The number of instance running hours that On-Demand Instances covered.

ReservedHours

Type: *string

The number of instance running hours that reservations covered.

TotalRunningHours

Type: *string

The total instance usage, in hours.

Method

GoString

func (s CoverageHours) GoString() string

GoString returns the string representation

SetCoverageHoursPercentage

func (s *CoverageHours) SetCoverageHoursPercentage(v string) *CoverageHours

SetCoverageHoursPercentage sets the CoverageHoursPercentage field's value.

SetOnDemandHours

func (s *CoverageHours) SetOnDemandHours(v string) *CoverageHours

SetOnDemandHours sets the OnDemandHours field's value.

SetReservedHours

func (s *CoverageHours) SetReservedHours(v string) *CoverageHours

SetReservedHours sets the ReservedHours field's value.

SetTotalRunningHours

func (s *CoverageHours) SetTotalRunningHours(v string) *CoverageHours

SetTotalRunningHours sets the TotalRunningHours field's value.

String

func (s CoverageHours) String() string

String returns the string representation

On this page: