Udostępnij za pośrednictwem


ChannelUpdateParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.ChannelUpdateParameters

Implements

public final class ChannelUpdateParameters
implements JsonSerializable<ChannelUpdateParameters>

Properties of the Channel update.

Constructor Summary

Constructor Description
ChannelUpdateParameters()

Creates an instance of ChannelUpdateParameters class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expirationTimeIfNotActivatedUtc()

Get the expirationTimeIfNotActivatedUtc property: Expiration time of the channel.

static ChannelUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of ChannelUpdateParameters from the JsonReader.

PartnerUpdateDestinationInfo partnerDestinationInfo()

Get the partnerDestinationInfo property: Partner destination properties which can be updated if the channel is of type PartnerDestination.

PartnerUpdateTopicInfo partnerTopicInfo()

Get the partnerTopicInfo property: Partner topic properties which can be updated if the channel is of type PartnerTopic.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ChannelUpdateParameters withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc)

Set the expirationTimeIfNotActivatedUtc property: Expiration time of the channel.

ChannelUpdateParameters withPartnerDestinationInfo(PartnerUpdateDestinationInfo partnerDestinationInfo)

Set the partnerDestinationInfo property: Partner destination properties which can be updated if the channel is of type PartnerDestination.

ChannelUpdateParameters withPartnerTopicInfo(PartnerUpdateTopicInfo partnerTopicInfo)

Set the partnerTopicInfo property: Partner topic properties which can be updated if the channel is of type PartnerTopic.

Methods inherited from java.lang.Object

Constructor Details

ChannelUpdateParameters

public ChannelUpdateParameters()

Creates an instance of ChannelUpdateParameters class.

Method Details

expirationTimeIfNotActivatedUtc

public OffsetDateTime expirationTimeIfNotActivatedUtc()

Get the expirationTimeIfNotActivatedUtc property: Expiration time of the channel. If this timer expires while the corresponding partner topic or partner destination is never activated, the channel and corresponding partner topic or partner destination are deleted.

Returns:

the expirationTimeIfNotActivatedUtc value.

fromJson

public static ChannelUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of ChannelUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ChannelUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ChannelUpdateParameters.

partnerDestinationInfo

public PartnerUpdateDestinationInfo partnerDestinationInfo()

Get the partnerDestinationInfo property: Partner destination properties which can be updated if the channel is of type PartnerDestination.

Returns:

the partnerDestinationInfo value.

partnerTopicInfo

public PartnerUpdateTopicInfo partnerTopicInfo()

Get the partnerTopicInfo property: Partner topic properties which can be updated if the channel is of type PartnerTopic.

Returns:

the partnerTopicInfo value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExpirationTimeIfNotActivatedUtc

public ChannelUpdateParameters withExpirationTimeIfNotActivatedUtc(OffsetDateTime expirationTimeIfNotActivatedUtc)

Set the expirationTimeIfNotActivatedUtc property: Expiration time of the channel. If this timer expires while the corresponding partner topic or partner destination is never activated, the channel and corresponding partner topic or partner destination are deleted.

Parameters:

expirationTimeIfNotActivatedUtc - the expirationTimeIfNotActivatedUtc value to set.

Returns:

the ChannelUpdateParameters object itself.

withPartnerDestinationInfo

public ChannelUpdateParameters withPartnerDestinationInfo(PartnerUpdateDestinationInfo partnerDestinationInfo)

Set the partnerDestinationInfo property: Partner destination properties which can be updated if the channel is of type PartnerDestination.

Parameters:

partnerDestinationInfo - the partnerDestinationInfo value to set.

Returns:

the ChannelUpdateParameters object itself.

withPartnerTopicInfo

public ChannelUpdateParameters withPartnerTopicInfo(PartnerUpdateTopicInfo partnerTopicInfo)

Set the partnerTopicInfo property: Partner topic properties which can be updated if the channel is of type PartnerTopic.

Parameters:

partnerTopicInfo - the partnerTopicInfo value to set.

Returns:

the ChannelUpdateParameters object itself.

Applies to