public class SecurityCenterManagementSettings extends ClientSettings<SecurityCenterManagementSettings>
Settings class to configure an instance of SecurityCenterManagementClient.
The default instance has everything set to sensible defaults:
- The default service address (securitycentermanagement.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 RetrySettings of getEffectiveSecurityHealthAnalyticsCustomModule:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
SecurityCenterManagementSettings.Builder securityCenterManagementSettingsBuilder =
SecurityCenterManagementSettings.newBuilder();
securityCenterManagementSettingsBuilder
.getEffectiveSecurityHealthAnalyticsCustomModuleSettings()
.setRetrySettings(
securityCenterManagementSettingsBuilder
.getEffectiveSecurityHealthAnalyticsCustomModuleSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
SecurityCenterManagementSettings securityCenterManagementSettings =
securityCenterManagementSettingsBuilder.build();
Please refer to the Client Side Retry Guide for additional support in setting retries.
Static Methods
create(SecurityCenterManagementStubSettings stub)
public static final SecurityCenterManagementSettings create(SecurityCenterManagementStubSettings stub)
Parameter | |
---|---|
Name | Description |
stub |
SecurityCenterManagementStubSettings |
Returns | |
---|---|
Type | Description |
SecurityCenterManagementSettings |
Exceptions | |
---|---|
Type | Description |
IOException |
defaultApiClientHeaderProviderBuilder()
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns | |
---|---|
Type | Description |
Builder |
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns | |
---|---|
Type | Description |
Builder |
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns | |
---|---|
Type | Description |
TransportChannelProvider |
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns | |
---|---|
Type | Description |
String |
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns | |
---|---|
Type | Description |
List<String> |
newBuilder()
public static SecurityCenterManagementSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns | |
---|---|
Type | Description |
SecurityCenterManagementSettings.Builder |
newBuilder(ClientContext clientContext)
public static SecurityCenterManagementSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Returns | |
---|---|
Type | Description |
SecurityCenterManagementSettings.Builder |
newHttpJsonBuilder()
public static SecurityCenterManagementSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns | |
---|---|
Type | Description |
SecurityCenterManagementSettings.Builder |
Constructors
SecurityCenterManagementSettings(SecurityCenterManagementSettings.Builder settingsBuilder)
protected SecurityCenterManagementSettings(SecurityCenterManagementSettings.Builder settingsBuilder)
Parameter | |
---|---|
Name | Description |
settingsBuilder |
SecurityCenterManagementSettings.Builder |
Methods
createEventThreatDetectionCustomModuleSettings()
public UnaryCallSettings<CreateEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule> createEventThreatDetectionCustomModuleSettings()
Returns the object with the settings used for calls to createEventThreatDetectionCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreateEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule> |
createSecurityHealthAnalyticsCustomModuleSettings()
public UnaryCallSettings<CreateSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule> createSecurityHealthAnalyticsCustomModuleSettings()
Returns the object with the settings used for calls to createSecurityHealthAnalyticsCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<CreateSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule> |
deleteEventThreatDetectionCustomModuleSettings()
public UnaryCallSettings<DeleteEventThreatDetectionCustomModuleRequest,Empty> deleteEventThreatDetectionCustomModuleSettings()
Returns the object with the settings used for calls to deleteEventThreatDetectionCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteEventThreatDetectionCustomModuleRequest,Empty> |
deleteSecurityHealthAnalyticsCustomModuleSettings()
public UnaryCallSettings<DeleteSecurityHealthAnalyticsCustomModuleRequest,Empty> deleteSecurityHealthAnalyticsCustomModuleSettings()
Returns the object with the settings used for calls to deleteSecurityHealthAnalyticsCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<DeleteSecurityHealthAnalyticsCustomModuleRequest,Empty> |
getEffectiveEventThreatDetectionCustomModuleSettings()
public UnaryCallSettings<GetEffectiveEventThreatDetectionCustomModuleRequest,EffectiveEventThreatDetectionCustomModule> getEffectiveEventThreatDetectionCustomModuleSettings()
Returns the object with the settings used for calls to getEffectiveEventThreatDetectionCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetEffectiveEventThreatDetectionCustomModuleRequest,EffectiveEventThreatDetectionCustomModule> |
getEffectiveSecurityHealthAnalyticsCustomModuleSettings()
public UnaryCallSettings<GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,EffectiveSecurityHealthAnalyticsCustomModule> getEffectiveSecurityHealthAnalyticsCustomModuleSettings()
Returns the object with the settings used for calls to getEffectiveSecurityHealthAnalyticsCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetEffectiveSecurityHealthAnalyticsCustomModuleRequest,EffectiveSecurityHealthAnalyticsCustomModule> |
getEventThreatDetectionCustomModuleSettings()
public UnaryCallSettings<GetEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule> getEventThreatDetectionCustomModuleSettings()
Returns the object with the settings used for calls to getEventThreatDetectionCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule> |
getLocationSettings()
public UnaryCallSettings<GetLocationRequest,Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getSecurityCenterServiceSettings()
public UnaryCallSettings<GetSecurityCenterServiceRequest,SecurityCenterService> getSecurityCenterServiceSettings()
Returns the object with the settings used for calls to getSecurityCenterService.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetSecurityCenterServiceRequest,SecurityCenterService> |
getSecurityHealthAnalyticsCustomModuleSettings()
public UnaryCallSettings<GetSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule> getSecurityHealthAnalyticsCustomModuleSettings()
Returns the object with the settings used for calls to getSecurityHealthAnalyticsCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<GetSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule> |
listDescendantEventThreatDetectionCustomModulesSettings()
public PagedCallSettings<ListDescendantEventThreatDetectionCustomModulesRequest,ListDescendantEventThreatDetectionCustomModulesResponse,SecurityCenterManagementClient.ListDescendantEventThreatDetectionCustomModulesPagedResponse> listDescendantEventThreatDetectionCustomModulesSettings()
Returns the object with the settings used for calls to listDescendantEventThreatDetectionCustomModules.
listDescendantSecurityHealthAnalyticsCustomModulesSettings()
public PagedCallSettings<ListDescendantSecurityHealthAnalyticsCustomModulesRequest,ListDescendantSecurityHealthAnalyticsCustomModulesResponse,SecurityCenterManagementClient.ListDescendantSecurityHealthAnalyticsCustomModulesPagedResponse> listDescendantSecurityHealthAnalyticsCustomModulesSettings()
Returns the object with the settings used for calls to listDescendantSecurityHealthAnalyticsCustomModules.
listEffectiveEventThreatDetectionCustomModulesSettings()
public PagedCallSettings<ListEffectiveEventThreatDetectionCustomModulesRequest,ListEffectiveEventThreatDetectionCustomModulesResponse,SecurityCenterManagementClient.ListEffectiveEventThreatDetectionCustomModulesPagedResponse> listEffectiveEventThreatDetectionCustomModulesSettings()
Returns the object with the settings used for calls to listEffectiveEventThreatDetectionCustomModules.
listEffectiveSecurityHealthAnalyticsCustomModulesSettings()
public PagedCallSettings<ListEffectiveSecurityHealthAnalyticsCustomModulesRequest,ListEffectiveSecurityHealthAnalyticsCustomModulesResponse,SecurityCenterManagementClient.ListEffectiveSecurityHealthAnalyticsCustomModulesPagedResponse> listEffectiveSecurityHealthAnalyticsCustomModulesSettings()
Returns the object with the settings used for calls to listEffectiveSecurityHealthAnalyticsCustomModules.
listEventThreatDetectionCustomModulesSettings()
public PagedCallSettings<ListEventThreatDetectionCustomModulesRequest,ListEventThreatDetectionCustomModulesResponse,SecurityCenterManagementClient.ListEventThreatDetectionCustomModulesPagedResponse> listEventThreatDetectionCustomModulesSettings()
Returns the object with the settings used for calls to listEventThreatDetectionCustomModules.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListEventThreatDetectionCustomModulesRequest,ListEventThreatDetectionCustomModulesResponse,ListEventThreatDetectionCustomModulesPagedResponse> |
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,SecurityCenterManagementClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
Returns | |
---|---|
Type | Description |
PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse> |
listSecurityCenterServicesSettings()
public PagedCallSettings<ListSecurityCenterServicesRequest,ListSecurityCenterServicesResponse,SecurityCenterManagementClient.ListSecurityCenterServicesPagedResponse> listSecurityCenterServicesSettings()
Returns the object with the settings used for calls to listSecurityCenterServices.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListSecurityCenterServicesRequest,ListSecurityCenterServicesResponse,ListSecurityCenterServicesPagedResponse> |
listSecurityHealthAnalyticsCustomModulesSettings()
public PagedCallSettings<ListSecurityHealthAnalyticsCustomModulesRequest,ListSecurityHealthAnalyticsCustomModulesResponse,SecurityCenterManagementClient.ListSecurityHealthAnalyticsCustomModulesPagedResponse> listSecurityHealthAnalyticsCustomModulesSettings()
Returns the object with the settings used for calls to listSecurityHealthAnalyticsCustomModules.
Returns | |
---|---|
Type | Description |
PagedCallSettings<ListSecurityHealthAnalyticsCustomModulesRequest,ListSecurityHealthAnalyticsCustomModulesResponse,ListSecurityHealthAnalyticsCustomModulesPagedResponse> |
simulateSecurityHealthAnalyticsCustomModuleSettings()
public UnaryCallSettings<SimulateSecurityHealthAnalyticsCustomModuleRequest,SimulateSecurityHealthAnalyticsCustomModuleResponse> simulateSecurityHealthAnalyticsCustomModuleSettings()
Returns the object with the settings used for calls to simulateSecurityHealthAnalyticsCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<SimulateSecurityHealthAnalyticsCustomModuleRequest,SimulateSecurityHealthAnalyticsCustomModuleResponse> |
toBuilder()
public SecurityCenterManagementSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns | |
---|---|
Type | Description |
SecurityCenterManagementSettings.Builder |
updateEventThreatDetectionCustomModuleSettings()
public UnaryCallSettings<UpdateEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule> updateEventThreatDetectionCustomModuleSettings()
Returns the object with the settings used for calls to updateEventThreatDetectionCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpdateEventThreatDetectionCustomModuleRequest,EventThreatDetectionCustomModule> |
updateSecurityCenterServiceSettings()
public UnaryCallSettings<UpdateSecurityCenterServiceRequest,SecurityCenterService> updateSecurityCenterServiceSettings()
Returns the object with the settings used for calls to updateSecurityCenterService.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpdateSecurityCenterServiceRequest,SecurityCenterService> |
updateSecurityHealthAnalyticsCustomModuleSettings()
public UnaryCallSettings<UpdateSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule> updateSecurityHealthAnalyticsCustomModuleSettings()
Returns the object with the settings used for calls to updateSecurityHealthAnalyticsCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<UpdateSecurityHealthAnalyticsCustomModuleRequest,SecurityHealthAnalyticsCustomModule> |
validateEventThreatDetectionCustomModuleSettings()
public UnaryCallSettings<ValidateEventThreatDetectionCustomModuleRequest,ValidateEventThreatDetectionCustomModuleResponse> validateEventThreatDetectionCustomModuleSettings()
Returns the object with the settings used for calls to validateEventThreatDetectionCustomModule.
Returns | |
---|---|
Type | Description |
UnaryCallSettings<ValidateEventThreatDetectionCustomModuleRequest,ValidateEventThreatDetectionCustomModuleResponse> |