Class CfnLocationHDFSMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.datasync.CfnLocationHDFSMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationHDFSMixinProps>
- Enclosing interface:
CfnLocationHDFSMixinProps
@Stability(Stable)
public static final class CfnLocationHDFSMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationHDFSMixinProps>
A builder for
CfnLocationHDFSMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLocationHDFSMixinProps.getAgentArns()authenticationType(String authenticationType) Sets the value ofCfnLocationHDFSMixinProps.getAuthenticationType()Sets the value ofCfnLocationHDFSMixinProps.getBlockSize()build()Builds the configured instance.cmkSecretConfig(CfnLocationHDFSPropsMixin.CmkSecretConfigProperty cmkSecretConfig) Sets the value ofCfnLocationHDFSMixinProps.getCmkSecretConfig()cmkSecretConfig(IResolvable cmkSecretConfig) Sets the value ofCfnLocationHDFSMixinProps.getCmkSecretConfig()customSecretConfig(CfnLocationHDFSPropsMixin.CustomSecretConfigProperty customSecretConfig) Sets the value ofCfnLocationHDFSMixinProps.getCustomSecretConfig()customSecretConfig(IResolvable customSecretConfig) Sets the value ofCfnLocationHDFSMixinProps.getCustomSecretConfig()kerberosKeytab(String kerberosKeytab) Sets the value ofCfnLocationHDFSMixinProps.getKerberosKeytab()kerberosKrb5Conf(String kerberosKrb5Conf) Sets the value ofCfnLocationHDFSMixinProps.getKerberosKrb5Conf()kerberosPrincipal(String kerberosPrincipal) Sets the value ofCfnLocationHDFSMixinProps.getKerberosPrincipal()kmsKeyProviderUri(String kmsKeyProviderUri) Sets the value ofCfnLocationHDFSMixinProps.getKmsKeyProviderUri()Sets the value ofCfnLocationHDFSMixinProps.getNameNodes()nameNodes(IResolvable nameNodes) Sets the value ofCfnLocationHDFSMixinProps.getNameNodes()qopConfiguration(CfnLocationHDFSPropsMixin.QopConfigurationProperty qopConfiguration) Sets the value ofCfnLocationHDFSMixinProps.getQopConfiguration()qopConfiguration(IResolvable qopConfiguration) Sets the value ofCfnLocationHDFSMixinProps.getQopConfiguration()replicationFactor(Number replicationFactor) Sets the value ofCfnLocationHDFSMixinProps.getReplicationFactor()simpleUser(String simpleUser) Sets the value ofCfnLocationHDFSMixinProps.getSimpleUser()subdirectory(String subdirectory) Sets the value ofCfnLocationHDFSMixinProps.getSubdirectory()Sets the value ofCfnLocationHDFSMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
agentArns
Sets the value ofCfnLocationHDFSMixinProps.getAgentArns()- Parameters:
agentArns- The Amazon Resource Names (ARNs) of the DataSync agents that can connect to your HDFS cluster.- Returns:
this
-
authenticationType
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder authenticationType(String authenticationType) Sets the value ofCfnLocationHDFSMixinProps.getAuthenticationType()- Parameters:
authenticationType- The authentication mode used to determine identity of user.- Returns:
this
-
blockSize
Sets the value ofCfnLocationHDFSMixinProps.getBlockSize()- Parameters:
blockSize- The size of data blocks to write into the HDFS cluster. The block size must be a multiple of 512 bytes. The default block size is 128 mebibytes (MiB).- Returns:
this
-
cmkSecretConfig
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder cmkSecretConfig(IResolvable cmkSecretConfig) Sets the value ofCfnLocationHDFSMixinProps.getCmkSecretConfig()- Parameters:
cmkSecretConfig- Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed AWS KMS key.- Returns:
this
-
cmkSecretConfig
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder cmkSecretConfig(CfnLocationHDFSPropsMixin.CmkSecretConfigProperty cmkSecretConfig) Sets the value ofCfnLocationHDFSMixinProps.getCmkSecretConfig()- Parameters:
cmkSecretConfig- Specifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed AWS KMS key.- Returns:
this
-
customSecretConfig
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder customSecretConfig(IResolvable customSecretConfig) Sets the value ofCfnLocationHDFSMixinProps.getCustomSecretConfig()- Parameters:
customSecretConfig- Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and an IAM role that DataSync can assume and access the customer-managed secret.- Returns:
this
-
customSecretConfig
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder customSecretConfig(CfnLocationHDFSPropsMixin.CustomSecretConfigProperty customSecretConfig) Sets the value ofCfnLocationHDFSMixinProps.getCustomSecretConfig()- Parameters:
customSecretConfig- Specifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and an IAM role that DataSync can assume and access the customer-managed secret.- Returns:
this
-
kerberosKeytab
Sets the value ofCfnLocationHDFSMixinProps.getKerberosKeytab()- Parameters:
kerberosKeytab- The Kerberos key table (keytab) that contains mappings between the defined Kerberos principal and the encrypted keys. Provide the base64-encoded file text. IfKERBEROSis specified forAuthType, this value is required.- Returns:
this
-
kerberosKrb5Conf
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder kerberosKrb5Conf(String kerberosKrb5Conf) Sets the value ofCfnLocationHDFSMixinProps.getKerberosKrb5Conf()- Parameters:
kerberosKrb5Conf- Thekrb5.conffile that contains the Kerberos configuration information. You can load thekrb5.confby providing a string of the file's contents or an Amazon S3 presigned URL of the file. IfKERBEROSis specified forAuthType, this value is required.- Returns:
this
-
kerberosPrincipal
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder kerberosPrincipal(String kerberosPrincipal) Sets the value ofCfnLocationHDFSMixinProps.getKerberosPrincipal()- Parameters:
kerberosPrincipal- The Kerberos principal with access to the files and folders on the HDFS cluster.If
KERBEROSis specified forAuthenticationType, this parameter is required.- Returns:
this
-
kmsKeyProviderUri
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder kmsKeyProviderUri(String kmsKeyProviderUri) Sets the value ofCfnLocationHDFSMixinProps.getKmsKeyProviderUri()- Parameters:
kmsKeyProviderUri- The URI of the HDFS cluster's Key Management Server (KMS).- Returns:
this
-
nameNodes
Sets the value ofCfnLocationHDFSMixinProps.getNameNodes()- Parameters:
nameNodes- The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.- Returns:
this
-
nameNodes
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder nameNodes(List<? extends Object> nameNodes) Sets the value ofCfnLocationHDFSMixinProps.getNameNodes()- Parameters:
nameNodes- The NameNode that manages the HDFS namespace. The NameNode performs operations such as opening, closing, and renaming files and directories. The NameNode contains the information to map blocks of data to the DataNodes. You can use only one NameNode.- Returns:
this
-
qopConfiguration
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder qopConfiguration(IResolvable qopConfiguration) Sets the value ofCfnLocationHDFSMixinProps.getQopConfiguration()- Parameters:
qopConfiguration- The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster. IfQopConfigurationisn't specified,RpcProtectionandDataTransferProtectiondefault toPRIVACY. If you setRpcProtectionorDataTransferProtection, the other parameter assumes the same value.- Returns:
this
-
qopConfiguration
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder qopConfiguration(CfnLocationHDFSPropsMixin.QopConfigurationProperty qopConfiguration) Sets the value ofCfnLocationHDFSMixinProps.getQopConfiguration()- Parameters:
qopConfiguration- The Quality of Protection (QOP) configuration specifies the Remote Procedure Call (RPC) and data transfer protection settings configured on the Hadoop Distributed File System (HDFS) cluster. IfQopConfigurationisn't specified,RpcProtectionandDataTransferProtectiondefault toPRIVACY. If you setRpcProtectionorDataTransferProtection, the other parameter assumes the same value.- Returns:
this
-
replicationFactor
@Stability(Stable) public CfnLocationHDFSMixinProps.Builder replicationFactor(Number replicationFactor) Sets the value ofCfnLocationHDFSMixinProps.getReplicationFactor()- Parameters:
replicationFactor- The number of DataNodes to replicate the data to when writing to the HDFS cluster. By default, data is replicated to three DataNodes.- Returns:
this
-
simpleUser
Sets the value ofCfnLocationHDFSMixinProps.getSimpleUser()- Parameters:
simpleUser- The user name used to identify the client on the host operating system.If
SIMPLEis specified forAuthenticationType, this parameter is required.- Returns:
this
-
subdirectory
Sets the value ofCfnLocationHDFSMixinProps.getSubdirectory()- Parameters:
subdirectory- A subdirectory in the HDFS cluster. This subdirectory is used to read data from or write data to the HDFS cluster. If the subdirectory isn't specified, it will default to/.- Returns:
this
-
tags
Sets the value ofCfnLocationHDFSMixinProps.getTags()- Parameters:
tags- The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLocationHDFSMixinProps>- Returns:
- a new instance of
CfnLocationHDFSMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-