Interface CreateBrokerRequest.Builder

    • Method Detail

      • authenticationStrategy

        CreateBrokerRequest.Builder authenticationStrategy​(String authenticationStrategy)

        Optional. The authentication strategy used to secure the broker. The default is SIMPLE.

        Parameters:
        authenticationStrategy - Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AuthenticationStrategy, AuthenticationStrategy
      • authenticationStrategy

        CreateBrokerRequest.Builder authenticationStrategy​(AuthenticationStrategy authenticationStrategy)

        Optional. The authentication strategy used to secure the broker. The default is SIMPLE.

        Parameters:
        authenticationStrategy - Optional. The authentication strategy used to secure the broker. The default is SIMPLE.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AuthenticationStrategy, AuthenticationStrategy
      • autoMinorVersionUpgrade

        CreateBrokerRequest.Builder autoMinorVersionUpgrade​(Boolean autoMinorVersionUpgrade)

        Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot. Set to true by default, if no value is specified.

        Parameters:
        autoMinorVersionUpgrade - Enables automatic upgrades to new minor versions for brokers, as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window of the broker or after a manual broker reboot. Set to true by default, if no value is specified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • brokerName

        CreateBrokerRequest.Builder brokerName​(String brokerName)

        Required. The broker's name. This value must be unique in your Amazon Web Services account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.

        Do not add personally identifiable information (PII) or other confidential or sensitive information in broker names. Broker names are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker names are not intended to be used for private or sensitive data.

        Parameters:
        brokerName - Required. The broker's name. This value must be unique in your Amazon Web Services account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.

        Do not add personally identifiable information (PII) or other confidential or sensitive information in broker names. Broker names are accessible to other Amazon Web Services services, including CloudWatch Logs. Broker names are not intended to be used for private or sensitive data.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • configuration

        CreateBrokerRequest.Builder configuration​(ConfigurationId configuration)

        A list of information about the configuration.

        Parameters:
        configuration - A list of information about the configuration.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • creatorRequestId

        CreateBrokerRequest.Builder creatorRequestId​(String creatorRequestId)

        The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action.

        We recommend using a Universally Unique Identifier (UUID) for the creatorRequestId. You may omit the creatorRequestId if your application doesn't require idempotency.

        Parameters:
        creatorRequestId - The unique ID that the requester receives for the created broker. Amazon MQ passes your ID with the API action.

        We recommend using a Universally Unique Identifier (UUID) for the creatorRequestId. You may omit the creatorRequestId if your application doesn't require idempotency.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • deploymentMode

        CreateBrokerRequest.Builder deploymentMode​(String deploymentMode)

        Required. The broker's deployment mode.

        Parameters:
        deploymentMode - Required. The broker's deployment mode.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DeploymentMode, DeploymentMode
      • encryptionOptions

        CreateBrokerRequest.Builder encryptionOptions​(EncryptionOptions encryptionOptions)

        Encryption options for the broker.

        Parameters:
        encryptionOptions - Encryption options for the broker.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • engineType

        CreateBrokerRequest.Builder engineType​(String engineType)

        Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.

        Parameters:
        engineType - Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EngineType, EngineType
      • engineType

        CreateBrokerRequest.Builder engineType​(EngineType engineType)

        Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.

        Parameters:
        engineType - Required. The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EngineType, EngineType
      • engineVersion

        CreateBrokerRequest.Builder engineVersion​(String engineVersion)

        Required. The broker engine's version. For a list of supported engine versions, see Supported engines.

        Parameters:
        engineVersion - Required. The broker engine's version. For a list of supported engine versions, see Supported engines.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • hostInstanceType

        CreateBrokerRequest.Builder hostInstanceType​(String hostInstanceType)

        Required. The broker's instance type.

        Parameters:
        hostInstanceType - Required. The broker's instance type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ldapServerMetadata

        CreateBrokerRequest.Builder ldapServerMetadata​(LdapServerMetadataInput ldapServerMetadata)

        Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.

        Parameters:
        ldapServerMetadata - Optional. The metadata of the LDAP server used to authenticate and authorize connections to the broker. Does not apply to RabbitMQ brokers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • logs

        CreateBrokerRequest.Builder logs​(Logs logs)

        Enables Amazon CloudWatch logging for brokers.

        Parameters:
        logs - Enables Amazon CloudWatch logging for brokers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • maintenanceWindowStartTime

        CreateBrokerRequest.Builder maintenanceWindowStartTime​(WeeklyStartTime maintenanceWindowStartTime)

        The parameters that determine the WeeklyStartTime.

        Parameters:
        maintenanceWindowStartTime - The parameters that determine the WeeklyStartTime.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • publiclyAccessible

        CreateBrokerRequest.Builder publiclyAccessible​(Boolean publiclyAccessible)

        Enables connections from applications outside of the VPC that hosts the broker's subnets. Set to false by default, if no value is provided.

        Parameters:
        publiclyAccessible - Enables connections from applications outside of the VPC that hosts the broker's subnets. Set to false by default, if no value is provided.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • securityGroups

        CreateBrokerRequest.Builder securityGroups​(Collection<String> securityGroups)

        The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.

        Parameters:
        securityGroups - The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • securityGroups

        CreateBrokerRequest.Builder securityGroups​(String... securityGroups)

        The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.

        Parameters:
        securityGroups - The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subnetIds

        CreateBrokerRequest.Builder subnetIds​(Collection<String> subnetIds)

        The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. If you specify more than one subnet, the subnets must be in different Availability Zones. Amazon MQ will not be able to create VPC endpoints for your broker with multiple subnets in the same Availability Zone. A SINGLE_INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE_STANDBY_MULTI_AZ Amazon MQ for ActiveMQ deployment requires two subnets. A CLUSTER_MULTI_AZ Amazon MQ for RabbitMQ deployment has no subnet requirements when deployed with public accessibility. Deployment without public accessibility requires at least one subnet.

        If you specify subnets in a shared VPC for a RabbitMQ broker, the associated VPC to which the specified subnets belong must be owned by your Amazon Web Services account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your Amazon Web Services account.

        Parameters:
        subnetIds - The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. If you specify more than one subnet, the subnets must be in different Availability Zones. Amazon MQ will not be able to create VPC endpoints for your broker with multiple subnets in the same Availability Zone. A SINGLE_INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE_STANDBY_MULTI_AZ Amazon MQ for ActiveMQ deployment requires two subnets. A CLUSTER_MULTI_AZ Amazon MQ for RabbitMQ deployment has no subnet requirements when deployed with public accessibility. Deployment without public accessibility requires at least one subnet.

        If you specify subnets in a shared VPC for a RabbitMQ broker, the associated VPC to which the specified subnets belong must be owned by your Amazon Web Services account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your Amazon Web Services account.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • subnetIds

        CreateBrokerRequest.Builder subnetIds​(String... subnetIds)

        The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. If you specify more than one subnet, the subnets must be in different Availability Zones. Amazon MQ will not be able to create VPC endpoints for your broker with multiple subnets in the same Availability Zone. A SINGLE_INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE_STANDBY_MULTI_AZ Amazon MQ for ActiveMQ deployment requires two subnets. A CLUSTER_MULTI_AZ Amazon MQ for RabbitMQ deployment has no subnet requirements when deployed with public accessibility. Deployment without public accessibility requires at least one subnet.

        If you specify subnets in a shared VPC for a RabbitMQ broker, the associated VPC to which the specified subnets belong must be owned by your Amazon Web Services account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your Amazon Web Services account.

        Parameters:
        subnetIds - The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones. If you specify more than one subnet, the subnets must be in different Availability Zones. Amazon MQ will not be able to create VPC endpoints for your broker with multiple subnets in the same Availability Zone. A SINGLE_INSTANCE deployment requires one subnet (for example, the default subnet). An ACTIVE_STANDBY_MULTI_AZ Amazon MQ for ActiveMQ deployment requires two subnets. A CLUSTER_MULTI_AZ Amazon MQ for RabbitMQ deployment has no subnet requirements when deployed with public accessibility. Deployment without public accessibility requires at least one subnet.

        If you specify subnets in a shared VPC for a RabbitMQ broker, the associated VPC to which the specified subnets belong must be owned by your Amazon Web Services account. Amazon MQ will not be able to create VPC endpoints in VPCs that are not owned by your Amazon Web Services account.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        CreateBrokerRequest.Builder tags​(Map<String,​String> tags)

        Create tags when creating the broker.

        Parameters:
        tags - Create tags when creating the broker.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • users

        CreateBrokerRequest.Builder users​(Collection<User> users)

        The list of broker users (persons or applications) who can access queues and topics. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.

        Parameters:
        users - The list of broker users (persons or applications) who can access queues and topics. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • users

        CreateBrokerRequest.Builder users​(User... users)

        The list of broker users (persons or applications) who can access queues and topics. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.

        Parameters:
        users - The list of broker users (persons or applications) who can access queues and topics. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • users

        CreateBrokerRequest.Builder users​(Consumer<User.Builder>... users)

        The list of broker users (persons or applications) who can access queues and topics. For Amazon MQ for RabbitMQ brokers, one and only one administrative user is accepted and created when a broker is first provisioned. All subsequent broker users are created by making RabbitMQ API calls directly to brokers or via the RabbitMQ web console.

        This is a convenience method that creates an instance of the User.Builder avoiding the need to create one manually via User.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #users(List).

        Parameters:
        users - a consumer that will call methods on User.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #users(java.util.Collection)
      • dataReplicationMode

        CreateBrokerRequest.Builder dataReplicationMode​(String dataReplicationMode)

        Defines whether this broker is a part of a data replication pair.

        Parameters:
        dataReplicationMode - Defines whether this broker is a part of a data replication pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DataReplicationMode, DataReplicationMode
      • dataReplicationMode

        CreateBrokerRequest.Builder dataReplicationMode​(DataReplicationMode dataReplicationMode)

        Defines whether this broker is a part of a data replication pair.

        Parameters:
        dataReplicationMode - Defines whether this broker is a part of a data replication pair.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        DataReplicationMode, DataReplicationMode
      • dataReplicationPrimaryBrokerArn

        CreateBrokerRequest.Builder dataReplicationPrimaryBrokerArn​(String dataReplicationPrimaryBrokerArn)

        The Amazon Resource Name (ARN) of the primary broker that is used to replicate data from in a data replication pair, and is applied to the replica broker. Must be set when dataReplicationMode is set to CRDR.

        Parameters:
        dataReplicationPrimaryBrokerArn - The Amazon Resource Name (ARN) of the primary broker that is used to replicate data from in a data replication pair, and is applied to the replica broker. Must be set when dataReplicationMode is set to CRDR.
        Returns:
        Returns a reference to this object so that method calls can be chained together.