Language

CassandraAsyncCommandContent Class

Definition

Specification of which command to run where.

public class CassandraAsyncCommandContent : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.Models.CassandraAsyncCommandContent>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.Models.CassandraAsyncCommandContent>
type CassandraAsyncCommandContent = class
    interface IJsonModel<CassandraAsyncCommandContent>
    interface IPersistableModel<CassandraAsyncCommandContent>
Public Class CassandraAsyncCommandContent
Implements IJsonModel(Of CassandraAsyncCommandContent), IPersistableModel(Of CassandraAsyncCommandContent)
Inheritance
CassandraAsyncCommandContent
Implements

Constructors

Name Description
CassandraAsyncCommandContent(String, String)

Initializes a new instance of CassandraAsyncCommandContent.

Properties

Name Description
Arguments

The arguments for the command to be run

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

CassandraStopStart

If true, stops cassandra before executing the command and then start it again.

Command

The command which should be run.

Host

IP address of the cassandra host to run the command on.

IsReadWrite

If true, allows the command to write to the cassandra directory, otherwise read-only.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<CassandraAsyncCommandContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<CassandraAsyncCommandContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<CassandraAsyncCommandContent>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<CassandraAsyncCommandContent>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<CassandraAsyncCommandContent>.Write(ModelReaderWriterOptions)

Applies to