All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.cam.v20190116.models.AttachEntityOfPolicy 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.cam.v20190116.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class AttachEntityOfPolicy extends AbstractModel{

    /**
    * Entity ID
    */
    @SerializedName("Id")
    @Expose
    private String Id;

    /**
    * Entity Name
Note: This field may return null, indicating that no valid value was found.
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * Entity UIN
Note: This field may return null, indicating that no valid value was found.
    */
    @SerializedName("Uin")
    @Expose
    private Long Uin;

    /**
    * Type of entity association. 1: Associate by users; 2: Associate by User Groups
    */
    @SerializedName("RelatedType")
    @Expose
    private Long RelatedType;

    /**
    * Policy association time
Note: this field may return `null`, indicating that no valid value was found.
    */
    @SerializedName("AttachmentTime")
    @Expose
    private String AttachmentTime;

    /**
     * Get Entity ID 
     * @return Id Entity ID
     */
    public String getId() {
        return this.Id;
    }

    /**
     * Set Entity ID
     * @param Id Entity ID
     */
    public void setId(String Id) {
        this.Id = Id;
    }

    /**
     * Get Entity Name
Note: This field may return null, indicating that no valid value was found. 
     * @return Name Entity Name
Note: This field may return null, indicating that no valid value was found.
     */
    public String getName() {
        return this.Name;
    }

    /**
     * Set Entity Name
Note: This field may return null, indicating that no valid value was found.
     * @param Name Entity Name
Note: This field may return null, indicating that no valid value was found.
     */
    public void setName(String Name) {
        this.Name = Name;
    }

    /**
     * Get Entity UIN
Note: This field may return null, indicating that no valid value was found. 
     * @return Uin Entity UIN
Note: This field may return null, indicating that no valid value was found.
     */
    public Long getUin() {
        return this.Uin;
    }

    /**
     * Set Entity UIN
Note: This field may return null, indicating that no valid value was found.
     * @param Uin Entity UIN
Note: This field may return null, indicating that no valid value was found.
     */
    public void setUin(Long Uin) {
        this.Uin = Uin;
    }

    /**
     * Get Type of entity association. 1: Associate by users; 2: Associate by User Groups 
     * @return RelatedType Type of entity association. 1: Associate by users; 2: Associate by User Groups
     */
    public Long getRelatedType() {
        return this.RelatedType;
    }

    /**
     * Set Type of entity association. 1: Associate by users; 2: Associate by User Groups
     * @param RelatedType Type of entity association. 1: Associate by users; 2: Associate by User Groups
     */
    public void setRelatedType(Long RelatedType) {
        this.RelatedType = RelatedType;
    }

    /**
     * Get Policy association time
Note: this field may return `null`, indicating that no valid value was found. 
     * @return AttachmentTime Policy association time
Note: this field may return `null`, indicating that no valid value was found.
     */
    public String getAttachmentTime() {
        return this.AttachmentTime;
    }

    /**
     * Set Policy association time
Note: this field may return `null`, indicating that no valid value was found.
     * @param AttachmentTime Policy association time
Note: this field may return `null`, indicating that no valid value was found.
     */
    public void setAttachmentTime(String AttachmentTime) {
        this.AttachmentTime = AttachmentTime;
    }

    public AttachEntityOfPolicy() {
    }

    /**
     * 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 AttachEntityOfPolicy(AttachEntityOfPolicy source) {
        if (source.Id != null) {
            this.Id = new String(source.Id);
        }
        if (source.Name != null) {
            this.Name = new String(source.Name);
        }
        if (source.Uin != null) {
            this.Uin = new Long(source.Uin);
        }
        if (source.RelatedType != null) {
            this.RelatedType = new Long(source.RelatedType);
        }
        if (source.AttachmentTime != null) {
            this.AttachmentTime = new String(source.AttachmentTime);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Id", this.Id);
        this.setParamSimple(map, prefix + "Name", this.Name);
        this.setParamSimple(map, prefix + "Uin", this.Uin);
        this.setParamSimple(map, prefix + "RelatedType", this.RelatedType);
        this.setParamSimple(map, prefix + "AttachmentTime", this.AttachmentTime);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy