@Override public final TypeToBuild build() { return configureMutableProperties(build(getSyncClientParams())); }
/** * @returns The current setting for FIPS enabled endpoints configured in the builder. * @see <a href="https://www.nist.gov/itl/fips-general-information">FIPS General Information</a> */ public Boolean isFipsEnabled() { return super.getAdvancedConfig(S3ControlClientOptions.FIPS_ENABLED); }
/** * Sets the status of FIPS enabled endpoints for clients built with this builder. The default is to not use FIPS * endpoints. * * @param fipsEnabled * True if FIPS endpoints should be used, false if FIPS endpoints should not be used. * @see <a href="https://www.nist.gov/itl/fips-general-information">FIPS General Information</a> */ public void setFipsEnabled(Boolean fipsEnabled) { super.putAdvancedConfig(S3ControlClientOptions.FIPS_ENABLED, fipsEnabled); }
public static <B extends AwsSyncClientBuilder<?, ?>> B configureBuilder(final B clientBuilder, final EnvVars vars) { if (clientBuilder == null) { throw new IllegalArgumentException("ClientBuilder must not be null"); } if (StringUtils.isNotBlank(vars.get(AWS_ENDPOINT_URL))) { clientBuilder.setEndpointConfiguration(new AwsClientBuilder.EndpointConfiguration(vars.get(AWS_ENDPOINT_URL), vars.get(AWS_REGION))); } else { clientBuilder.setRegion(AWSClientFactory.getRegion(vars).getName()); } clientBuilder.setCredentials(AWSClientFactory.getCredentials(vars)); clientBuilder.setClientConfiguration(AWSClientFactory.getClientConfiguration(vars)); return clientBuilder; }
public static <B extends AwsSyncClientBuilder<?, T>, T> T create(B clientBuilder, EnvVars vars) { return configureBuilder(clientBuilder, vars).build(); }
public static <B extends AwsSyncClientBuilder<?, T>, T> T create(B clientBuilder, StepContext context) { try { return configureBuilder(clientBuilder, context.get(EnvVars.class)).build(); } catch (Exception e) { throw new IllegalArgumentException(e); } }
@Override public final TypeToBuild build() { return configureMutableProperties(build(getSyncClientParams())); }
/** * @returns The current setting for Dual-Stack endpoints (supports both IPv4 and IPv6) configured in the builder. * @see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/dual-stack-endpoints.html">Using Amazon S3 * Dual-Stack Endpoints</a> */ public Boolean isDualstackEnabled() { return super.getAdvancedConfig(S3ControlClientOptions.DUALSTACK_ENABLED); }
/** * Sets the status of Dual-Stack endpoints (supports both IPv4 and IPv6) for clients built with this builder. The * default is to not use Dual-Stack endpoints. * * @param dualstackEnabled * True if Dual-Stack endpoints should be used, false if Dual-Stack endpoints should not be used. * @see <a href="https://docs.aws.amazon.com/AmazonS3/latest/dev/dual-stack-endpoints.html">Using Amazon S3 * Dual-Stack Endpoints</a> */ public void setDualstackEnabled(Boolean dualstackEnabled) { super.putAdvancedConfig(S3ControlClientOptions.DUALSTACK_ENABLED, dualstackEnabled); }
@Override public final TypeToBuild build() { return configureMutableProperties(build(getSyncClientParams())); }