code: @Override
      public JoinDomainResult joinDomain(JoinDomainRequest request) {
          request = beforeClientExecution(request);
          return executeJoinDomain(request);
      }
docs: <p>
  Adds a file gateway to an Active Directory domain. This operation is only supported for file gateways that
  support the SMB file protocol.
  </p>
  
  @param joinDomainRequest
  JoinDomainInput
  @return Result of the JoinDomain operation returned by the service.
  @throws InvalidGatewayRequestException
  An exception occurred because an invalid gateway request was issued to the service. For more information,
  see the error and message fields.
  @throws InternalServerErrorException
  An internal server error has occurred during the request. For more information, see the error and message
  fields.
  @sample AWSStorageGateway.JoinDomain
  @see <a href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/JoinDomain" target="_top">AWS API
  Documentation</a>