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.

CoverageByTime

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

type CoverageByTime struct { Groups []*ReservationCoverageGroup `type:"list"` TimePeriod *DateInterval `type:"structure"` Total *Coverage `type:"structure"` }

Reservation coverage for a specified period, in hours.

Groups

A group of reservations that share a set of attributes.

TimePeriod

The time period that you want the usage and costs for.

Total

The amount of instance usage that a reservation covered.

Method

GoString

func (s CoverageByTime) GoString() string

GoString returns the string representation

SetGroups

func (s *CoverageByTime) SetGroups(v []*ReservationCoverageGroup) *CoverageByTime

SetGroups sets the Groups field's value.

SetTimePeriod

func (s *CoverageByTime) SetTimePeriod(v *DateInterval) *CoverageByTime

SetTimePeriod sets the TimePeriod field's value.

SetTotal

func (s *CoverageByTime) SetTotal(v *Coverage) *CoverageByTime

SetTotal sets the Total field's value.

String

func (s CoverageByTime) String() string

String returns the string representation

On this page: