
com.tencentcloudapi.organization.v20210331.models.UserProvisioningsTask Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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.tencentcloudapi.organization.v20210331.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class UserProvisioningsTask extends AbstractModel {
/**
* Task ID.
*/
@SerializedName("TaskId")
@Expose
private String TaskId;
/**
* UIN of the authorized target account of the Tencent Cloud Organization.
*/
@SerializedName("TargetUin")
@Expose
private Long TargetUin;
/**
* Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
*/
@SerializedName("TargetType")
@Expose
private String TargetType;
/**
* Task type. StartProvisioning: Start the user synchronization; DeleteProvisioning: Delete the user synchronization.
*/
@SerializedName("TaskType")
@Expose
private String TaskType;
/**
* Task status. InProgress: The task is in progress; Failed: The task failed; Success: The task succeeded.
*/
@SerializedName("TaskStatus")
@Expose
private String TaskStatus;
/**
* User synchronization ID.
*/
@SerializedName("UserProvisioningId")
@Expose
private String UserProvisioningId;
/**
* Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-********). When the PrincipalType value is User, it is the CIC user ID (u-********).
*/
@SerializedName("PrincipalId")
@Expose
private String PrincipalId;
/**
* Identity type for the CAM user synchronization. Valid values: User: indicates that the identity for the CAM user synchronization is a CIC user; Group: indicates that the identity for the CAM user synchronization is a CIC user group.
*/
@SerializedName("PrincipalType")
@Expose
private String PrincipalType;
/**
* User name or user group name.
*/
@SerializedName("PrincipalName")
@Expose
private String PrincipalName;
/**
* Conflict policy. KeepBoth: Keep both; TakeOver: Replace.
*/
@SerializedName("DuplicationStrategy")
@Expose
private String DuplicationStrategy;
/**
* Deletion policy: Delete, Keep.
*/
@SerializedName("DeletionStrategy")
@Expose
private String DeletionStrategy;
/**
* Get Task ID.
* @return TaskId Task ID.
*/
public String getTaskId() {
return this.TaskId;
}
/**
* Set Task ID.
* @param TaskId Task ID.
*/
public void setTaskId(String TaskId) {
this.TaskId = TaskId;
}
/**
* Get UIN of the authorized target account of the Tencent Cloud Organization.
* @return TargetUin UIN of the authorized target account of the Tencent Cloud Organization.
*/
public Long getTargetUin() {
return this.TargetUin;
}
/**
* Set UIN of the authorized target account of the Tencent Cloud Organization.
* @param TargetUin UIN of the authorized target account of the Tencent Cloud Organization.
*/
public void setTargetUin(Long TargetUin) {
this.TargetUin = TargetUin;
}
/**
* Get Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
* @return TargetType Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
*/
public String getTargetType() {
return this.TargetType;
}
/**
* Set Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
* @param TargetType Type of the synchronized target account of the Tencent Cloud Organization. ManagerUin: admin account; MemberUin: member account.
*/
public void setTargetType(String TargetType) {
this.TargetType = TargetType;
}
/**
* Get Task type. StartProvisioning: Start the user synchronization; DeleteProvisioning: Delete the user synchronization.
* @return TaskType Task type. StartProvisioning: Start the user synchronization; DeleteProvisioning: Delete the user synchronization.
*/
public String getTaskType() {
return this.TaskType;
}
/**
* Set Task type. StartProvisioning: Start the user synchronization; DeleteProvisioning: Delete the user synchronization.
* @param TaskType Task type. StartProvisioning: Start the user synchronization; DeleteProvisioning: Delete the user synchronization.
*/
public void setTaskType(String TaskType) {
this.TaskType = TaskType;
}
/**
* Get Task status. InProgress: The task is in progress; Failed: The task failed; Success: The task succeeded.
* @return TaskStatus Task status. InProgress: The task is in progress; Failed: The task failed; Success: The task succeeded.
*/
public String getTaskStatus() {
return this.TaskStatus;
}
/**
* Set Task status. InProgress: The task is in progress; Failed: The task failed; Success: The task succeeded.
* @param TaskStatus Task status. InProgress: The task is in progress; Failed: The task failed; Success: The task succeeded.
*/
public void setTaskStatus(String TaskStatus) {
this.TaskStatus = TaskStatus;
}
/**
* Get User synchronization ID.
* @return UserProvisioningId User synchronization ID.
*/
public String getUserProvisioningId() {
return this.UserProvisioningId;
}
/**
* Set User synchronization ID.
* @param UserProvisioningId User synchronization ID.
*/
public void setUserProvisioningId(String UserProvisioningId) {
this.UserProvisioningId = UserProvisioningId;
}
/**
* Get Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-********). When the PrincipalType value is User, it is the CIC user ID (u-********).
* @return PrincipalId Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-********). When the PrincipalType value is User, it is the CIC user ID (u-********).
*/
public String getPrincipalId() {
return this.PrincipalId;
}
/**
* Set Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-********). When the PrincipalType value is User, it is the CIC user ID (u-********).
* @param PrincipalId Identity ID for the CAM user synchronization. Valid values: When the PrincipalType value is Group, it is the CIC user group ID (g-********). When the PrincipalType value is User, it is the CIC user ID (u-********).
*/
public void setPrincipalId(String PrincipalId) {
this.PrincipalId = PrincipalId;
}
/**
* Get Identity type for the CAM user synchronization. Valid values: User: indicates that the identity for the CAM user synchronization is a CIC user; Group: indicates that the identity for the CAM user synchronization is a CIC user group.
* @return PrincipalType Identity type for the CAM user synchronization. Valid values: User: indicates that the identity for the CAM user synchronization is a CIC user; Group: indicates that the identity for the CAM user synchronization is a CIC user group.
*/
public String getPrincipalType() {
return this.PrincipalType;
}
/**
* Set Identity type for the CAM user synchronization. Valid values: User: indicates that the identity for the CAM user synchronization is a CIC user; Group: indicates that the identity for the CAM user synchronization is a CIC user group.
* @param PrincipalType Identity type for the CAM user synchronization. Valid values: User: indicates that the identity for the CAM user synchronization is a CIC user; Group: indicates that the identity for the CAM user synchronization is a CIC user group.
*/
public void setPrincipalType(String PrincipalType) {
this.PrincipalType = PrincipalType;
}
/**
* Get User name or user group name.
* @return PrincipalName User name or user group name.
*/
public String getPrincipalName() {
return this.PrincipalName;
}
/**
* Set User name or user group name.
* @param PrincipalName User name or user group name.
*/
public void setPrincipalName(String PrincipalName) {
this.PrincipalName = PrincipalName;
}
/**
* Get Conflict policy. KeepBoth: Keep both; TakeOver: Replace.
* @return DuplicationStrategy Conflict policy. KeepBoth: Keep both; TakeOver: Replace.
*/
public String getDuplicationStrategy() {
return this.DuplicationStrategy;
}
/**
* Set Conflict policy. KeepBoth: Keep both; TakeOver: Replace.
* @param DuplicationStrategy Conflict policy. KeepBoth: Keep both; TakeOver: Replace.
*/
public void setDuplicationStrategy(String DuplicationStrategy) {
this.DuplicationStrategy = DuplicationStrategy;
}
/**
* Get Deletion policy: Delete, Keep.
* @return DeletionStrategy Deletion policy: Delete, Keep.
*/
public String getDeletionStrategy() {
return this.DeletionStrategy;
}
/**
* Set Deletion policy: Delete, Keep.
* @param DeletionStrategy Deletion policy: Delete, Keep.
*/
public void setDeletionStrategy(String DeletionStrategy) {
this.DeletionStrategy = DeletionStrategy;
}
public UserProvisioningsTask() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public UserProvisioningsTask(UserProvisioningsTask source) {
if (source.TaskId != null) {
this.TaskId = new String(source.TaskId);
}
if (source.TargetUin != null) {
this.TargetUin = new Long(source.TargetUin);
}
if (source.TargetType != null) {
this.TargetType = new String(source.TargetType);
}
if (source.TaskType != null) {
this.TaskType = new String(source.TaskType);
}
if (source.TaskStatus != null) {
this.TaskStatus = new String(source.TaskStatus);
}
if (source.UserProvisioningId != null) {
this.UserProvisioningId = new String(source.UserProvisioningId);
}
if (source.PrincipalId != null) {
this.PrincipalId = new String(source.PrincipalId);
}
if (source.PrincipalType != null) {
this.PrincipalType = new String(source.PrincipalType);
}
if (source.PrincipalName != null) {
this.PrincipalName = new String(source.PrincipalName);
}
if (source.DuplicationStrategy != null) {
this.DuplicationStrategy = new String(source.DuplicationStrategy);
}
if (source.DeletionStrategy != null) {
this.DeletionStrategy = new String(source.DeletionStrategy);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "TaskId", this.TaskId);
this.setParamSimple(map, prefix + "TargetUin", this.TargetUin);
this.setParamSimple(map, prefix + "TargetType", this.TargetType);
this.setParamSimple(map, prefix + "TaskType", this.TaskType);
this.setParamSimple(map, prefix + "TaskStatus", this.TaskStatus);
this.setParamSimple(map, prefix + "UserProvisioningId", this.UserProvisioningId);
this.setParamSimple(map, prefix + "PrincipalId", this.PrincipalId);
this.setParamSimple(map, prefix + "PrincipalType", this.PrincipalType);
this.setParamSimple(map, prefix + "PrincipalName", this.PrincipalName);
this.setParamSimple(map, prefix + "DuplicationStrategy", this.DuplicationStrategy);
this.setParamSimple(map, prefix + "DeletionStrategy", this.DeletionStrategy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy