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

com.amazonaws.kinesisvideo.parser.utilities.MkvTrackMetadata Maven / Gradle / Ivy

Go to download

The Amazon Kinesis Video Streams Parser Library for Java enables Java developers to parse the streams returned by GetMedia calls to Amazon Kinesis Video.

There is a newer version: 1.2.5
Show newest version
// Generated by delombok at Mon Mar 05 19:46:46 UTC 2018
/*
Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"). 
You may not use this file except in compliance with the License. 
A copy of the License is located at

   http://aws.amazon.com/apache2.0/

or in the "license" file accompanying this file. 
This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
*/
package com.amazonaws.kinesisvideo.parser.utilities;

import com.amazonaws.kinesisvideo.parser.mkv.MkvElement;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Optional;
import java.util.OptionalLong;

/**
 * Class that captures the meta-data for a particular track in the mkv response.
 */
public class MkvTrackMetadata {
    private BigInteger trackNumber;
    private Optional trackUID;
    private String trackName;
    private String codecId;
    private String codecName;
    private ByteBuffer codecPrivateData;
    private Optional pixelWidth;
    private Optional pixelHeight;
    private List allElementsInTrack;

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    private static Optional $default$trackUID() {
        return Optional.empty();
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    private static String $default$trackName() {
        return "";
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    private static String $default$codecId() {
        return "";
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    private static String $default$codecName() {
        return "";
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    private static Optional $default$pixelWidth() {
        return Optional.empty();
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    private static Optional $default$pixelHeight() {
        return Optional.empty();
    }


    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public static class MkvTrackMetadataBuilder {
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private BigInteger trackNumber;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private boolean trackUID$set;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private Optional trackUID;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private boolean trackName$set;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private String trackName;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private boolean codecId$set;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private String codecId;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private boolean codecName$set;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private String codecName;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private ByteBuffer codecPrivateData;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private boolean pixelWidth$set;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private Optional pixelWidth;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private boolean pixelHeight$set;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private Optional pixelHeight;
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        private List allElementsInTrack;

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        MkvTrackMetadataBuilder() {
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadataBuilder trackNumber(final BigInteger trackNumber) {
            this.trackNumber = trackNumber;
            return this;
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadataBuilder trackUID(final Optional trackUID) {
            this.trackUID = trackUID;
            trackUID$set = true;
            return this;
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadataBuilder trackName(final String trackName) {
            this.trackName = trackName;
            trackName$set = true;
            return this;
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadataBuilder codecId(final String codecId) {
            this.codecId = codecId;
            codecId$set = true;
            return this;
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadataBuilder codecName(final String codecName) {
            this.codecName = codecName;
            codecName$set = true;
            return this;
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadataBuilder codecPrivateData(final ByteBuffer codecPrivateData) {
            this.codecPrivateData = codecPrivateData;
            return this;
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadataBuilder pixelWidth(final Optional pixelWidth) {
            this.pixelWidth = pixelWidth;
            pixelWidth$set = true;
            return this;
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadataBuilder pixelHeight(final Optional pixelHeight) {
            this.pixelHeight = pixelHeight;
            pixelHeight$set = true;
            return this;
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadataBuilder allElementsInTrack(final List allElementsInTrack) {
            this.allElementsInTrack = allElementsInTrack;
            return this;
        }

        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public MkvTrackMetadata build() {
            return new MkvTrackMetadata(trackNumber, trackUID$set ? trackUID : MkvTrackMetadata.$default$trackUID(), trackName$set ? trackName : MkvTrackMetadata.$default$trackName(), codecId$set ? codecId : MkvTrackMetadata.$default$codecId(), codecName$set ? codecName : MkvTrackMetadata.$default$codecName(), codecPrivateData, pixelWidth$set ? pixelWidth : MkvTrackMetadata.$default$pixelWidth(), pixelHeight$set ? pixelHeight : MkvTrackMetadata.$default$pixelHeight(), allElementsInTrack);
        }

        @Override
        @SuppressWarnings("all")
        @javax.annotation.Generated("lombok")
        public String toString() {
            return "MkvTrackMetadata.MkvTrackMetadataBuilder(trackNumber=" + this.trackNumber + ", trackUID=" + this.trackUID + ", trackName=" + this.trackName + ", codecId=" + this.codecId + ", codecName=" + this.codecName + ", codecPrivateData=" + this.codecPrivateData + ", pixelWidth=" + this.pixelWidth + ", pixelHeight=" + this.pixelHeight + ", allElementsInTrack=" + this.allElementsInTrack + ")";
        }
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public static MkvTrackMetadataBuilder builder() {
        return new MkvTrackMetadataBuilder();
    }

    @java.beans.ConstructorProperties({"trackNumber", "trackUID", "trackName", "codecId", "codecName", "codecPrivateData", "pixelWidth", "pixelHeight", "allElementsInTrack"})
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    private MkvTrackMetadata(final BigInteger trackNumber, final Optional trackUID, final String trackName, final String codecId, final String codecName, final ByteBuffer codecPrivateData, final Optional pixelWidth, final Optional pixelHeight, final List allElementsInTrack) {
        this.trackNumber = trackNumber;
        this.trackUID = trackUID;
        this.trackName = trackName;
        this.codecId = codecId;
        this.codecName = codecName;
        this.codecPrivateData = codecPrivateData;
        this.pixelWidth = pixelWidth;
        this.pixelHeight = pixelHeight;
        this.allElementsInTrack = allElementsInTrack;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public BigInteger getTrackNumber() {
        return this.trackNumber;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Optional getTrackUID() {
        return this.trackUID;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getTrackName() {
        return this.trackName;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getCodecId() {
        return this.codecId;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getCodecName() {
        return this.codecName;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public ByteBuffer getCodecPrivateData() {
        return this.codecPrivateData;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Optional getPixelWidth() {
        return this.pixelWidth;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Optional getPixelHeight() {
        return this.pixelHeight;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public List getAllElementsInTrack() {
        return this.allElementsInTrack;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String toString() {
        return "MkvTrackMetadata(trackNumber=" + this.getTrackNumber() + ", trackUID=" + this.getTrackUID() + ", trackName=" + this.getTrackName() + ", codecId=" + this.getCodecId() + ", codecName=" + this.getCodecName() + ", pixelWidth=" + this.getPixelWidth() + ", pixelHeight=" + this.getPixelHeight() + ")";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy