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

com.aliyun.sdk.service.cs20151215.models.DescribeTriggerResponse 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 DescribeTriggerResponse} extends {@link TeaModel}
 *
 * 

DescribeTriggerResponse

*/ public class DescribeTriggerResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map < String, String > headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private java.util.List < DescribeTriggerResponseBody> body; private DescribeTriggerResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeTriggerResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map < String, String > getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public java.util.List < DescribeTriggerResponseBody> getBody() { return this.body; } public interface Builder extends Response.Builder { Builder headers(java.util.Map < String, String > headers); Builder statusCode(Integer statusCode); Builder body(java.util.List < DescribeTriggerResponseBody> body); @Override DescribeTriggerResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl implements Builder { private java.util.Map < String, String > headers; private Integer statusCode; private java.util.List < DescribeTriggerResponseBody> body; private BuilderImpl() { super(); } private BuilderImpl(DescribeTriggerResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map < String, String > headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(java.util.List < DescribeTriggerResponseBody> body) { this.body = body; return this; } @Override public DescribeTriggerResponse build() { return new DescribeTriggerResponse(this); } } public static class DescribeTriggerResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("id") private String id; @com.aliyun.core.annotation.NameInMap("name") private String name; @com.aliyun.core.annotation.NameInMap("cluster_id") private String clusterId; @com.aliyun.core.annotation.NameInMap("project_id") private String projectId; @com.aliyun.core.annotation.NameInMap("type") private String type; @com.aliyun.core.annotation.NameInMap("action") private String action; @com.aliyun.core.annotation.NameInMap("token") private String token; private DescribeTriggerResponseBody(Builder builder) { this.id = builder.id; this.name = builder.name; this.clusterId = builder.clusterId; this.projectId = builder.projectId; this.type = builder.type; this.action = builder.action; this.token = builder.token; } public static Builder builder() { return new Builder(); } public static DescribeTriggerResponseBody create() { return builder().build(); } /** * @return id */ public String getId() { return this.id; } /** * @return name */ public String getName() { return this.name; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return projectId */ public String getProjectId() { return this.projectId; } /** * @return type */ public String getType() { return this.type; } /** * @return action */ public String getAction() { return this.action; } /** * @return token */ public String getToken() { return this.token; } public static final class Builder { private String id; private String name; private String clusterId; private String projectId; private String type; private String action; private String token; /** * The ID of the trigger. */ public Builder id(String id) { this.id = id; return this; } /** * The name of the trigger. */ public Builder name(String name) { this.name = name; return this; } /** * The ID of the associated cluster. */ public Builder clusterId(String clusterId) { this.clusterId = clusterId; return this; } /** * The name of the project. *

* * The name consists of the namespace where the application is deployed and the name of the application. The format is `${namespace}/${name}`. Example: default/test-app. */ public Builder projectId(String projectId) { this.projectId = projectId; return this; } /** * The type of trigger. *

* * Valid values: * * * `deployment`: performs actions on Deployments. * * `application`: performs actions on applications that are deployed in Application Center. * * Default value: `deployment`. */ public Builder type(String type) { this.type = type; return this; } /** * The action that the trigger performs. The value is set to redeploy. *

* * `redeploy`: redeploys the resource specified by project_id. */ public Builder action(String action) { this.action = action; return this; } /** * The token information. */ public Builder token(String token) { this.token = token; return this; } public DescribeTriggerResponseBody build() { return new DescribeTriggerResponseBody(this); } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy