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

software.amazon.awssdk.services.ivs.model.CreateChannelRequest Maven / Gradle / Ivy

/*
 * Copyright 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 software.amazon.awssdk.services.ivs.model;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
import software.amazon.awssdk.core.util.SdkAutoConstructMap;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 */
@Generated("software.amazon.awssdk:codegen")
public final class CreateChannelRequest extends IvsRequest implements
        ToCopyableBuilder {
    private static final SdkField NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("name")
            .getter(getter(CreateChannelRequest::name)).setter(setter(Builder::name))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("name").build()).build();

    private static final SdkField LATENCY_MODE_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("latencyMode").getter(getter(CreateChannelRequest::latencyModeAsString))
            .setter(setter(Builder::latencyMode))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("latencyMode").build()).build();

    private static final SdkField TYPE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("type")
            .getter(getter(CreateChannelRequest::typeAsString)).setter(setter(Builder::type))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("type").build()).build();

    private static final SdkField AUTHORIZED_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
            .memberName("authorized").getter(getter(CreateChannelRequest::authorized)).setter(setter(Builder::authorized))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("authorized").build()).build();

    private static final SdkField RECORDING_CONFIGURATION_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
            .memberName("recordingConfigurationArn").getter(getter(CreateChannelRequest::recordingConfigurationArn))
            .setter(setter(Builder::recordingConfigurationArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("recordingConfigurationArn").build())
            .build();

    private static final SdkField> TAGS_FIELD = SdkField
            .> builder(MarshallingType.MAP)
            .memberName("tags")
            .getter(getter(CreateChannelRequest::tags))
            .setter(setter(Builder::tags))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("tags").build(),
                    MapTrait.builder()
                            .keyLocationName("key")
                            .valueLocationName("value")
                            .valueFieldInfo(
                                    SdkField. builder(MarshallingType.STRING)
                                            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
                                                    .locationName("value").build()).build()).build()).build();

    private static final SdkField INSECURE_INGEST_FIELD = SdkField. builder(MarshallingType.BOOLEAN)
            .memberName("insecureIngest").getter(getter(CreateChannelRequest::insecureIngest))
            .setter(setter(Builder::insecureIngest))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("insecureIngest").build()).build();

    private static final SdkField PRESET_FIELD = SdkField. builder(MarshallingType.STRING).memberName("preset")
            .getter(getter(CreateChannelRequest::presetAsString)).setter(setter(Builder::preset))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("preset").build()).build();

    private static final SdkField PLAYBACK_RESTRICTION_POLICY_ARN_FIELD = SdkField
            . builder(MarshallingType.STRING)
            .memberName("playbackRestrictionPolicyArn")
            .getter(getter(CreateChannelRequest::playbackRestrictionPolicyArn))
            .setter(setter(Builder::playbackRestrictionPolicyArn))
            .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("playbackRestrictionPolicyArn")
                    .build()).build();

    private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(NAME_FIELD,
            LATENCY_MODE_FIELD, TYPE_FIELD, AUTHORIZED_FIELD, RECORDING_CONFIGURATION_ARN_FIELD, TAGS_FIELD,
            INSECURE_INGEST_FIELD, PRESET_FIELD, PLAYBACK_RESTRICTION_POLICY_ARN_FIELD));

    private final String name;

    private final String latencyMode;

    private final String type;

    private final Boolean authorized;

    private final String recordingConfigurationArn;

    private final Map tags;

    private final Boolean insecureIngest;

    private final String preset;

    private final String playbackRestrictionPolicyArn;

    private CreateChannelRequest(BuilderImpl builder) {
        super(builder);
        this.name = builder.name;
        this.latencyMode = builder.latencyMode;
        this.type = builder.type;
        this.authorized = builder.authorized;
        this.recordingConfigurationArn = builder.recordingConfigurationArn;
        this.tags = builder.tags;
        this.insecureIngest = builder.insecureIngest;
        this.preset = builder.preset;
        this.playbackRestrictionPolicyArn = builder.playbackRestrictionPolicyArn;
    }

    /**
     * 

* Channel name. *

* * @return Channel name. */ public final String name() { return name; } /** *

* Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. Default: LOW. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #latencyMode} will * return {@link ChannelLatencyMode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #latencyModeAsString}. *

* * @return Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. Default: LOW. * @see ChannelLatencyMode */ public final ChannelLatencyMode latencyMode() { return ChannelLatencyMode.fromValue(latencyMode); } /** *

* Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. Default: LOW. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #latencyMode} will * return {@link ChannelLatencyMode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #latencyModeAsString}. *

* * @return Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. Default: LOW. * @see ChannelLatencyMode */ public final String latencyModeAsString() { return latencyMode; } /** *

* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input * resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For * details, see Channel * Types. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #type} will return * {@link ChannelType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #typeAsString}. *

* * @return Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input * resolution or bitrate, the stream probably will disconnect immediately. Default: * STANDARD. For details, see Channel * Types. * @see ChannelType */ public final ChannelType type() { return ChannelType.fromValue(type); } /** *

* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input * resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. For * details, see Channel * Types. *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #type} will return * {@link ChannelType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #typeAsString}. *

* * @return Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input * resolution or bitrate, the stream probably will disconnect immediately. Default: * STANDARD. For details, see Channel * Types. * @see ChannelType */ public final String typeAsString() { return type; } /** *

* Whether the channel is private (enabled for playback authorization). Default: false. *

* * @return Whether the channel is private (enabled for playback authorization). Default: false. */ public final Boolean authorized() { return authorized; } /** *

* Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. Default: "" * (empty string, recording is disabled). *

* * @return Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. * Default: "" (empty string, recording is disabled). */ public final String recordingConfigurationArn() { return recordingConfigurationArn; } /** * For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that * the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful * because the SDK will never return a null collection or map, but you may need to differentiate between the service * returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true * if a value for the property was specified in the request builder, and false if a value was not specified. */ public final boolean hasTags() { return tags != null && !(tags instanceof SdkAutoConstructMap); } /** *

* Array of 1-50 maps, each of the form string:string (key:value). See Tagging Amazon Web Services Resources * for more information, including restrictions that apply to tags and "Tag naming limits and requirements"; Amazon * IVS has no service-specific constraints beyond what is documented there. *

*

* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. *

*

* This method will never return null. If you would like to know whether the service returned this field (so that * you can differentiate between null and empty), you can use the {@link #hasTags} method. *

* * @return Array of 1-50 maps, each of the form string:string (key:value). See Tagging Amazon Web Services * Resources for more information, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is * documented there. */ public final Map tags() { return tags; } /** *

* Whether the channel allows insecure RTMP and SRT ingest. Default: false. *

* * @return Whether the channel allows insecure RTMP and SRT ingest. Default: false. */ public final Boolean insecureIngest() { return insecureIngest; } /** *

* Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), * preset is the empty string (""). *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #preset} will * return {@link TranscodePreset#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #presetAsString}. *

* * @return Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and * STANDARD), preset is the empty string (""). * @see TranscodePreset */ public final TranscodePreset preset() { return TranscodePreset.fromValue(preset); } /** *

* Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD), * preset is the empty string (""). *

*

* If the service returns an enum value that is not available in the current SDK version, {@link #preset} will * return {@link TranscodePreset#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from * {@link #presetAsString}. *

* * @return Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and * STANDARD), preset is the empty string (""). * @see TranscodePreset */ public final String presetAsString() { return preset; } /** *

* Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback restriction. * Default: "" (empty string, no playback restriction policy is applied). *

* * @return Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback * restriction. Default: "" (empty string, no playback restriction policy is applied). */ public final String playbackRestrictionPolicyArn() { return playbackRestrictionPolicyArn; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + super.hashCode(); hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(latencyModeAsString()); hashCode = 31 * hashCode + Objects.hashCode(typeAsString()); hashCode = 31 * hashCode + Objects.hashCode(authorized()); hashCode = 31 * hashCode + Objects.hashCode(recordingConfigurationArn()); hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null); hashCode = 31 * hashCode + Objects.hashCode(insecureIngest()); hashCode = 31 * hashCode + Objects.hashCode(presetAsString()); hashCode = 31 * hashCode + Objects.hashCode(playbackRestrictionPolicyArn()); return hashCode; } @Override public final boolean equals(Object obj) { return super.equals(obj) && equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof CreateChannelRequest)) { return false; } CreateChannelRequest other = (CreateChannelRequest) obj; return Objects.equals(name(), other.name()) && Objects.equals(latencyModeAsString(), other.latencyModeAsString()) && Objects.equals(typeAsString(), other.typeAsString()) && Objects.equals(authorized(), other.authorized()) && Objects.equals(recordingConfigurationArn(), other.recordingConfigurationArn()) && hasTags() == other.hasTags() && Objects.equals(tags(), other.tags()) && Objects.equals(insecureIngest(), other.insecureIngest()) && Objects.equals(presetAsString(), other.presetAsString()) && Objects.equals(playbackRestrictionPolicyArn(), other.playbackRestrictionPolicyArn()); } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public final String toString() { return ToString.builder("CreateChannelRequest").add("Name", name()).add("LatencyMode", latencyModeAsString()) .add("Type", typeAsString()).add("Authorized", authorized()) .add("RecordingConfigurationArn", recordingConfigurationArn()).add("Tags", hasTags() ? tags() : null) .add("InsecureIngest", insecureIngest()).add("Preset", presetAsString()) .add("PlaybackRestrictionPolicyArn", playbackRestrictionPolicyArn()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "name": return Optional.ofNullable(clazz.cast(name())); case "latencyMode": return Optional.ofNullable(clazz.cast(latencyModeAsString())); case "type": return Optional.ofNullable(clazz.cast(typeAsString())); case "authorized": return Optional.ofNullable(clazz.cast(authorized())); case "recordingConfigurationArn": return Optional.ofNullable(clazz.cast(recordingConfigurationArn())); case "tags": return Optional.ofNullable(clazz.cast(tags())); case "insecureIngest": return Optional.ofNullable(clazz.cast(insecureIngest())); case "preset": return Optional.ofNullable(clazz.cast(presetAsString())); case "playbackRestrictionPolicyArn": return Optional.ofNullable(clazz.cast(playbackRestrictionPolicyArn())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((CreateChannelRequest) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends IvsRequest.Builder, SdkPojo, CopyableBuilder { /** *

* Channel name. *

* * @param name * Channel name. * @return Returns a reference to this object so that method calls can be chained together. */ Builder name(String name); /** *

* Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. Default: LOW. *

* * @param latencyMode * Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. Default: LOW. * @see ChannelLatencyMode * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelLatencyMode */ Builder latencyMode(String latencyMode); /** *

* Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. Default: LOW. *

* * @param latencyMode * Channel latency mode. Use NORMAL to broadcast and deliver live video up to Full HD. Use * LOW for near-real-time interaction with viewers. Default: LOW. * @see ChannelLatencyMode * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelLatencyMode */ Builder latencyMode(ChannelLatencyMode latencyMode); /** *

* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input * resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. * For details, see Channel Types. *

* * @param type * Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable * input resolution or bitrate, the stream probably will disconnect immediately. Default: * STANDARD. For details, see Channel * Types. * @see ChannelType * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelType */ Builder type(String type); /** *

* Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable input * resolution or bitrate, the stream probably will disconnect immediately. Default: STANDARD. * For details, see Channel Types. *

* * @param type * Channel type, which determines the allowable resolution and bitrate. If you exceed the allowable * input resolution or bitrate, the stream probably will disconnect immediately. Default: * STANDARD. For details, see Channel * Types. * @see ChannelType * @return Returns a reference to this object so that method calls can be chained together. * @see ChannelType */ Builder type(ChannelType type); /** *

* Whether the channel is private (enabled for playback authorization). Default: false. *

* * @param authorized * Whether the channel is private (enabled for playback authorization). Default: false. * @return Returns a reference to this object so that method calls can be chained together. */ Builder authorized(Boolean authorized); /** *

* Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. Default: "" * (empty string, recording is disabled). *

* * @param recordingConfigurationArn * Recording-configuration ARN. A valid ARN value here both specifies the ARN and enables recording. * Default: "" (empty string, recording is disabled). * @return Returns a reference to this object so that method calls can be chained together. */ Builder recordingConfigurationArn(String recordingConfigurationArn); /** *

* Array of 1-50 maps, each of the form string:string (key:value). See Tagging Amazon Web Services * Resources for more information, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is * documented there. *

* * @param tags * Array of 1-50 maps, each of the form string:string (key:value). See Tagging Amazon Web Services * Resources for more information, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS has no service-specific constraints beyond what is * documented there. * @return Returns a reference to this object so that method calls can be chained together. */ Builder tags(Map tags); /** *

* Whether the channel allows insecure RTMP and SRT ingest. Default: false. *

* * @param insecureIngest * Whether the channel allows insecure RTMP and SRT ingest. Default: false. * @return Returns a reference to this object so that method calls can be chained together. */ Builder insecureIngest(Boolean insecureIngest); /** *

* Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD * ), preset is the empty string (""). *

* * @param preset * Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and * STANDARD), preset is the empty string (""). * @see TranscodePreset * @return Returns a reference to this object so that method calls can be chained together. * @see TranscodePreset */ Builder preset(String preset); /** *

* Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and STANDARD * ), preset is the empty string (""). *

* * @param preset * Optional transcode preset for the channel. This is selectable only for ADVANCED_HD and * ADVANCED_SD channel types. For those channel types, the default preset is * HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC and * STANDARD), preset is the empty string (""). * @see TranscodePreset * @return Returns a reference to this object so that method calls can be chained together. * @see TranscodePreset */ Builder preset(TranscodePreset preset); /** *

* Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback * restriction. Default: "" (empty string, no playback restriction policy is applied). *

* * @param playbackRestrictionPolicyArn * Playback-restriction-policy ARN. A valid ARN value here both specifies the ARN and enables playback * restriction. Default: "" (empty string, no playback restriction policy is applied). * @return Returns a reference to this object so that method calls can be chained together. */ Builder playbackRestrictionPolicyArn(String playbackRestrictionPolicyArn); @Override Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration); @Override Builder overrideConfiguration(Consumer builderConsumer); } static final class BuilderImpl extends IvsRequest.BuilderImpl implements Builder { private String name; private String latencyMode; private String type; private Boolean authorized; private String recordingConfigurationArn; private Map tags = DefaultSdkAutoConstructMap.getInstance(); private Boolean insecureIngest; private String preset; private String playbackRestrictionPolicyArn; private BuilderImpl() { } private BuilderImpl(CreateChannelRequest model) { super(model); name(model.name); latencyMode(model.latencyMode); type(model.type); authorized(model.authorized); recordingConfigurationArn(model.recordingConfigurationArn); tags(model.tags); insecureIngest(model.insecureIngest); preset(model.preset); playbackRestrictionPolicyArn(model.playbackRestrictionPolicyArn); } public final String getName() { return name; } public final void setName(String name) { this.name = name; } @Override public final Builder name(String name) { this.name = name; return this; } public final String getLatencyMode() { return latencyMode; } public final void setLatencyMode(String latencyMode) { this.latencyMode = latencyMode; } @Override public final Builder latencyMode(String latencyMode) { this.latencyMode = latencyMode; return this; } @Override public final Builder latencyMode(ChannelLatencyMode latencyMode) { this.latencyMode(latencyMode == null ? null : latencyMode.toString()); return this; } public final String getType() { return type; } public final void setType(String type) { this.type = type; } @Override public final Builder type(String type) { this.type = type; return this; } @Override public final Builder type(ChannelType type) { this.type(type == null ? null : type.toString()); return this; } public final Boolean getAuthorized() { return authorized; } public final void setAuthorized(Boolean authorized) { this.authorized = authorized; } @Override public final Builder authorized(Boolean authorized) { this.authorized = authorized; return this; } public final String getRecordingConfigurationArn() { return recordingConfigurationArn; } public final void setRecordingConfigurationArn(String recordingConfigurationArn) { this.recordingConfigurationArn = recordingConfigurationArn; } @Override public final Builder recordingConfigurationArn(String recordingConfigurationArn) { this.recordingConfigurationArn = recordingConfigurationArn; return this; } public final Map getTags() { if (tags instanceof SdkAutoConstructMap) { return null; } return tags; } public final void setTags(Map tags) { this.tags = TagsCopier.copy(tags); } @Override public final Builder tags(Map tags) { this.tags = TagsCopier.copy(tags); return this; } public final Boolean getInsecureIngest() { return insecureIngest; } public final void setInsecureIngest(Boolean insecureIngest) { this.insecureIngest = insecureIngest; } @Override public final Builder insecureIngest(Boolean insecureIngest) { this.insecureIngest = insecureIngest; return this; } public final String getPreset() { return preset; } public final void setPreset(String preset) { this.preset = preset; } @Override public final Builder preset(String preset) { this.preset = preset; return this; } @Override public final Builder preset(TranscodePreset preset) { this.preset(preset == null ? null : preset.toString()); return this; } public final String getPlaybackRestrictionPolicyArn() { return playbackRestrictionPolicyArn; } public final void setPlaybackRestrictionPolicyArn(String playbackRestrictionPolicyArn) { this.playbackRestrictionPolicyArn = playbackRestrictionPolicyArn; } @Override public final Builder playbackRestrictionPolicyArn(String playbackRestrictionPolicyArn) { this.playbackRestrictionPolicyArn = playbackRestrictionPolicyArn; return this; } @Override public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) { super.overrideConfiguration(overrideConfiguration); return this; } @Override public Builder overrideConfiguration(Consumer builderConsumer) { super.overrideConfiguration(builderConsumer); return this; } @Override public CreateChannelRequest build() { return new CreateChannelRequest(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy