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

software.amazon.awscdk.services.mediapackage.CfnPackagingConfigurationProps Maven / Gradle / Ivy

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

/**
 * Properties for defining a `AWS::MediaPackage::PackagingConfiguration`.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.30.0 (build adae23f)", date = "2021-06-09T10:59:06.639Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfigurationProps")
@software.amazon.jsii.Jsii.Proxy(CfnPackagingConfigurationProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CfnPackagingConfigurationProps extends software.amazon.jsii.JsiiSerializable {

    /**
     * `AWS::MediaPackage::PackagingConfiguration.Id`.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getId();

    /**
     * `AWS::MediaPackage::PackagingConfiguration.PackagingGroupId`.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @org.jetbrains.annotations.NotNull java.lang.String getPackagingGroupId();

    /**
     * `AWS::MediaPackage::PackagingConfiguration.CmafPackage`.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Object getCmafPackage() {
        return null;
    }

    /**
     * `AWS::MediaPackage::PackagingConfiguration.DashPackage`.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Object getDashPackage() {
        return null;
    }

    /**
     * `AWS::MediaPackage::PackagingConfiguration.HlsPackage`.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Object getHlsPackage() {
        return null;
    }

    /**
     * `AWS::MediaPackage::PackagingConfiguration.MssPackage`.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.lang.Object getMssPackage() {
        return null;
    }

    /**
     * `AWS::MediaPackage::PackagingConfiguration.Tags`.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    default @org.jetbrains.annotations.Nullable java.util.List getTags() {
        return null;
    }

    /**
     * @return a {@link Builder} of {@link CfnPackagingConfigurationProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link CfnPackagingConfigurationProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static final class Builder implements software.amazon.jsii.Builder {
        private java.lang.String id;
        private java.lang.String packagingGroupId;
        private java.lang.Object cmafPackage;
        private java.lang.Object dashPackage;
        private java.lang.Object hlsPackage;
        private java.lang.Object mssPackage;
        private java.util.List tags;

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getId}
         * @param id `AWS::MediaPackage::PackagingConfiguration.Id`. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder id(java.lang.String id) {
            this.id = id;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getPackagingGroupId}
         * @param packagingGroupId `AWS::MediaPackage::PackagingConfiguration.PackagingGroupId`. This parameter is required.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder packagingGroupId(java.lang.String packagingGroupId) {
            this.packagingGroupId = packagingGroupId;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getCmafPackage}
         * @param cmafPackage `AWS::MediaPackage::PackagingConfiguration.CmafPackage`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder cmafPackage(software.amazon.awscdk.core.IResolvable cmafPackage) {
            this.cmafPackage = cmafPackage;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getCmafPackage}
         * @param cmafPackage `AWS::MediaPackage::PackagingConfiguration.CmafPackage`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder cmafPackage(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.CmafPackageProperty cmafPackage) {
            this.cmafPackage = cmafPackage;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getDashPackage}
         * @param dashPackage `AWS::MediaPackage::PackagingConfiguration.DashPackage`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder dashPackage(software.amazon.awscdk.core.IResolvable dashPackage) {
            this.dashPackage = dashPackage;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getDashPackage}
         * @param dashPackage `AWS::MediaPackage::PackagingConfiguration.DashPackage`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder dashPackage(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.DashPackageProperty dashPackage) {
            this.dashPackage = dashPackage;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getHlsPackage}
         * @param hlsPackage `AWS::MediaPackage::PackagingConfiguration.HlsPackage`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder hlsPackage(software.amazon.awscdk.core.IResolvable hlsPackage) {
            this.hlsPackage = hlsPackage;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getHlsPackage}
         * @param hlsPackage `AWS::MediaPackage::PackagingConfiguration.HlsPackage`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder hlsPackage(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.HlsPackageProperty hlsPackage) {
            this.hlsPackage = hlsPackage;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getMssPackage}
         * @param mssPackage `AWS::MediaPackage::PackagingConfiguration.MssPackage`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder mssPackage(software.amazon.awscdk.core.IResolvable mssPackage) {
            this.mssPackage = mssPackage;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getMssPackage}
         * @param mssPackage `AWS::MediaPackage::PackagingConfiguration.MssPackage`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder mssPackage(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.MssPackageProperty mssPackage) {
            this.mssPackage = mssPackage;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingConfigurationProps#getTags}
         * @param tags `AWS::MediaPackage::PackagingConfiguration.Tags`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @SuppressWarnings("unchecked")
        public Builder tags(java.util.List tags) {
            this.tags = (java.util.List)tags;
            return this;
        }

        /**
         * Builds the configured instance.
         * @return a new instance of {@link CfnPackagingConfigurationProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @Override
        public CfnPackagingConfigurationProps build() {
            return new Jsii$Proxy(id, packagingGroupId, cmafPackage, dashPackage, hlsPackage, mssPackage, tags);
        }
    }

    /**
     * An implementation for {@link CfnPackagingConfigurationProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnPackagingConfigurationProps {
        private final java.lang.String id;
        private final java.lang.String packagingGroupId;
        private final java.lang.Object cmafPackage;
        private final java.lang.Object dashPackage;
        private final java.lang.Object hlsPackage;
        private final java.lang.Object mssPackage;
        private final java.util.List tags;

        /**
         * 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.id = software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.packagingGroupId = software.amazon.jsii.Kernel.get(this, "packagingGroupId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
            this.cmafPackage = software.amazon.jsii.Kernel.get(this, "cmafPackage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.dashPackage = software.amazon.jsii.Kernel.get(this, "dashPackage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.hlsPackage = software.amazon.jsii.Kernel.get(this, "hlsPackage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.mssPackage = software.amazon.jsii.Kernel.get(this, "mssPackage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.tags = software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.CfnTag.class)));
        }

        /**
         * Constructor that initializes the object based on literal property values passed by the {@link Builder}.
         */
        @SuppressWarnings("unchecked")
        protected Jsii$Proxy(final java.lang.String id, final java.lang.String packagingGroupId, final java.lang.Object cmafPackage, final java.lang.Object dashPackage, final java.lang.Object hlsPackage, final java.lang.Object mssPackage, final java.util.List tags) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.id = java.util.Objects.requireNonNull(id, "id is required");
            this.packagingGroupId = java.util.Objects.requireNonNull(packagingGroupId, "packagingGroupId is required");
            this.cmafPackage = cmafPackage;
            this.dashPackage = dashPackage;
            this.hlsPackage = hlsPackage;
            this.mssPackage = mssPackage;
            this.tags = (java.util.List)tags;
        }

        @Override
        public final java.lang.String getId() {
            return this.id;
        }

        @Override
        public final java.lang.String getPackagingGroupId() {
            return this.packagingGroupId;
        }

        @Override
        public final java.lang.Object getCmafPackage() {
            return this.cmafPackage;
        }

        @Override
        public final java.lang.Object getDashPackage() {
            return this.dashPackage;
        }

        @Override
        public final java.lang.Object getHlsPackage() {
            return this.hlsPackage;
        }

        @Override
        public final java.lang.Object getMssPackage() {
            return this.mssPackage;
        }

        @Override
        public final java.util.List getTags() {
            return this.tags;
        }

        @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("id", om.valueToTree(this.getId()));
            data.set("packagingGroupId", om.valueToTree(this.getPackagingGroupId()));
            if (this.getCmafPackage() != null) {
                data.set("cmafPackage", om.valueToTree(this.getCmafPackage()));
            }
            if (this.getDashPackage() != null) {
                data.set("dashPackage", om.valueToTree(this.getDashPackage()));
            }
            if (this.getHlsPackage() != null) {
                data.set("hlsPackage", om.valueToTree(this.getHlsPackage()));
            }
            if (this.getMssPackage() != null) {
                data.set("mssPackage", om.valueToTree(this.getMssPackage()));
            }
            if (this.getTags() != null) {
                data.set("tags", om.valueToTree(this.getTags()));
            }

            final com.fasterxml.jackson.databind.node.ObjectNode struct = com.fasterxml.jackson.databind.node.JsonNodeFactory.instance.objectNode();
            struct.set("fqn", om.valueToTree("@aws-cdk/aws-mediapackage.CfnPackagingConfigurationProps"));
            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;

            CfnPackagingConfigurationProps.Jsii$Proxy that = (CfnPackagingConfigurationProps.Jsii$Proxy) o;

            if (!id.equals(that.id)) return false;
            if (!packagingGroupId.equals(that.packagingGroupId)) return false;
            if (this.cmafPackage != null ? !this.cmafPackage.equals(that.cmafPackage) : that.cmafPackage != null) return false;
            if (this.dashPackage != null ? !this.dashPackage.equals(that.dashPackage) : that.dashPackage != null) return false;
            if (this.hlsPackage != null ? !this.hlsPackage.equals(that.hlsPackage) : that.hlsPackage != null) return false;
            if (this.mssPackage != null ? !this.mssPackage.equals(that.mssPackage) : that.mssPackage != null) return false;
            return this.tags != null ? this.tags.equals(that.tags) : that.tags == null;
        }

        @Override
        public final int hashCode() {
            int result = this.id.hashCode();
            result = 31 * result + (this.packagingGroupId.hashCode());
            result = 31 * result + (this.cmafPackage != null ? this.cmafPackage.hashCode() : 0);
            result = 31 * result + (this.dashPackage != null ? this.dashPackage.hashCode() : 0);
            result = 31 * result + (this.hlsPackage != null ? this.hlsPackage.hashCode() : 0);
            result = 31 * result + (this.mssPackage != null ? this.mssPackage.hashCode() : 0);
            result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy