@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateChannelRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateChannelRequest() |
Modifier and Type | Method and Description |
---|---|
CreateChannelRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAppInstanceArn()
The ARN of the channel request.
|
String |
getClientRequestToken()
The client token for the request.
|
String |
getMetadata()
The metadata of the creation request.
|
String |
getMode()
The channel mode:
UNRESTRICTED or RESTRICTED . |
String |
getName()
The name of the channel.
|
String |
getPrivacy()
The channel's privacy level:
PUBLIC or PRIVATE . |
List<Tag> |
getTags() |
int |
hashCode() |
void |
setAppInstanceArn(String appInstanceArn)
The ARN of the channel request.
|
void |
setClientRequestToken(String clientRequestToken)
The client token for the request.
|
void |
setMetadata(String metadata)
The metadata of the creation request.
|
void |
setMode(String mode)
The channel mode:
UNRESTRICTED or RESTRICTED . |
void |
setName(String name)
The name of the channel.
|
void |
setPrivacy(String privacy)
The channel's privacy level:
PUBLIC or PRIVATE . |
void |
setTags(Collection<Tag> tags) |
String |
toString()
Returns a string representation of this object.
|
CreateChannelRequest |
withAppInstanceArn(String appInstanceArn)
The ARN of the channel request.
|
CreateChannelRequest |
withClientRequestToken(String clientRequestToken)
The client token for the request.
|
CreateChannelRequest |
withMetadata(String metadata)
The metadata of the creation request.
|
CreateChannelRequest |
withMode(ChannelMode mode)
The channel mode:
UNRESTRICTED or RESTRICTED . |
CreateChannelRequest |
withMode(String mode)
The channel mode:
UNRESTRICTED or RESTRICTED . |
CreateChannelRequest |
withName(String name)
The name of the channel.
|
CreateChannelRequest |
withPrivacy(ChannelPrivacy privacy)
The channel's privacy level:
PUBLIC or PRIVATE . |
CreateChannelRequest |
withPrivacy(String privacy)
The channel's privacy level:
PUBLIC or PRIVATE . |
CreateChannelRequest |
withTags(Collection<Tag> tags) |
CreateChannelRequest |
withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any).
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAppInstanceArn(String appInstanceArn)
The ARN of the channel request.
appInstanceArn
- The ARN of the channel request.public String getAppInstanceArn()
The ARN of the channel request.
public CreateChannelRequest withAppInstanceArn(String appInstanceArn)
The ARN of the channel request.
appInstanceArn
- The ARN of the channel request.public void setName(String name)
The name of the channel.
name
- The name of the channel.public String getName()
The name of the channel.
public CreateChannelRequest withName(String name)
The name of the channel.
name
- The name of the channel.public void setMode(String mode)
The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and channel
members can add themselves and other members to unrestricted channels. Only administrators and moderators can add
members to restricted channels.
mode
- The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and
channel members can add themselves and other members to unrestricted channels. Only administrators and
moderators can add members to restricted channels.ChannelMode
public String getMode()
The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and channel
members can add themselves and other members to unrestricted channels. Only administrators and moderators can add
members to restricted channels.
UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and
channel members can add themselves and other members to unrestricted channels. Only administrators and
moderators can add members to restricted channels.ChannelMode
public CreateChannelRequest withMode(String mode)
The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and channel
members can add themselves and other members to unrestricted channels. Only administrators and moderators can add
members to restricted channels.
mode
- The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and
channel members can add themselves and other members to unrestricted channels. Only administrators and
moderators can add members to restricted channels.ChannelMode
public CreateChannelRequest withMode(ChannelMode mode)
The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and channel
members can add themselves and other members to unrestricted channels. Only administrators and moderators can add
members to restricted channels.
mode
- The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and
channel members can add themselves and other members to unrestricted channels. Only administrators and
moderators can add members to restricted channels.ChannelMode
public void setPrivacy(String privacy)
The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't discoverable by
users outside the channel. Public channels are discoverable by anyone in the app instance.
privacy
- The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't
discoverable by users outside the channel. Public channels are discoverable by anyone in the app instance.ChannelPrivacy
public String getPrivacy()
The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't discoverable by
users outside the channel. Public channels are discoverable by anyone in the app instance.
PUBLIC
or PRIVATE
. Private channels aren't
discoverable by users outside the channel. Public channels are discoverable by anyone in the app
instance.ChannelPrivacy
public CreateChannelRequest withPrivacy(String privacy)
The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't discoverable by
users outside the channel. Public channels are discoverable by anyone in the app instance.
privacy
- The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't
discoverable by users outside the channel. Public channels are discoverable by anyone in the app instance.ChannelPrivacy
public CreateChannelRequest withPrivacy(ChannelPrivacy privacy)
The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't discoverable by
users outside the channel. Public channels are discoverable by anyone in the app instance.
privacy
- The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't
discoverable by users outside the channel. Public channels are discoverable by anyone in the app instance.ChannelPrivacy
public void setMetadata(String metadata)
The metadata of the creation request. Limited to 1KB and UTF-8.
metadata
- The metadata of the creation request. Limited to 1KB and UTF-8.public String getMetadata()
The metadata of the creation request. Limited to 1KB and UTF-8.
public CreateChannelRequest withMetadata(String metadata)
The metadata of the creation request. Limited to 1KB and UTF-8.
metadata
- The metadata of the creation request. Limited to 1KB and UTF-8.public void setClientRequestToken(String clientRequestToken)
The client token for the request. An Idempotency
token.
clientRequestToken
- The client token for the request. An Idempotency
token.public String getClientRequestToken()
The client token for the request. An Idempotency
token.
Idempotency
token.public CreateChannelRequest withClientRequestToken(String clientRequestToken)
The client token for the request. An Idempotency
token.
clientRequestToken
- The client token for the request. An Idempotency
token.public void setTags(Collection<Tag> tags)
tags
- public CreateChannelRequest withTags(Tag... tags)
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- public CreateChannelRequest withTags(Collection<Tag> tags)
tags
- public String toString()
toString
in class Object
Object.toString()
public CreateChannelRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()