Skip to content

Commit ac2e18b

Browse files
authored
fix: add not nul annotation (#575)
1 parent cab9e62 commit ac2e18b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/io/kestra/plugin/aws/emr/CreateCluster.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ public class CreateCluster extends AbstractEmrTask implements RunnableTask<Creat
113113
@Builder.Default
114114
private Property<String> serviceRole = Property.of("EMR_DefaultRole");
115115

116+
@NotNull
116117
@Schema(title = "Master Instance Type.", description = "EC2 instance type for master instances.")
117118
private Property<String> masterInstanceType;
118119

120+
@NotNull
119121
@Schema(title = "Slave Instance Type.", description = "EC2 instance type for slave instances.")
120122
private Property<String> slaveInstanceType;
121123

@@ -124,6 +126,7 @@ public class CreateCluster extends AbstractEmrTask implements RunnableTask<Creat
124126
private Property<Boolean> keepJobFlowAliveWhenNoSteps = Property.of(false);
125127

126128
@Schema(title = "Instance count.")
129+
@NotNull
127130
private Property<Integer> instanceCount;
128131

129132
@Schema(title = "EC2 Key name.", description = "The name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called \"hadoop\".")

0 commit comments

Comments
 (0)