Package com.hashicorp.cdktf
Class OssAssumeRole.Builder
java.lang.Object
com.hashicorp.cdktf.OssAssumeRole.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OssAssumeRole>
- Enclosing interface:
OssAssumeRole
@Stability(Experimental)
public static final class OssAssumeRole.Builder
extends Object
implements software.amazon.jsii.Builder<OssAssumeRole>
A builder for
OssAssumeRole-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofOssAssumeRole.getPolicy()Sets the value ofOssAssumeRole.getRoleArn()sessionExpiration(Number sessionExpiration) Sets the value ofOssAssumeRole.getSessionExpiration()sessionName(String sessionName) Sets the value ofOssAssumeRole.getSessionName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofOssAssumeRole.getRoleArn()- Parameters:
roleArn- the value to be set. This parameter is required.- Returns:
this
-
policy
Sets the value ofOssAssumeRole.getPolicy()- Parameters:
policy- the value to be set.- Returns:
this
-
sessionExpiration
Sets the value ofOssAssumeRole.getSessionExpiration()- Parameters:
sessionExpiration- the value to be set.- Returns:
this
-
sessionName
Sets the value ofOssAssumeRole.getSessionName()- Parameters:
sessionName- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<OssAssumeRole>- Returns:
- a new instance of
OssAssumeRole - Throws:
NullPointerException- if any required attribute was not provided
-