88
99import com .fasterxml .jackson .annotation .JsonAnyGetter ;
1010import com .fasterxml .jackson .annotation .JsonAnySetter ;
11- import com .fasterxml .jackson .annotation .JsonCreator ;
1211import com .fasterxml .jackson .annotation .JsonIgnore ;
1312import com .fasterxml .jackson .annotation .JsonInclude ;
1413import com .fasterxml .jackson .annotation .JsonProperty ;
@@ -36,16 +35,6 @@ public class SyntheticsBasicAuthWeb {
3635 public static final String JSON_PROPERTY_USERNAME = "username" ;
3736 private String username ;
3837
39- public SyntheticsBasicAuthWeb () {}
40-
41- @ JsonCreator
42- public SyntheticsBasicAuthWeb (
43- @ JsonProperty (required = true , value = JSON_PROPERTY_PASSWORD ) String password ,
44- @ JsonProperty (required = true , value = JSON_PROPERTY_USERNAME ) String username ) {
45- this .password = password ;
46- this .username = username ;
47- }
48-
4938 public SyntheticsBasicAuthWeb password (String password ) {
5039 this .password = password ;
5140 return this ;
@@ -56,8 +45,9 @@ public SyntheticsBasicAuthWeb password(String password) {
5645 *
5746 * @return password
5847 */
48+ @ jakarta .annotation .Nullable
5949 @ JsonProperty (JSON_PROPERTY_PASSWORD )
60- @ JsonInclude (value = JsonInclude .Include .ALWAYS )
50+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
6151 public String getPassword () {
6252 return password ;
6353 }
@@ -101,8 +91,9 @@ public SyntheticsBasicAuthWeb username(String username) {
10191 *
10292 * @return username
10393 */
94+ @ jakarta .annotation .Nullable
10495 @ JsonProperty (JSON_PROPERTY_USERNAME )
105- @ JsonInclude (value = JsonInclude .Include .ALWAYS )
96+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
10697 public String getUsername () {
10798 return username ;
10899 }
0 commit comments