-
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.
Supported SortBy for ListUserDevices.
- Loading branch information
Showing
45 changed files
with
5,715 additions
and
1 deletion.
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
260 changes: 260 additions & 0 deletions
260
...csas/src/main/java/com/aliyuncs/csas/model/v20230120/CreateRegistrationPolicyRequest.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,260 @@ | ||
/* | ||
* 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.csas.model.v20230120; | ||
|
||
import com.aliyuncs.RpcAcsRequest; | ||
import java.util.List; | ||
import com.google.gson.Gson; | ||
import com.google.gson.annotations.SerializedName; | ||
import com.aliyuncs.http.MethodType; | ||
|
||
/** | ||
* @author auto create | ||
* @version | ||
*/ | ||
public class CreateRegistrationPolicyRequest extends RpcAcsRequest<CreateRegistrationPolicyResponse> { | ||
|
||
|
||
private String description; | ||
|
||
private String matchMode; | ||
|
||
@SerializedName("companyLimitCount") | ||
private CompanyLimitCount companyLimitCount; | ||
|
||
@SerializedName("personalLimitCount") | ||
private PersonalLimitCount personalLimitCount; | ||
|
||
private List<String> userGroupIds; | ||
|
||
private List<String> whitelist; | ||
|
||
private Long priority; | ||
|
||
private String personalLimitType; | ||
|
||
private String name; | ||
|
||
private String companyLimitType; | ||
|
||
private String status; | ||
public CreateRegistrationPolicyRequest() { | ||
super("csas", "2023-01-20", "CreateRegistrationPolicy"); | ||
setMethod(MethodType.POST); | ||
} | ||
|
||
public String getDescription() { | ||
return this.description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
if(description != null){ | ||
putBodyParameter("Description", description); | ||
} | ||
} | ||
|
||
public String getMatchMode() { | ||
return this.matchMode; | ||
} | ||
|
||
public void setMatchMode(String matchMode) { | ||
this.matchMode = matchMode; | ||
if(matchMode != null){ | ||
putBodyParameter("MatchMode", matchMode); | ||
} | ||
} | ||
|
||
public CompanyLimitCount getCompanyLimitCount() { | ||
return this.companyLimitCount; | ||
} | ||
|
||
public void setCompanyLimitCount(CompanyLimitCount companyLimitCount) { | ||
this.companyLimitCount = companyLimitCount; | ||
if (companyLimitCount != null) { | ||
putBodyParameter("CompanyLimitCount" , new Gson().toJson(companyLimitCount)); | ||
} | ||
} | ||
|
||
public PersonalLimitCount getPersonalLimitCount() { | ||
return this.personalLimitCount; | ||
} | ||
|
||
public void setPersonalLimitCount(PersonalLimitCount personalLimitCount) { | ||
this.personalLimitCount = personalLimitCount; | ||
if (personalLimitCount != null) { | ||
putBodyParameter("PersonalLimitCount" , new Gson().toJson(personalLimitCount)); | ||
} | ||
} | ||
|
||
public List<String> getUserGroupIds() { | ||
return this.userGroupIds; | ||
} | ||
|
||
public void setUserGroupIds(List<String> userGroupIds) { | ||
this.userGroupIds = userGroupIds; | ||
if (userGroupIds != null) { | ||
for (int depth1 = 0; depth1 < userGroupIds.size(); depth1++) { | ||
putBodyParameter("UserGroupIds." + (depth1 + 1) , userGroupIds.get(depth1)); | ||
} | ||
} | ||
} | ||
|
||
public List<String> getWhitelist() { | ||
return this.whitelist; | ||
} | ||
|
||
public void setWhitelist(List<String> whitelist) { | ||
this.whitelist = whitelist; | ||
if (whitelist != null) { | ||
for (int depth1 = 0; depth1 < whitelist.size(); depth1++) { | ||
putBodyParameter("Whitelist." + (depth1 + 1) , whitelist.get(depth1)); | ||
} | ||
} | ||
} | ||
|
||
public Long getPriority() { | ||
return this.priority; | ||
} | ||
|
||
public void setPriority(Long priority) { | ||
this.priority = priority; | ||
if(priority != null){ | ||
putBodyParameter("Priority", priority.toString()); | ||
} | ||
} | ||
|
||
public String getPersonalLimitType() { | ||
return this.personalLimitType; | ||
} | ||
|
||
public void setPersonalLimitType(String personalLimitType) { | ||
this.personalLimitType = personalLimitType; | ||
if(personalLimitType != null){ | ||
putBodyParameter("PersonalLimitType", personalLimitType); | ||
} | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
if(name != null){ | ||
putBodyParameter("Name", name); | ||
} | ||
} | ||
|
||
public String getCompanyLimitType() { | ||
return this.companyLimitType; | ||
} | ||
|
||
public void setCompanyLimitType(String companyLimitType) { | ||
this.companyLimitType = companyLimitType; | ||
if(companyLimitType != null){ | ||
putBodyParameter("CompanyLimitType", companyLimitType); | ||
} | ||
} | ||
|
||
public String getStatus() { | ||
return this.status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
if(status != null){ | ||
putBodyParameter("Status", status); | ||
} | ||
} | ||
|
||
public static class CompanyLimitCount { | ||
|
||
@SerializedName("All") | ||
private Integer all; | ||
|
||
@SerializedName("PC") | ||
private Integer pC; | ||
|
||
@SerializedName("Mobile") | ||
private Integer mobile; | ||
|
||
public Integer getAll() { | ||
return this.all; | ||
} | ||
|
||
public void setAll(Integer all) { | ||
this.all = all; | ||
} | ||
|
||
public Integer getPC() { | ||
return this.pC; | ||
} | ||
|
||
public void setPC(Integer pC) { | ||
this.pC = pC; | ||
} | ||
|
||
public Integer getMobile() { | ||
return this.mobile; | ||
} | ||
|
||
public void setMobile(Integer mobile) { | ||
this.mobile = mobile; | ||
} | ||
} | ||
|
||
public static class PersonalLimitCount { | ||
|
||
@SerializedName("All") | ||
private Integer all; | ||
|
||
@SerializedName("PC") | ||
private Integer pC; | ||
|
||
@SerializedName("Mobile") | ||
private Integer mobile; | ||
|
||
public Integer getAll() { | ||
return this.all; | ||
} | ||
|
||
public void setAll(Integer all) { | ||
this.all = all; | ||
} | ||
|
||
public Integer getPC() { | ||
return this.pC; | ||
} | ||
|
||
public void setPC(Integer pC) { | ||
this.pC = pC; | ||
} | ||
|
||
public Integer getMobile() { | ||
return this.mobile; | ||
} | ||
|
||
public void setMobile(Integer mobile) { | ||
this.mobile = mobile; | ||
} | ||
} | ||
|
||
@Override | ||
public Class<CreateRegistrationPolicyResponse> getResponseClass() { | ||
return CreateRegistrationPolicyResponse.class; | ||
} | ||
|
||
} |
Oops, something went wrong.