software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration Maven / Gradle / Ivy
Show all versions of mediapackage Show documentation
package software.amazon.awscdk.services.mediapackage;
/**
* A CloudFormation `AWS::MediaPackage::PackagingConfiguration`.
*/
@javax.annotation.Generated(value = "jsii-pacmak/1.26.0 (build 7d76e02)", date = "2021-03-25T23:45:13.432Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration")
public class CfnPackagingConfiguration extends software.amazon.awscdk.core.CfnResource implements software.amazon.awscdk.core.IInspectable {
protected CfnPackagingConfiguration(final software.amazon.jsii.JsiiObjectRef objRef) {
super(objRef);
}
protected CfnPackagingConfiguration(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
super(initializationMode);
}
static {
CFN_RESOURCE_TYPE_NAME = software.amazon.jsii.JsiiObject.jsiiStaticGet(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.class, "CFN_RESOURCE_TYPE_NAME", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Create a new `AWS::MediaPackage::PackagingConfiguration`.
*
* @param scope - scope in which this resource is defined. This parameter is required.
* @param id - scoped id of the resource. This parameter is required.
* @param props - resource properties. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public CfnPackagingConfiguration(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.mediapackage.CfnPackagingConfigurationProps props) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
}
/**
* (experimental) Examines the CloudFormation resource and discloses attributes.
*
* @param inspector - tree inspector to collect and process attributes. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@Override
public void inspect(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.TreeInspector inspector) {
software.amazon.jsii.Kernel.call(this, "inspect", software.amazon.jsii.NativeType.VOID, new Object[] { java.util.Objects.requireNonNull(inspector, "inspector is required") });
}
/**
* @param props This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
protected @org.jetbrains.annotations.NotNull java.util.Map renderProperties(final @org.jetbrains.annotations.NotNull java.util.Map props) {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.call(this, "renderProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class)), new Object[] { java.util.Objects.requireNonNull(props, "props is required") }));
}
/**
* The CloudFormation resource type name for this resource class.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public final static java.lang.String CFN_RESOURCE_TYPE_NAME;
/**
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getAttrArn() {
return software.amazon.jsii.Kernel.get(this, "attrArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
*/
@Override
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
protected @org.jetbrains.annotations.NotNull java.util.Map getCfnProperties() {
return java.util.Collections.unmodifiableMap(software.amazon.jsii.Kernel.get(this, "cfnProperties", software.amazon.jsii.NativeType.mapOf(software.amazon.jsii.NativeType.forClass(java.lang.Object.class))));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.Tags`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.TagManager getTags() {
return software.amazon.jsii.Kernel.get(this, "tags", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.core.TagManager.class));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.Id`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getId() {
return software.amazon.jsii.Kernel.get(this, "id", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.Id`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setId(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "id", java.util.Objects.requireNonNull(value, "id is required"));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.PackagingGroupId`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.NotNull java.lang.String getPackagingGroupId() {
return software.amazon.jsii.Kernel.get(this, "packagingGroupId", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.PackagingGroupId`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setPackagingGroupId(final @org.jetbrains.annotations.NotNull java.lang.String value) {
software.amazon.jsii.Kernel.set(this, "packagingGroupId", java.util.Objects.requireNonNull(value, "packagingGroupId is required"));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.CmafPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getCmafPackage() {
return software.amazon.jsii.Kernel.get(this, "cmafPackage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.CmafPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setCmafPackage(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "cmafPackage", value);
}
/**
* `AWS::MediaPackage::PackagingConfiguration.CmafPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setCmafPackage(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.CmafPackageProperty value) {
software.amazon.jsii.Kernel.set(this, "cmafPackage", value);
}
/**
* `AWS::MediaPackage::PackagingConfiguration.DashPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getDashPackage() {
return software.amazon.jsii.Kernel.get(this, "dashPackage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.DashPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setDashPackage(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "dashPackage", value);
}
/**
* `AWS::MediaPackage::PackagingConfiguration.DashPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setDashPackage(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.DashPackageProperty value) {
software.amazon.jsii.Kernel.set(this, "dashPackage", value);
}
/**
* `AWS::MediaPackage::PackagingConfiguration.HlsPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getHlsPackage() {
return software.amazon.jsii.Kernel.get(this, "hlsPackage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.HlsPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setHlsPackage(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "hlsPackage", value);
}
/**
* `AWS::MediaPackage::PackagingConfiguration.HlsPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setHlsPackage(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.HlsPackageProperty value) {
software.amazon.jsii.Kernel.set(this, "hlsPackage", value);
}
/**
* `AWS::MediaPackage::PackagingConfiguration.MssPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public @org.jetbrains.annotations.Nullable java.lang.Object getMssPackage() {
return software.amazon.jsii.Kernel.get(this, "mssPackage", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* `AWS::MediaPackage::PackagingConfiguration.MssPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setMssPackage(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.core.IResolvable value) {
software.amazon.jsii.Kernel.set(this, "mssPackage", value);
}
/**
* `AWS::MediaPackage::PackagingConfiguration.MssPackage`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public void setMssPackage(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.MssPackageProperty value) {
software.amazon.jsii.Kernel.set(this, "mssPackage", value);
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.CmafEncryptionProperty")
@software.amazon.jsii.Jsii.Proxy(CmafEncryptionProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface CmafEncryptionProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.CmafEncryptionProperty.SpekeKeyProvider`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getSpekeKeyProvider();
/**
* @return a {@link Builder} of {@link CmafEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CmafEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Object spekeKeyProvider;
/**
* Sets the value of {@link CmafEncryptionProperty#getSpekeKeyProvider}
* @param spekeKeyProvider `CfnPackagingConfiguration.CmafEncryptionProperty.SpekeKeyProvider`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder spekeKeyProvider(software.amazon.awscdk.core.IResolvable spekeKeyProvider) {
this.spekeKeyProvider = spekeKeyProvider;
return this;
}
/**
* Sets the value of {@link CmafEncryptionProperty#getSpekeKeyProvider}
* @param spekeKeyProvider `CfnPackagingConfiguration.CmafEncryptionProperty.SpekeKeyProvider`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder spekeKeyProvider(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.SpekeKeyProviderProperty spekeKeyProvider) {
this.spekeKeyProvider = spekeKeyProvider;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CmafEncryptionProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public CmafEncryptionProperty build() {
return new Jsii$Proxy(spekeKeyProvider);
}
}
/**
* An implementation for {@link CmafEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CmafEncryptionProperty {
private final java.lang.Object spekeKeyProvider;
/**
* 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.spekeKeyProvider = software.amazon.jsii.Kernel.get(this, "spekeKeyProvider", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Object spekeKeyProvider) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.spekeKeyProvider = java.util.Objects.requireNonNull(spekeKeyProvider, "spekeKeyProvider is required");
}
@Override
public final java.lang.Object getSpekeKeyProvider() {
return this.spekeKeyProvider;
}
@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("spekeKeyProvider", om.valueToTree(this.getSpekeKeyProvider()));
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.CfnPackagingConfiguration.CmafEncryptionProperty"));
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;
CmafEncryptionProperty.Jsii$Proxy that = (CmafEncryptionProperty.Jsii$Proxy) o;
return this.spekeKeyProvider.equals(that.spekeKeyProvider);
}
@Override
public final int hashCode() {
int result = this.spekeKeyProvider.hashCode();
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.CmafPackageProperty")
@software.amazon.jsii.Jsii.Proxy(CmafPackageProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface CmafPackageProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.CmafPackageProperty.HlsManifests`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getHlsManifests();
/**
* `CfnPackagingConfiguration.CmafPackageProperty.Encryption`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getEncryption() {
return null;
}
/**
* `CfnPackagingConfiguration.CmafPackageProperty.SegmentDurationSeconds`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getSegmentDurationSeconds() {
return null;
}
/**
* @return a {@link Builder} of {@link CmafPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link CmafPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Object hlsManifests;
private java.lang.Object encryption;
private java.lang.Number segmentDurationSeconds;
/**
* Sets the value of {@link CmafPackageProperty#getHlsManifests}
* @param hlsManifests `CfnPackagingConfiguration.CmafPackageProperty.HlsManifests`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder hlsManifests(software.amazon.awscdk.core.IResolvable hlsManifests) {
this.hlsManifests = hlsManifests;
return this;
}
/**
* Sets the value of {@link CmafPackageProperty#getHlsManifests}
* @param hlsManifests `CfnPackagingConfiguration.CmafPackageProperty.HlsManifests`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder hlsManifests(java.util.List extends java.lang.Object> hlsManifests) {
this.hlsManifests = hlsManifests;
return this;
}
/**
* Sets the value of {@link CmafPackageProperty#getEncryption}
* @param encryption `CfnPackagingConfiguration.CmafPackageProperty.Encryption`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryption(software.amazon.awscdk.core.IResolvable encryption) {
this.encryption = encryption;
return this;
}
/**
* Sets the value of {@link CmafPackageProperty#getEncryption}
* @param encryption `CfnPackagingConfiguration.CmafPackageProperty.Encryption`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryption(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.CmafEncryptionProperty encryption) {
this.encryption = encryption;
return this;
}
/**
* Sets the value of {@link CmafPackageProperty#getSegmentDurationSeconds}
* @param segmentDurationSeconds `CfnPackagingConfiguration.CmafPackageProperty.SegmentDurationSeconds`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder segmentDurationSeconds(java.lang.Number segmentDurationSeconds) {
this.segmentDurationSeconds = segmentDurationSeconds;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link CmafPackageProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public CmafPackageProperty build() {
return new Jsii$Proxy(hlsManifests, encryption, segmentDurationSeconds);
}
}
/**
* An implementation for {@link CmafPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CmafPackageProperty {
private final java.lang.Object hlsManifests;
private final java.lang.Object encryption;
private final java.lang.Number segmentDurationSeconds;
/**
* 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.hlsManifests = software.amazon.jsii.Kernel.get(this, "hlsManifests", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.encryption = software.amazon.jsii.Kernel.get(this, "encryption", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.segmentDurationSeconds = software.amazon.jsii.Kernel.get(this, "segmentDurationSeconds", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Object hlsManifests, final java.lang.Object encryption, final java.lang.Number segmentDurationSeconds) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.hlsManifests = java.util.Objects.requireNonNull(hlsManifests, "hlsManifests is required");
this.encryption = encryption;
this.segmentDurationSeconds = segmentDurationSeconds;
}
@Override
public final java.lang.Object getHlsManifests() {
return this.hlsManifests;
}
@Override
public final java.lang.Object getEncryption() {
return this.encryption;
}
@Override
public final java.lang.Number getSegmentDurationSeconds() {
return this.segmentDurationSeconds;
}
@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("hlsManifests", om.valueToTree(this.getHlsManifests()));
if (this.getEncryption() != null) {
data.set("encryption", om.valueToTree(this.getEncryption()));
}
if (this.getSegmentDurationSeconds() != null) {
data.set("segmentDurationSeconds", om.valueToTree(this.getSegmentDurationSeconds()));
}
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.CfnPackagingConfiguration.CmafPackageProperty"));
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;
CmafPackageProperty.Jsii$Proxy that = (CmafPackageProperty.Jsii$Proxy) o;
if (!hlsManifests.equals(that.hlsManifests)) return false;
if (this.encryption != null ? !this.encryption.equals(that.encryption) : that.encryption != null) return false;
return this.segmentDurationSeconds != null ? this.segmentDurationSeconds.equals(that.segmentDurationSeconds) : that.segmentDurationSeconds == null;
}
@Override
public final int hashCode() {
int result = this.hlsManifests.hashCode();
result = 31 * result + (this.encryption != null ? this.encryption.hashCode() : 0);
result = 31 * result + (this.segmentDurationSeconds != null ? this.segmentDurationSeconds.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.DashEncryptionProperty")
@software.amazon.jsii.Jsii.Proxy(DashEncryptionProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface DashEncryptionProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.DashEncryptionProperty.SpekeKeyProvider`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getSpekeKeyProvider();
/**
* @return a {@link Builder} of {@link DashEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DashEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Object spekeKeyProvider;
/**
* Sets the value of {@link DashEncryptionProperty#getSpekeKeyProvider}
* @param spekeKeyProvider `CfnPackagingConfiguration.DashEncryptionProperty.SpekeKeyProvider`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder spekeKeyProvider(software.amazon.awscdk.core.IResolvable spekeKeyProvider) {
this.spekeKeyProvider = spekeKeyProvider;
return this;
}
/**
* Sets the value of {@link DashEncryptionProperty#getSpekeKeyProvider}
* @param spekeKeyProvider `CfnPackagingConfiguration.DashEncryptionProperty.SpekeKeyProvider`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder spekeKeyProvider(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.SpekeKeyProviderProperty spekeKeyProvider) {
this.spekeKeyProvider = spekeKeyProvider;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DashEncryptionProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DashEncryptionProperty build() {
return new Jsii$Proxy(spekeKeyProvider);
}
}
/**
* An implementation for {@link DashEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DashEncryptionProperty {
private final java.lang.Object spekeKeyProvider;
/**
* 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.spekeKeyProvider = software.amazon.jsii.Kernel.get(this, "spekeKeyProvider", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Object spekeKeyProvider) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.spekeKeyProvider = java.util.Objects.requireNonNull(spekeKeyProvider, "spekeKeyProvider is required");
}
@Override
public final java.lang.Object getSpekeKeyProvider() {
return this.spekeKeyProvider;
}
@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("spekeKeyProvider", om.valueToTree(this.getSpekeKeyProvider()));
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.CfnPackagingConfiguration.DashEncryptionProperty"));
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;
DashEncryptionProperty.Jsii$Proxy that = (DashEncryptionProperty.Jsii$Proxy) o;
return this.spekeKeyProvider.equals(that.spekeKeyProvider);
}
@Override
public final int hashCode() {
int result = this.spekeKeyProvider.hashCode();
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.DashManifestProperty")
@software.amazon.jsii.Jsii.Proxy(DashManifestProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface DashManifestProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.DashManifestProperty.ManifestLayout`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getManifestLayout() {
return null;
}
/**
* `CfnPackagingConfiguration.DashManifestProperty.ManifestName`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getManifestName() {
return null;
}
/**
* `CfnPackagingConfiguration.DashManifestProperty.MinBufferTimeSeconds`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getMinBufferTimeSeconds() {
return null;
}
/**
* `CfnPackagingConfiguration.DashManifestProperty.Profile`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getProfile() {
return null;
}
/**
* `CfnPackagingConfiguration.DashManifestProperty.StreamSelection`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getStreamSelection() {
return null;
}
/**
* @return a {@link Builder} of {@link DashManifestProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DashManifestProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.String manifestLayout;
private java.lang.String manifestName;
private java.lang.Number minBufferTimeSeconds;
private java.lang.String profile;
private java.lang.Object streamSelection;
/**
* Sets the value of {@link DashManifestProperty#getManifestLayout}
* @param manifestLayout `CfnPackagingConfiguration.DashManifestProperty.ManifestLayout`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder manifestLayout(java.lang.String manifestLayout) {
this.manifestLayout = manifestLayout;
return this;
}
/**
* Sets the value of {@link DashManifestProperty#getManifestName}
* @param manifestName `CfnPackagingConfiguration.DashManifestProperty.ManifestName`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder manifestName(java.lang.String manifestName) {
this.manifestName = manifestName;
return this;
}
/**
* Sets the value of {@link DashManifestProperty#getMinBufferTimeSeconds}
* @param minBufferTimeSeconds `CfnPackagingConfiguration.DashManifestProperty.MinBufferTimeSeconds`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder minBufferTimeSeconds(java.lang.Number minBufferTimeSeconds) {
this.minBufferTimeSeconds = minBufferTimeSeconds;
return this;
}
/**
* Sets the value of {@link DashManifestProperty#getProfile}
* @param profile `CfnPackagingConfiguration.DashManifestProperty.Profile`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder profile(java.lang.String profile) {
this.profile = profile;
return this;
}
/**
* Sets the value of {@link DashManifestProperty#getStreamSelection}
* @param streamSelection `CfnPackagingConfiguration.DashManifestProperty.StreamSelection`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder streamSelection(software.amazon.awscdk.core.IResolvable streamSelection) {
this.streamSelection = streamSelection;
return this;
}
/**
* Sets the value of {@link DashManifestProperty#getStreamSelection}
* @param streamSelection `CfnPackagingConfiguration.DashManifestProperty.StreamSelection`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder streamSelection(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.StreamSelectionProperty streamSelection) {
this.streamSelection = streamSelection;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DashManifestProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DashManifestProperty build() {
return new Jsii$Proxy(manifestLayout, manifestName, minBufferTimeSeconds, profile, streamSelection);
}
}
/**
* An implementation for {@link DashManifestProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DashManifestProperty {
private final java.lang.String manifestLayout;
private final java.lang.String manifestName;
private final java.lang.Number minBufferTimeSeconds;
private final java.lang.String profile;
private final java.lang.Object streamSelection;
/**
* 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.manifestLayout = software.amazon.jsii.Kernel.get(this, "manifestLayout", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.manifestName = software.amazon.jsii.Kernel.get(this, "manifestName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.minBufferTimeSeconds = software.amazon.jsii.Kernel.get(this, "minBufferTimeSeconds", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.profile = software.amazon.jsii.Kernel.get(this, "profile", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.streamSelection = software.amazon.jsii.Kernel.get(this, "streamSelection", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.String manifestLayout, final java.lang.String manifestName, final java.lang.Number minBufferTimeSeconds, final java.lang.String profile, final java.lang.Object streamSelection) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.manifestLayout = manifestLayout;
this.manifestName = manifestName;
this.minBufferTimeSeconds = minBufferTimeSeconds;
this.profile = profile;
this.streamSelection = streamSelection;
}
@Override
public final java.lang.String getManifestLayout() {
return this.manifestLayout;
}
@Override
public final java.lang.String getManifestName() {
return this.manifestName;
}
@Override
public final java.lang.Number getMinBufferTimeSeconds() {
return this.minBufferTimeSeconds;
}
@Override
public final java.lang.String getProfile() {
return this.profile;
}
@Override
public final java.lang.Object getStreamSelection() {
return this.streamSelection;
}
@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();
if (this.getManifestLayout() != null) {
data.set("manifestLayout", om.valueToTree(this.getManifestLayout()));
}
if (this.getManifestName() != null) {
data.set("manifestName", om.valueToTree(this.getManifestName()));
}
if (this.getMinBufferTimeSeconds() != null) {
data.set("minBufferTimeSeconds", om.valueToTree(this.getMinBufferTimeSeconds()));
}
if (this.getProfile() != null) {
data.set("profile", om.valueToTree(this.getProfile()));
}
if (this.getStreamSelection() != null) {
data.set("streamSelection", om.valueToTree(this.getStreamSelection()));
}
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.CfnPackagingConfiguration.DashManifestProperty"));
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;
DashManifestProperty.Jsii$Proxy that = (DashManifestProperty.Jsii$Proxy) o;
if (this.manifestLayout != null ? !this.manifestLayout.equals(that.manifestLayout) : that.manifestLayout != null) return false;
if (this.manifestName != null ? !this.manifestName.equals(that.manifestName) : that.manifestName != null) return false;
if (this.minBufferTimeSeconds != null ? !this.minBufferTimeSeconds.equals(that.minBufferTimeSeconds) : that.minBufferTimeSeconds != null) return false;
if (this.profile != null ? !this.profile.equals(that.profile) : that.profile != null) return false;
return this.streamSelection != null ? this.streamSelection.equals(that.streamSelection) : that.streamSelection == null;
}
@Override
public final int hashCode() {
int result = this.manifestLayout != null ? this.manifestLayout.hashCode() : 0;
result = 31 * result + (this.manifestName != null ? this.manifestName.hashCode() : 0);
result = 31 * result + (this.minBufferTimeSeconds != null ? this.minBufferTimeSeconds.hashCode() : 0);
result = 31 * result + (this.profile != null ? this.profile.hashCode() : 0);
result = 31 * result + (this.streamSelection != null ? this.streamSelection.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.DashPackageProperty")
@software.amazon.jsii.Jsii.Proxy(DashPackageProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface DashPackageProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.DashPackageProperty.DashManifests`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getDashManifests();
/**
* `CfnPackagingConfiguration.DashPackageProperty.Encryption`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getEncryption() {
return null;
}
/**
* `CfnPackagingConfiguration.DashPackageProperty.PeriodTriggers`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.util.List getPeriodTriggers() {
return null;
}
/**
* `CfnPackagingConfiguration.DashPackageProperty.SegmentDurationSeconds`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getSegmentDurationSeconds() {
return null;
}
/**
* `CfnPackagingConfiguration.DashPackageProperty.SegmentTemplateFormat`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getSegmentTemplateFormat() {
return null;
}
/**
* @return a {@link Builder} of {@link DashPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link DashPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Object dashManifests;
private java.lang.Object encryption;
private java.util.List periodTriggers;
private java.lang.Number segmentDurationSeconds;
private java.lang.String segmentTemplateFormat;
/**
* Sets the value of {@link DashPackageProperty#getDashManifests}
* @param dashManifests `CfnPackagingConfiguration.DashPackageProperty.DashManifests`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder dashManifests(software.amazon.awscdk.core.IResolvable dashManifests) {
this.dashManifests = dashManifests;
return this;
}
/**
* Sets the value of {@link DashPackageProperty#getDashManifests}
* @param dashManifests `CfnPackagingConfiguration.DashPackageProperty.DashManifests`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder dashManifests(java.util.List extends java.lang.Object> dashManifests) {
this.dashManifests = dashManifests;
return this;
}
/**
* Sets the value of {@link DashPackageProperty#getEncryption}
* @param encryption `CfnPackagingConfiguration.DashPackageProperty.Encryption`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryption(software.amazon.awscdk.core.IResolvable encryption) {
this.encryption = encryption;
return this;
}
/**
* Sets the value of {@link DashPackageProperty#getEncryption}
* @param encryption `CfnPackagingConfiguration.DashPackageProperty.Encryption`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryption(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.DashEncryptionProperty encryption) {
this.encryption = encryption;
return this;
}
/**
* Sets the value of {@link DashPackageProperty#getPeriodTriggers}
* @param periodTriggers `CfnPackagingConfiguration.DashPackageProperty.PeriodTriggers`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder periodTriggers(java.util.List periodTriggers) {
this.periodTriggers = periodTriggers;
return this;
}
/**
* Sets the value of {@link DashPackageProperty#getSegmentDurationSeconds}
* @param segmentDurationSeconds `CfnPackagingConfiguration.DashPackageProperty.SegmentDurationSeconds`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder segmentDurationSeconds(java.lang.Number segmentDurationSeconds) {
this.segmentDurationSeconds = segmentDurationSeconds;
return this;
}
/**
* Sets the value of {@link DashPackageProperty#getSegmentTemplateFormat}
* @param segmentTemplateFormat `CfnPackagingConfiguration.DashPackageProperty.SegmentTemplateFormat`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder segmentTemplateFormat(java.lang.String segmentTemplateFormat) {
this.segmentTemplateFormat = segmentTemplateFormat;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link DashPackageProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public DashPackageProperty build() {
return new Jsii$Proxy(dashManifests, encryption, periodTriggers, segmentDurationSeconds, segmentTemplateFormat);
}
}
/**
* An implementation for {@link DashPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements DashPackageProperty {
private final java.lang.Object dashManifests;
private final java.lang.Object encryption;
private final java.util.List periodTriggers;
private final java.lang.Number segmentDurationSeconds;
private final java.lang.String segmentTemplateFormat;
/**
* 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.dashManifests = software.amazon.jsii.Kernel.get(this, "dashManifests", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.encryption = software.amazon.jsii.Kernel.get(this, "encryption", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.periodTriggers = software.amazon.jsii.Kernel.get(this, "periodTriggers", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.segmentDurationSeconds = software.amazon.jsii.Kernel.get(this, "segmentDurationSeconds", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.segmentTemplateFormat = software.amazon.jsii.Kernel.get(this, "segmentTemplateFormat", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Object dashManifests, final java.lang.Object encryption, final java.util.List periodTriggers, final java.lang.Number segmentDurationSeconds, final java.lang.String segmentTemplateFormat) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.dashManifests = java.util.Objects.requireNonNull(dashManifests, "dashManifests is required");
this.encryption = encryption;
this.periodTriggers = periodTriggers;
this.segmentDurationSeconds = segmentDurationSeconds;
this.segmentTemplateFormat = segmentTemplateFormat;
}
@Override
public final java.lang.Object getDashManifests() {
return this.dashManifests;
}
@Override
public final java.lang.Object getEncryption() {
return this.encryption;
}
@Override
public final java.util.List getPeriodTriggers() {
return this.periodTriggers;
}
@Override
public final java.lang.Number getSegmentDurationSeconds() {
return this.segmentDurationSeconds;
}
@Override
public final java.lang.String getSegmentTemplateFormat() {
return this.segmentTemplateFormat;
}
@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("dashManifests", om.valueToTree(this.getDashManifests()));
if (this.getEncryption() != null) {
data.set("encryption", om.valueToTree(this.getEncryption()));
}
if (this.getPeriodTriggers() != null) {
data.set("periodTriggers", om.valueToTree(this.getPeriodTriggers()));
}
if (this.getSegmentDurationSeconds() != null) {
data.set("segmentDurationSeconds", om.valueToTree(this.getSegmentDurationSeconds()));
}
if (this.getSegmentTemplateFormat() != null) {
data.set("segmentTemplateFormat", om.valueToTree(this.getSegmentTemplateFormat()));
}
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.CfnPackagingConfiguration.DashPackageProperty"));
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;
DashPackageProperty.Jsii$Proxy that = (DashPackageProperty.Jsii$Proxy) o;
if (!dashManifests.equals(that.dashManifests)) return false;
if (this.encryption != null ? !this.encryption.equals(that.encryption) : that.encryption != null) return false;
if (this.periodTriggers != null ? !this.periodTriggers.equals(that.periodTriggers) : that.periodTriggers != null) return false;
if (this.segmentDurationSeconds != null ? !this.segmentDurationSeconds.equals(that.segmentDurationSeconds) : that.segmentDurationSeconds != null) return false;
return this.segmentTemplateFormat != null ? this.segmentTemplateFormat.equals(that.segmentTemplateFormat) : that.segmentTemplateFormat == null;
}
@Override
public final int hashCode() {
int result = this.dashManifests.hashCode();
result = 31 * result + (this.encryption != null ? this.encryption.hashCode() : 0);
result = 31 * result + (this.periodTriggers != null ? this.periodTriggers.hashCode() : 0);
result = 31 * result + (this.segmentDurationSeconds != null ? this.segmentDurationSeconds.hashCode() : 0);
result = 31 * result + (this.segmentTemplateFormat != null ? this.segmentTemplateFormat.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.HlsEncryptionProperty")
@software.amazon.jsii.Jsii.Proxy(HlsEncryptionProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface HlsEncryptionProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.HlsEncryptionProperty.SpekeKeyProvider`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getSpekeKeyProvider();
/**
* `CfnPackagingConfiguration.HlsEncryptionProperty.ConstantInitializationVector`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getConstantInitializationVector() {
return null;
}
/**
* `CfnPackagingConfiguration.HlsEncryptionProperty.EncryptionMethod`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getEncryptionMethod() {
return null;
}
/**
* @return a {@link Builder} of {@link HlsEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link HlsEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Object spekeKeyProvider;
private java.lang.String constantInitializationVector;
private java.lang.String encryptionMethod;
/**
* Sets the value of {@link HlsEncryptionProperty#getSpekeKeyProvider}
* @param spekeKeyProvider `CfnPackagingConfiguration.HlsEncryptionProperty.SpekeKeyProvider`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder spekeKeyProvider(software.amazon.awscdk.core.IResolvable spekeKeyProvider) {
this.spekeKeyProvider = spekeKeyProvider;
return this;
}
/**
* Sets the value of {@link HlsEncryptionProperty#getSpekeKeyProvider}
* @param spekeKeyProvider `CfnPackagingConfiguration.HlsEncryptionProperty.SpekeKeyProvider`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder spekeKeyProvider(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.SpekeKeyProviderProperty spekeKeyProvider) {
this.spekeKeyProvider = spekeKeyProvider;
return this;
}
/**
* Sets the value of {@link HlsEncryptionProperty#getConstantInitializationVector}
* @param constantInitializationVector `CfnPackagingConfiguration.HlsEncryptionProperty.ConstantInitializationVector`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder constantInitializationVector(java.lang.String constantInitializationVector) {
this.constantInitializationVector = constantInitializationVector;
return this;
}
/**
* Sets the value of {@link HlsEncryptionProperty#getEncryptionMethod}
* @param encryptionMethod `CfnPackagingConfiguration.HlsEncryptionProperty.EncryptionMethod`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryptionMethod(java.lang.String encryptionMethod) {
this.encryptionMethod = encryptionMethod;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link HlsEncryptionProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public HlsEncryptionProperty build() {
return new Jsii$Proxy(spekeKeyProvider, constantInitializationVector, encryptionMethod);
}
}
/**
* An implementation for {@link HlsEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HlsEncryptionProperty {
private final java.lang.Object spekeKeyProvider;
private final java.lang.String constantInitializationVector;
private final java.lang.String encryptionMethod;
/**
* 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.spekeKeyProvider = software.amazon.jsii.Kernel.get(this, "spekeKeyProvider", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.constantInitializationVector = software.amazon.jsii.Kernel.get(this, "constantInitializationVector", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.encryptionMethod = software.amazon.jsii.Kernel.get(this, "encryptionMethod", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Object spekeKeyProvider, final java.lang.String constantInitializationVector, final java.lang.String encryptionMethod) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.spekeKeyProvider = java.util.Objects.requireNonNull(spekeKeyProvider, "spekeKeyProvider is required");
this.constantInitializationVector = constantInitializationVector;
this.encryptionMethod = encryptionMethod;
}
@Override
public final java.lang.Object getSpekeKeyProvider() {
return this.spekeKeyProvider;
}
@Override
public final java.lang.String getConstantInitializationVector() {
return this.constantInitializationVector;
}
@Override
public final java.lang.String getEncryptionMethod() {
return this.encryptionMethod;
}
@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("spekeKeyProvider", om.valueToTree(this.getSpekeKeyProvider()));
if (this.getConstantInitializationVector() != null) {
data.set("constantInitializationVector", om.valueToTree(this.getConstantInitializationVector()));
}
if (this.getEncryptionMethod() != null) {
data.set("encryptionMethod", om.valueToTree(this.getEncryptionMethod()));
}
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.CfnPackagingConfiguration.HlsEncryptionProperty"));
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;
HlsEncryptionProperty.Jsii$Proxy that = (HlsEncryptionProperty.Jsii$Proxy) o;
if (!spekeKeyProvider.equals(that.spekeKeyProvider)) return false;
if (this.constantInitializationVector != null ? !this.constantInitializationVector.equals(that.constantInitializationVector) : that.constantInitializationVector != null) return false;
return this.encryptionMethod != null ? this.encryptionMethod.equals(that.encryptionMethod) : that.encryptionMethod == null;
}
@Override
public final int hashCode() {
int result = this.spekeKeyProvider.hashCode();
result = 31 * result + (this.constantInitializationVector != null ? this.constantInitializationVector.hashCode() : 0);
result = 31 * result + (this.encryptionMethod != null ? this.encryptionMethod.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.HlsManifestProperty")
@software.amazon.jsii.Jsii.Proxy(HlsManifestProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface HlsManifestProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.HlsManifestProperty.AdMarkers`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getAdMarkers() {
return null;
}
/**
* `CfnPackagingConfiguration.HlsManifestProperty.IncludeIframeOnlyStream`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getIncludeIframeOnlyStream() {
return null;
}
/**
* `CfnPackagingConfiguration.HlsManifestProperty.ManifestName`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getManifestName() {
return null;
}
/**
* `CfnPackagingConfiguration.HlsManifestProperty.ProgramDateTimeIntervalSeconds`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getProgramDateTimeIntervalSeconds() {
return null;
}
/**
* `CfnPackagingConfiguration.HlsManifestProperty.RepeatExtXKey`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getRepeatExtXKey() {
return null;
}
/**
* `CfnPackagingConfiguration.HlsManifestProperty.StreamSelection`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getStreamSelection() {
return null;
}
/**
* @return a {@link Builder} of {@link HlsManifestProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link HlsManifestProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.String adMarkers;
private java.lang.Object includeIframeOnlyStream;
private java.lang.String manifestName;
private java.lang.Number programDateTimeIntervalSeconds;
private java.lang.Object repeatExtXKey;
private java.lang.Object streamSelection;
/**
* Sets the value of {@link HlsManifestProperty#getAdMarkers}
* @param adMarkers `CfnPackagingConfiguration.HlsManifestProperty.AdMarkers`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder adMarkers(java.lang.String adMarkers) {
this.adMarkers = adMarkers;
return this;
}
/**
* Sets the value of {@link HlsManifestProperty#getIncludeIframeOnlyStream}
* @param includeIframeOnlyStream `CfnPackagingConfiguration.HlsManifestProperty.IncludeIframeOnlyStream`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder includeIframeOnlyStream(java.lang.Boolean includeIframeOnlyStream) {
this.includeIframeOnlyStream = includeIframeOnlyStream;
return this;
}
/**
* Sets the value of {@link HlsManifestProperty#getIncludeIframeOnlyStream}
* @param includeIframeOnlyStream `CfnPackagingConfiguration.HlsManifestProperty.IncludeIframeOnlyStream`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder includeIframeOnlyStream(software.amazon.awscdk.core.IResolvable includeIframeOnlyStream) {
this.includeIframeOnlyStream = includeIframeOnlyStream;
return this;
}
/**
* Sets the value of {@link HlsManifestProperty#getManifestName}
* @param manifestName `CfnPackagingConfiguration.HlsManifestProperty.ManifestName`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder manifestName(java.lang.String manifestName) {
this.manifestName = manifestName;
return this;
}
/**
* Sets the value of {@link HlsManifestProperty#getProgramDateTimeIntervalSeconds}
* @param programDateTimeIntervalSeconds `CfnPackagingConfiguration.HlsManifestProperty.ProgramDateTimeIntervalSeconds`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder programDateTimeIntervalSeconds(java.lang.Number programDateTimeIntervalSeconds) {
this.programDateTimeIntervalSeconds = programDateTimeIntervalSeconds;
return this;
}
/**
* Sets the value of {@link HlsManifestProperty#getRepeatExtXKey}
* @param repeatExtXKey `CfnPackagingConfiguration.HlsManifestProperty.RepeatExtXKey`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder repeatExtXKey(java.lang.Boolean repeatExtXKey) {
this.repeatExtXKey = repeatExtXKey;
return this;
}
/**
* Sets the value of {@link HlsManifestProperty#getRepeatExtXKey}
* @param repeatExtXKey `CfnPackagingConfiguration.HlsManifestProperty.RepeatExtXKey`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder repeatExtXKey(software.amazon.awscdk.core.IResolvable repeatExtXKey) {
this.repeatExtXKey = repeatExtXKey;
return this;
}
/**
* Sets the value of {@link HlsManifestProperty#getStreamSelection}
* @param streamSelection `CfnPackagingConfiguration.HlsManifestProperty.StreamSelection`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder streamSelection(software.amazon.awscdk.core.IResolvable streamSelection) {
this.streamSelection = streamSelection;
return this;
}
/**
* Sets the value of {@link HlsManifestProperty#getStreamSelection}
* @param streamSelection `CfnPackagingConfiguration.HlsManifestProperty.StreamSelection`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder streamSelection(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.StreamSelectionProperty streamSelection) {
this.streamSelection = streamSelection;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link HlsManifestProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public HlsManifestProperty build() {
return new Jsii$Proxy(adMarkers, includeIframeOnlyStream, manifestName, programDateTimeIntervalSeconds, repeatExtXKey, streamSelection);
}
}
/**
* An implementation for {@link HlsManifestProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HlsManifestProperty {
private final java.lang.String adMarkers;
private final java.lang.Object includeIframeOnlyStream;
private final java.lang.String manifestName;
private final java.lang.Number programDateTimeIntervalSeconds;
private final java.lang.Object repeatExtXKey;
private final java.lang.Object streamSelection;
/**
* 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.adMarkers = software.amazon.jsii.Kernel.get(this, "adMarkers", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.includeIframeOnlyStream = software.amazon.jsii.Kernel.get(this, "includeIframeOnlyStream", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.manifestName = software.amazon.jsii.Kernel.get(this, "manifestName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.programDateTimeIntervalSeconds = software.amazon.jsii.Kernel.get(this, "programDateTimeIntervalSeconds", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.repeatExtXKey = software.amazon.jsii.Kernel.get(this, "repeatExtXKey", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.streamSelection = software.amazon.jsii.Kernel.get(this, "streamSelection", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.String adMarkers, final java.lang.Object includeIframeOnlyStream, final java.lang.String manifestName, final java.lang.Number programDateTimeIntervalSeconds, final java.lang.Object repeatExtXKey, final java.lang.Object streamSelection) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.adMarkers = adMarkers;
this.includeIframeOnlyStream = includeIframeOnlyStream;
this.manifestName = manifestName;
this.programDateTimeIntervalSeconds = programDateTimeIntervalSeconds;
this.repeatExtXKey = repeatExtXKey;
this.streamSelection = streamSelection;
}
@Override
public final java.lang.String getAdMarkers() {
return this.adMarkers;
}
@Override
public final java.lang.Object getIncludeIframeOnlyStream() {
return this.includeIframeOnlyStream;
}
@Override
public final java.lang.String getManifestName() {
return this.manifestName;
}
@Override
public final java.lang.Number getProgramDateTimeIntervalSeconds() {
return this.programDateTimeIntervalSeconds;
}
@Override
public final java.lang.Object getRepeatExtXKey() {
return this.repeatExtXKey;
}
@Override
public final java.lang.Object getStreamSelection() {
return this.streamSelection;
}
@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();
if (this.getAdMarkers() != null) {
data.set("adMarkers", om.valueToTree(this.getAdMarkers()));
}
if (this.getIncludeIframeOnlyStream() != null) {
data.set("includeIframeOnlyStream", om.valueToTree(this.getIncludeIframeOnlyStream()));
}
if (this.getManifestName() != null) {
data.set("manifestName", om.valueToTree(this.getManifestName()));
}
if (this.getProgramDateTimeIntervalSeconds() != null) {
data.set("programDateTimeIntervalSeconds", om.valueToTree(this.getProgramDateTimeIntervalSeconds()));
}
if (this.getRepeatExtXKey() != null) {
data.set("repeatExtXKey", om.valueToTree(this.getRepeatExtXKey()));
}
if (this.getStreamSelection() != null) {
data.set("streamSelection", om.valueToTree(this.getStreamSelection()));
}
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.CfnPackagingConfiguration.HlsManifestProperty"));
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;
HlsManifestProperty.Jsii$Proxy that = (HlsManifestProperty.Jsii$Proxy) o;
if (this.adMarkers != null ? !this.adMarkers.equals(that.adMarkers) : that.adMarkers != null) return false;
if (this.includeIframeOnlyStream != null ? !this.includeIframeOnlyStream.equals(that.includeIframeOnlyStream) : that.includeIframeOnlyStream != null) return false;
if (this.manifestName != null ? !this.manifestName.equals(that.manifestName) : that.manifestName != null) return false;
if (this.programDateTimeIntervalSeconds != null ? !this.programDateTimeIntervalSeconds.equals(that.programDateTimeIntervalSeconds) : that.programDateTimeIntervalSeconds != null) return false;
if (this.repeatExtXKey != null ? !this.repeatExtXKey.equals(that.repeatExtXKey) : that.repeatExtXKey != null) return false;
return this.streamSelection != null ? this.streamSelection.equals(that.streamSelection) : that.streamSelection == null;
}
@Override
public final int hashCode() {
int result = this.adMarkers != null ? this.adMarkers.hashCode() : 0;
result = 31 * result + (this.includeIframeOnlyStream != null ? this.includeIframeOnlyStream.hashCode() : 0);
result = 31 * result + (this.manifestName != null ? this.manifestName.hashCode() : 0);
result = 31 * result + (this.programDateTimeIntervalSeconds != null ? this.programDateTimeIntervalSeconds.hashCode() : 0);
result = 31 * result + (this.repeatExtXKey != null ? this.repeatExtXKey.hashCode() : 0);
result = 31 * result + (this.streamSelection != null ? this.streamSelection.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.HlsPackageProperty")
@software.amazon.jsii.Jsii.Proxy(HlsPackageProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface HlsPackageProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.HlsPackageProperty.HlsManifests`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getHlsManifests();
/**
* `CfnPackagingConfiguration.HlsPackageProperty.Encryption`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getEncryption() {
return null;
}
/**
* `CfnPackagingConfiguration.HlsPackageProperty.SegmentDurationSeconds`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getSegmentDurationSeconds() {
return null;
}
/**
* `CfnPackagingConfiguration.HlsPackageProperty.UseAudioRenditionGroup`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getUseAudioRenditionGroup() {
return null;
}
/**
* @return a {@link Builder} of {@link HlsPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link HlsPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Object hlsManifests;
private java.lang.Object encryption;
private java.lang.Number segmentDurationSeconds;
private java.lang.Object useAudioRenditionGroup;
/**
* Sets the value of {@link HlsPackageProperty#getHlsManifests}
* @param hlsManifests `CfnPackagingConfiguration.HlsPackageProperty.HlsManifests`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder hlsManifests(software.amazon.awscdk.core.IResolvable hlsManifests) {
this.hlsManifests = hlsManifests;
return this;
}
/**
* Sets the value of {@link HlsPackageProperty#getHlsManifests}
* @param hlsManifests `CfnPackagingConfiguration.HlsPackageProperty.HlsManifests`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder hlsManifests(java.util.List extends java.lang.Object> hlsManifests) {
this.hlsManifests = hlsManifests;
return this;
}
/**
* Sets the value of {@link HlsPackageProperty#getEncryption}
* @param encryption `CfnPackagingConfiguration.HlsPackageProperty.Encryption`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryption(software.amazon.awscdk.core.IResolvable encryption) {
this.encryption = encryption;
return this;
}
/**
* Sets the value of {@link HlsPackageProperty#getEncryption}
* @param encryption `CfnPackagingConfiguration.HlsPackageProperty.Encryption`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryption(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.HlsEncryptionProperty encryption) {
this.encryption = encryption;
return this;
}
/**
* Sets the value of {@link HlsPackageProperty#getSegmentDurationSeconds}
* @param segmentDurationSeconds `CfnPackagingConfiguration.HlsPackageProperty.SegmentDurationSeconds`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder segmentDurationSeconds(java.lang.Number segmentDurationSeconds) {
this.segmentDurationSeconds = segmentDurationSeconds;
return this;
}
/**
* Sets the value of {@link HlsPackageProperty#getUseAudioRenditionGroup}
* @param useAudioRenditionGroup `CfnPackagingConfiguration.HlsPackageProperty.UseAudioRenditionGroup`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder useAudioRenditionGroup(java.lang.Boolean useAudioRenditionGroup) {
this.useAudioRenditionGroup = useAudioRenditionGroup;
return this;
}
/**
* Sets the value of {@link HlsPackageProperty#getUseAudioRenditionGroup}
* @param useAudioRenditionGroup `CfnPackagingConfiguration.HlsPackageProperty.UseAudioRenditionGroup`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder useAudioRenditionGroup(software.amazon.awscdk.core.IResolvable useAudioRenditionGroup) {
this.useAudioRenditionGroup = useAudioRenditionGroup;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link HlsPackageProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public HlsPackageProperty build() {
return new Jsii$Proxy(hlsManifests, encryption, segmentDurationSeconds, useAudioRenditionGroup);
}
}
/**
* An implementation for {@link HlsPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HlsPackageProperty {
private final java.lang.Object hlsManifests;
private final java.lang.Object encryption;
private final java.lang.Number segmentDurationSeconds;
private final java.lang.Object useAudioRenditionGroup;
/**
* 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.hlsManifests = software.amazon.jsii.Kernel.get(this, "hlsManifests", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.encryption = software.amazon.jsii.Kernel.get(this, "encryption", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.segmentDurationSeconds = software.amazon.jsii.Kernel.get(this, "segmentDurationSeconds", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.useAudioRenditionGroup = software.amazon.jsii.Kernel.get(this, "useAudioRenditionGroup", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Object hlsManifests, final java.lang.Object encryption, final java.lang.Number segmentDurationSeconds, final java.lang.Object useAudioRenditionGroup) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.hlsManifests = java.util.Objects.requireNonNull(hlsManifests, "hlsManifests is required");
this.encryption = encryption;
this.segmentDurationSeconds = segmentDurationSeconds;
this.useAudioRenditionGroup = useAudioRenditionGroup;
}
@Override
public final java.lang.Object getHlsManifests() {
return this.hlsManifests;
}
@Override
public final java.lang.Object getEncryption() {
return this.encryption;
}
@Override
public final java.lang.Number getSegmentDurationSeconds() {
return this.segmentDurationSeconds;
}
@Override
public final java.lang.Object getUseAudioRenditionGroup() {
return this.useAudioRenditionGroup;
}
@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("hlsManifests", om.valueToTree(this.getHlsManifests()));
if (this.getEncryption() != null) {
data.set("encryption", om.valueToTree(this.getEncryption()));
}
if (this.getSegmentDurationSeconds() != null) {
data.set("segmentDurationSeconds", om.valueToTree(this.getSegmentDurationSeconds()));
}
if (this.getUseAudioRenditionGroup() != null) {
data.set("useAudioRenditionGroup", om.valueToTree(this.getUseAudioRenditionGroup()));
}
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.CfnPackagingConfiguration.HlsPackageProperty"));
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;
HlsPackageProperty.Jsii$Proxy that = (HlsPackageProperty.Jsii$Proxy) o;
if (!hlsManifests.equals(that.hlsManifests)) return false;
if (this.encryption != null ? !this.encryption.equals(that.encryption) : that.encryption != null) return false;
if (this.segmentDurationSeconds != null ? !this.segmentDurationSeconds.equals(that.segmentDurationSeconds) : that.segmentDurationSeconds != null) return false;
return this.useAudioRenditionGroup != null ? this.useAudioRenditionGroup.equals(that.useAudioRenditionGroup) : that.useAudioRenditionGroup == null;
}
@Override
public final int hashCode() {
int result = this.hlsManifests.hashCode();
result = 31 * result + (this.encryption != null ? this.encryption.hashCode() : 0);
result = 31 * result + (this.segmentDurationSeconds != null ? this.segmentDurationSeconds.hashCode() : 0);
result = 31 * result + (this.useAudioRenditionGroup != null ? this.useAudioRenditionGroup.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.MssEncryptionProperty")
@software.amazon.jsii.Jsii.Proxy(MssEncryptionProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface MssEncryptionProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.MssEncryptionProperty.SpekeKeyProvider`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getSpekeKeyProvider();
/**
* @return a {@link Builder} of {@link MssEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link MssEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Object spekeKeyProvider;
/**
* Sets the value of {@link MssEncryptionProperty#getSpekeKeyProvider}
* @param spekeKeyProvider `CfnPackagingConfiguration.MssEncryptionProperty.SpekeKeyProvider`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder spekeKeyProvider(software.amazon.awscdk.core.IResolvable spekeKeyProvider) {
this.spekeKeyProvider = spekeKeyProvider;
return this;
}
/**
* Sets the value of {@link MssEncryptionProperty#getSpekeKeyProvider}
* @param spekeKeyProvider `CfnPackagingConfiguration.MssEncryptionProperty.SpekeKeyProvider`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder spekeKeyProvider(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.SpekeKeyProviderProperty spekeKeyProvider) {
this.spekeKeyProvider = spekeKeyProvider;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link MssEncryptionProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public MssEncryptionProperty build() {
return new Jsii$Proxy(spekeKeyProvider);
}
}
/**
* An implementation for {@link MssEncryptionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MssEncryptionProperty {
private final java.lang.Object spekeKeyProvider;
/**
* 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.spekeKeyProvider = software.amazon.jsii.Kernel.get(this, "spekeKeyProvider", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Object spekeKeyProvider) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.spekeKeyProvider = java.util.Objects.requireNonNull(spekeKeyProvider, "spekeKeyProvider is required");
}
@Override
public final java.lang.Object getSpekeKeyProvider() {
return this.spekeKeyProvider;
}
@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("spekeKeyProvider", om.valueToTree(this.getSpekeKeyProvider()));
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.CfnPackagingConfiguration.MssEncryptionProperty"));
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;
MssEncryptionProperty.Jsii$Proxy that = (MssEncryptionProperty.Jsii$Proxy) o;
return this.spekeKeyProvider.equals(that.spekeKeyProvider);
}
@Override
public final int hashCode() {
int result = this.spekeKeyProvider.hashCode();
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.MssManifestProperty")
@software.amazon.jsii.Jsii.Proxy(MssManifestProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface MssManifestProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.MssManifestProperty.ManifestName`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getManifestName() {
return null;
}
/**
* `CfnPackagingConfiguration.MssManifestProperty.StreamSelection`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getStreamSelection() {
return null;
}
/**
* @return a {@link Builder} of {@link MssManifestProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link MssManifestProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.String manifestName;
private java.lang.Object streamSelection;
/**
* Sets the value of {@link MssManifestProperty#getManifestName}
* @param manifestName `CfnPackagingConfiguration.MssManifestProperty.ManifestName`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder manifestName(java.lang.String manifestName) {
this.manifestName = manifestName;
return this;
}
/**
* Sets the value of {@link MssManifestProperty#getStreamSelection}
* @param streamSelection `CfnPackagingConfiguration.MssManifestProperty.StreamSelection`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder streamSelection(software.amazon.awscdk.core.IResolvable streamSelection) {
this.streamSelection = streamSelection;
return this;
}
/**
* Sets the value of {@link MssManifestProperty#getStreamSelection}
* @param streamSelection `CfnPackagingConfiguration.MssManifestProperty.StreamSelection`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder streamSelection(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.StreamSelectionProperty streamSelection) {
this.streamSelection = streamSelection;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link MssManifestProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public MssManifestProperty build() {
return new Jsii$Proxy(manifestName, streamSelection);
}
}
/**
* An implementation for {@link MssManifestProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MssManifestProperty {
private final java.lang.String manifestName;
private final java.lang.Object streamSelection;
/**
* 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.manifestName = software.amazon.jsii.Kernel.get(this, "manifestName", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.streamSelection = software.amazon.jsii.Kernel.get(this, "streamSelection", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.String manifestName, final java.lang.Object streamSelection) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.manifestName = manifestName;
this.streamSelection = streamSelection;
}
@Override
public final java.lang.String getManifestName() {
return this.manifestName;
}
@Override
public final java.lang.Object getStreamSelection() {
return this.streamSelection;
}
@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();
if (this.getManifestName() != null) {
data.set("manifestName", om.valueToTree(this.getManifestName()));
}
if (this.getStreamSelection() != null) {
data.set("streamSelection", om.valueToTree(this.getStreamSelection()));
}
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.CfnPackagingConfiguration.MssManifestProperty"));
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;
MssManifestProperty.Jsii$Proxy that = (MssManifestProperty.Jsii$Proxy) o;
if (this.manifestName != null ? !this.manifestName.equals(that.manifestName) : that.manifestName != null) return false;
return this.streamSelection != null ? this.streamSelection.equals(that.streamSelection) : that.streamSelection == null;
}
@Override
public final int hashCode() {
int result = this.manifestName != null ? this.manifestName.hashCode() : 0;
result = 31 * result + (this.streamSelection != null ? this.streamSelection.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.MssPackageProperty")
@software.amazon.jsii.Jsii.Proxy(MssPackageProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface MssPackageProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.MssPackageProperty.MssManifests`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.Object getMssManifests();
/**
* `CfnPackagingConfiguration.MssPackageProperty.Encryption`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Object getEncryption() {
return null;
}
/**
* `CfnPackagingConfiguration.MssPackageProperty.SegmentDurationSeconds`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getSegmentDurationSeconds() {
return null;
}
/**
* @return a {@link Builder} of {@link MssPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link MssPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Object mssManifests;
private java.lang.Object encryption;
private java.lang.Number segmentDurationSeconds;
/**
* Sets the value of {@link MssPackageProperty#getMssManifests}
* @param mssManifests `CfnPackagingConfiguration.MssPackageProperty.MssManifests`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mssManifests(software.amazon.awscdk.core.IResolvable mssManifests) {
this.mssManifests = mssManifests;
return this;
}
/**
* Sets the value of {@link MssPackageProperty#getMssManifests}
* @param mssManifests `CfnPackagingConfiguration.MssPackageProperty.MssManifests`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mssManifests(java.util.List extends java.lang.Object> mssManifests) {
this.mssManifests = mssManifests;
return this;
}
/**
* Sets the value of {@link MssPackageProperty#getEncryption}
* @param encryption `CfnPackagingConfiguration.MssPackageProperty.Encryption`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryption(software.amazon.awscdk.core.IResolvable encryption) {
this.encryption = encryption;
return this;
}
/**
* Sets the value of {@link MssPackageProperty#getEncryption}
* @param encryption `CfnPackagingConfiguration.MssPackageProperty.Encryption`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder encryption(software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.MssEncryptionProperty encryption) {
this.encryption = encryption;
return this;
}
/**
* Sets the value of {@link MssPackageProperty#getSegmentDurationSeconds}
* @param segmentDurationSeconds `CfnPackagingConfiguration.MssPackageProperty.SegmentDurationSeconds`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder segmentDurationSeconds(java.lang.Number segmentDurationSeconds) {
this.segmentDurationSeconds = segmentDurationSeconds;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link MssPackageProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public MssPackageProperty build() {
return new Jsii$Proxy(mssManifests, encryption, segmentDurationSeconds);
}
}
/**
* An implementation for {@link MssPackageProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements MssPackageProperty {
private final java.lang.Object mssManifests;
private final java.lang.Object encryption;
private final java.lang.Number segmentDurationSeconds;
/**
* 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.mssManifests = software.amazon.jsii.Kernel.get(this, "mssManifests", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.encryption = software.amazon.jsii.Kernel.get(this, "encryption", software.amazon.jsii.NativeType.forClass(java.lang.Object.class));
this.segmentDurationSeconds = software.amazon.jsii.Kernel.get(this, "segmentDurationSeconds", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Object mssManifests, final java.lang.Object encryption, final java.lang.Number segmentDurationSeconds) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.mssManifests = java.util.Objects.requireNonNull(mssManifests, "mssManifests is required");
this.encryption = encryption;
this.segmentDurationSeconds = segmentDurationSeconds;
}
@Override
public final java.lang.Object getMssManifests() {
return this.mssManifests;
}
@Override
public final java.lang.Object getEncryption() {
return this.encryption;
}
@Override
public final java.lang.Number getSegmentDurationSeconds() {
return this.segmentDurationSeconds;
}
@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("mssManifests", om.valueToTree(this.getMssManifests()));
if (this.getEncryption() != null) {
data.set("encryption", om.valueToTree(this.getEncryption()));
}
if (this.getSegmentDurationSeconds() != null) {
data.set("segmentDurationSeconds", om.valueToTree(this.getSegmentDurationSeconds()));
}
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.CfnPackagingConfiguration.MssPackageProperty"));
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;
MssPackageProperty.Jsii$Proxy that = (MssPackageProperty.Jsii$Proxy) o;
if (!mssManifests.equals(that.mssManifests)) return false;
if (this.encryption != null ? !this.encryption.equals(that.encryption) : that.encryption != null) return false;
return this.segmentDurationSeconds != null ? this.segmentDurationSeconds.equals(that.segmentDurationSeconds) : that.segmentDurationSeconds == null;
}
@Override
public final int hashCode() {
int result = this.mssManifests.hashCode();
result = 31 * result + (this.encryption != null ? this.encryption.hashCode() : 0);
result = 31 * result + (this.segmentDurationSeconds != null ? this.segmentDurationSeconds.hashCode() : 0);
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.SpekeKeyProviderProperty")
@software.amazon.jsii.Jsii.Proxy(SpekeKeyProviderProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface SpekeKeyProviderProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.SpekeKeyProviderProperty.RoleArn`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getRoleArn();
/**
* `CfnPackagingConfiguration.SpekeKeyProviderProperty.SystemIds`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.util.List getSystemIds();
/**
* `CfnPackagingConfiguration.SpekeKeyProviderProperty.Url`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@org.jetbrains.annotations.NotNull java.lang.String getUrl();
/**
* @return a {@link Builder} of {@link SpekeKeyProviderProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link SpekeKeyProviderProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.String roleArn;
private java.util.List systemIds;
private java.lang.String url;
/**
* Sets the value of {@link SpekeKeyProviderProperty#getRoleArn}
* @param roleArn `CfnPackagingConfiguration.SpekeKeyProviderProperty.RoleArn`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder roleArn(java.lang.String roleArn) {
this.roleArn = roleArn;
return this;
}
/**
* Sets the value of {@link SpekeKeyProviderProperty#getSystemIds}
* @param systemIds `CfnPackagingConfiguration.SpekeKeyProviderProperty.SystemIds`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder systemIds(java.util.List systemIds) {
this.systemIds = systemIds;
return this;
}
/**
* Sets the value of {@link SpekeKeyProviderProperty#getUrl}
* @param url `CfnPackagingConfiguration.SpekeKeyProviderProperty.Url`. This parameter is required.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder url(java.lang.String url) {
this.url = url;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link SpekeKeyProviderProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public SpekeKeyProviderProperty build() {
return new Jsii$Proxy(roleArn, systemIds, url);
}
}
/**
* An implementation for {@link SpekeKeyProviderProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SpekeKeyProviderProperty {
private final java.lang.String roleArn;
private final java.util.List systemIds;
private final java.lang.String url;
/**
* 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.roleArn = software.amazon.jsii.Kernel.get(this, "roleArn", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
this.systemIds = software.amazon.jsii.Kernel.get(this, "systemIds", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)));
this.url = software.amazon.jsii.Kernel.get(this, "url", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.String roleArn, final java.util.List systemIds, final java.lang.String url) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.roleArn = java.util.Objects.requireNonNull(roleArn, "roleArn is required");
this.systemIds = java.util.Objects.requireNonNull(systemIds, "systemIds is required");
this.url = java.util.Objects.requireNonNull(url, "url is required");
}
@Override
public final java.lang.String getRoleArn() {
return this.roleArn;
}
@Override
public final java.util.List getSystemIds() {
return this.systemIds;
}
@Override
public final java.lang.String getUrl() {
return this.url;
}
@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("roleArn", om.valueToTree(this.getRoleArn()));
data.set("systemIds", om.valueToTree(this.getSystemIds()));
data.set("url", om.valueToTree(this.getUrl()));
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.CfnPackagingConfiguration.SpekeKeyProviderProperty"));
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;
SpekeKeyProviderProperty.Jsii$Proxy that = (SpekeKeyProviderProperty.Jsii$Proxy) o;
if (!roleArn.equals(that.roleArn)) return false;
if (!systemIds.equals(that.systemIds)) return false;
return this.url.equals(that.url);
}
@Override
public final int hashCode() {
int result = this.roleArn.hashCode();
result = 31 * result + (this.systemIds.hashCode());
result = 31 * result + (this.url.hashCode());
return result;
}
}
}
/**
*/
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.mediapackage.$Module.class, fqn = "@aws-cdk/aws-mediapackage.CfnPackagingConfiguration.StreamSelectionProperty")
@software.amazon.jsii.Jsii.Proxy(StreamSelectionProperty.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static interface StreamSelectionProperty extends software.amazon.jsii.JsiiSerializable {
/**
* `CfnPackagingConfiguration.StreamSelectionProperty.MaxVideoBitsPerSecond`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getMaxVideoBitsPerSecond() {
return null;
}
/**
* `CfnPackagingConfiguration.StreamSelectionProperty.MinVideoBitsPerSecond`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.Number getMinVideoBitsPerSecond() {
return null;
}
/**
* `CfnPackagingConfiguration.StreamSelectionProperty.StreamOrder`.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
default @org.jetbrains.annotations.Nullable java.lang.String getStreamOrder() {
return null;
}
/**
* @return a {@link Builder} of {@link StreamSelectionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
static Builder builder() {
return new Builder();
}
/**
* A builder for {@link StreamSelectionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
private java.lang.Number maxVideoBitsPerSecond;
private java.lang.Number minVideoBitsPerSecond;
private java.lang.String streamOrder;
/**
* Sets the value of {@link StreamSelectionProperty#getMaxVideoBitsPerSecond}
* @param maxVideoBitsPerSecond `CfnPackagingConfiguration.StreamSelectionProperty.MaxVideoBitsPerSecond`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder maxVideoBitsPerSecond(java.lang.Number maxVideoBitsPerSecond) {
this.maxVideoBitsPerSecond = maxVideoBitsPerSecond;
return this;
}
/**
* Sets the value of {@link StreamSelectionProperty#getMinVideoBitsPerSecond}
* @param minVideoBitsPerSecond `CfnPackagingConfiguration.StreamSelectionProperty.MinVideoBitsPerSecond`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder minVideoBitsPerSecond(java.lang.Number minVideoBitsPerSecond) {
this.minVideoBitsPerSecond = minVideoBitsPerSecond;
return this;
}
/**
* Sets the value of {@link StreamSelectionProperty#getStreamOrder}
* @param streamOrder `CfnPackagingConfiguration.StreamSelectionProperty.StreamOrder`.
* @return {@code this}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder streamOrder(java.lang.String streamOrder) {
this.streamOrder = streamOrder;
return this;
}
/**
* Builds the configured instance.
* @return a new instance of {@link StreamSelectionProperty}
* @throws NullPointerException if any required attribute was not provided
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public StreamSelectionProperty build() {
return new Jsii$Proxy(maxVideoBitsPerSecond, minVideoBitsPerSecond, streamOrder);
}
}
/**
* An implementation for {@link StreamSelectionProperty}
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Internal
final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StreamSelectionProperty {
private final java.lang.Number maxVideoBitsPerSecond;
private final java.lang.Number minVideoBitsPerSecond;
private final java.lang.String streamOrder;
/**
* 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.maxVideoBitsPerSecond = software.amazon.jsii.Kernel.get(this, "maxVideoBitsPerSecond", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.minVideoBitsPerSecond = software.amazon.jsii.Kernel.get(this, "minVideoBitsPerSecond", software.amazon.jsii.NativeType.forClass(java.lang.Number.class));
this.streamOrder = software.amazon.jsii.Kernel.get(this, "streamOrder", software.amazon.jsii.NativeType.forClass(java.lang.String.class));
}
/**
* Constructor that initializes the object based on literal property values passed by the {@link Builder}.
*/
protected Jsii$Proxy(final java.lang.Number maxVideoBitsPerSecond, final java.lang.Number minVideoBitsPerSecond, final java.lang.String streamOrder) {
super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
this.maxVideoBitsPerSecond = maxVideoBitsPerSecond;
this.minVideoBitsPerSecond = minVideoBitsPerSecond;
this.streamOrder = streamOrder;
}
@Override
public final java.lang.Number getMaxVideoBitsPerSecond() {
return this.maxVideoBitsPerSecond;
}
@Override
public final java.lang.Number getMinVideoBitsPerSecond() {
return this.minVideoBitsPerSecond;
}
@Override
public final java.lang.String getStreamOrder() {
return this.streamOrder;
}
@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();
if (this.getMaxVideoBitsPerSecond() != null) {
data.set("maxVideoBitsPerSecond", om.valueToTree(this.getMaxVideoBitsPerSecond()));
}
if (this.getMinVideoBitsPerSecond() != null) {
data.set("minVideoBitsPerSecond", om.valueToTree(this.getMinVideoBitsPerSecond()));
}
if (this.getStreamOrder() != null) {
data.set("streamOrder", om.valueToTree(this.getStreamOrder()));
}
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.CfnPackagingConfiguration.StreamSelectionProperty"));
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;
StreamSelectionProperty.Jsii$Proxy that = (StreamSelectionProperty.Jsii$Proxy) o;
if (this.maxVideoBitsPerSecond != null ? !this.maxVideoBitsPerSecond.equals(that.maxVideoBitsPerSecond) : that.maxVideoBitsPerSecond != null) return false;
if (this.minVideoBitsPerSecond != null ? !this.minVideoBitsPerSecond.equals(that.minVideoBitsPerSecond) : that.minVideoBitsPerSecond != null) return false;
return this.streamOrder != null ? this.streamOrder.equals(that.streamOrder) : that.streamOrder == null;
}
@Override
public final int hashCode() {
int result = this.maxVideoBitsPerSecond != null ? this.maxVideoBitsPerSecond.hashCode() : 0;
result = 31 * result + (this.minVideoBitsPerSecond != null ? this.minVideoBitsPerSecond.hashCode() : 0);
result = 31 * result + (this.streamOrder != null ? this.streamOrder.hashCode() : 0);
return result;
}
}
}
/**
* A fluent builder for {@link software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static final class Builder implements software.amazon.jsii.Builder {
/**
* @return a new instance of {@link Builder}.
* @param scope - scope in which this resource is defined. This parameter is required.
* @param id - scoped id of the resource. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public static Builder create(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
return new Builder(scope, id);
}
private final software.amazon.awscdk.core.Construct scope;
private final java.lang.String id;
private final software.amazon.awscdk.services.mediapackage.CfnPackagingConfigurationProps.Builder props;
private Builder(final software.amazon.awscdk.core.Construct scope, final java.lang.String id) {
this.scope = scope;
this.id = id;
this.props = new software.amazon.awscdk.services.mediapackage.CfnPackagingConfigurationProps.Builder();
}
/**
* `AWS::MediaPackage::PackagingConfiguration.Id`.
*
* @return {@code this}
* @param id `AWS::MediaPackage::PackagingConfiguration.Id`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder id(final java.lang.String id) {
this.props.id(id);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.PackagingGroupId`.
*
* @return {@code this}
* @param packagingGroupId `AWS::MediaPackage::PackagingConfiguration.PackagingGroupId`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder packagingGroupId(final java.lang.String packagingGroupId) {
this.props.packagingGroupId(packagingGroupId);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.CmafPackage`.
*
* @return {@code this}
* @param cmafPackage `AWS::MediaPackage::PackagingConfiguration.CmafPackage`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder cmafPackage(final software.amazon.awscdk.core.IResolvable cmafPackage) {
this.props.cmafPackage(cmafPackage);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.CmafPackage`.
*
* @return {@code this}
* @param cmafPackage `AWS::MediaPackage::PackagingConfiguration.CmafPackage`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder cmafPackage(final software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.CmafPackageProperty cmafPackage) {
this.props.cmafPackage(cmafPackage);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.DashPackage`.
*
* @return {@code this}
* @param dashPackage `AWS::MediaPackage::PackagingConfiguration.DashPackage`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder dashPackage(final software.amazon.awscdk.core.IResolvable dashPackage) {
this.props.dashPackage(dashPackage);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.DashPackage`.
*
* @return {@code this}
* @param dashPackage `AWS::MediaPackage::PackagingConfiguration.DashPackage`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder dashPackage(final software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.DashPackageProperty dashPackage) {
this.props.dashPackage(dashPackage);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.HlsPackage`.
*
* @return {@code this}
* @param hlsPackage `AWS::MediaPackage::PackagingConfiguration.HlsPackage`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder hlsPackage(final software.amazon.awscdk.core.IResolvable hlsPackage) {
this.props.hlsPackage(hlsPackage);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.HlsPackage`.
*
* @return {@code this}
* @param hlsPackage `AWS::MediaPackage::PackagingConfiguration.HlsPackage`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder hlsPackage(final software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.HlsPackageProperty hlsPackage) {
this.props.hlsPackage(hlsPackage);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.MssPackage`.
*
* @return {@code this}
* @param mssPackage `AWS::MediaPackage::PackagingConfiguration.MssPackage`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mssPackage(final software.amazon.awscdk.core.IResolvable mssPackage) {
this.props.mssPackage(mssPackage);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.MssPackage`.
*
* @return {@code this}
* @param mssPackage `AWS::MediaPackage::PackagingConfiguration.MssPackage`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder mssPackage(final software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration.MssPackageProperty mssPackage) {
this.props.mssPackage(mssPackage);
return this;
}
/**
* `AWS::MediaPackage::PackagingConfiguration.Tags`.
*
* @return {@code this}
* @param tags `AWS::MediaPackage::PackagingConfiguration.Tags`. This parameter is required.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
public Builder tags(final java.util.List extends software.amazon.awscdk.core.CfnTag> tags) {
this.props.tags(tags);
return this;
}
/**
* @returns a newly built instance of {@link software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration}.
*/
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@Override
public software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration build() {
return new software.amazon.awscdk.services.mediapackage.CfnPackagingConfiguration(
this.scope,
this.id,
this.props.build()
);
}
}
}