Class SecurityCenterSettings
java.lang.Object
com.google.api.gax.rpc.ClientSettings<SecurityCenterSettings>
com.google.cloud.securitycenter.v2.SecurityCenterSettings
@Generated("by gapic-generator-java")
public class SecurityCenterSettings
extends ClientSettings<SecurityCenterSettings>
Settings class to configure an instance of
SecurityCenterClient.
The default instance has everything set to sensible defaults:
- The default service address (securitycenter.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](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) of batchCreateResourceValueConfigs:
// 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
SecurityCenterSettings.Builder securityCenterSettingsBuilder =
SecurityCenterSettings.newBuilder();
securityCenterSettingsBuilder
.batchCreateResourceValueConfigsSettings()
.setRetrySettings(
securityCenterSettingsBuilder
.batchCreateResourceValueConfigsSettings()
.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());
SecurityCenterSettings securityCenterSettings = securityCenterSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
retries.
To configure the RetrySettings of a Long Running Operation method, create an OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to configure the RetrySettings for bulkMuteFindings:
// 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
SecurityCenterSettings.Builder securityCenterSettingsBuilder =
SecurityCenterSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
securityCenterSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for SecurityCenterSettings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSecurityCenterSettings(SecurityCenterSettings.Builder settingsBuilder) -
Method Summary
Modifier and TypeMethodDescriptionReturns the object with the settings used for calls to batchCreateResourceValueConfigs.OperationCallSettings<BulkMuteFindingsRequest,BulkMuteFindingsResponse, com.google.protobuf.Empty> Returns the object with the settings used for calls to bulkMuteFindings.Returns the object with the settings used for calls to bulkMuteFindings.static final SecurityCenterSettingsReturns the object with the settings used for calls to createBigQueryExport.Returns the object with the settings used for calls to createFinding.Returns the object with the settings used for calls to createMuteConfig.Returns the object with the settings used for calls to createNotificationConfig.Returns the object with the settings used for calls to createSource.Returns a builder for the default credentials for this service.Returns a builder for the default ExecutorProvider for this service.Returns a builder for the default gRPC ChannelProvider for this service.Returns a builder for the default REST ChannelProvider for this service.static TransportChannelProviderUnaryCallSettings<DeleteBigQueryExportRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteBigQueryExport.UnaryCallSettings<DeleteMuteConfigRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteMuteConfig.UnaryCallSettings<DeleteNotificationConfigRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteNotificationConfig.UnaryCallSettings<DeleteResourceValueConfigRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteResourceValueConfig.Returns the object with the settings used for calls to getBigQueryExport.static StringReturns the default service endpoint.Returns the default service scopes.Returns the object with the settings used for calls to getIamPolicy.Returns the object with the settings used for calls to getMuteConfig.Returns the object with the settings used for calls to getNotificationConfig.Returns the object with the settings used for calls to getResourceValueConfig.Returns the object with the settings used for calls to getSimulation.Returns the object with the settings used for calls to getSource.Returns the object with the settings used for calls to getValuedResource.PagedCallSettings<GroupFindingsRequest,GroupFindingsResponse, SecurityCenterClient.GroupFindingsPagedResponse> Returns the object with the settings used for calls to groupFindings.PagedCallSettings<ListAttackPathsRequest,ListAttackPathsResponse, SecurityCenterClient.ListAttackPathsPagedResponse> Returns the object with the settings used for calls to listAttackPaths.PagedCallSettings<ListBigQueryExportsRequest,ListBigQueryExportsResponse, SecurityCenterClient.ListBigQueryExportsPagedResponse> Returns the object with the settings used for calls to listBigQueryExports.PagedCallSettings<ListFindingsRequest,ListFindingsResponse, SecurityCenterClient.ListFindingsPagedResponse> Returns the object with the settings used for calls to listFindings.PagedCallSettings<ListMuteConfigsRequest,ListMuteConfigsResponse, SecurityCenterClient.ListMuteConfigsPagedResponse> Returns the object with the settings used for calls to listMuteConfigs.PagedCallSettings<ListNotificationConfigsRequest,ListNotificationConfigsResponse, SecurityCenterClient.ListNotificationConfigsPagedResponse> Returns the object with the settings used for calls to listNotificationConfigs.PagedCallSettings<ListResourceValueConfigsRequest,ListResourceValueConfigsResponse, SecurityCenterClient.ListResourceValueConfigsPagedResponse> Returns the object with the settings used for calls to listResourceValueConfigs.PagedCallSettings<ListSourcesRequest,ListSourcesResponse, SecurityCenterClient.ListSourcesPagedResponse> Returns the object with the settings used for calls to listSources.PagedCallSettings<ListValuedResourcesRequest,ListValuedResourcesResponse, SecurityCenterClient.ListValuedResourcesPagedResponse> Returns the object with the settings used for calls to listValuedResources.Returns a new gRPC builder for this class.newBuilder(ClientContext clientContext) Returns a new builder for this class.Returns a new REST builder for this class.Returns the object with the settings used for calls to setFindingState.Returns the object with the settings used for calls to setIamPolicy.Returns the object with the settings used for calls to setMute.Returns the object with the settings used for calls to testIamPermissions.Returns a builder containing all the values of this settings class.Returns the object with the settings used for calls to updateBigQueryExport.Returns the object with the settings used for calls to updateExternalSystem.Returns the object with the settings used for calls to updateFinding.Returns the object with the settings used for calls to updateMuteConfig.Returns the object with the settings used for calls to updateNotificationConfig.Returns the object with the settings used for calls to updateResourceValueConfig.Returns the object with the settings used for calls to updateSecurityMarks.Returns the object with the settings used for calls to updateSource.Methods inherited from class com.google.api.gax.rpc.ClientSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toString
-
Constructor Details
-
SecurityCenterSettings
- Throws:
IOException
-
-
Method Details
-
batchCreateResourceValueConfigsSettings
public UnaryCallSettings<BatchCreateResourceValueConfigsRequest,BatchCreateResourceValueConfigsResponse> batchCreateResourceValueConfigsSettings()Returns the object with the settings used for calls to batchCreateResourceValueConfigs. -
bulkMuteFindingsSettings
Returns the object with the settings used for calls to bulkMuteFindings. -
bulkMuteFindingsOperationSettings
public OperationCallSettings<BulkMuteFindingsRequest,BulkMuteFindingsResponse, bulkMuteFindingsOperationSettings()com.google.protobuf.Empty> Returns the object with the settings used for calls to bulkMuteFindings. -
createBigQueryExportSettings
Returns the object with the settings used for calls to createBigQueryExport. -
createFindingSettings
Returns the object with the settings used for calls to createFinding. -
createMuteConfigSettings
Returns the object with the settings used for calls to createMuteConfig. -
createNotificationConfigSettings
public UnaryCallSettings<CreateNotificationConfigRequest,NotificationConfig> createNotificationConfigSettings()Returns the object with the settings used for calls to createNotificationConfig. -
createSourceSettings
Returns the object with the settings used for calls to createSource. -
deleteBigQueryExportSettings
public UnaryCallSettings<DeleteBigQueryExportRequest,com.google.protobuf.Empty> deleteBigQueryExportSettings()Returns the object with the settings used for calls to deleteBigQueryExport. -
deleteMuteConfigSettings
public UnaryCallSettings<DeleteMuteConfigRequest,com.google.protobuf.Empty> deleteMuteConfigSettings()Returns the object with the settings used for calls to deleteMuteConfig. -
deleteNotificationConfigSettings
public UnaryCallSettings<DeleteNotificationConfigRequest,com.google.protobuf.Empty> deleteNotificationConfigSettings()Returns the object with the settings used for calls to deleteNotificationConfig. -
deleteResourceValueConfigSettings
public UnaryCallSettings<DeleteResourceValueConfigRequest,com.google.protobuf.Empty> deleteResourceValueConfigSettings()Returns the object with the settings used for calls to deleteResourceValueConfig. -
getBigQueryExportSettings
Returns the object with the settings used for calls to getBigQueryExport. -
getSimulationSettings
Returns the object with the settings used for calls to getSimulation. -
getValuedResourceSettings
Returns the object with the settings used for calls to getValuedResource. -
getIamPolicySettings
Returns the object with the settings used for calls to getIamPolicy. -
getMuteConfigSettings
Returns the object with the settings used for calls to getMuteConfig. -
getNotificationConfigSettings
public UnaryCallSettings<GetNotificationConfigRequest,NotificationConfig> getNotificationConfigSettings()Returns the object with the settings used for calls to getNotificationConfig. -
getResourceValueConfigSettings
public UnaryCallSettings<GetResourceValueConfigRequest,ResourceValueConfig> getResourceValueConfigSettings()Returns the object with the settings used for calls to getResourceValueConfig. -
getSourceSettings
Returns the object with the settings used for calls to getSource. -
groupFindingsSettings
public PagedCallSettings<GroupFindingsRequest,GroupFindingsResponse, groupFindingsSettings()SecurityCenterClient.GroupFindingsPagedResponse> Returns the object with the settings used for calls to groupFindings. -
listAttackPathsSettings
public PagedCallSettings<ListAttackPathsRequest,ListAttackPathsResponse, listAttackPathsSettings()SecurityCenterClient.ListAttackPathsPagedResponse> Returns the object with the settings used for calls to listAttackPaths. -
listBigQueryExportsSettings
public PagedCallSettings<ListBigQueryExportsRequest,ListBigQueryExportsResponse, listBigQueryExportsSettings()SecurityCenterClient.ListBigQueryExportsPagedResponse> Returns the object with the settings used for calls to listBigQueryExports. -
listFindingsSettings
public PagedCallSettings<ListFindingsRequest,ListFindingsResponse, listFindingsSettings()SecurityCenterClient.ListFindingsPagedResponse> Returns the object with the settings used for calls to listFindings. -
listMuteConfigsSettings
public PagedCallSettings<ListMuteConfigsRequest,ListMuteConfigsResponse, listMuteConfigsSettings()SecurityCenterClient.ListMuteConfigsPagedResponse> Returns the object with the settings used for calls to listMuteConfigs. -
listNotificationConfigsSettings
public PagedCallSettings<ListNotificationConfigsRequest,ListNotificationConfigsResponse, listNotificationConfigsSettings()SecurityCenterClient.ListNotificationConfigsPagedResponse> Returns the object with the settings used for calls to listNotificationConfigs. -
listResourceValueConfigsSettings
public PagedCallSettings<ListResourceValueConfigsRequest,ListResourceValueConfigsResponse, listResourceValueConfigsSettings()SecurityCenterClient.ListResourceValueConfigsPagedResponse> Returns the object with the settings used for calls to listResourceValueConfigs. -
listSourcesSettings
public PagedCallSettings<ListSourcesRequest,ListSourcesResponse, listSourcesSettings()SecurityCenterClient.ListSourcesPagedResponse> Returns the object with the settings used for calls to listSources. -
listValuedResourcesSettings
public PagedCallSettings<ListValuedResourcesRequest,ListValuedResourcesResponse, listValuedResourcesSettings()SecurityCenterClient.ListValuedResourcesPagedResponse> Returns the object with the settings used for calls to listValuedResources. -
setFindingStateSettings
Returns the object with the settings used for calls to setFindingState. -
setIamPolicySettings
Returns the object with the settings used for calls to setIamPolicy. -
setMuteSettings
Returns the object with the settings used for calls to setMute. -
testIamPermissionsSettings
public UnaryCallSettings<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()Returns the object with the settings used for calls to testIamPermissions. -
updateBigQueryExportSettings
Returns the object with the settings used for calls to updateBigQueryExport. -
updateExternalSystemSettings
Returns the object with the settings used for calls to updateExternalSystem. -
updateFindingSettings
Returns the object with the settings used for calls to updateFinding. -
updateMuteConfigSettings
Returns the object with the settings used for calls to updateMuteConfig. -
updateNotificationConfigSettings
public UnaryCallSettings<UpdateNotificationConfigRequest,NotificationConfig> updateNotificationConfigSettings()Returns the object with the settings used for calls to updateNotificationConfig. -
updateResourceValueConfigSettings
public UnaryCallSettings<UpdateResourceValueConfigRequest,ResourceValueConfig> updateResourceValueConfigSettings()Returns the object with the settings used for calls to updateResourceValueConfig. -
updateSecurityMarksSettings
Returns the object with the settings used for calls to updateSecurityMarks. -
updateSourceSettings
Returns the object with the settings used for calls to updateSource. -
create
public static final SecurityCenterSettings create(SecurityCenterStubSettings stub) throws IOException - Throws:
IOException
-
defaultExecutorProviderBuilder
Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
getDefaultServiceScopes
Returns the default service scopes. -
defaultCredentialsProviderBuilder
Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
Returns a builder for the default gRPC ChannelProvider for this service. -
defaultHttpJsonTransportProviderBuilder
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()Returns a builder for the default REST ChannelProvider for this service. -
defaultTransportChannelProvider
-
defaultApiClientHeaderProviderBuilder
-
newBuilder
Returns a new gRPC builder for this class. -
newHttpJsonBuilder
Returns a new REST builder for this class. -
newBuilder
Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classClientSettings<SecurityCenterSettings>
-