com.pulumi.aws.resourcegroups.ResourceArgs Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.resourcegroups;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class ResourceArgs extends com.pulumi.resources.ResourceArgs {
public static final ResourceArgs Empty = new ResourceArgs();
/**
* The name or the ARN of the resource group to add resources to.
*
* The following arguments are optional:
*
*/
@Import(name="groupArn", required=true)
private Output groupArn;
/**
* @return The name or the ARN of the resource group to add resources to.
*
* The following arguments are optional:
*
*/
public Output groupArn() {
return this.groupArn;
}
/**
* The ARN of the resource to be added to the group.
*
*/
@Import(name="resourceArn", required=true)
private Output resourceArn;
/**
* @return The ARN of the resource to be added to the group.
*
*/
public Output resourceArn() {
return this.resourceArn;
}
private ResourceArgs() {}
private ResourceArgs(ResourceArgs $) {
this.groupArn = $.groupArn;
this.resourceArn = $.resourceArn;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ResourceArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ResourceArgs $;
public Builder() {
$ = new ResourceArgs();
}
public Builder(ResourceArgs defaults) {
$ = new ResourceArgs(Objects.requireNonNull(defaults));
}
/**
* @param groupArn The name or the ARN of the resource group to add resources to.
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder groupArn(Output groupArn) {
$.groupArn = groupArn;
return this;
}
/**
* @param groupArn The name or the ARN of the resource group to add resources to.
*
* The following arguments are optional:
*
* @return builder
*
*/
public Builder groupArn(String groupArn) {
return groupArn(Output.of(groupArn));
}
/**
* @param resourceArn The ARN of the resource to be added to the group.
*
* @return builder
*
*/
public Builder resourceArn(Output resourceArn) {
$.resourceArn = resourceArn;
return this;
}
/**
* @param resourceArn The ARN of the resource to be added to the group.
*
* @return builder
*
*/
public Builder resourceArn(String resourceArn) {
return resourceArn(Output.of(resourceArn));
}
public ResourceArgs build() {
if ($.groupArn == null) {
throw new MissingRequiredPropertyException("ResourceArgs", "groupArn");
}
if ($.resourceArn == null) {
throw new MissingRequiredPropertyException("ResourceArgs", "resourceArn");
}
return $;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy