Class ContainerAnalysisV1Beta1Settings (2.7.0)

Stay organized with collections Save and categorize content based on your preferences.
public class ContainerAnalysisV1Beta1Settings extends ClientSettings<ContainerAnalysisV1Beta1Settings>

Settings class to configure an instance of ContainerAnalysisV1Beta1Client.

The default instance has everything set to sensible defaults:

  • The default service address (containeranalysis.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of setIamPolicy to 30 seconds:

 
 ContainerAnalysisV1Beta1Settings.Builder containerAnalysisV1Beta1SettingsBuilder =
     ContainerAnalysisV1Beta1Settings.newBuilder();
 containerAnalysisV1Beta1SettingsBuilder
     .setIamPolicySettings()
     .setRetrySettings(
         containerAnalysisV1Beta1SettingsBuilder.setIamPolicySettings().getRetrySettings().toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ContainerAnalysisV1Beta1Settings containerAnalysisV1Beta1Settings = containerAnalysisV1Beta1SettingsBuilder.build();
 
 

Inheritance

java.lang.Object > ClientSettings > ContainerAnalysisV1Beta1Settings