Class DataConnectorConnectBody

java.lang.Object
com.azure.resourcemanager.securityinsights.models.DataConnectorConnectBody

public final class DataConnectorConnectBody extends Object
Represents Codeless API Polling data connector.
  • Constructor Details

    • DataConnectorConnectBody

      public DataConnectorConnectBody()
  • Method Details

    • kind

      public ConnectAuthKind kind()
      Get the kind property: The authentication kind used to poll the data.
      Returns:
      the kind value.
    • withKind

      public DataConnectorConnectBody withKind(ConnectAuthKind kind)
      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

      public String apiKey()
      Get the apiKey property: The API key of the audit server.
      Returns:
      the apiKey value.
    • withApiKey

      public DataConnectorConnectBody withApiKey(String apiKey)
      Set the apiKey property: The API key of the audit server.
      Parameters:
      apiKey - the apiKey value to set.
      Returns:
      the DataConnectorConnectBody object itself.
    • dataCollectionEndpoint

      public String dataCollectionEndpoint()
      Get the dataCollectionEndpoint property: Used in v2 logs connector. Represents the data collection ingestion endpoint in log analytics.
      Returns:
      the dataCollectionEndpoint value.
    • withDataCollectionEndpoint

      public DataConnectorConnectBody withDataCollectionEndpoint(String dataCollectionEndpoint)
      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

      public String 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

      public String 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

      public DataConnectorConnectBody withOutputStream(String outputStream)
      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

      public String clientSecret()
      Get the clientSecret property: The client secret of the OAuth 2.0 application.
      Returns:
      the clientSecret value.
    • withClientSecret

      public DataConnectorConnectBody withClientSecret(String clientSecret)
      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

      public String clientId()
      Get the clientId property: The client id of the OAuth 2.0 application.
      Returns:
      the clientId value.
    • withClientId

      public DataConnectorConnectBody withClientId(String clientId)
      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

      public String authorizationCode()
      Get the authorizationCode property: The authorization code used in OAuth 2.0 code flow to issue a token.
      Returns:
      the authorizationCode value.
    • withAuthorizationCode

      public DataConnectorConnectBody withAuthorizationCode(String authorizationCode)
      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

      public String username()
      Get the username property: The user name in the audit log server.
      Returns:
      the username value.
    • withUsername

      public DataConnectorConnectBody withUsername(String username)
      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

      public String password()
      Get the password property: The user password in the audit log server.
      Returns:
      the password value.
    • withPassword

      public DataConnectorConnectBody withPassword(String password)
      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

      public List<Object> 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.