Class CfnDomain.MasterUserOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CfnDomain.MasterUserOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.MasterUserOptionsProperty>
- Enclosing interface:
CfnDomain.MasterUserOptionsProperty
@Stability(Stable)
public static final class CfnDomain.MasterUserOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.MasterUserOptionsProperty>
A builder for
CfnDomain.MasterUserOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.masterUserArn
(String masterUserArn) Sets the value ofCfnDomain.MasterUserOptionsProperty.getMasterUserArn()
masterUserName
(String masterUserName) Sets the value ofCfnDomain.MasterUserOptionsProperty.getMasterUserName()
masterUserPassword
(String masterUserPassword) Sets the value ofCfnDomain.MasterUserOptionsProperty.getMasterUserPassword()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
masterUserArn
@Stability(Stable) public CfnDomain.MasterUserOptionsProperty.Builder masterUserArn(String masterUserArn) Sets the value ofCfnDomain.MasterUserOptionsProperty.getMasterUserArn()
- Parameters:
masterUserArn
- Amazon Resource Name (ARN) for the master user. The ARN can point to an IAM user or role. This property is required for Amazon Cognito to work, and it must match the role configured for Cognito. Only specify ifInternalUserDatabaseEnabled
is false in AdvancedSecurityOptionsInput .- Returns:
this
-
masterUserName
@Stability(Stable) public CfnDomain.MasterUserOptionsProperty.Builder masterUserName(String masterUserName) Sets the value ofCfnDomain.MasterUserOptionsProperty.getMasterUserName()
- Parameters:
masterUserName
- Username for the master user. Only specify ifInternalUserDatabaseEnabled
is true in AdvancedSecurityOptionsInput . If you don't want to specify this value directly within the template, you can use a dynamic reference instead.- Returns:
this
-
masterUserPassword
@Stability(Stable) public CfnDomain.MasterUserOptionsProperty.Builder masterUserPassword(String masterUserPassword) Sets the value ofCfnDomain.MasterUserOptionsProperty.getMasterUserPassword()
- Parameters:
masterUserPassword
- Password for the master user. Only specify ifInternalUserDatabaseEnabled
is true in AdvancedSecurityOptionsInput . If you don't want to specify this value directly within the template, you can use a dynamic reference instead.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.MasterUserOptionsProperty>
- Returns:
- a new instance of
CfnDomain.MasterUserOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-