@SdkInternalApi
    final RegisterTransitGatewayMulticastGroupMembersResult executeRegisterTransitGatewayMulticastGroupMembers(
            RegisterTransitGatewayMulticastGroupMembersRequest registerTransitGatewayMulticastGroupMembersRequest) {

        ExecutionContext executionContext = createExecutionContext(registerTransitGatewayMulticastGroupMembersRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(Field.ClientExecuteTime);
        Request<RegisterTransitGatewayMulticastGroupMembersRequest> request = null;
        Response<RegisterTransitGatewayMulticastGroupMembersResult> response = null;

        try {
            awsRequestMetrics.startEvent(Field.RequestMarshallTime);
            try {
                request = new RegisterTransitGatewayMulticastGroupMembersRequestMarshaller().marshall(super
                        .beforeMarshalling(registerTransitGatewayMulticastGroupMembersRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
                request.addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
                request.addHandlerContext(HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
                request.addHandlerContext(HandlerContextKey.SIGNING_REGION, getSigningRegion());
                request.addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
                request.addHandlerContext(HandlerContextKey.OPERATION_NAME, "RegisterTransitGatewayMulticastGroupMembers");
                request.addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);

            } finally {
                awsRequestMetrics.endEvent(Field.RequestMarshallTime);
            }

            StaxResponseHandler<RegisterTransitGatewayMulticastGroupMembersResult> responseHandler = new StaxResponseHandler<RegisterTransitGatewayMulticastGroupMembersResult>(
                    new RegisterTransitGatewayMulticastGroupMembersResultStaxUnmarshaller());

            response = invoke(request, responseHandler, executionContext);

            return response.getAwsResponse();

        } finally {

            endClientExecution(awsRequestMetrics, request, response);
        }
    }
<p>
Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface
associated with a supported EC2 instance that receives multicast traffic. For more information, see <a
href="https://docs.aws.amazon.com/vpc/latest/tgw/tgw-multicast-overview.html">Multicast on transit gateways</a>
in the <i>Amazon Web Services Transit Gateways Guide</i>.
</p>
<p>
After you add the members, use <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SearchTransitGatewayMulticastGroups.html"
>SearchTransitGatewayMulticastGroups</a> to verify that the members were added to the transit gateway multicast
group.
</p>

@param registerTransitGatewayMulticastGroupMembersRequest
@return Result of the RegisterTransitGatewayMulticastGroupMembers operation returned by the service.
@sample AmazonEC2.RegisterTransitGatewayMulticastGroupMembers
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterTransitGatewayMulticastGroupMembers"
     target="_top">AWS API Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java