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

com.aliyun.sdk.service.ecs20140526.models.ImportSnapshotRequest Maven / Gradle / Ivy

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

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

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

ImportSnapshotRequest

*/ public class ImportSnapshotRequest extends Request { @Query @NameInMap("OssBucket") @Validation(required = true) private String ossBucket; @Query @NameInMap("OssObject") @Validation(required = true) private String ossObject; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("RegionId") @Validation(required = true) private String regionId; @Query @NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @Query @NameInMap("ResourceOwnerId") private Long resourceOwnerId; @Query @NameInMap("RoleName") private String roleName; @Query @NameInMap("SnapshotName") @Validation(required = true) private String snapshotName; private ImportSnapshotRequest(Builder builder) { super(builder); this.ossBucket = builder.ossBucket; this.ossObject = builder.ossObject; this.ownerId = builder.ownerId; this.regionId = builder.regionId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.roleName = builder.roleName; this.snapshotName = builder.snapshotName; } public static Builder builder() { return new Builder(); } public static ImportSnapshotRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return ossBucket */ public String getOssBucket() { return this.ossBucket; } /** * @return ossObject */ public String getOssObject() { return this.ossObject; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return roleName */ public String getRoleName() { return this.roleName; } /** * @return snapshotName */ public String getSnapshotName() { return this.snapshotName; } public static final class Builder extends Request.Builder { private String ossBucket; private String ossObject; private Long ownerId; private String regionId; private String resourceOwnerAccount; private Long resourceOwnerId; private String roleName; private String snapshotName; private Builder() { super(); } private Builder(ImportSnapshotRequest request) { super(request); this.ossBucket = request.ossBucket; this.ossObject = request.ossObject; this.ownerId = request.ownerId; this.regionId = request.regionId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.roleName = request.roleName; this.snapshotName = request.snapshotName; } /** * OssBucket. */ public Builder ossBucket(String ossBucket) { this.putQueryParameter("OssBucket", ossBucket); this.ossBucket = ossBucket; return this; } /** * OssObject. */ public Builder ossObject(String ossObject) { this.putQueryParameter("OssObject", ossObject); this.ossObject = ossObject; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * RegionId. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; 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; } /** * RoleName. */ public Builder roleName(String roleName) { this.putQueryParameter("RoleName", roleName); this.roleName = roleName; return this; } /** * SnapshotName. */ public Builder snapshotName(String snapshotName) { this.putQueryParameter("SnapshotName", snapshotName); this.snapshotName = snapshotName; return this; } @Override public ImportSnapshotRequest build() { return new ImportSnapshotRequest(this); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy