12
12
import com .shopify .graphql .support .Query ;
13
13
import com .shopify .graphql .support .SchemaViolationError ;
14
14
import com .shopify .graphql .support .TopLevelResponse ;
15
+ import com .shopify .graphql .support .Input ;
15
16
16
17
import com .shopify .graphql .support .ID ;
17
18
@@ -1076,14 +1077,11 @@ public static class SetIntegerInput implements Serializable {
1076
1077
1077
1078
private int value ;
1078
1079
1079
- private LocalDateTime ttl ;
1080
- private boolean ttlSeen = false ;
1080
+ private Input <LocalDateTime > ttl = Input .undefined ();
1081
1081
1082
- private Boolean negate ;
1083
- private boolean negateSeen = false ;
1082
+ private Input <Boolean > negate = Input .undefined ();
1084
1083
1085
- private String apiClient ;
1086
- private boolean apiClientSeen = false ;
1084
+ private Input <String > apiClient = Input .undefined ();
1087
1085
1088
1086
public SetIntegerInput (String key , int value ) {
1089
1087
this .key = key ;
@@ -1111,55 +1109,67 @@ public SetIntegerInput setValue(int value) {
1111
1109
1112
1110
@ Nullable
1113
1111
public LocalDateTime getTtl () {
1112
+ return ttl .value ;
1113
+ }
1114
+
1115
+ public Input <LocalDateTime > getTtlInput () {
1114
1116
return ttl ;
1115
1117
}
1116
1118
1117
1119
public SetIntegerInput setTtl (@ Nullable LocalDateTime ttl ) {
1118
- this .ttl = ttl ;
1119
- this .ttlSeen = true ;
1120
+ this .ttl = Input .value (ttl );
1120
1121
return this ;
1121
1122
}
1122
1123
1123
- // Unsets the ttl property so that it is not serialized.
1124
- public SetIntegerInput unsetTtl () {
1125
- this .ttl = null ;
1126
- this .ttlSeen = false ;
1124
+ public SetIntegerInput setTtlInput (@ Nullable Input <LocalDateTime > ttl ) {
1125
+ if (ttl == null ) {
1126
+ throw new IllegalArgumentException ("Input can not be null" );
1127
+ }
1128
+ this .ttl = ttl ;
1127
1129
return this ;
1128
1130
}
1129
1131
1130
1132
@ Nullable
1131
1133
public Boolean getNegate () {
1134
+ return negate .value ;
1135
+ }
1136
+
1137
+ public Input <Boolean > getNegateInput () {
1132
1138
return negate ;
1133
1139
}
1134
1140
1135
1141
public SetIntegerInput setNegate (@ Nullable Boolean negate ) {
1136
- this .negate = negate ;
1137
- this .negateSeen = true ;
1142
+ this .negate = Input .value (negate );
1138
1143
return this ;
1139
1144
}
1140
1145
1141
- // Unsets the negate property so that it is not serialized.
1142
- public SetIntegerInput unsetNegate () {
1143
- this .negate = null ;
1144
- this .negateSeen = false ;
1146
+ public SetIntegerInput setNegateInput (@ Nullable Input <Boolean > negate ) {
1147
+ if (negate == null ) {
1148
+ throw new IllegalArgumentException ("Input can not be null" );
1149
+ }
1150
+ this .negate = negate ;
1145
1151
return this ;
1146
1152
}
1147
1153
1148
1154
@ Nullable
1149
1155
public String getApiClient () {
1156
+ return apiClient .value ;
1157
+ }
1158
+
1159
+ public Input <String > getApiClientInput () {
1150
1160
return apiClient ;
1151
1161
}
1152
1162
1153
1163
public SetIntegerInput setApiClient (@ Nullable String apiClient ) {
1154
- this .apiClient = apiClient ;
1155
- this .apiClientSeen = true ;
1164
+ this .apiClient = Input .value (apiClient );
1156
1165
return this ;
1157
1166
}
1158
1167
1159
- // Unsets the apiClient property so that it is not serialized.
1160
- public SetIntegerInput unsetApiClient () {
1161
- this .apiClient = null ;
1162
- this .apiClientSeen = false ;
1168
+ public SetIntegerInput setApiClientInput (@ Nullable Input <String > apiClient ) {
1169
+ if (apiClient == null ) {
1170
+ throw new IllegalArgumentException ("Input can not be null" );
1171
+ }
1172
+ this .apiClient = apiClient ;
1163
1173
return this ;
1164
1174
}
1165
1175
@@ -1177,34 +1187,34 @@ public void appendTo(StringBuilder _queryBuilder) {
1177
1187
_queryBuilder .append ("value:" );
1178
1188
_queryBuilder .append (value );
1179
1189
1180
- if (this .ttlSeen ) {
1190
+ if (this .ttl . defined || this . ttl . value != null ) {
1181
1191
_queryBuilder .append (separator );
1182
1192
separator = "," ;
1183
1193
_queryBuilder .append ("ttl:" );
1184
- if (ttl != null ) {
1185
- Query .appendQuotedString (_queryBuilder , ttl .toString ());
1194
+ if (ttl . value != null ) {
1195
+ Query .appendQuotedString (_queryBuilder , ttl .value . toString ());
1186
1196
} else {
1187
1197
_queryBuilder .append ("null" );
1188
1198
}
1189
1199
}
1190
1200
1191
- if (this .negateSeen ) {
1201
+ if (this .negate . defined || this . negate . value != null ) {
1192
1202
_queryBuilder .append (separator );
1193
1203
separator = "," ;
1194
1204
_queryBuilder .append ("negate:" );
1195
- if (negate != null ) {
1196
- _queryBuilder .append (negate );
1205
+ if (negate . value != null ) {
1206
+ _queryBuilder .append (negate . value );
1197
1207
} else {
1198
1208
_queryBuilder .append ("null" );
1199
1209
}
1200
1210
}
1201
1211
1202
- if (this .apiClientSeen ) {
1212
+ if (this .apiClient . defined || this . apiClient . value != null ) {
1203
1213
_queryBuilder .append (separator );
1204
1214
separator = "," ;
1205
1215
_queryBuilder .append ("api_client:" );
1206
- if (apiClient != null ) {
1207
- Query .appendQuotedString (_queryBuilder , apiClient .toString ());
1216
+ if (apiClient . value != null ) {
1217
+ Query .appendQuotedString (_queryBuilder , apiClient .value . toString ());
1208
1218
} else {
1209
1219
_queryBuilder .append ("null" );
1210
1220
}
0 commit comments