Class CreateChannelRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.chimesdkmessaging.model.ChimeSdkMessagingRequest
-
- software.amazon.awssdk.services.chimesdkmessaging.model.CreateChannelRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateChannelRequest.Builder,CreateChannelRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateChannelRequest extends ChimeSdkMessagingRequest implements ToCopyableBuilder<CreateChannelRequest.Builder,CreateChannelRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateChannelRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringappInstanceArn()The ARN of the channel request.static CreateChannelRequest.Builderbuilder()StringchannelId()The ID of the channel in the request.StringchimeBearer()The ARN of theAppInstanceUserorAppInstanceBotthat makes the API call.StringclientRequestToken()The client token for the request.ElasticChannelConfigurationelasticChannelConfiguration()The attributes required to configure and create an elastic channel.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ExpirationSettingsexpirationSettings()Settings that control the interval after which the channel is automatically deleted.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasMemberArns()For responses, this returns true if the service returned a value for the MemberArns property.booleanhasModeratorArns()For responses, this returns true if the service returned a value for the ModeratorArns property.booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.List<String>memberArns()The ARNs of the channel members in the request.Stringmetadata()The metadata of the creation request.ChannelModemode()The channel mode:UNRESTRICTEDorRESTRICTED.StringmodeAsString()The channel mode:UNRESTRICTEDorRESTRICTED.List<String>moderatorArns()The ARNs of the channel moderators in the request.Stringname()The name of the channel.ChannelPrivacyprivacy()The channel's privacy level:PUBLICorPRIVATE.StringprivacyAsString()The channel's privacy level:PUBLICorPRIVATE.List<SdkField<?>>sdkFields()static Class<? extends CreateChannelRequest.Builder>serializableBuilderClass()List<Tag>tags()The tags for the creation request.CreateChannelRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
appInstanceArn
public final String appInstanceArn()
The ARN of the channel request.
- Returns:
- The ARN of the channel request.
-
name
public final String name()
The name of the channel.
- Returns:
- The name of the channel.
-
mode
public final ChannelMode mode()
The channel mode:
UNRESTRICTEDorRESTRICTED. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.If the service returns an enum value that is not available in the current SDK version,
modewill returnChannelMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommodeAsString().- Returns:
- The channel mode:
UNRESTRICTEDorRESTRICTED. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels. - See Also:
ChannelMode
-
modeAsString
public final String modeAsString()
The channel mode:
UNRESTRICTEDorRESTRICTED. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.If the service returns an enum value that is not available in the current SDK version,
modewill returnChannelMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frommodeAsString().- Returns:
- The channel mode:
UNRESTRICTEDorRESTRICTED. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels. - See Also:
ChannelMode
-
privacy
public final ChannelPrivacy privacy()
The channel's privacy level:
PUBLICorPRIVATE. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in theAppInstance.If the service returns an enum value that is not available in the current SDK version,
privacywill returnChannelPrivacy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprivacyAsString().- Returns:
- The channel's privacy level:
PUBLICorPRIVATE. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in theAppInstance. - See Also:
ChannelPrivacy
-
privacyAsString
public final String privacyAsString()
The channel's privacy level:
PUBLICorPRIVATE. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in theAppInstance.If the service returns an enum value that is not available in the current SDK version,
privacywill returnChannelPrivacy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprivacyAsString().- Returns:
- The channel's privacy level:
PUBLICorPRIVATE. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in theAppInstance. - See Also:
ChannelPrivacy
-
metadata
public final String metadata()
The metadata of the creation request. Limited to 1KB and UTF-8.
- Returns:
- The metadata of the creation request. Limited to 1KB and UTF-8.
-
clientRequestToken
public final String clientRequestToken()
The client token for the request. An
Idempotencytoken.- Returns:
- The client token for the request. An
Idempotencytoken.
-
hasTags
public final boolean hasTags()
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 theisEmpty()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.
-
tags
public final List<Tag> tags()
The tags for the creation request.
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
hasTags()method.- Returns:
- The tags for the creation request.
-
chimeBearer
public final String chimeBearer()
The ARN of the
AppInstanceUserorAppInstanceBotthat makes the API call.- Returns:
- The ARN of the
AppInstanceUserorAppInstanceBotthat makes the API call.
-
channelId
public final String channelId()
The ID of the channel in the request.
- Returns:
- The ID of the channel in the request.
-
hasMemberArns
public final boolean hasMemberArns()
For responses, this returns true if the service returned a value for the MemberArns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
memberArns
public final List<String> memberArns()
The ARNs of the channel members in the request.
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
hasMemberArns()method.- Returns:
- The ARNs of the channel members in the request.
-
hasModeratorArns
public final boolean hasModeratorArns()
For responses, this returns true if the service returned a value for the ModeratorArns property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()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.
-
moderatorArns
public final List<String> moderatorArns()
The ARNs of the channel moderators in the request.
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
hasModeratorArns()method.- Returns:
- The ARNs of the channel moderators in the request.
-
elasticChannelConfiguration
public final ElasticChannelConfiguration elasticChannelConfiguration()
The attributes required to configure and create an elastic channel. An elastic channel can support a maximum of 1-million users, excluding moderators.
- Returns:
- The attributes required to configure and create an elastic channel. An elastic channel can support a maximum of 1-million users, excluding moderators.
-
expirationSettings
public final ExpirationSettings expirationSettings()
Settings that control the interval after which the channel is automatically deleted.
- Returns:
- Settings that control the interval after which the channel is automatically deleted.
-
toBuilder
public CreateChannelRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateChannelRequest.Builder,CreateChannelRequest>- Specified by:
toBuilderin classChimeSdkMessagingRequest
-
builder
public static CreateChannelRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateChannelRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-