com.aliyun.eventbridge.models.CreateRuleRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventbridge-client Show documentation
Show all versions of eventbridge-client Show documentation
Alibaba Cloud eventbridge SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.eventbridge.models;
import com.aliyun.tea.*;
/**
* The request of create an EventBus rule on Aliyun
*/
public class CreateRuleRequest extends TeaModel {
@NameInMap("EventBusName")
@Validation(required = true, maxLength = 127, minLength = 1)
public String eventBusName;
@NameInMap("Description")
public String description;
@NameInMap("RuleName")
@Validation(required = true)
public String ruleName;
@NameInMap("Status")
public String status;
@NameInMap("FilterPattern")
public String filterPattern;
@NameInMap("Targets")
@Validation(required = true)
public java.util.List targets;
@NameInMap("Tags")
public java.util.Map tags;
public static CreateRuleRequest build(java.util.Map map) {
CreateRuleRequest self = new CreateRuleRequest();
return TeaModel.build(map, self);
}
public CreateRuleRequest setEventBusName(String eventBusName) {
this.eventBusName = eventBusName;
return this;
}
public String getEventBusName() {
return this.eventBusName;
}
public CreateRuleRequest setDescription(String description) {
this.description = description;
return this;
}
public String getDescription() {
return this.description;
}
public CreateRuleRequest setRuleName(String ruleName) {
this.ruleName = ruleName;
return this;
}
public String getRuleName() {
return this.ruleName;
}
public CreateRuleRequest setStatus(String status) {
this.status = status;
return this;
}
public String getStatus() {
return this.status;
}
public CreateRuleRequest setFilterPattern(String filterPattern) {
this.filterPattern = filterPattern;
return this;
}
public String getFilterPattern() {
return this.filterPattern;
}
public CreateRuleRequest setTargets(java.util.List targets) {
this.targets = targets;
return this;
}
public java.util.List getTargets() {
return this.targets;
}
public CreateRuleRequest setTags(java.util.Map tags) {
this.tags = tags;
return this;
}
public java.util.Map getTags() {
return this.tags;
}
}