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

com.aliyun.ros.cdk.ram.RosGroupProps Maven / Gradle / Ivy

Go to download

Aliyun SDK Copyright (C) Alibaba Cloud Computing All rights reserved. http://www.aliyun.com

The newest version!
package com.aliyun.ros.cdk.ram;

/**
 * Properties for defining a RosGroup.
 * 

* See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ram-group */ @javax.annotation.Generated(value = "jsii-pacmak/1.85.0 (build 08ee592)", date = "2024-12-13T06:45:10.839Z") @software.amazon.jsii.Jsii(module = com.aliyun.ros.cdk.ram.$Module.class, fqn = "@alicloud/ros-cdk-ram.RosGroupProps") @software.amazon.jsii.Jsii.Proxy(RosGroupProps.Jsii$Proxy.class) public interface RosGroupProps extends software.amazon.jsii.JsiiSerializable { /** */ @org.jetbrains.annotations.NotNull java.lang.Object getGroupName(); /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getComments() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getDeletionForce() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getIgnoreExisting() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getPolicies() { return null; } /** */ default @org.jetbrains.annotations.Nullable java.lang.Object getPolicyAttachments() { return null; } /** * @return a {@link Builder} of {@link RosGroupProps} */ static Builder builder() { return new Builder(); } /** * A builder for {@link RosGroupProps} */ public static final class Builder implements software.amazon.jsii.Builder { java.lang.Object groupName; java.lang.Object comments; java.lang.Object deletionForce; java.lang.Object ignoreExisting; java.lang.Object policies; java.lang.Object policyAttachments; /** * Sets the value of {@link RosGroupProps#getGroupName} * @param groupName the value to be set. This parameter is required. * @return {@code this} */ public Builder groupName(java.lang.String groupName) { this.groupName = groupName; return this; } /** * Sets the value of {@link RosGroupProps#getGroupName} * @param groupName the value to be set. This parameter is required. * @return {@code this} */ public Builder groupName(com.aliyun.ros.cdk.core.IResolvable groupName) { this.groupName = groupName; return this; } /** * Sets the value of {@link RosGroupProps#getComments} * @param comments the value to be set. * @return {@code this} */ public Builder comments(java.lang.String comments) { this.comments = comments; return this; } /** * Sets the value of {@link RosGroupProps#getComments} * @param comments the value to be set. * @return {@code this} */ public Builder comments(com.aliyun.ros.cdk.core.IResolvable comments) { this.comments = comments; return this; } /** * Sets the value of {@link RosGroupProps#getDeletionForce} * @param deletionForce the value to be set. * @return {@code this} */ public Builder deletionForce(java.lang.Boolean deletionForce) { this.deletionForce = deletionForce; return this; } /** * Sets the value of {@link RosGroupProps#getDeletionForce} * @param deletionForce the value to be set. * @return {@code this} */ public Builder deletionForce(com.aliyun.ros.cdk.core.IResolvable deletionForce) { this.deletionForce = deletionForce; return this; } /** * Sets the value of {@link RosGroupProps#getIgnoreExisting} * @param ignoreExisting the value to be set. * @return {@code this} */ public Builder ignoreExisting(java.lang.Boolean ignoreExisting) { this.ignoreExisting = ignoreExisting; return this; } /** * Sets the value of {@link RosGroupProps#getIgnoreExisting} * @param ignoreExisting the value to be set. * @return {@code this} */ public Builder ignoreExisting(com.aliyun.ros.cdk.core.IResolvable ignoreExisting) { this.ignoreExisting = ignoreExisting; return this; } /** * Sets the value of {@link RosGroupProps#getPolicies} * @param policies the value to be set. * @return {@code this} */ public Builder policies(com.aliyun.ros.cdk.core.IResolvable policies) { this.policies = policies; return this; } /** * Sets the value of {@link RosGroupProps#getPolicies} * @param policies the value to be set. * @return {@code this} */ public Builder policies(java.util.List policies) { this.policies = policies; return this; } /** * Sets the value of {@link RosGroupProps#getPolicyAttachments} * @param policyAttachments the value to be set. * @return {@code this} */ public Builder policyAttachments(com.aliyun.ros.cdk.core.IResolvable policyAttachments) { this.policyAttachments = policyAttachments; return this; } /** * Sets the value of {@link RosGroupProps#getPolicyAttachments} * @param policyAttachments the value to be set. * @return {@code this} */ public Builder policyAttachments(com.aliyun.ros.cdk.ram.RosGroup.PolicyAttachmentsProperty policyAttachments) { this.policyAttachments = policyAttachments; return this; } /** * Builds the configured instance. * @return a new instance of {@link RosGroupProps} * @throws NullPointerException if any required attribute was not provided */ @Override public RosGroupProps build() { return new Jsii$Proxy(this); } } /** * An implementation for {@link RosGroupProps} */ @software.amazon.jsii.Internal final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements RosGroupProps { private final java.lang.Object groupName; private final java.lang.Object comments; private final java.lang.Object deletionForce; private final java.lang.Object ignoreExisting; private final java.lang.Object policies; private final java.lang.Object policyAttachments; /** * 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.groupName = software.amazon.jsii.Kernel.get(this, "groupName", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.comments = software.amazon.jsii.Kernel.get(this, "comments", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.deletionForce = software.amazon.jsii.Kernel.get(this, "deletionForce", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.ignoreExisting = software.amazon.jsii.Kernel.get(this, "ignoreExisting", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.policies = software.amazon.jsii.Kernel.get(this, "policies", software.amazon.jsii.NativeType.forClass(java.lang.Object.class)); this.policyAttachments = software.amazon.jsii.Kernel.get(this, "policyAttachments", 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 Builder builder) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); this.groupName = java.util.Objects.requireNonNull(builder.groupName, "groupName is required"); this.comments = builder.comments; this.deletionForce = builder.deletionForce; this.ignoreExisting = builder.ignoreExisting; this.policies = builder.policies; this.policyAttachments = builder.policyAttachments; } @Override public final java.lang.Object getGroupName() { return this.groupName; } @Override public final java.lang.Object getComments() { return this.comments; } @Override public final java.lang.Object getDeletionForce() { return this.deletionForce; } @Override public final java.lang.Object getIgnoreExisting() { return this.ignoreExisting; } @Override public final java.lang.Object getPolicies() { return this.policies; } @Override public final java.lang.Object getPolicyAttachments() { return this.policyAttachments; } @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(); data.set("groupName", om.valueToTree(this.getGroupName())); if (this.getComments() != null) { data.set("comments", om.valueToTree(this.getComments())); } if (this.getDeletionForce() != null) { data.set("deletionForce", om.valueToTree(this.getDeletionForce())); } if (this.getIgnoreExisting() != null) { data.set("ignoreExisting", om.valueToTree(this.getIgnoreExisting())); } if (this.getPolicies() != null) { data.set("policies", om.valueToTree(this.getPolicies())); } if (this.getPolicyAttachments() != null) { data.set("policyAttachments", om.valueToTree(this.getPolicyAttachments())); } final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode(); struct.set("fqn", om.valueToTree("@alicloud/ros-cdk-ram.RosGroupProps")); 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; RosGroupProps.Jsii$Proxy that = (RosGroupProps.Jsii$Proxy) o; if (!groupName.equals(that.groupName)) return false; if (this.comments != null ? !this.comments.equals(that.comments) : that.comments != null) return false; if (this.deletionForce != null ? !this.deletionForce.equals(that.deletionForce) : that.deletionForce != null) return false; if (this.ignoreExisting != null ? !this.ignoreExisting.equals(that.ignoreExisting) : that.ignoreExisting != null) return false; if (this.policies != null ? !this.policies.equals(that.policies) : that.policies != null) return false; return this.policyAttachments != null ? this.policyAttachments.equals(that.policyAttachments) : that.policyAttachments == null; } @Override public final int hashCode() { int result = this.groupName.hashCode(); result = 31 * result + (this.comments != null ? this.comments.hashCode() : 0); result = 31 * result + (this.deletionForce != null ? this.deletionForce.hashCode() : 0); result = 31 * result + (this.ignoreExisting != null ? this.ignoreExisting.hashCode() : 0); result = 31 * result + (this.policies != null ? this.policies.hashCode() : 0); result = 31 * result + (this.policyAttachments != null ? this.policyAttachments.hashCode() : 0); return result; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy