1
- /*
2
- * Licensed to the Apache Software Foundation (ASF) under one
3
- * or more contributor license agreements. See the NOTICE file
4
- * distributed with this work for additional information
5
- * regarding copyright ownership. The ASF licenses this file
6
- * to you under the Apache License, Version 2.0 (the
7
- * "License"); you may not use this file except in compliance
8
- * with the License. You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing,
13
- * software distributed under the License is distributed on an
14
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
- * KIND, either express or implied. See the License for the
16
- * specific language governing permissions and limitations
17
- * under the License.
18
- */
19
- package com .aliyuncs .cf .model .v20151127 ;
20
-
1
+ /*
2
+ * Licensed under the Apache License, Version 2.0 (the "License");
3
+ * you may not use this file except in compliance with the License.
4
+ * You may obtain a copy of the License at
5
+ *
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Unless required by applicable law or agreed to in writing, software
9
+ * distributed under the License is distributed on an "AS IS" BASIS,
10
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ * See the License for the specific language governing permissions and
12
+ * limitations under the License.
13
+ */
14
+
15
+ package com .aliyuncs .cf .model .v20151127 ;
16
+
21
17
import com .aliyuncs .RpcAcsRequest ;
22
- import com .aliyuncs .http .ProtocolType ;
23
-
24
- /**
25
- * @author auto create
26
- * @version
27
- */
28
- public class AuthenticateRequest extends RpcAcsRequest <AuthenticateResponse > {
29
-
30
- public AuthenticateRequest () {
31
- super ("CF" , "2015-11-27" , "Authenticate" );
32
- setProtocol (ProtocolType .HTTPS );
18
+ import com .aliyuncs .http .ProtocolType ;
19
+
20
+ /**
21
+ * @author auto create
22
+ * @version
23
+ */
24
+ public class AuthenticateRequest extends RpcAcsRequest <AuthenticateResponse > {
25
+
26
+ public AuthenticateRequest () {
27
+ super ("CF" , "2015-11-27" , "Authenticate" , "cf" );
28
+ setProtocol (ProtocolType .HTTPS );
33
29
}
34
30
35
- private String serno ;
36
-
37
- private String token ;
38
-
39
- private String sessionId ;
31
+ private String sig ;
40
32
41
33
private String remoteIp ;
42
34
43
- private String sig ;
44
-
45
- private String appKey ;
35
+ private String serno ;
46
36
47
37
private String sceneId ;
48
38
49
- public String getSerno () {
50
- return this .serno ;
51
- }
52
-
53
- public void setSerno (String serno ) {
54
- this .serno = serno ;
55
- putQueryParameter ("Serno" , serno );
56
- }
39
+ private String appKey ;
57
40
58
- public String getToken () {
59
- return this .token ;
60
- }
41
+ private String sessionId ;
61
42
62
- public void setToken (String token ) {
63
- this .token = token ;
64
- putQueryParameter ("Token" , token );
65
- }
43
+ private String token ;
66
44
67
- public String getSessionId () {
68
- return this .sessionId ;
45
+ public String getSig () {
46
+ return this .sig ;
69
47
}
70
48
71
- public void setSessionId (String sessionId ) {
72
- this .sessionId = sessionId ;
73
- putQueryParameter ("SessionId" , sessionId );
49
+ public void setSig (String sig ) {
50
+ this .sig = sig ;
51
+ if (sig != null ){
52
+ putQueryParameter ("Sig" , sig );
53
+ }
74
54
}
75
55
76
56
public String getRemoteIp () {
@@ -79,16 +59,31 @@ public String getRemoteIp() {
79
59
80
60
public void setRemoteIp (String remoteIp ) {
81
61
this .remoteIp = remoteIp ;
82
- putQueryParameter ("RemoteIp" , remoteIp );
62
+ if (remoteIp != null ){
63
+ putQueryParameter ("RemoteIp" , remoteIp );
64
+ }
83
65
}
84
66
85
- public String getSig () {
86
- return this .sig ;
67
+ public String getSerno () {
68
+ return this .serno ;
87
69
}
88
70
89
- public void setSig (String sig ) {
90
- this .sig = sig ;
91
- putQueryParameter ("Sig" , sig );
71
+ public void setSerno (String serno ) {
72
+ this .serno = serno ;
73
+ if (serno != null ){
74
+ putQueryParameter ("Serno" , serno );
75
+ }
76
+ }
77
+
78
+ public String getSceneId () {
79
+ return this .sceneId ;
80
+ }
81
+
82
+ public void setSceneId (String sceneId ) {
83
+ this .sceneId = sceneId ;
84
+ if (sceneId != null ){
85
+ putQueryParameter ("SceneId" , sceneId );
86
+ }
92
87
}
93
88
94
89
public String getAppKey () {
@@ -97,21 +92,36 @@ public String getAppKey() {
97
92
98
93
public void setAppKey (String appKey ) {
99
94
this .appKey = appKey ;
100
- putQueryParameter ("AppKey" , appKey );
95
+ if (appKey != null ){
96
+ putQueryParameter ("AppKey" , appKey );
97
+ }
101
98
}
102
99
103
- public String getSceneId () {
104
- return this .sceneId ;
100
+ public String getSessionId () {
101
+ return this .sessionId ;
105
102
}
106
103
107
- public void setSceneId (String sceneId ) {
108
- this .sceneId = sceneId ;
109
- putQueryParameter ("SceneId" , sceneId );
104
+ public void setSessionId (String sessionId ) {
105
+ this .sessionId = sessionId ;
106
+ if (sessionId != null ){
107
+ putQueryParameter ("SessionId" , sessionId );
108
+ }
110
109
}
111
110
112
- @ Override
113
- public Class <AuthenticateResponse > getResponseClass () {
114
- return AuthenticateResponse .class ;
111
+ public String getToken () {
112
+ return this .token ;
115
113
}
116
114
117
- }
115
+ public void setToken (String token ) {
116
+ this .token = token ;
117
+ if (token != null ){
118
+ putQueryParameter ("Token" , token );
119
+ }
120
+ }
121
+
122
+ @ Override
123
+ public Class <AuthenticateResponse > getResponseClass () {
124
+ return AuthenticateResponse .class ;
125
+ }
126
+
127
+ }
0 commit comments