/
stub.go
104 lines (83 loc) · 4.67 KB
/
stub.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// Generated by github.com/temporalio/temporal-aws-sdk-generator
// from github.com/aws/aws-sdk-go version 1.35.7
package costandusagereportservicestub
import (
"github.com/aws/aws-sdk-go/service/costandusagereportservice"
"go.uber.org/cadence/workflow"
"github.com/banzaicloud/cadence-aws-sdk/clients"
)
// ensure that imports are valid even if not used by the generated code
var _ clients.VoidFuture
type stub struct{}
type DeleteReportDefinitionFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *DeleteReportDefinitionFuture) Get(ctx workflow.Context) (*costandusagereportservice.DeleteReportDefinitionOutput, error) {
var output costandusagereportservice.DeleteReportDefinitionOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type DescribeReportDefinitionsFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *DescribeReportDefinitionsFuture) Get(ctx workflow.Context) (*costandusagereportservice.DescribeReportDefinitionsOutput, error) {
var output costandusagereportservice.DescribeReportDefinitionsOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type ModifyReportDefinitionFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *ModifyReportDefinitionFuture) Get(ctx workflow.Context) (*costandusagereportservice.ModifyReportDefinitionOutput, error) {
var output costandusagereportservice.ModifyReportDefinitionOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type PutReportDefinitionFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *PutReportDefinitionFuture) Get(ctx workflow.Context) (*costandusagereportservice.PutReportDefinitionOutput, error) {
var output costandusagereportservice.PutReportDefinitionOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
func (a *stub) DeleteReportDefinition(ctx workflow.Context, input *costandusagereportservice.DeleteReportDefinitionInput) (*costandusagereportservice.DeleteReportDefinitionOutput, error) {
var output costandusagereportservice.DeleteReportDefinitionOutput
err := workflow.ExecuteActivity(ctx, "aws-costandusagereportservice-DeleteReportDefinition", input).Get(ctx, &output)
return &output, err
}
func (a *stub) DeleteReportDefinitionAsync(ctx workflow.Context, input *costandusagereportservice.DeleteReportDefinitionInput) *DeleteReportDefinitionFuture {
future := workflow.ExecuteActivity(ctx, "aws-costandusagereportservice-DeleteReportDefinition", input)
return &DeleteReportDefinitionFuture{Future: future}
}
func (a *stub) DescribeReportDefinitions(ctx workflow.Context, input *costandusagereportservice.DescribeReportDefinitionsInput) (*costandusagereportservice.DescribeReportDefinitionsOutput, error) {
var output costandusagereportservice.DescribeReportDefinitionsOutput
err := workflow.ExecuteActivity(ctx, "aws-costandusagereportservice-DescribeReportDefinitions", input).Get(ctx, &output)
return &output, err
}
func (a *stub) DescribeReportDefinitionsAsync(ctx workflow.Context, input *costandusagereportservice.DescribeReportDefinitionsInput) *DescribeReportDefinitionsFuture {
future := workflow.ExecuteActivity(ctx, "aws-costandusagereportservice-DescribeReportDefinitions", input)
return &DescribeReportDefinitionsFuture{Future: future}
}
func (a *stub) ModifyReportDefinition(ctx workflow.Context, input *costandusagereportservice.ModifyReportDefinitionInput) (*costandusagereportservice.ModifyReportDefinitionOutput, error) {
var output costandusagereportservice.ModifyReportDefinitionOutput
err := workflow.ExecuteActivity(ctx, "aws-costandusagereportservice-ModifyReportDefinition", input).Get(ctx, &output)
return &output, err
}
func (a *stub) ModifyReportDefinitionAsync(ctx workflow.Context, input *costandusagereportservice.ModifyReportDefinitionInput) *ModifyReportDefinitionFuture {
future := workflow.ExecuteActivity(ctx, "aws-costandusagereportservice-ModifyReportDefinition", input)
return &ModifyReportDefinitionFuture{Future: future}
}
func (a *stub) PutReportDefinition(ctx workflow.Context, input *costandusagereportservice.PutReportDefinitionInput) (*costandusagereportservice.PutReportDefinitionOutput, error) {
var output costandusagereportservice.PutReportDefinitionOutput
err := workflow.ExecuteActivity(ctx, "aws-costandusagereportservice-PutReportDefinition", input).Get(ctx, &output)
return &output, err
}
func (a *stub) PutReportDefinitionAsync(ctx workflow.Context, input *costandusagereportservice.PutReportDefinitionInput) *PutReportDefinitionFuture {
future := workflow.ExecuteActivity(ctx, "aws-costandusagereportservice-PutReportDefinition", input)
return &PutReportDefinitionFuture{Future: future}
}