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

software.amazon.awssdk.services.mediapackagev2.model.ChannelGroupListConfiguration 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.mediapackagev2.model;

import java.io.Serializable;
import java.time.Instant;
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.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;

/**
 * 

* The configuration of the channel group. *

*/ @Generated("software.amazon.awssdk:codegen") public final class ChannelGroupListConfiguration implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField CHANNEL_GROUP_NAME_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ChannelGroupName").getter(getter(ChannelGroupListConfiguration::channelGroupName)) .setter(setter(Builder::channelGroupName)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ChannelGroupName").build()).build(); private static final SdkField ARN_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Arn") .getter(getter(ChannelGroupListConfiguration::arn)).setter(setter(Builder::arn)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Arn").build()).build(); private static final SdkField CREATED_AT_FIELD = SdkField. builder(MarshallingType.INSTANT) .memberName("CreatedAt").getter(getter(ChannelGroupListConfiguration::createdAt)).setter(setter(Builder::createdAt)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreatedAt").build()).build(); private static final SdkField MODIFIED_AT_FIELD = SdkField. builder(MarshallingType.INSTANT) .memberName("ModifiedAt").getter(getter(ChannelGroupListConfiguration::modifiedAt)) .setter(setter(Builder::modifiedAt)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ModifiedAt").build()).build(); private static final SdkField DESCRIPTION_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("Description").getter(getter(ChannelGroupListConfiguration::description)) .setter(setter(Builder::description)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Description").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(CHANNEL_GROUP_NAME_FIELD, ARN_FIELD, CREATED_AT_FIELD, MODIFIED_AT_FIELD, DESCRIPTION_FIELD)); private static final long serialVersionUID = 1L; private final String channelGroupName; private final String arn; private final Instant createdAt; private final Instant modifiedAt; private final String description; private ChannelGroupListConfiguration(BuilderImpl builder) { this.channelGroupName = builder.channelGroupName; this.arn = builder.arn; this.createdAt = builder.createdAt; this.modifiedAt = builder.modifiedAt; this.description = builder.description; } /** *

* The name that describes the channel group. The name is the primary identifier for the channel group, and must be * unique for your account in the AWS Region. *

* * @return The name that describes the channel group. The name is the primary identifier for the channel group, and * must be unique for your account in the AWS Region. */ public final String channelGroupName() { return channelGroupName; } /** *

* The Amazon Resource Name (ARN) associated with the resource. *

* * @return The Amazon Resource Name (ARN) associated with the resource. */ public final String arn() { return arn; } /** *

* The date and time the channel group was created. *

* * @return The date and time the channel group was created. */ public final Instant createdAt() { return createdAt; } /** *

* The date and time the channel group was modified. *

* * @return The date and time the channel group was modified. */ public final Instant modifiedAt() { return modifiedAt; } /** *

* Any descriptive information that you want to add to the channel group for future identification purposes. *

* * @return Any descriptive information that you want to add to the channel group for future identification purposes. */ public final String description() { return description; } @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(channelGroupName()); hashCode = 31 * hashCode + Objects.hashCode(arn()); hashCode = 31 * hashCode + Objects.hashCode(createdAt()); hashCode = 31 * hashCode + Objects.hashCode(modifiedAt()); hashCode = 31 * hashCode + Objects.hashCode(description()); 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 ChannelGroupListConfiguration)) { return false; } ChannelGroupListConfiguration other = (ChannelGroupListConfiguration) obj; return Objects.equals(channelGroupName(), other.channelGroupName()) && Objects.equals(arn(), other.arn()) && Objects.equals(createdAt(), other.createdAt()) && Objects.equals(modifiedAt(), other.modifiedAt()) && Objects.equals(description(), other.description()); } /** * 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("ChannelGroupListConfiguration").add("ChannelGroupName", channelGroupName()).add("Arn", arn()) .add("CreatedAt", createdAt()).add("ModifiedAt", modifiedAt()).add("Description", description()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "ChannelGroupName": return Optional.ofNullable(clazz.cast(channelGroupName())); case "Arn": return Optional.ofNullable(clazz.cast(arn())); case "CreatedAt": return Optional.ofNullable(clazz.cast(createdAt())); case "ModifiedAt": return Optional.ofNullable(clazz.cast(modifiedAt())); case "Description": return Optional.ofNullable(clazz.cast(description())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((ChannelGroupListConfiguration) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* The name that describes the channel group. The name is the primary identifier for the channel group, and must * be unique for your account in the AWS Region. *

* * @param channelGroupName * The name that describes the channel group. The name is the primary identifier for the channel group, * and must be unique for your account in the AWS Region. * @return Returns a reference to this object so that method calls can be chained together. */ Builder channelGroupName(String channelGroupName); /** *

* The Amazon Resource Name (ARN) associated with the resource. *

* * @param arn * The Amazon Resource Name (ARN) associated with the resource. * @return Returns a reference to this object so that method calls can be chained together. */ Builder arn(String arn); /** *

* The date and time the channel group was created. *

* * @param createdAt * The date and time the channel group was created. * @return Returns a reference to this object so that method calls can be chained together. */ Builder createdAt(Instant createdAt); /** *

* The date and time the channel group was modified. *

* * @param modifiedAt * The date and time the channel group was modified. * @return Returns a reference to this object so that method calls can be chained together. */ Builder modifiedAt(Instant modifiedAt); /** *

* Any descriptive information that you want to add to the channel group for future identification purposes. *

* * @param description * Any descriptive information that you want to add to the channel group for future identification * purposes. * @return Returns a reference to this object so that method calls can be chained together. */ Builder description(String description); } static final class BuilderImpl implements Builder { private String channelGroupName; private String arn; private Instant createdAt; private Instant modifiedAt; private String description; private BuilderImpl() { } private BuilderImpl(ChannelGroupListConfiguration model) { channelGroupName(model.channelGroupName); arn(model.arn); createdAt(model.createdAt); modifiedAt(model.modifiedAt); description(model.description); } public final String getChannelGroupName() { return channelGroupName; } public final void setChannelGroupName(String channelGroupName) { this.channelGroupName = channelGroupName; } @Override public final Builder channelGroupName(String channelGroupName) { this.channelGroupName = channelGroupName; return this; } public final String getArn() { return arn; } public final void setArn(String arn) { this.arn = arn; } @Override public final Builder arn(String arn) { this.arn = arn; return this; } public final Instant getCreatedAt() { return createdAt; } public final void setCreatedAt(Instant createdAt) { this.createdAt = createdAt; } @Override public final Builder createdAt(Instant createdAt) { this.createdAt = createdAt; return this; } public final Instant getModifiedAt() { return modifiedAt; } public final void setModifiedAt(Instant modifiedAt) { this.modifiedAt = modifiedAt; } @Override public final Builder modifiedAt(Instant modifiedAt) { this.modifiedAt = modifiedAt; return this; } public final String getDescription() { return description; } public final void setDescription(String description) { this.description = description; } @Override public final Builder description(String description) { this.description = description; return this; } @Override public ChannelGroupListConfiguration build() { return new ChannelGroupListConfiguration(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy