Class CfnWorkteam.MemberDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnWorkteam.MemberDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkteam.MemberDefinitionProperty>
- Enclosing interface:
CfnWorkteam.MemberDefinitionProperty
@Stability(Stable)
public static final class CfnWorkteam.MemberDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkteam.MemberDefinitionProperty>
A builder for
CfnWorkteam.MemberDefinitionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cognitoMemberDefinition
(IResolvable cognitoMemberDefinition) Sets the value ofCfnWorkteam.MemberDefinitionProperty.getCognitoMemberDefinition()
cognitoMemberDefinition
(CfnWorkteam.CognitoMemberDefinitionProperty cognitoMemberDefinition) Sets the value ofCfnWorkteam.MemberDefinitionProperty.getCognitoMemberDefinition()
oidcMemberDefinition
(IResolvable oidcMemberDefinition) Sets the value ofCfnWorkteam.MemberDefinitionProperty.getOidcMemberDefinition()
oidcMemberDefinition
(CfnWorkteam.OidcMemberDefinitionProperty oidcMemberDefinition) Sets the value ofCfnWorkteam.MemberDefinitionProperty.getOidcMemberDefinition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cognitoMemberDefinition
@Stability(Stable) public CfnWorkteam.MemberDefinitionProperty.Builder cognitoMemberDefinition(IResolvable cognitoMemberDefinition) Sets the value ofCfnWorkteam.MemberDefinitionProperty.getCognitoMemberDefinition()
- Parameters:
cognitoMemberDefinition
- The Amazon Cognito user group that is part of the work team.- Returns:
this
-
cognitoMemberDefinition
@Stability(Stable) public CfnWorkteam.MemberDefinitionProperty.Builder cognitoMemberDefinition(CfnWorkteam.CognitoMemberDefinitionProperty cognitoMemberDefinition) Sets the value ofCfnWorkteam.MemberDefinitionProperty.getCognitoMemberDefinition()
- Parameters:
cognitoMemberDefinition
- The Amazon Cognito user group that is part of the work team.- Returns:
this
-
oidcMemberDefinition
@Stability(Stable) public CfnWorkteam.MemberDefinitionProperty.Builder oidcMemberDefinition(IResolvable oidcMemberDefinition) Sets the value ofCfnWorkteam.MemberDefinitionProperty.getOidcMemberDefinition()
- Parameters:
oidcMemberDefinition
- A list user groups that exist in your OIDC Identity Provider (IdP). One to ten groups can be used to create a single private work team. When you add a user group to the list ofGroups
, you can add that user group to one or more private work teams. If you add a user group to a private work team, all workers in that user group are added to the work team.- Returns:
this
-
oidcMemberDefinition
@Stability(Stable) public CfnWorkteam.MemberDefinitionProperty.Builder oidcMemberDefinition(CfnWorkteam.OidcMemberDefinitionProperty oidcMemberDefinition) Sets the value ofCfnWorkteam.MemberDefinitionProperty.getOidcMemberDefinition()
- Parameters:
oidcMemberDefinition
- A list user groups that exist in your OIDC Identity Provider (IdP). One to ten groups can be used to create a single private work team. When you add a user group to the list ofGroups
, you can add that user group to one or more private work teams. If you add a user group to a private work team, all workers in that user group are added to the work team.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnWorkteam.MemberDefinitionProperty>
- Returns:
- a new instance of
CfnWorkteam.MemberDefinitionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-