Class StreamSubscriptionOperator.StreamSubscriptionBuilder
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.StreamSubscriptionOperator.StreamSubscriptionBuilder
- Enclosing class:
StreamSubscriptionOperator
- Author:
- ianjones
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()save()Applies the accumulated changes to the existing stream subscription (full-bodyPUT) and returns the model refreshed from the server.withAccessToken(String accessToken) withApiKey(String apiKey) withApiToken(String apiToken) Sets the sink API token (credential.apiToken) and the credential typeAPI_TOKEN, as the Dynatrace sink expects.withBatchEnabled(Boolean batchEnabled) withBatchSizeMax(Integer batchSizeMax) withBatchWaitTimeMax(Integer batchWaitTimeMax) withCredentialType(StreamSubscriptionSinkCredentialType credentialType) Sets the sink credential type from the typed spec enum (StreamSubscriptionSinkCredential.type).withDescription(String description) withEnabled(Boolean enabled) withEventSelector(StreamSubscriptionSelector eventSelector) withFilters(StreamSubscriptionFilter filters) Sets the subscription filters (spec schemaStreamSubscriptionFilter): a conjunction of up to 8 filter expressions applied to the streamed events or metrics.withIntegrationKey(String integrationKey) withMetricSelector(StreamSubscriptionSelector metricSelector) withPassword(String password) withSinkHost(String sinkHost) withSinkSettings(StreamSinkSetting sinkSettings) withSinkType(StreamSubscriptionSinkType sinkType) withSinkUri(String sinkUri) withUsername(String username)
-
Constructor Details
-
StreamSubscriptionBuilder
-
-
Method Details
-
withType
-
withName
-
withDescription
-
withEnabled
-
withSinkType
public StreamSubscriptionOperator.StreamSubscriptionBuilder withSinkType(StreamSubscriptionSinkType sinkType) -
withSinkUri
-
withCredentialType
public StreamSubscriptionOperator.StreamSubscriptionBuilder withCredentialType(StreamSubscriptionSinkCredentialType credentialType) Sets the sink credential type from the typed spec enum (StreamSubscriptionSinkCredential.type).- Parameters:
credentialType- the sink credential type- Returns:
- this builder
-
withAccessToken
-
withIntegrationKey
public StreamSubscriptionOperator.StreamSubscriptionBuilder withIntegrationKey(String integrationKey) -
withApiKey
-
withUsername
-
withPassword
-
withApiToken
Sets the sink API token (credential.apiToken) and the credential typeAPI_TOKEN, as the Dynatrace sink expects.- Parameters:
apiToken- the API token- Returns:
- this builder
-
withSinkHost
-
withBatchEnabled
-
withBatchSizeMax
-
withBatchWaitTimeMax
public StreamSubscriptionOperator.StreamSubscriptionBuilder withBatchWaitTimeMax(Integer batchWaitTimeMax) -
withSinkSettings
public StreamSubscriptionOperator.StreamSubscriptionBuilder withSinkSettings(StreamSinkSetting sinkSettings) -
withMetricSelector
public StreamSubscriptionOperator.StreamSubscriptionBuilder withMetricSelector(StreamSubscriptionSelector metricSelector) -
withEventSelector
public StreamSubscriptionOperator.StreamSubscriptionBuilder withEventSelector(StreamSubscriptionSelector eventSelector) -
withFilters
public StreamSubscriptionOperator.StreamSubscriptionBuilder withFilters(StreamSubscriptionFilter filters) Sets the subscription filters (spec schemaStreamSubscriptionFilter): a conjunction of up to 8 filter expressions applied to the streamed events or metrics.- Parameters:
filters- the subscription filters- Returns:
- this builder
-
create
-
save
Applies the accumulated changes to the existing stream subscription (full-bodyPUT) and returns the model refreshed from the server. Only valid on a builder obtained viaStreamSubscriptionOperator.update(String, StreamSubscriptionJson).- Returns:
- the updated
StreamSubscription
-