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.

UpdateCondition

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

type UpdateCondition struct { Exists *bool `type:"boolean"` Name *string `type:"string"` Value *string `type:"string"` }

Specifies the conditions under which data should be updated. If an update condition is specified for a request, the data will only be updated if the condition is satisfied. For example, if an attribute with a specific name and value exists, or if a specific attribute doesn't exist.

Exists

Type: *bool

A value specifying whether or not the specified attribute must exist with the specified value in order for the update condition to be satisfied. Specify true if the attribute must exist for the update condition to be satisfied. Specify false if the attribute should not exist in order for the update condition to be satisfied.

Name

Type: *string

The name of the attribute involved in the condition.

Value

Type: *string

The value of an attribute. This value can only be specified when the Exists parameter is equal to true.

Method

GoString

func (s UpdateCondition) GoString() string

GoString returns the string representation

SetExists

func (s *UpdateCondition) SetExists(v bool) *UpdateCondition

SetExists sets the Exists field's value.

SetName

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

SetName sets the Name field's value.

SetValue

func (s *UpdateCondition) SetValue(v string) *UpdateCondition

SetValue sets the Value field's value.

String

func (s UpdateCondition) String() string

String returns the string representation

On this page: