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

software.amazon.awscdk.services.iot.CfnThingProps Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.iot;

/**
 * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html
 */
@javax.annotation.Generated(value = "jsii-pacmak/0.7.15 (build e429c41)", date = "2019-03-05T00:07:04.264Z")
public interface CfnThingProps extends software.amazon.jsii.JsiiSerializable {
    /**
     * ``AWS::IoT::Thing.AttributePayload``
     * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-attributepayload
     */
    java.lang.Object getAttributePayload();
    /**
     * ``AWS::IoT::Thing.AttributePayload``
     * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-attributepayload
     */
    void setAttributePayload(final software.amazon.awscdk.Token value);
    /**
     * ``AWS::IoT::Thing.AttributePayload``
     * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-attributepayload
     */
    void setAttributePayload(final software.amazon.awscdk.services.iot.CfnThing.AttributePayloadProperty value);
    /**
     * ``AWS::IoT::Thing.ThingName``
     * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-thingname
     */
    java.lang.String getThingName();
    /**
     * ``AWS::IoT::Thing.ThingName``
     * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-thingname
     */
    void setThingName(final java.lang.String value);

    /**
     * @return a {@link Builder} of {@link CfnThingProps}
     */
    static Builder builder() {
        return new Builder();
    }

    /**
     * A builder for {@link CfnThingProps}
     */
    final class Builder {
        @javax.annotation.Nullable
        private java.lang.Object _attributePayload;
        @javax.annotation.Nullable
        private java.lang.String _thingName;

        /**
         * Sets the value of AttributePayload
         * @param value ``AWS::IoT::Thing.AttributePayload``
         * @return {@code this}
         */
        public Builder withAttributePayload(@javax.annotation.Nullable final software.amazon.awscdk.Token value) {
            this._attributePayload = value;
            return this;
        }
        /**
         * Sets the value of AttributePayload
         * @param value ``AWS::IoT::Thing.AttributePayload``
         * @return {@code this}
         */
        public Builder withAttributePayload(@javax.annotation.Nullable final software.amazon.awscdk.services.iot.CfnThing.AttributePayloadProperty value) {
            this._attributePayload = value;
            return this;
        }
        /**
         * Sets the value of ThingName
         * @param value ``AWS::IoT::Thing.ThingName``
         * @return {@code this}
         */
        public Builder withThingName(@javax.annotation.Nullable final java.lang.String value) {
            this._thingName = value;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link CfnThingProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        public CfnThingProps build() {
            return new CfnThingProps() {
                @javax.annotation.Nullable
                private java.lang.Object $attributePayload = _attributePayload;
                @javax.annotation.Nullable
                private java.lang.String $thingName = _thingName;

                @Override
                public java.lang.Object getAttributePayload() {
                    return this.$attributePayload;
                }

                @Override
                public void setAttributePayload(@javax.annotation.Nullable final software.amazon.awscdk.Token value) {
                    this.$attributePayload = value;
                }

                @Override
                public void setAttributePayload(@javax.annotation.Nullable final software.amazon.awscdk.services.iot.CfnThing.AttributePayloadProperty value) {
                    this.$attributePayload = value;
                }

                @Override
                public java.lang.String getThingName() {
                    return this.$thingName;
                }

                @Override
                public void setThingName(@javax.annotation.Nullable final java.lang.String value) {
                    this.$thingName = value;
                }

            };
        }
    }

    /**
     * A proxy class which represents a concrete javascript instance of this type.
     */
    final static class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.iot.CfnThingProps {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObject.InitializationMode mode) {
            super(mode);
        }

        /**
         * ``AWS::IoT::Thing.AttributePayload``
         * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-attributepayload
         */
        @Override
        @javax.annotation.Nullable
        public java.lang.Object getAttributePayload() {
            return this.jsiiGet("attributePayload", java.lang.Object.class);
        }

        /**
         * ``AWS::IoT::Thing.AttributePayload``
         * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-attributepayload
         */
        @Override
        public void setAttributePayload(@javax.annotation.Nullable final software.amazon.awscdk.Token value) {
            this.jsiiSet("attributePayload", value);
        }

        /**
         * ``AWS::IoT::Thing.AttributePayload``
         * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-attributepayload
         */
        @Override
        public void setAttributePayload(@javax.annotation.Nullable final software.amazon.awscdk.services.iot.CfnThing.AttributePayloadProperty value) {
            this.jsiiSet("attributePayload", value);
        }

        /**
         * ``AWS::IoT::Thing.ThingName``
         * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-thingname
         */
        @Override
        @javax.annotation.Nullable
        public java.lang.String getThingName() {
            return this.jsiiGet("thingName", java.lang.String.class);
        }

        /**
         * ``AWS::IoT::Thing.ThingName``
         * @link http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iot-thing.html#cfn-iot-thing-thingname
         */
        @Override
        public void setThingName(@javax.annotation.Nullable final java.lang.String value) {
            this.jsiiSet("thingName", value);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy