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

software.amazon.awscdk.services.mediapackage.CfnPackagingGroupProps 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::PackagingGroup`.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.30.0 (build adae23f)", date = "2021-06-09T10:59:06.640Z")
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingGroupProps")
@software.amazon.jsii.Jsii.Proxy(CfnPackagingGroupProps.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public interface CfnPackagingGroupProps extends software.amazon.jsii.JsiiSerializable {

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

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

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

    /**
     * `AWS::MediaPackage::PackagingGroup.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 CfnPackagingGroupProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    static Builder builder() {
        return new Builder();
    }
    /**
     * A builder for {@link CfnPackagingGroupProps}
     */
    @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.Object authorization;
        private java.lang.Object egressAccessLogs;
        private java.util.List tags;

        /**
         * Sets the value of {@link CfnPackagingGroupProps#getId}
         * @param id `AWS::MediaPackage::PackagingGroup.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 CfnPackagingGroupProps#getAuthorization}
         * @param authorization `AWS::MediaPackage::PackagingGroup.Authorization`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder authorization(software.amazon.awscdk.services.mediapackage.CfnPackagingGroup.AuthorizationProperty authorization) {
            this.authorization = authorization;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingGroupProps#getAuthorization}
         * @param authorization `AWS::MediaPackage::PackagingGroup.Authorization`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder authorization(software.amazon.awscdk.core.IResolvable authorization) {
            this.authorization = authorization;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingGroupProps#getEgressAccessLogs}
         * @param egressAccessLogs `AWS::MediaPackage::PackagingGroup.EgressAccessLogs`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder egressAccessLogs(software.amazon.awscdk.core.IResolvable egressAccessLogs) {
            this.egressAccessLogs = egressAccessLogs;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingGroupProps#getEgressAccessLogs}
         * @param egressAccessLogs `AWS::MediaPackage::PackagingGroup.EgressAccessLogs`.
         * @return {@code this}
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        public Builder egressAccessLogs(software.amazon.awscdk.services.mediapackage.CfnPackagingGroup.LogConfigurationProperty egressAccessLogs) {
            this.egressAccessLogs = egressAccessLogs;
            return this;
        }

        /**
         * Sets the value of {@link CfnPackagingGroupProps#getTags}
         * @param tags `AWS::MediaPackage::PackagingGroup.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 CfnPackagingGroupProps}
         * @throws NullPointerException if any required attribute was not provided
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
        @Override
        public CfnPackagingGroupProps build() {
            return new Jsii$Proxy(id, authorization, egressAccessLogs, tags);
        }
    }

    /**
     * An implementation for {@link CfnPackagingGroupProps}
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnPackagingGroupProps {
        private final java.lang.String id;
        private final java.lang.Object authorization;
        private final java.lang.Object egressAccessLogs;
        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.authorization = software.amazon.jsii.Kernel.get(this, "authorization", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
            this.egressAccessLogs = software.amazon.jsii.Kernel.get(this, "egressAccessLogs", 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.Object authorization, final java.lang.Object egressAccessLogs, final java.util.List tags) {
            super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
            this.id = java.util.Objects.requireNonNull(id, "id is required");
            this.authorization = authorization;
            this.egressAccessLogs = egressAccessLogs;
            this.tags = (java.util.List)tags;
        }

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

        @Override
        public final java.lang.Object getAuthorization() {
            return this.authorization;
        }

        @Override
        public final java.lang.Object getEgressAccessLogs() {
            return this.egressAccessLogs;
        }

        @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()));
            if (this.getAuthorization() != null) {
                data.set("authorization", om.valueToTree(this.getAuthorization()));
            }
            if (this.getEgressAccessLogs() != null) {
                data.set("egressAccessLogs", om.valueToTree(this.getEgressAccessLogs()));
            }
            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.CfnPackagingGroupProps"));
            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;

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

            if (!id.equals(that.id)) return false;
            if (this.authorization != null ? !this.authorization.equals(that.authorization) : that.authorization != null) return false;
            if (this.egressAccessLogs != null ? !this.egressAccessLogs.equals(that.egressAccessLogs) : that.egressAccessLogs != 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.authorization != null ? this.authorization.hashCode() : 0);
            result = 31 * result + (this.egressAccessLogs != null ? this.egressAccessLogs.hashCode() : 0);
            result = 31 * result + (this.tags != null ? this.tags.hashCode() : 0);
            return result;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy