-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,577 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 119 additions & 0 deletions
119
...-amqp-open/src/main/java/com/aliyuncs/amqp_open/model/v20191212/CreateAccountRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.aliyuncs.amqp_open.model.v20191212; | ||
|
||
import com.aliyuncs.RpcAcsRequest; | ||
import com.aliyuncs.http.MethodType; | ||
import com.aliyuncs.amqp_open.Endpoint; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class CreateAccountRequest extends RpcAcsRequest<CreateAccountResponse> { | ||
|
||
|
||
private String signature; | ||
|
||
private String secretSign; | ||
|
||
private String accountAccessKey; | ||
|
||
private String instanceId; | ||
|
||
private Long createTimestamp; | ||
|
||
private String userName; | ||
public CreateAccountRequest() { | ||
super("amqp-open", "2019-12-12", "CreateAccount", "onsproxy"); | ||
setMethod(MethodType.POST); | ||
try { | ||
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap); | ||
com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType); | ||
} catch (Exception e) {} | ||
} | ||
|
||
public String getSignature() { | ||
return this.signature; | ||
} | ||
|
||
public void setSignature(String signature) { | ||
this.signature = signature; | ||
if(signature != null){ | ||
putQueryParameter("signature", signature); | ||
} | ||
} | ||
|
||
public String getSecretSign() { | ||
return this.secretSign; | ||
} | ||
|
||
public void setSecretSign(String secretSign) { | ||
this.secretSign = secretSign; | ||
if(secretSign != null){ | ||
putQueryParameter("secretSign", secretSign); | ||
} | ||
} | ||
|
||
public String getAccountAccessKey() { | ||
return this.accountAccessKey; | ||
} | ||
|
||
public void setAccountAccessKey(String accountAccessKey) { | ||
this.accountAccessKey = accountAccessKey; | ||
if(accountAccessKey != null){ | ||
putQueryParameter("accountAccessKey", accountAccessKey); | ||
} | ||
} | ||
|
||
public String getInstanceId() { | ||
return this.instanceId; | ||
} | ||
|
||
public void setInstanceId(String instanceId) { | ||
this.instanceId = instanceId; | ||
if(instanceId != null){ | ||
putQueryParameter("instanceId", instanceId); | ||
} | ||
} | ||
|
||
public Long getCreateTimestamp() { | ||
return this.createTimestamp; | ||
} | ||
|
||
public void setCreateTimestamp(Long createTimestamp) { | ||
this.createTimestamp = createTimestamp; | ||
if(createTimestamp != null){ | ||
putQueryParameter("createTimestamp", createTimestamp.toString()); | ||
} | ||
} | ||
|
||
public String getUserName() { | ||
return this.userName; | ||
} | ||
|
||
public void setUserName(String userName) { | ||
this.userName = userName; | ||
if(userName != null){ | ||
putQueryParameter("userName", userName); | ||
} | ||
} | ||
|
||
@Override | ||
public Class<CreateAccountResponse> getResponseClass() { | ||
return CreateAccountResponse.class; | ||
} | ||
|
||
} |
149 changes: 149 additions & 0 deletions
149
...amqp-open/src/main/java/com/aliyuncs/amqp_open/model/v20191212/CreateAccountResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
/* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.aliyuncs.amqp_open.model.v20191212; | ||
|
||
import com.aliyuncs.AcsResponse; | ||
import com.aliyuncs.amqp_open.transform.v20191212.CreateAccountResponseUnmarshaller; | ||
import com.aliyuncs.transform.UnmarshallerContext; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class CreateAccountResponse extends AcsResponse { | ||
|
||
private String requestId; | ||
|
||
private Integer code; | ||
|
||
private String message; | ||
|
||
private Boolean success; | ||
|
||
private Data data; | ||
|
||
public String getRequestId() { | ||
return this.requestId; | ||
} | ||
|
||
public void setRequestId(String requestId) { | ||
this.requestId = requestId; | ||
} | ||
|
||
public Integer getCode() { | ||
return this.code; | ||
} | ||
|
||
public void setCode(Integer code) { | ||
this.code = code; | ||
} | ||
|
||
public String getMessage() { | ||
return this.message; | ||
} | ||
|
||
public void setMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
public Boolean getSuccess() { | ||
return this.success; | ||
} | ||
|
||
public void setSuccess(Boolean success) { | ||
this.success = success; | ||
} | ||
|
||
public Data getData() { | ||
return this.data; | ||
} | ||
|
||
public void setData(Data data) { | ||
this.data = data; | ||
} | ||
|
||
public static class Data { | ||
|
||
private String accessKey; | ||
|
||
private String password; | ||
|
||
private Long createTimeStamp; | ||
|
||
private String instanceId; | ||
|
||
private Long masterUId; | ||
|
||
private String userName; | ||
|
||
public String getAccessKey() { | ||
return this.accessKey; | ||
} | ||
|
||
public void setAccessKey(String accessKey) { | ||
this.accessKey = accessKey; | ||
} | ||
|
||
public String getPassword() { | ||
return this.password; | ||
} | ||
|
||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
|
||
public Long getCreateTimeStamp() { | ||
return this.createTimeStamp; | ||
} | ||
|
||
public void setCreateTimeStamp(Long createTimeStamp) { | ||
this.createTimeStamp = createTimeStamp; | ||
} | ||
|
||
public String getInstanceId() { | ||
return this.instanceId; | ||
} | ||
|
||
public void setInstanceId(String instanceId) { | ||
this.instanceId = instanceId; | ||
} | ||
|
||
public Long getMasterUId() { | ||
return this.masterUId; | ||
} | ||
|
||
public void setMasterUId(Long masterUId) { | ||
this.masterUId = masterUId; | ||
} | ||
|
||
public String getUserName() { | ||
return this.userName; | ||
} | ||
|
||
public void setUserName(String userName) { | ||
this.userName = userName; | ||
} | ||
} | ||
|
||
@Override | ||
public CreateAccountResponse getInstance(UnmarshallerContext context) { | ||
return CreateAccountResponseUnmarshaller.unmarshall(this, context); | ||
} | ||
|
||
@Override | ||
public boolean checkShowJsonItemName() { | ||
return false; | ||
} | ||
} |
Oops, something went wrong.