@@ -68,6 +68,7 @@ public SdkType<OutputT> getOutputType() {
68
68
69
69
/**
70
70
* Create a remote launch plan, a reference to a launch plan that have been deployed previously.
71
+ * This function will fetch the latest version of the launch plan
71
72
*
72
73
* @param domain the domain of the remote launch plan
73
74
* @param project the project of the remote launch plan
@@ -82,10 +83,32 @@ public static <InputT, OutputT> SdkRemoteLaunchPlan<InputT, OutputT> create(
82
83
String name ,
83
84
SdkType <InputT > inputs ,
84
85
SdkType <OutputT > outputs ) {
86
+ return create (domain , project , name , null , inputs , outputs );
87
+ }
88
+
89
+ /**
90
+ * Create a remote launch plan, a reference to a launch plan that have been deployed previously.
91
+ *
92
+ * @param domain the domain of the remote launch plan
93
+ * @param project the project of the remote launch plan
94
+ * @param name the name of the remote launch plan
95
+ * @param version of the remote launch plan, defaults to the latest version if null
96
+ * @param inputs the {@link SdkType} for the inputs of the remote launch plan
97
+ * @param outputs the {@link SdkType} for the outputs of the remote launch plan
98
+ * @return the remote launch plan
99
+ */
100
+ public static <InputT , OutputT > SdkRemoteLaunchPlan <InputT , OutputT > create (
101
+ String domain ,
102
+ String project ,
103
+ String name ,
104
+ @ Nullable String version ,
105
+ SdkType <InputT > inputs ,
106
+ SdkType <OutputT > outputs ) {
85
107
return SdkRemoteLaunchPlan .<InputT , OutputT >builder ()
86
108
.domain (domain )
87
109
.project (project )
88
110
.name (name )
111
+ .version (version )
89
112
.inputs (inputs )
90
113
.outputs (outputs )
91
114
.build ();
0 commit comments