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.

MathActivity

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

type MathActivity struct { Attribute *string `locationName:"attribute" min:"1" type:"string" required:"true"` Math *string `locationName:"math" min:"1" type:"string" required:"true"` Name *string `locationName:"name" min:"1" type:"string" required:"true"` Next *string `locationName:"next" min:"1" type:"string"` }

An activity that computes an arithmetic expression using the message's attributes.

Attribute

Type: *string

The name of the attribute that contains the result of the math operation.

Attribute is a required field

Math

Type: *string

An expression that uses one or more existing attributes and must return an integer value.

Math is a required field

Name

Type: *string

The name of the 'math' activity.

Name is a required field

Next

Type: *string

The next activity in the pipeline.

Method

GoString

func (s MathActivity) GoString() string

GoString returns the string representation

SetAttribute

func (s *MathActivity) SetAttribute(v string) *MathActivity

SetAttribute sets the Attribute field's value.

SetMath

func (s *MathActivity) SetMath(v string) *MathActivity

SetMath sets the Math field's value.

SetName

func (s *MathActivity) SetName(v string) *MathActivity

SetName sets the Name field's value.

SetNext

func (s *MathActivity) SetNext(v string) *MathActivity

SetNext sets the Next field's value.

String

func (s MathActivity) String() string

String returns the string representation

Validate

func (s *MathActivity) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: