com.aliyun.ros.cdk.sls.ApplyConfigToMachineGroupProps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ros-cdk-sls Show documentation
Show all versions of ros-cdk-sls Show documentation
Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com
package com.aliyun.ros.cdk.sls;
/**
* Properties for defining a `ALIYUN::SLS::ApplyConfigToMachineGroup`.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.30.0 (build adae23f)", date = "2021-06-21T09:47:44.110Z")
@software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.sls.$Module.class, fqn = "@alicloud/ros-cdk-sls.ApplyConfigToMachineGroupProps")
@software.amazon.jsii.Jsii.Proxy(ApplyConfigToMachineGroupProps.Jsii$Proxy.class)
public interface ApplyConfigToMachineGroupProps extends software.amazon.jsii.JsiiSerializable {
/**
* Property configName: Apply config to the config name.
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getConfigName() {
return null;
}
/**
* Property groupName: Apply config to the group name.
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getGroupName() {
return null;
}
/**
* Property projectName: Apply config to the project name.
*/
default @org.jetbrains.annotations.Nullable java.lang.Object getProjectName() {
return null;
}
/**
* @return a {@link Builder} of {@link ApplyConfigToMachineGroupProps}
*/
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link ApplyConfigToMachineGroupProps}
*/
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Object configName;
private java.lang.Object groupName;
private java.lang.Object projectName;
/**
* Sets the value of {@link ApplyConfigToMachineGroupProps#getConfigName}
* @param configName Property configName: Apply config to the config name.
* @return {@code this}
*/
public Builder configName(java.lang.String configName) {
this.configName = configName;
return this;
}
/**
* Sets the value of {@link ApplyConfigToMachineGroupProps#getConfigName}
* @param configName Property configName: Apply config to the config name.
* @return {@code this}
*/
public Builder configName(com.aliyun.ros.cdk.core.IResolvable configName) {
this.configName = configName;
return this;
}
/**
* Sets the value of {@link ApplyConfigToMachineGroupProps#getGroupName}
* @param groupName Property groupName: Apply config to the group name.
* @return {@code this}
*/
public Builder groupName(java.lang.String groupName) {
this.groupName = groupName;
return this;
}
/**
* Sets the value of {@link ApplyConfigToMachineGroupProps#getGroupName}
* @param groupName Property groupName: Apply config to the group name.
* @return {@code this}
*/
public Builder groupName(com.aliyun.ros.cdk.core.IResolvable groupName) {
this.groupName = groupName;
return this;
}
/**
* Sets the value of {@link ApplyConfigToMachineGroupProps#getProjectName}
* @param projectName Property projectName: Apply config to the project name.
* @return {@code this}
*/
public Builder projectName(java.lang.String projectName) {
this.projectName = projectName;
return this;
}
/**
* Sets the value of {@link ApplyConfigToMachineGroupProps#getProjectName}
* @param projectName Property projectName: Apply config to the project name.
* @return {@code this}
*/
public Builder projectName(com.aliyun.ros.cdk.core.IResolvable projectName) {
this.projectName = projectName;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link ApplyConfigToMachineGroupProps}
* @throws NullPointerException if any required attribute was not provided
*/
@Override
public ApplyConfigToMachineGroupProps build() {
return new Jsii$Proxy(configName, groupName, projectName);
}
}
/**
* An implementation for {@link ApplyConfigToMachineGroupProps}
*/
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ApplyConfigToMachineGroupProps {
private final java.lang.Object configName;
private final java.lang.Object groupName;
private final java.lang.Object projectName;
/**
* Constructor that initializes the object based on values retrieved from the JsiiObject.
* @param objRef Reference to the JSII managed object.
*/
protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
this.configName = software.amazon.jsii.Kernel.get(this, "configName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.groupName = software.amazon.jsii.Kernel.get(this, "groupName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.projectName = software.amazon.jsii.Kernel.get(this, "projectName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Object configName, final java.lang.Object groupName, final java.lang.Object projectName) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.configName = configName;
this.groupName = groupName;
this.projectName = projectName;
}
@Override
public final java.lang.Object getConfigName() {
return this.configName;
}
@Override
public final java.lang.Object getGroupName() {
return this.groupName;
}
@Override
public final java.lang.Object getProjectName() {
return this.projectName;
}
@Override
@software.amazon.jsii.Internal
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson() {
final com.fasterxml.jackson.databind.ObjectMapper om = software.amazon.jsii.JsiiObjectMapper.INSTANCE;
final com.fasterxml.jackson.databind.node.ObjectNode data = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
if (this.getConfigName() != null) {
data.set("configName", om.valueToTree(this.getConfigName()));
}
if (this.getGroupName() != null) {
data.set("groupName", om.valueToTree(this.getGroupName()));
}
if (this.getProjectName() != null) {
data.set("projectName", om.valueToTree(this.getProjectName()));
}
final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-sls.ApplyConfigToMachineGroupProps"));
struct.set("data", data);
final com.fasterxml.jackson.databind.node.ObjectNode obj = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
obj.set("$jsii.struct", struct);
return obj;
}
@Override
public final boolean equals(final Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ApplyConfigToMachineGroupProps.Jsii$Proxy that = (ApplyConfigToMachineGroupProps.Jsii$Proxy) o;
if (this.configName != null ? !this.configName.equals(that.configName) : that.configName != null) return false;
if (this.groupName != null ? !this.groupName.equals(that.groupName) : that.groupName != null) return false;
return this.projectName != null ? this.projectName.equals(that.projectName) : that.projectName == null;
}
@Override
public final int hashCode() {
int result = this.configName != null ? this.configName.hashCode() : 0;
result = 31 * result + (this.groupName != null ? this.groupName.hashCode() : 0);
result = 31 * result + (this.projectName != null ? this.projectName.hashCode() : 0);
return result;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy