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

com.aliyun.sdk.service.cbn20170912.models.AttachCenChildInstanceRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cbn20170912.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link AttachCenChildInstanceRequest} extends {@link RequestModel}
 *
 * 

AttachCenChildInstanceRequest

*/ public class AttachCenChildInstanceRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("CenId") @com.aliyun.core.annotation.Validation(required = true) private String cenId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChildInstanceId") @com.aliyun.core.annotation.Validation(required = true) private String childInstanceId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChildInstanceOwnerId") private Long childInstanceOwnerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChildInstanceRegionId") @com.aliyun.core.annotation.Validation(required = true) private String childInstanceRegionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ChildInstanceType") @com.aliyun.core.annotation.Validation(required = true) private String childInstanceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerAccount") private String ownerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private Long ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceOwnerId") private Long resourceOwnerId; private AttachCenChildInstanceRequest(Builder builder) { super(builder); this.cenId = builder.cenId; this.childInstanceId = builder.childInstanceId; this.childInstanceOwnerId = builder.childInstanceOwnerId; this.childInstanceRegionId = builder.childInstanceRegionId; this.childInstanceType = builder.childInstanceType; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; } public static Builder builder() { return new Builder(); } public static AttachCenChildInstanceRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return cenId */ public String getCenId() { return this.cenId; } /** * @return childInstanceId */ public String getChildInstanceId() { return this.childInstanceId; } /** * @return childInstanceOwnerId */ public Long getChildInstanceOwnerId() { return this.childInstanceOwnerId; } /** * @return childInstanceRegionId */ public String getChildInstanceRegionId() { return this.childInstanceRegionId; } /** * @return childInstanceType */ public String getChildInstanceType() { return this.childInstanceType; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } public static final class Builder extends Request.Builder { private String cenId; private String childInstanceId; private Long childInstanceOwnerId; private String childInstanceRegionId; private String childInstanceType; private String ownerAccount; private Long ownerId; private String resourceOwnerAccount; private Long resourceOwnerId; private Builder() { super(); } private Builder(AttachCenChildInstanceRequest request) { super(request); this.cenId = request.cenId; this.childInstanceId = request.childInstanceId; this.childInstanceOwnerId = request.childInstanceOwnerId; this.childInstanceRegionId = request.childInstanceRegionId; this.childInstanceType = request.childInstanceType; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; } /** * The ID of the CEN instance. */ public Builder cenId(String cenId) { this.putQueryParameter("CenId", cenId); this.cenId = cenId; return this; } /** * The ID of the network instance that you want to attach to the CEN instance. */ public Builder childInstanceId(String childInstanceId) { this.putQueryParameter("ChildInstanceId", childInstanceId); this.childInstanceId = childInstanceId; return this; } /** * The ID of the Alibaba Cloud account to which the network instance belongs. *

* * > If the network instance and the CEN instance belong to different Alibaba Cloud accounts, this parameter is required. */ public Builder childInstanceOwnerId(Long childInstanceOwnerId) { this.putQueryParameter("ChildInstanceOwnerId", childInstanceOwnerId); this.childInstanceOwnerId = childInstanceOwnerId; return this; } /** * The ID of the region where the network instance is deployed. *

* * You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list. */ public Builder childInstanceRegionId(String childInstanceRegionId) { this.putQueryParameter("ChildInstanceRegionId", childInstanceRegionId); this.childInstanceRegionId = childInstanceRegionId; return this; } /** * The type of the network instance. Valid values: *

* * * **VPC**: VPC * * **VBR**: VBR * * **CCN**: CCN instance */ public Builder childInstanceType(String childInstanceType) { this.putQueryParameter("ChildInstanceType", childInstanceType); this.childInstanceType = childInstanceType; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } @Override public AttachCenChildInstanceRequest build() { return new AttachCenChildInstanceRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy