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

com.aliyun.sdk.service.cs20151215.models.DescribeResourcesDeleteProtectionRequest Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cs20151215.models;

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

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

DescribeResourcesDeleteProtectionRequest

*/ public class DescribeResourcesDeleteProtectionRequest extends Request { @com.aliyun.core.annotation.Path @com.aliyun.core.annotation.NameInMap("ClusterId") @com.aliyun.core.annotation.Validation(required = true) private String clusterId; @com.aliyun.core.annotation.Path @com.aliyun.core.annotation.NameInMap("ResourceType") @com.aliyun.core.annotation.Validation(required = true) private String resourceType; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("namespace") private String namespace; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("resources") private String resources; private DescribeResourcesDeleteProtectionRequest(Builder builder) { super(builder); this.clusterId = builder.clusterId; this.resourceType = builder.resourceType; this.namespace = builder.namespace; this.resources = builder.resources; } public static Builder builder() { return new Builder(); } public static DescribeResourcesDeleteProtectionRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return resourceType */ public String getResourceType() { return this.resourceType; } /** * @return namespace */ public String getNamespace() { return this.namespace; } /** * @return resources */ public String getResources() { return this.resources; } public static final class Builder extends Request.Builder { private String clusterId; private String resourceType; private String namespace; private String resources; private Builder() { super(); } private Builder(DescribeResourcesDeleteProtectionRequest request) { super(request); this.clusterId = request.clusterId; this.resourceType = request.resourceType; this.namespace = request.namespace; this.resources = request.resources; } /** * The ID of the cluster. */ public Builder clusterId(String clusterId) { this.putPathParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * The type of resource for which deletion protection is enabled or disabled. You can specify namespaces or Services. */ public Builder resourceType(String resourceType) { this.putPathParameter("ResourceType", resourceType); this.resourceType = resourceType; return this; } /** * The namespace to which the resource belongs. */ public Builder namespace(String namespace) { this.putQueryParameter("namespace", namespace); this.namespace = namespace; return this; } /** * The name of the resource that you want to query. Separate multiple resource names with commas (,). */ public Builder resources(String resources) { this.putQueryParameter("resources", resources); this.resources = resources; return this; } @Override public DescribeResourcesDeleteProtectionRequest build() { return new DescribeResourcesDeleteProtectionRequest(this); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy