Class CfnUploadProps.Builder
java.lang.Object
software.amazon.awscdk.services.devicefarm.CfnUploadProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUploadProps>
- Enclosing interface:
CfnUploadProps
@Stability(Stable)
public static final class CfnUploadProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUploadProps>
A builder for
CfnUploadProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.contentType(String contentType) Sets the value ofCfnUploadProps.getContentType()Sets the value ofCfnUploadProps.getName()projectArn(String projectArn) Sets the value ofCfnUploadProps.getProjectArn()Sets the value ofCfnUploadProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnUploadProps.getName()- Parameters:
name- The upload's file name. This parameter is required.- Returns:
this
-
projectArn
Sets the value ofCfnUploadProps.getProjectArn()- Parameters:
projectArn- The ARN of the project for the upload. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnUploadProps.getType()- Parameters:
type- The upload's type. This parameter is required.- Returns:
this
-
contentType
Sets the value ofCfnUploadProps.getContentType()- Parameters:
contentType- The upload's content type (for example, application/octet-stream).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUploadProps>- Returns:
- a new instance of
CfnUploadProps - Throws:
NullPointerException- if any required attribute was not provided
-