Class CfnCollaboration.ModelTrainingPaymentConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cleanrooms.CfnCollaboration.ModelTrainingPaymentConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCollaboration.ModelTrainingPaymentConfigProperty>
- Enclosing interface:
CfnCollaboration.ModelTrainingPaymentConfigProperty
@Stability(Stable)
public static final class CfnCollaboration.ModelTrainingPaymentConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCollaboration.ModelTrainingPaymentConfigProperty>
A builder for
CfnCollaboration.ModelTrainingPaymentConfigProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.isResponsible
(Boolean isResponsible) Sets the value ofCfnCollaboration.ModelTrainingPaymentConfigProperty.getIsResponsible()
isResponsible
(IResolvable isResponsible) Sets the value ofCfnCollaboration.ModelTrainingPaymentConfigProperty.getIsResponsible()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isResponsible
@Stability(Stable) public CfnCollaboration.ModelTrainingPaymentConfigProperty.Builder isResponsible(Boolean isResponsible) Sets the value ofCfnCollaboration.ModelTrainingPaymentConfigProperty.getIsResponsible()
- Parameters:
isResponsible
- Indicates whether the collaboration creator has configured the collaboration member to pay for model training costs (TRUE
) or has not configured the collaboration member to pay for model training costs (FALSE
). This parameter is required. Exactly one member can be configured to pay for model training costs. An error is returned if the collaboration creator sets aTRUE
value for more than one member in the collaboration.If the collaboration creator hasn't specified anyone as the member paying for model training costs, then the member who can query is the default payer. An error is returned if the collaboration creator sets a
FALSE
value for the member who can query.- Returns:
this
-
isResponsible
@Stability(Stable) public CfnCollaboration.ModelTrainingPaymentConfigProperty.Builder isResponsible(IResolvable isResponsible) Sets the value ofCfnCollaboration.ModelTrainingPaymentConfigProperty.getIsResponsible()
- Parameters:
isResponsible
- Indicates whether the collaboration creator has configured the collaboration member to pay for model training costs (TRUE
) or has not configured the collaboration member to pay for model training costs (FALSE
). This parameter is required. Exactly one member can be configured to pay for model training costs. An error is returned if the collaboration creator sets aTRUE
value for more than one member in the collaboration.If the collaboration creator hasn't specified anyone as the member paying for model training costs, then the member who can query is the default payer. An error is returned if the collaboration creator sets a
FALSE
value for the member who can query.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCollaboration.ModelTrainingPaymentConfigProperty>
- Returns:
- a new instance of
CfnCollaboration.ModelTrainingPaymentConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-