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

com.pulumi.aws.iot.inputs.ThingGroupMembershipState 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.iot.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ThingGroupMembershipState extends com.pulumi.resources.ResourceArgs {

    public static final ThingGroupMembershipState Empty = new ThingGroupMembershipState();

    /**
     * Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
     * 
     */
    @Import(name="overrideDynamicGroup")
    private @Nullable Output overrideDynamicGroup;

    /**
     * @return Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
     * 
     */
    public Optional> overrideDynamicGroup() {
        return Optional.ofNullable(this.overrideDynamicGroup);
    }

    /**
     * The name of the group to which you are adding a thing.
     * 
     */
    @Import(name="thingGroupName")
    private @Nullable Output thingGroupName;

    /**
     * @return The name of the group to which you are adding a thing.
     * 
     */
    public Optional> thingGroupName() {
        return Optional.ofNullable(this.thingGroupName);
    }

    /**
     * The name of the thing to add to a group.
     * 
     */
    @Import(name="thingName")
    private @Nullable Output thingName;

    /**
     * @return The name of the thing to add to a group.
     * 
     */
    public Optional> thingName() {
        return Optional.ofNullable(this.thingName);
    }

    private ThingGroupMembershipState() {}

    private ThingGroupMembershipState(ThingGroupMembershipState $) {
        this.overrideDynamicGroup = $.overrideDynamicGroup;
        this.thingGroupName = $.thingGroupName;
        this.thingName = $.thingName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ThingGroupMembershipState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ThingGroupMembershipState $;

        public Builder() {
            $ = new ThingGroupMembershipState();
        }

        public Builder(ThingGroupMembershipState defaults) {
            $ = new ThingGroupMembershipState(Objects.requireNonNull(defaults));
        }

        /**
         * @param overrideDynamicGroup Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
         * 
         * @return builder
         * 
         */
        public Builder overrideDynamicGroup(@Nullable Output overrideDynamicGroup) {
            $.overrideDynamicGroup = overrideDynamicGroup;
            return this;
        }

        /**
         * @param overrideDynamicGroup Override dynamic thing groups with static thing groups when 10-group limit is reached. If a thing belongs to 10 thing groups, and one or more of those groups are dynamic thing groups, adding a thing to a static group removes the thing from the last dynamic group.
         * 
         * @return builder
         * 
         */
        public Builder overrideDynamicGroup(Boolean overrideDynamicGroup) {
            return overrideDynamicGroup(Output.of(overrideDynamicGroup));
        }

        /**
         * @param thingGroupName The name of the group to which you are adding a thing.
         * 
         * @return builder
         * 
         */
        public Builder thingGroupName(@Nullable Output thingGroupName) {
            $.thingGroupName = thingGroupName;
            return this;
        }

        /**
         * @param thingGroupName The name of the group to which you are adding a thing.
         * 
         * @return builder
         * 
         */
        public Builder thingGroupName(String thingGroupName) {
            return thingGroupName(Output.of(thingGroupName));
        }

        /**
         * @param thingName The name of the thing to add to a group.
         * 
         * @return builder
         * 
         */
        public Builder thingName(@Nullable Output thingName) {
            $.thingName = thingName;
            return this;
        }

        /**
         * @param thingName The name of the thing to add to a group.
         * 
         * @return builder
         * 
         */
        public Builder thingName(String thingName) {
            return thingName(Output.of(thingName));
        }

        public ThingGroupMembershipState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy