11package com .silanis .esl .api .model ;
22//
3+
34import com .fasterxml .jackson .annotation .JsonIgnore ;
45import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
56import com .silanis .esl .api .util .SchemaSanitizer ;
67
78import java .util .ArrayList ;
89import java .util .List ;
9- @ JsonIgnoreProperties (ignoreUnknown =true )
10+
11+ @ JsonIgnoreProperties (ignoreUnknown = true )
1012public class Auth extends Model
11- implements java .io .Serializable
12- {
13-
13+ implements java .io .Serializable {
14+
1415 // Dirty Flag Constants
1516 @ JsonIgnore
1617 public static final String FIELD_CHALLENGES = "challenges" ;
1718 @ JsonIgnore
1819 public static final String FIELD_SCHEME = "scheme" ;
19-
20+ @ JsonIgnore
21+ public static final String FIELD_IDV_WORKFLOW = "idvWorkflow" ;
22+
2023 // Empty Constructor
21- public Auth ( ) {}
22-
24+ public Auth () {
25+ }
26+
2327 // Fields
2428 protected List <AuthChallenge > _challenges = new ArrayList <AuthChallenge >();
29+ protected IdvWorkflow _idvWorkflow ;
2530 protected String _scheme = "NONE" ;
26-
31+
2732 // Accessors
28-
29-
30- public Auth setChallenges ( List <AuthChallenge > value ){
31- SchemaSanitizer .throwOnNull (FIELD_CHALLENGES ,value );
33+
34+ public IdvWorkflow getIdvWorkflow () {
35+ return _idvWorkflow ;
36+ }
37+
38+ public Auth setIdvWorkflow (IdvWorkflow value ) {
39+ this ._idvWorkflow = value ;
40+ setDirty (FIELD_IDV_WORKFLOW );
41+ return this ;
42+ }
43+
44+ public Auth setChallenges (List <AuthChallenge > value ) {
45+ SchemaSanitizer .throwOnNull (FIELD_CHALLENGES , value );
3246 // TODO With proper compare
3347 // if ( this._challenges == value ) return this;
3448 this ._challenges = value ;
3549 setDirty (FIELD_CHALLENGES );
3650 return this ;
3751 }
52+
3853 // Used internally by aws. Invokes a the corresponding setter if the value is not null
3954 @ JsonIgnore
40- public Auth safeSetChallenges ( List <AuthChallenge > value ){
41- if ( value != null ) { this .setChallenges ( value ); }
55+ public Auth safeSetChallenges (List <AuthChallenge > value ) {
56+ if (value != null ) {
57+ this .setChallenges (value );
58+ }
4259 return this ;
4360 }
44- public List <AuthChallenge > getChallenges (){
61+
62+ public List <AuthChallenge > getChallenges () {
4563 return _challenges ;
4664 }
65+
4766 // List adder
48- public Auth addChallenge ( AuthChallenge value ){
49- if (value == null ) { throw new IllegalArgumentException ("Argument cannot be null" ); }
67+ public Auth addChallenge (AuthChallenge value ) {
68+ if (value == null ) {
69+ throw new IllegalArgumentException ("Argument cannot be null" );
70+ }
5071 this ._challenges .add (value );
5172 setDirty (FIELD_CHALLENGES );
5273 return this ;
5374 }
54-
55-
56-
57- public Auth setScheme ( String value ){
58- SchemaSanitizer .throwOnNull (FIELD_SCHEME ,value );
75+
76+
77+ public Auth setScheme (String value ) {
78+ SchemaSanitizer .throwOnNull (FIELD_SCHEME , value );
5979 // TODO With proper compare
6080 // if ( this._scheme == value ) return this;
6181 this ._scheme = value ;
6282 setDirty (FIELD_SCHEME );
6383 return this ;
6484 }
85+
6586 // Used internally by aws. Invokes a the corresponding setter if the value is not null
6687 @ JsonIgnore
67- public Auth safeSetScheme ( String value ){
68- if ( value != null ) { this .setScheme ( value ); }
88+ public Auth safeSetScheme (String value ) {
89+ if (value != null ) {
90+ this .setScheme (value );
91+ }
6992 return this ;
7093 }
71- public String getScheme (){
94+
95+ public String getScheme () {
7296 return _scheme ;
7397 }
74-
75-
98+
99+
76100}
0 commit comments