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

software.amazon.awssdk.services.alexaforbusiness.model.ConferenceProvider Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Alexa For Business module holds the client classes that are used for communicating with Alexa For Business Service

There is a newer version: 2.25.61
Show newest version
/*
 * 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.alexaforbusiness.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
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.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.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* An entity that provides a conferencing solution. Alexa for Business acts as the voice interface and mediator that * connects users to their preferred conference provider. Examples of conference providers include Amazon Chime, Zoom, * Cisco, and Polycom. *

*/ @Generated("software.amazon.awssdk:codegen") public final class ConferenceProvider implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField ARN_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Arn") .getter(getter(ConferenceProvider::arn)).setter(setter(Builder::arn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Arn").build()).build(); private static final SdkField NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Name") .getter(getter(ConferenceProvider::name)).setter(setter(Builder::name)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Name").build()).build(); private static final SdkField TYPE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Type") .getter(getter(ConferenceProvider::typeAsString)).setter(setter(Builder::type)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Type").build()).build(); private static final SdkField IP_DIAL_IN_FIELD = SdkField. builder(MarshallingType.SDK_POJO) .memberName("IPDialIn").getter(getter(ConferenceProvider::ipDialIn)).setter(setter(Builder::ipDialIn)) .constructor(IPDialIn::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IPDialIn").build()).build(); private static final SdkField PSTN_DIAL_IN_FIELD = SdkField. builder(MarshallingType.SDK_POJO) .memberName("PSTNDialIn").getter(getter(ConferenceProvider::pstnDialIn)).setter(setter(Builder::pstnDialIn)) .constructor(PSTNDialIn::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PSTNDialIn").build()).build(); private static final SdkField MEETING_SETTING_FIELD = SdkField . builder(MarshallingType.SDK_POJO).memberName("MeetingSetting") .getter(getter(ConferenceProvider::meetingSetting)).setter(setter(Builder::meetingSetting)) .constructor(MeetingSetting::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("MeetingSetting").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(ARN_FIELD, NAME_FIELD, TYPE_FIELD, IP_DIAL_IN_FIELD, PSTN_DIAL_IN_FIELD, MEETING_SETTING_FIELD)); private static final long serialVersionUID = 1L; private final String arn; private final String name; private final String type; private final IPDialIn ipDialIn; private final PSTNDialIn pstnDialIn; private final MeetingSetting meetingSetting; private ConferenceProvider(BuilderImpl builder) { this.arn = builder.arn; this.name = builder.name; this.type = builder.type; this.ipDialIn = builder.ipDialIn; this.pstnDialIn = builder.pstnDialIn; this.meetingSetting = builder.meetingSetting; } /** *

* The ARN of the newly created conference provider. *

* * @return The ARN of the newly created conference provider. */ public final String arn() { return arn; } /** *

* The name of the conference provider. *

* * @return The name of the conference provider. */ public final String name() { return name; } /** *

* The type of conference providers. *

*

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

* * @return The type of conference providers. * @see ConferenceProviderType */ public final ConferenceProviderType type() { return ConferenceProviderType.fromValue(type); } /** *

* The type of conference providers. *

*

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

* * @return The type of conference providers. * @see ConferenceProviderType */ public final String typeAsString() { return type; } /** *

* The IP endpoint and protocol for calling. *

* * @return The IP endpoint and protocol for calling. */ public final IPDialIn ipDialIn() { return ipDialIn; } /** *

* The information for PSTN conferencing. *

* * @return The information for PSTN conferencing. */ public final PSTNDialIn pstnDialIn() { return pstnDialIn; } /** *

* The meeting settings for the conference provider. *

* * @return The meeting settings for the conference provider. */ public final MeetingSetting meetingSetting() { return meetingSetting; } @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 + Objects.hashCode(arn()); hashCode = 31 * hashCode + Objects.hashCode(name()); hashCode = 31 * hashCode + Objects.hashCode(typeAsString()); hashCode = 31 * hashCode + Objects.hashCode(ipDialIn()); hashCode = 31 * hashCode + Objects.hashCode(pstnDialIn()); hashCode = 31 * hashCode + Objects.hashCode(meetingSetting()); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ConferenceProvider)) { return false; } ConferenceProvider other = (ConferenceProvider) obj; return Objects.equals(arn(), other.arn()) && Objects.equals(name(), other.name()) && Objects.equals(typeAsString(), other.typeAsString()) && Objects.equals(ipDialIn(), other.ipDialIn()) && Objects.equals(pstnDialIn(), other.pstnDialIn()) && Objects.equals(meetingSetting(), other.meetingSetting()); } /** * 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("ConferenceProvider").add("Arn", arn()).add("Name", name()).add("Type", typeAsString()) .add("IPDialIn", ipDialIn()).add("PSTNDialIn", pstnDialIn()).add("MeetingSetting", meetingSetting()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "Arn": return Optional.ofNullable(clazz.cast(arn())); case "Name": return Optional.ofNullable(clazz.cast(name())); case "Type": return Optional.ofNullable(clazz.cast(typeAsString())); case "IPDialIn": return Optional.ofNullable(clazz.cast(ipDialIn())); case "PSTNDialIn": return Optional.ofNullable(clazz.cast(pstnDialIn())); case "MeetingSetting": return Optional.ofNullable(clazz.cast(meetingSetting())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((ConferenceProvider) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* The ARN of the newly created conference provider. *

* * @param arn * The ARN of the newly created conference provider. * @return Returns a reference to this object so that method calls can be chained together. */ Builder arn(String arn); /** *

* The name of the conference provider. *

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

* The type of conference providers. *

* * @param type * The type of conference providers. * @see ConferenceProviderType * @return Returns a reference to this object so that method calls can be chained together. * @see ConferenceProviderType */ Builder type(String type); /** *

* The type of conference providers. *

* * @param type * The type of conference providers. * @see ConferenceProviderType * @return Returns a reference to this object so that method calls can be chained together. * @see ConferenceProviderType */ Builder type(ConferenceProviderType type); /** *

* The IP endpoint and protocol for calling. *

* * @param ipDialIn * The IP endpoint and protocol for calling. * @return Returns a reference to this object so that method calls can be chained together. */ Builder ipDialIn(IPDialIn ipDialIn); /** *

* The IP endpoint and protocol for calling. *

* This is a convenience that creates an instance of the {@link IPDialIn.Builder} avoiding the need to create * one manually via {@link IPDialIn#builder()}. * * When the {@link Consumer} completes, {@link IPDialIn.Builder#build()} is called immediately and its result is * passed to {@link #ipDialIn(IPDialIn)}. * * @param ipDialIn * a consumer that will call methods on {@link IPDialIn.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #ipDialIn(IPDialIn) */ default Builder ipDialIn(Consumer ipDialIn) { return ipDialIn(IPDialIn.builder().applyMutation(ipDialIn).build()); } /** *

* The information for PSTN conferencing. *

* * @param pstnDialIn * The information for PSTN conferencing. * @return Returns a reference to this object so that method calls can be chained together. */ Builder pstnDialIn(PSTNDialIn pstnDialIn); /** *

* The information for PSTN conferencing. *

* This is a convenience that creates an instance of the {@link PSTNDialIn.Builder} avoiding the need to create * one manually via {@link PSTNDialIn#builder()}. * * When the {@link Consumer} completes, {@link PSTNDialIn.Builder#build()} is called immediately and its result * is passed to {@link #pstnDialIn(PSTNDialIn)}. * * @param pstnDialIn * a consumer that will call methods on {@link PSTNDialIn.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #pstnDialIn(PSTNDialIn) */ default Builder pstnDialIn(Consumer pstnDialIn) { return pstnDialIn(PSTNDialIn.builder().applyMutation(pstnDialIn).build()); } /** *

* The meeting settings for the conference provider. *

* * @param meetingSetting * The meeting settings for the conference provider. * @return Returns a reference to this object so that method calls can be chained together. */ Builder meetingSetting(MeetingSetting meetingSetting); /** *

* The meeting settings for the conference provider. *

* This is a convenience that creates an instance of the {@link MeetingSetting.Builder} avoiding the need to * create one manually via {@link MeetingSetting#builder()}. * * When the {@link Consumer} completes, {@link MeetingSetting.Builder#build()} is called immediately and its * result is passed to {@link #meetingSetting(MeetingSetting)}. * * @param meetingSetting * a consumer that will call methods on {@link MeetingSetting.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #meetingSetting(MeetingSetting) */ default Builder meetingSetting(Consumer meetingSetting) { return meetingSetting(MeetingSetting.builder().applyMutation(meetingSetting).build()); } } static final class BuilderImpl implements Builder { private String arn; private String name; private String type; private IPDialIn ipDialIn; private PSTNDialIn pstnDialIn; private MeetingSetting meetingSetting; private BuilderImpl() { } private BuilderImpl(ConferenceProvider model) { arn(model.arn); name(model.name); type(model.type); ipDialIn(model.ipDialIn); pstnDialIn(model.pstnDialIn); meetingSetting(model.meetingSetting); } public final String getArn() { return arn; } @Override public final Builder arn(String arn) { this.arn = arn; return this; } public final void setArn(String arn) { this.arn = arn; } public final String getName() { return name; } @Override public final Builder name(String name) { this.name = name; return this; } public final void setName(String name) { this.name = name; } public final String getType() { return type; } @Override public final Builder type(String type) { this.type = type; return this; } @Override public final Builder type(ConferenceProviderType type) { this.type(type == null ? null : type.toString()); return this; } public final void setType(String type) { this.type = type; } public final IPDialIn.Builder getIpDialIn() { return ipDialIn != null ? ipDialIn.toBuilder() : null; } @Override public final Builder ipDialIn(IPDialIn ipDialIn) { this.ipDialIn = ipDialIn; return this; } public final void setIpDialIn(IPDialIn.BuilderImpl ipDialIn) { this.ipDialIn = ipDialIn != null ? ipDialIn.build() : null; } public final PSTNDialIn.Builder getPstnDialIn() { return pstnDialIn != null ? pstnDialIn.toBuilder() : null; } @Override public final Builder pstnDialIn(PSTNDialIn pstnDialIn) { this.pstnDialIn = pstnDialIn; return this; } public final void setPstnDialIn(PSTNDialIn.BuilderImpl pstnDialIn) { this.pstnDialIn = pstnDialIn != null ? pstnDialIn.build() : null; } public final MeetingSetting.Builder getMeetingSetting() { return meetingSetting != null ? meetingSetting.toBuilder() : null; } @Override public final Builder meetingSetting(MeetingSetting meetingSetting) { this.meetingSetting = meetingSetting; return this; } public final void setMeetingSetting(MeetingSetting.BuilderImpl meetingSetting) { this.meetingSetting = meetingSetting != null ? meetingSetting.build() : null; } @Override public ConferenceProvider build() { return new ConferenceProvider(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy