com.aliyun.sdk.service.iot20180120.models.CreateSceneRuleRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-iot20180120 Show documentation
Show all versions of alibabacloud-iot20180120 Show documentation
Alibaba Cloud Iot (20180120) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.iot20180120.models;
import com.aliyun.core.annotation.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link CreateSceneRuleRequest} extends {@link RequestModel}
*
* CreateSceneRuleRequest
*/
public class CreateSceneRuleRequest extends Request {
@Query
@NameInMap("IotInstanceId")
private String iotInstanceId;
@Query
@NameInMap("RuleContent")
private String ruleContent;
@Query
@NameInMap("RuleDescription")
private String ruleDescription;
@Query
@NameInMap("RuleName")
@Validation(required = true)
private String ruleName;
private CreateSceneRuleRequest(Builder builder) {
super(builder);
this.iotInstanceId = builder.iotInstanceId;
this.ruleContent = builder.ruleContent;
this.ruleDescription = builder.ruleDescription;
this.ruleName = builder.ruleName;
}
public static Builder builder() {
return new Builder();
}
public static CreateSceneRuleRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return iotInstanceId
*/
public String getIotInstanceId() {
return this.iotInstanceId;
}
/**
* @return ruleContent
*/
public String getRuleContent() {
return this.ruleContent;
}
/**
* @return ruleDescription
*/
public String getRuleDescription() {
return this.ruleDescription;
}
/**
* @return ruleName
*/
public String getRuleName() {
return this.ruleName;
}
public static final class Builder extends Request.Builder {
private String iotInstanceId;
private String ruleContent;
private String ruleDescription;
private String ruleName;
private Builder() {
super();
}
private Builder(CreateSceneRuleRequest request) {
super(request);
this.iotInstanceId = request.iotInstanceId;
this.ruleContent = request.ruleContent;
this.ruleDescription = request.ruleDescription;
this.ruleName = request.ruleName;
}
/**
* IotInstanceId.
*/
public Builder iotInstanceId(String iotInstanceId) {
this.putQueryParameter("IotInstanceId", iotInstanceId);
this.iotInstanceId = iotInstanceId;
return this;
}
/**
* RuleContent.
*/
public Builder ruleContent(String ruleContent) {
this.putQueryParameter("RuleContent", ruleContent);
this.ruleContent = ruleContent;
return this;
}
/**
* RuleDescription.
*/
public Builder ruleDescription(String ruleDescription) {
this.putQueryParameter("RuleDescription", ruleDescription);
this.ruleDescription = ruleDescription;
return this;
}
/**
* RuleName.
*/
public Builder ruleName(String ruleName) {
this.putQueryParameter("RuleName", ruleName);
this.ruleName = ruleName;
return this;
}
@Override
public CreateSceneRuleRequest build() {
return new CreateSceneRuleRequest(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy