public final Source getSource(SourceName name) {

    GetSourceRequest request =
        GetSourceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
    return getSource(request);
  }
public final Source getSource ( SourceName name ) { GetSourceRequest request = GetSourceRequest . newBuilder ( ) . setName ( name == null ? null : name . toString ( ) ) . build ( ) ; return getSource ( request ) ; }
Gets a source.

<p>Sample code:

<pre><code>
try (SecurityCenterClient securityCenterClient = SecurityCenterClient.create()) {
SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]");
Source response = securityCenterClient.getSource(name);
}
</code></pre>

@param name Relative resource name of the source. Its format is
"organizations/[organization_id]/source/[source_id]".
@throws com.google.api.gax.rpc.ApiException if the remote call fails