Class DataConnectorConnectBody
java.lang.Object
com.azure.resourcemanager.securityinsights.models.DataConnectorConnectBody
Represents Codeless API Polling data connector.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapiKey()
Get the apiKey property: The API key of the audit server.Get the authorizationCode property: The authorization code used in OAuth 2.0 code flow to issue a token.clientId()
Get the clientId property: The client id of the OAuth 2.0 application.Get the clientSecret property: The client secret of the OAuth 2.0 application.Get the dataCollectionEndpoint property: Used in v2 logs connector.Get the dataCollectionRuleImmutableId property: Used in v2 logs connector.kind()
Get the kind property: The authentication kind used to poll the data.Get the outputStream property: Used in v2 logs connector.password()
Get the password property: The user password in the audit log server.Get the requestConfigUserInputValues property: The requestConfigUserInputValues property.username()
Get the username property: The user name in the audit log server.void
validate()
Validates the instance.withApiKey
(String apiKey) Set the apiKey property: The API key of the audit server.withAuthorizationCode
(String authorizationCode) Set the authorizationCode property: The authorization code used in OAuth 2.0 code flow to issue a token.withClientId
(String clientId) Set the clientId property: The client id of the OAuth 2.0 application.withClientSecret
(String clientSecret) Set the clientSecret property: The client secret of the OAuth 2.0 application.withDataCollectionEndpoint
(String dataCollectionEndpoint) Set the dataCollectionEndpoint property: Used in v2 logs connector.withDataCollectionRuleImmutableId
(String dataCollectionRuleImmutableId) Set the dataCollectionRuleImmutableId property: Used in v2 logs connector.withKind
(ConnectAuthKind kind) Set the kind property: The authentication kind used to poll the data.withOutputStream
(String outputStream) Set the outputStream property: Used in v2 logs connector.withPassword
(String password) Set the password property: The user password in the audit log server.withRequestConfigUserInputValues
(List<Object> requestConfigUserInputValues) Set the requestConfigUserInputValues property: The requestConfigUserInputValues property.withUsername
(String username) Set the username property: The user name in the audit log server.
-
Constructor Details
-
DataConnectorConnectBody
public DataConnectorConnectBody()
-
-
Method Details
-
kind
Get the kind property: The authentication kind used to poll the data.- Returns:
- the kind value.
-
withKind
Set the kind property: The authentication kind used to poll the data.- Parameters:
kind
- the kind value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
apiKey
Get the apiKey property: The API key of the audit server.- Returns:
- the apiKey value.
-
withApiKey
Set the apiKey property: The API key of the audit server.- Parameters:
apiKey
- the apiKey value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
dataCollectionEndpoint
Get the dataCollectionEndpoint property: Used in v2 logs connector. Represents the data collection ingestion endpoint in log analytics.- Returns:
- the dataCollectionEndpoint value.
-
withDataCollectionEndpoint
Set the dataCollectionEndpoint property: Used in v2 logs connector. Represents the data collection ingestion endpoint in log analytics.- Parameters:
dataCollectionEndpoint
- the dataCollectionEndpoint value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
dataCollectionRuleImmutableId
Get the dataCollectionRuleImmutableId property: Used in v2 logs connector. The data collection rule immutable id, the rule defines the transformation and data destination.- Returns:
- the dataCollectionRuleImmutableId value.
-
withDataCollectionRuleImmutableId
public DataConnectorConnectBody withDataCollectionRuleImmutableId(String dataCollectionRuleImmutableId) Set the dataCollectionRuleImmutableId property: Used in v2 logs connector. The data collection rule immutable id, the rule defines the transformation and data destination.- Parameters:
dataCollectionRuleImmutableId
- the dataCollectionRuleImmutableId value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
outputStream
Get the outputStream property: Used in v2 logs connector. The stream we are sending the data to, this is the name of the streamDeclarations defined in the DCR.- Returns:
- the outputStream value.
-
withOutputStream
Set the outputStream property: Used in v2 logs connector. The stream we are sending the data to, this is the name of the streamDeclarations defined in the DCR.- Parameters:
outputStream
- the outputStream value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
clientSecret
Get the clientSecret property: The client secret of the OAuth 2.0 application.- Returns:
- the clientSecret value.
-
withClientSecret
Set the clientSecret property: The client secret of the OAuth 2.0 application.- Parameters:
clientSecret
- the clientSecret value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
clientId
Get the clientId property: The client id of the OAuth 2.0 application.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The client id of the OAuth 2.0 application.- Parameters:
clientId
- the clientId value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
authorizationCode
Get the authorizationCode property: The authorization code used in OAuth 2.0 code flow to issue a token.- Returns:
- the authorizationCode value.
-
withAuthorizationCode
Set the authorizationCode property: The authorization code used in OAuth 2.0 code flow to issue a token.- Parameters:
authorizationCode
- the authorizationCode value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
username
Get the username property: The user name in the audit log server.- Returns:
- the username value.
-
withUsername
Set the username property: The user name in the audit log server.- Parameters:
username
- the username value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
password
Get the password property: The user password in the audit log server.- Returns:
- the password value.
-
withPassword
Set the password property: The user password in the audit log server.- Parameters:
password
- the password value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
requestConfigUserInputValues
Get the requestConfigUserInputValues property: The requestConfigUserInputValues property.- Returns:
- the requestConfigUserInputValues value.
-
withRequestConfigUserInputValues
public DataConnectorConnectBody withRequestConfigUserInputValues(List<Object> requestConfigUserInputValues) Set the requestConfigUserInputValues property: The requestConfigUserInputValues property.- Parameters:
requestConfigUserInputValues
- the requestConfigUserInputValues value to set.- Returns:
- the DataConnectorConnectBody object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-