@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchCreateChannelMembershipRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
BatchCreateChannelMembershipRequest() |
Modifier and Type | Method and Description |
---|---|
BatchCreateChannelMembershipRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getChannelArn()
The ARN of the channel to which you're adding users or bots.
|
String |
getChimeBearer()
The ARN of the
AppInstanceUser or AppInstanceBot that makes the API call. |
List<String> |
getMemberArns()
The ARNs of the members you want to add to the channel.
|
String |
getSubChannelId()
The ID of the SubChannel in the request.
|
String |
getType()
The membership type of a user,
DEFAULT or HIDDEN . |
int |
hashCode() |
void |
setChannelArn(String channelArn)
The ARN of the channel to which you're adding users or bots.
|
void |
setChimeBearer(String chimeBearer)
The ARN of the
AppInstanceUser or AppInstanceBot that makes the API call. |
void |
setMemberArns(Collection<String> memberArns)
The ARNs of the members you want to add to the channel.
|
void |
setSubChannelId(String subChannelId)
The ID of the SubChannel in the request.
|
void |
setType(String type)
The membership type of a user,
DEFAULT or HIDDEN . |
String |
toString()
Returns a string representation of this object.
|
BatchCreateChannelMembershipRequest |
withChannelArn(String channelArn)
The ARN of the channel to which you're adding users or bots.
|
BatchCreateChannelMembershipRequest |
withChimeBearer(String chimeBearer)
The ARN of the
AppInstanceUser or AppInstanceBot that makes the API call. |
BatchCreateChannelMembershipRequest |
withMemberArns(Collection<String> memberArns)
The ARNs of the members you want to add to the channel.
|
BatchCreateChannelMembershipRequest |
withMemberArns(String... memberArns)
The ARNs of the members you want to add to the channel.
|
BatchCreateChannelMembershipRequest |
withSubChannelId(String subChannelId)
The ID of the SubChannel in the request.
|
BatchCreateChannelMembershipRequest |
withType(ChannelMembershipType type)
The membership type of a user,
DEFAULT or HIDDEN . |
BatchCreateChannelMembershipRequest |
withType(String type)
The membership type of a user,
DEFAULT or HIDDEN . |
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 setChannelArn(String channelArn)
The ARN of the channel to which you're adding users or bots.
channelArn
- The ARN of the channel to which you're adding users or bots.public String getChannelArn()
The ARN of the channel to which you're adding users or bots.
public BatchCreateChannelMembershipRequest withChannelArn(String channelArn)
The ARN of the channel to which you're adding users or bots.
channelArn
- The ARN of the channel to which you're adding users or bots.public void setType(String type)
The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned
as part of ListChannelMemberships
. Hidden members are only returned if the type filter in
ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This
is only supported by moderators.
type
- The membership type of a user, DEFAULT
or HIDDEN
. Default members are always
returned as part of ListChannelMemberships
. Hidden members are only returned if the type
filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not
returned. This is only supported by moderators.ChannelMembershipType
public String getType()
The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned
as part of ListChannelMemberships
. Hidden members are only returned if the type filter in
ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This
is only supported by moderators.
DEFAULT
or HIDDEN
. Default members are always
returned as part of ListChannelMemberships
. Hidden members are only returned if the type
filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are
not returned. This is only supported by moderators.ChannelMembershipType
public BatchCreateChannelMembershipRequest withType(String type)
The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned
as part of ListChannelMemberships
. Hidden members are only returned if the type filter in
ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This
is only supported by moderators.
type
- The membership type of a user, DEFAULT
or HIDDEN
. Default members are always
returned as part of ListChannelMemberships
. Hidden members are only returned if the type
filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not
returned. This is only supported by moderators.ChannelMembershipType
public BatchCreateChannelMembershipRequest withType(ChannelMembershipType type)
The membership type of a user, DEFAULT
or HIDDEN
. Default members are always returned
as part of ListChannelMemberships
. Hidden members are only returned if the type filter in
ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not returned. This
is only supported by moderators.
type
- The membership type of a user, DEFAULT
or HIDDEN
. Default members are always
returned as part of ListChannelMemberships
. Hidden members are only returned if the type
filter in ListChannelMemberships
equals HIDDEN
. Otherwise hidden members are not
returned. This is only supported by moderators.ChannelMembershipType
public List<String> getMemberArns()
The ARNs of the members you want to add to the channel. Only AppInstanceUsers
and
AppInstanceBots
can be added as a channel member.
AppInstanceUsers
and
AppInstanceBots
can be added as a channel member.public void setMemberArns(Collection<String> memberArns)
The ARNs of the members you want to add to the channel. Only AppInstanceUsers
and
AppInstanceBots
can be added as a channel member.
memberArns
- The ARNs of the members you want to add to the channel. Only AppInstanceUsers
and
AppInstanceBots
can be added as a channel member.public BatchCreateChannelMembershipRequest withMemberArns(String... memberArns)
The ARNs of the members you want to add to the channel. Only AppInstanceUsers
and
AppInstanceBots
can be added as a channel member.
NOTE: This method appends the values to the existing list (if any). Use
setMemberArns(java.util.Collection)
or withMemberArns(java.util.Collection)
if you want to
override the existing values.
memberArns
- The ARNs of the members you want to add to the channel. Only AppInstanceUsers
and
AppInstanceBots
can be added as a channel member.public BatchCreateChannelMembershipRequest withMemberArns(Collection<String> memberArns)
The ARNs of the members you want to add to the channel. Only AppInstanceUsers
and
AppInstanceBots
can be added as a channel member.
memberArns
- The ARNs of the members you want to add to the channel. Only AppInstanceUsers
and
AppInstanceBots
can be added as a channel member.public void setChimeBearer(String chimeBearer)
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
chimeBearer
- The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.public String getChimeBearer()
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
AppInstanceUser
or AppInstanceBot
that makes the API call.public BatchCreateChannelMembershipRequest withChimeBearer(String chimeBearer)
The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.
chimeBearer
- The ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call.public void setSubChannelId(String subChannelId)
The ID of the SubChannel in the request.
Only required when creating membership in a SubChannel for a moderator in an elastic channel.
subChannelId
- The ID of the SubChannel in the request. Only required when creating membership in a SubChannel for a moderator in an elastic channel.
public String getSubChannelId()
The ID of the SubChannel in the request.
Only required when creating membership in a SubChannel for a moderator in an elastic channel.
Only required when creating membership in a SubChannel for a moderator in an elastic channel.
public BatchCreateChannelMembershipRequest withSubChannelId(String subChannelId)
The ID of the SubChannel in the request.
Only required when creating membership in a SubChannel for a moderator in an elastic channel.
subChannelId
- The ID of the SubChannel in the request. Only required when creating membership in a SubChannel for a moderator in an elastic channel.
public String toString()
toString
in class Object
Object.toString()
public BatchCreateChannelMembershipRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()