diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java index f1b5b7df0d9e0..257988d5f239e 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/SystemEventNames.java @@ -24,6 +24,21 @@ import com.azure.messaging.eventgrid.systemevents.AcsRecordingFileStatusUpdatedEventData; import com.azure.messaging.eventgrid.systemevents.AcsSmsDeliveryReportReceivedEventData; import com.azure.messaging.eventgrid.systemevents.AcsSmsReceivedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingApplicationDataChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingBoundaryChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropVarietyChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmerChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFieldChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingHarvestDataChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingPlantingDataChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonalFieldChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingTillageDataChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData; import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueDeletedEventData; import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueModifiedEventData; import com.azure.messaging.eventgrid.systemevents.ContainerRegistryChartDeletedEventData; @@ -103,6 +118,7 @@ import com.azure.messaging.eventgrid.systemevents.StorageAsyncOperationInitiatedEventData; import com.azure.messaging.eventgrid.systemevents.StorageBlobCreatedEventData; import com.azure.messaging.eventgrid.systemevents.StorageBlobDeletedEventData; +import com.azure.messaging.eventgrid.systemevents.StorageBlobInventoryPolicyCompletedEventData; import com.azure.messaging.eventgrid.systemevents.StorageBlobRenamedEventData; import com.azure.messaging.eventgrid.systemevents.StorageBlobTierChangedEventData; import com.azure.messaging.eventgrid.systemevents.StorageDirectoryCreatedEventData; @@ -406,6 +422,11 @@ public final class SystemEventNames { */ public static final String STORAGE_BLOB_DELETED = "Microsoft.Storage.BlobDeleted"; + /** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event. */ + public static final String STORAGE_BLOB_INVENTORY_POLICY_COMPLETED = + "Microsoft.Storage.BlobInventoryPolicyCompleted"; + + /** * indicates an event of blob renaming. */ @@ -532,6 +553,67 @@ public final class SystemEventNames { public static final String POLICY_INSIGHTS_POLICY_STATE_CHANGED = "Microsoft.PolicyInsights.PolicyStateChanged"; public static final String POLICY_INSIGHTS_POLICY_STATE_DELETED = "Microsoft.PolicyInsights.PolicyStateDeleted"; + // Agriculture Food Farming + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. */ + public static final String AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED = + "Microsoft.AgFoodPlatform.ApplicationDataChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. */ + public static final String AGRI_FOOD_FARMING_BOUNDARY_CHANGED = "Microsoft.AgFoodPlatform.BoundaryChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. */ + public static final String AGRI_FOOD_FARMING_CROP_CHANGED = "Microsoft.AgFoodPlatform.CropChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. */ + public static final String AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED = "Microsoft.AgFoodPlatform.CropVarietyChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. */ + public static final String AGRI_FOOD_FARMING_FARM_CHANGED = "Microsoft.AgFoodPlatform.FarmChanged"; + + /** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event. + */ + public static final String AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED = + "Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. */ + public static final String AGRI_FOOD_FARMING_FARMER_CHANGED = "Microsoft.AgFoodPlatform.FarmerChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. */ + public static final String AGRI_FOOD_FARMING_FIELD_CHANGED = "Microsoft.AgFoodPlatform.FieldChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. */ + public static final String AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED = "Microsoft.AgFoodPlatform.HarvestDataChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. */ + public static final String AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED = "Microsoft.AgFoodPlatform.PlantingDataChanged"; + + /** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event. + */ + public static final String AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED = + "Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. */ + public static final String AGRI_FOOD_FARMING_SEASON_CHANGED = "Microsoft.AgFoodPlatform.SeasonChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. */ + public static final String AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED = + "Microsoft.AgFoodPlatform.SeasonalFieldChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. */ + public static final String AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED = "Microsoft.AgFoodPlatform.TillageDataChanged"; + + /** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged event. + */ + public static final String AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED = + "Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged"; + + private static final Map> SYSTEM_EVENT_MAPPINGS = new HashMap>() { { // AppConfiguration events. @@ -608,6 +690,7 @@ public final class SystemEventNames { // Storage events. put(STORAGE_BLOB_CREATED, StorageBlobCreatedEventData.class); put(STORAGE_BLOB_DELETED, StorageBlobDeletedEventData.class); + put(STORAGE_BLOB_INVENTORY_POLICY_COMPLETED, StorageBlobInventoryPolicyCompletedEventData.class); put(STORAGE_BLOB_RENAMED, StorageBlobRenamedEventData.class); put(STORAGE_BLOB_TIER_CHANGED, StorageBlobTierChangedEventData.class); put(STORAGE_DIRECTORY_CREATED, StorageDirectoryCreatedEventData.class); @@ -689,6 +772,31 @@ public final class SystemEventNames { put(POLICY_INSIGHTS_POLICY_STATE_CREATED, PolicyInsightsPolicyStateCreatedEventData.class); put(POLICY_INSIGHTS_POLICY_STATE_CHANGED, PolicyInsightsPolicyStateChangedEventData.class); put(POLICY_INSIGHTS_POLICY_STATE_DELETED, PolicyInsightsPolicyStateDeletedEventData.class); + + // Agriculture Food Farming + put( + AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED, + AgriFoodFarmingApplicationDataChangedEventData.class); + put(AGRI_FOOD_FARMING_BOUNDARY_CHANGED, AgriFoodFarmingBoundaryChangedEventData.class); + put(AGRI_FOOD_FARMING_CROP_CHANGED, AgriFoodFarmingCropChangedEventData.class); + put(AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED, AgriFoodFarmingCropVarietyChangedEventData.class); + put(AGRI_FOOD_FARMING_FARM_CHANGED, AgriFoodFarmingFarmChangedEventData.class); + put( + AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED, + AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.class); + put(AGRI_FOOD_FARMING_FARMER_CHANGED, AgriFoodFarmingFarmerChangedEventData.class); + put(AGRI_FOOD_FARMING_FIELD_CHANGED, AgriFoodFarmingFieldChangedEventData.class); + put(AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED, AgriFoodFarmingHarvestDataChangedEventData.class); + put(AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED, AgriFoodFarmingPlantingDataChangedEventData.class); + put( + AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED, + AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.class); + put(AGRI_FOOD_FARMING_SEASON_CHANGED, AgriFoodFarmingSeasonChangedEventData.class); + put(AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED, AgriFoodFarmingSeasonalFieldChangedEventData.class); + put(AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED, AgriFoodFarmingTillageDataChangedEventData.class); + put( + AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED, + AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.class); } }; diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/implementation/SystemEventMappingNames.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/implementation/SystemEventMappingNames.java index 8ab97f7881607..f971bb252e0e3 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/implementation/SystemEventMappingNames.java +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/implementation/SystemEventMappingNames.java @@ -24,6 +24,21 @@ import com.azure.messaging.eventgrid.systemevents.AcsRecordingFileStatusUpdatedEventData; import com.azure.messaging.eventgrid.systemevents.AcsSmsDeliveryReportReceivedEventData; import com.azure.messaging.eventgrid.systemevents.AcsSmsReceivedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingApplicationDataChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingBoundaryChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingCropVarietyChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFarmerChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingFieldChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingHarvestDataChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingPlantingDataChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingSeasonalFieldChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingTillageDataChangedEventData; +import com.azure.messaging.eventgrid.systemevents.AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData; import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueDeletedEventData; import com.azure.messaging.eventgrid.systemevents.AppConfigurationKeyValueModifiedEventData; import com.azure.messaging.eventgrid.systemevents.ContainerRegistryChartDeletedEventData; @@ -103,6 +118,7 @@ import com.azure.messaging.eventgrid.systemevents.StorageAsyncOperationInitiatedEventData; import com.azure.messaging.eventgrid.systemevents.StorageBlobCreatedEventData; import com.azure.messaging.eventgrid.systemevents.StorageBlobDeletedEventData; +import com.azure.messaging.eventgrid.systemevents.StorageBlobInventoryPolicyCompletedEventData; import com.azure.messaging.eventgrid.systemevents.StorageBlobRenamedEventData; import com.azure.messaging.eventgrid.systemevents.StorageBlobTierChangedEventData; import com.azure.messaging.eventgrid.systemevents.StorageDirectoryCreatedEventData; @@ -231,6 +247,65 @@ public final class SystemEventMappingNames { /** Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event. */ public static final String ACS_SMS_RECEIVED = "Microsoft.Communication.SMSReceived"; + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. */ + public static final String AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED = + "Microsoft.AgFoodPlatform.ApplicationDataChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. */ + public static final String AGRI_FOOD_FARMING_BOUNDARY_CHANGED = "Microsoft.AgFoodPlatform.BoundaryChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. */ + public static final String AGRI_FOOD_FARMING_CROP_CHANGED = "Microsoft.AgFoodPlatform.CropChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. */ + public static final String AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED = "Microsoft.AgFoodPlatform.CropVarietyChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. */ + public static final String AGRI_FOOD_FARMING_FARM_CHANGED = "Microsoft.AgFoodPlatform.FarmChanged"; + + /** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event. + */ + public static final String AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED = + "Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. */ + public static final String AGRI_FOOD_FARMING_FARMER_CHANGED = "Microsoft.AgFoodPlatform.FarmerChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. */ + public static final String AGRI_FOOD_FARMING_FIELD_CHANGED = "Microsoft.AgFoodPlatform.FieldChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. */ + public static final String AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED = "Microsoft.AgFoodPlatform.HarvestDataChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. */ + public static final String AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED = "Microsoft.AgFoodPlatform.PlantingDataChanged"; + + /** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event. + */ + public static final String AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED = + "Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. */ + public static final String AGRI_FOOD_FARMING_SEASON_CHANGED = "Microsoft.AgFoodPlatform.SeasonChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. */ + public static final String AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED = + "Microsoft.AgFoodPlatform.SeasonalFieldChanged"; + + /** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. */ + public static final String AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED = "Microsoft.AgFoodPlatform.TillageDataChanged"; + + /** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged event. + */ + public static final String AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED = + "Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged"; + /** Schema of the Data property of an EventGridEvent for a Microsoft.AppConfiguration.KeyValueDeleted event. */ public static final String APP_CONFIGURATION_KEY_VALUE_DELETED = "Microsoft.AppConfiguration.KeyValueDeleted"; @@ -602,6 +677,10 @@ public final class SystemEventMappingNames { /** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobDeleted event. */ public static final String STORAGE_BLOB_DELETED = "Microsoft.Storage.BlobDeleted"; + /** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event. */ + public static final String STORAGE_BLOB_INVENTORY_POLICY_COMPLETED = + "Microsoft.Storage.BlobInventoryPolicyCompleted"; + /** Schema of the Data property of an EventGridEvent for a Microsoft.Storage.BlobRenamed event. */ public static final String STORAGE_BLOB_RENAMED = "Microsoft.Storage.BlobRenamed"; @@ -693,6 +772,29 @@ public final class SystemEventMappingNames { put(ACS_RECORDING_FILE_STATUS_UPDATED, AcsRecordingFileStatusUpdatedEventData.class); put(ACS_SMS_DELIVERY_REPORT_RECEIVED, AcsSmsDeliveryReportReceivedEventData.class); put(ACS_SMS_RECEIVED, AcsSmsReceivedEventData.class); + put( + AGRI_FOOD_FARMING_APPLICATION_DATA_CHANGED, + AgriFoodFarmingApplicationDataChangedEventData.class); + put(AGRI_FOOD_FARMING_BOUNDARY_CHANGED, AgriFoodFarmingBoundaryChangedEventData.class); + put(AGRI_FOOD_FARMING_CROP_CHANGED, AgriFoodFarmingCropChangedEventData.class); + put(AGRI_FOOD_FARMING_CROP_VARIETY_CHANGED, AgriFoodFarmingCropVarietyChangedEventData.class); + put(AGRI_FOOD_FARMING_FARM_CHANGED, AgriFoodFarmingFarmChangedEventData.class); + put( + AGRI_FOOD_FARMING_FARM_OPERATION_DATA_INGESTION_JOB_STATUS_CHANGED, + AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.class); + put(AGRI_FOOD_FARMING_FARMER_CHANGED, AgriFoodFarmingFarmerChangedEventData.class); + put(AGRI_FOOD_FARMING_FIELD_CHANGED, AgriFoodFarmingFieldChangedEventData.class); + put(AGRI_FOOD_FARMING_HARVEST_DATA_CHANGED, AgriFoodFarmingHarvestDataChangedEventData.class); + put(AGRI_FOOD_FARMING_PLANTING_DATA_CHANGED, AgriFoodFarmingPlantingDataChangedEventData.class); + put( + AGRI_FOOD_FARMING_SATELLITE_DATA_INGESTION_JOB_STATUS_CHANGED, + AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.class); + put(AGRI_FOOD_FARMING_SEASON_CHANGED, AgriFoodFarmingSeasonChangedEventData.class); + put(AGRI_FOOD_FARMING_SEASONAL_FIELD_CHANGED, AgriFoodFarmingSeasonalFieldChangedEventData.class); + put(AGRI_FOOD_FARMING_TILLAGE_DATA_CHANGED, AgriFoodFarmingTillageDataChangedEventData.class); + put( + AGRI_FOOD_FARMING_WEATHER_DATA_INGESTION_JOB_STATUS_CHANGED, + AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.class); put(APP_CONFIGURATION_KEY_VALUE_DELETED, AppConfigurationKeyValueDeletedEventData.class); put(APP_CONFIGURATION_KEY_VALUE_MODIFIED, AppConfigurationKeyValueModifiedEventData.class); put(CONTAINER_REGISTRY_CHART_DELETED, ContainerRegistryChartDeletedEventData.class); @@ -798,6 +900,7 @@ public final class SystemEventMappingNames { put(STORAGE_ASYNC_OPERATION_INITIATED, StorageAsyncOperationInitiatedEventData.class); put(STORAGE_BLOB_CREATED, StorageBlobCreatedEventData.class); put(STORAGE_BLOB_DELETED, StorageBlobDeletedEventData.class); + put(STORAGE_BLOB_INVENTORY_POLICY_COMPLETED, StorageBlobInventoryPolicyCompletedEventData.class); put(STORAGE_BLOB_RENAMED, StorageBlobRenamedEventData.class); put(STORAGE_BLOB_TIER_CHANGED, StorageBlobTierChangedEventData.class); put(STORAGE_DIRECTORY_CREATED, StorageDirectoryCreatedEventData.class); @@ -831,7 +934,5 @@ public static Map> getSystemEventMappings() { return Collections.unmodifiableMap(SYSTEM_EVENT_MAPPINGS); } - private SystemEventMappingNames() { - // No instances allowed - } + private SystemEventMappingNames() { } } diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AcsRecordingChunkInfoProperties.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AcsRecordingChunkInfoProperties.java index 962c5479915a6..3759fc5b0be6b 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AcsRecordingChunkInfoProperties.java +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AcsRecordingChunkInfoProperties.java @@ -28,6 +28,18 @@ public final class AcsRecordingChunkInfoProperties { @JsonProperty(value = "endReason") private String endReason; + /* + * The location of the metadata for this chunk + */ + @JsonProperty(value = "metadataLocation") + private String metadataLocation; + + /* + * The location of the content for this chunk + */ + @JsonProperty(value = "contentLocation") + private String contentLocation; + /** * Get the documentId property: The documentId of the recording chunk. * @@ -87,4 +99,44 @@ public AcsRecordingChunkInfoProperties setEndReason(String endReason) { this.endReason = endReason; return this; } + + /** + * Get the metadataLocation property: The location of the metadata for this chunk. + * + * @return the metadataLocation value. + */ + public String getMetadataLocation() { + return this.metadataLocation; + } + + /** + * Set the metadataLocation property: The location of the metadata for this chunk. + * + * @param metadataLocation the metadataLocation value to set. + * @return the AcsRecordingChunkInfoProperties object itself. + */ + public AcsRecordingChunkInfoProperties setMetadataLocation(String metadataLocation) { + this.metadataLocation = metadataLocation; + return this; + } + + /** + * Get the contentLocation property: The location of the content for this chunk. + * + * @return the contentLocation value. + */ + public String getContentLocation() { + return this.contentLocation; + } + + /** + * Set the contentLocation property: The location of the content for this chunk. + * + * @param contentLocation the contentLocation value to set. + * @return the AcsRecordingChunkInfoProperties object itself. + */ + public AcsRecordingChunkInfoProperties setContentLocation(String contentLocation) { + this.contentLocation = contentLocation; + return this; + } } diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingApplicationDataChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingApplicationDataChangedEventData.java new file mode 100644 index 0000000000000..adc5fed3e3b34 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingApplicationDataChangedEventData.java @@ -0,0 +1,307 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.ApplicationDataChanged event. */ +@Fluent +public final class AgriFoodFarmingApplicationDataChangedEventData { + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Id of the farmer it belongs to. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Source of the farm operation data. + */ + @JsonProperty(value = "source") + private String source; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the farmerId property: Id of the farmer it belongs to. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Id of the farmer it belongs to. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the source property: Source of the farm operation data. + * + * @return the source value. + */ + public String getSource() { + return this.source; + } + + /** + * Set the source property: Source of the farm operation data. + * + * @param source the source value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setSource(String source) { + this.source = source; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingApplicationDataChangedEventData object itself. + */ + public AgriFoodFarmingApplicationDataChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingBoundaryChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingBoundaryChangedEventData.java new file mode 100644 index 0000000000000..328031adb257f --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingBoundaryChangedEventData.java @@ -0,0 +1,359 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.BoundaryChanged event. */ +@Fluent +public final class AgriFoodFarmingBoundaryChangedEventData { + /* + * Id of the farmer it belongs to. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Id of the parent(field or seasonalField) it belongs to. + */ + @JsonProperty(value = "parentId") + private String parentId; + + /* + * Type of the parent it belongs to. + */ + @JsonProperty(value = "parentType") + private String parentType; + + /* + * A boolean flag indicating whether the boundary is primary or not. + */ + @JsonProperty(value = "isPrimary") + private Boolean isPrimary; + + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the farmerId property: Id of the farmer it belongs to. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Id of the farmer it belongs to. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the parentId property: Id of the parent(field or seasonalField) it belongs to. + * + * @return the parentId value. + */ + public String getParentId() { + return this.parentId; + } + + /** + * Set the parentId property: Id of the parent(field or seasonalField) it belongs to. + * + * @param parentId the parentId value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setParentId(String parentId) { + this.parentId = parentId; + return this; + } + + /** + * Get the parentType property: Type of the parent it belongs to. + * + * @return the parentType value. + */ + public String getParentType() { + return this.parentType; + } + + /** + * Set the parentType property: Type of the parent it belongs to. + * + * @param parentType the parentType value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setParentType(String parentType) { + this.parentType = parentType; + return this; + } + + /** + * Get the isPrimary property: A boolean flag indicating whether the boundary is primary or not. + * + * @return the isPrimary value. + */ + public Boolean isPrimary() { + return this.isPrimary; + } + + /** + * Set the isPrimary property: A boolean flag indicating whether the boundary is primary or not. + * + * @param isPrimary the isPrimary value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setIsPrimary(Boolean isPrimary) { + this.isPrimary = isPrimary; + return this; + } + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingBoundaryChangedEventData object itself. + */ + public AgriFoodFarmingBoundaryChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropChangedEventData.java new file mode 100644 index 0000000000000..e3d7613f14213 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropChangedEventData.java @@ -0,0 +1,255 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropChanged event. */ +@Fluent +public final class AgriFoodFarmingCropChangedEventData { + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingCropChangedEventData object itself. + */ + public AgriFoodFarmingCropChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingCropChangedEventData object itself. + */ + public AgriFoodFarmingCropChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingCropChangedEventData object itself. + */ + public AgriFoodFarmingCropChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingCropChangedEventData object itself. + */ + public AgriFoodFarmingCropChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingCropChangedEventData object itself. + */ + public AgriFoodFarmingCropChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingCropChangedEventData object itself. + */ + public AgriFoodFarmingCropChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingCropChangedEventData object itself. + */ + public AgriFoodFarmingCropChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingCropChangedEventData object itself. + */ + public AgriFoodFarmingCropChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingCropChangedEventData object itself. + */ + public AgriFoodFarmingCropChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropVarietyChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropVarietyChangedEventData.java new file mode 100644 index 0000000000000..5cab7b0a63232 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingCropVarietyChangedEventData.java @@ -0,0 +1,281 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.CropVarietyChanged event. */ +@Fluent +public final class AgriFoodFarmingCropVarietyChangedEventData { + /* + * Id of the crop it belongs to. + */ + @JsonProperty(value = "cropId") + private String cropId; + + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the cropId property: Id of the crop it belongs to. + * + * @return the cropId value. + */ + public String getCropId() { + return this.cropId; + } + + /** + * Set the cropId property: Id of the crop it belongs to. + * + * @param cropId the cropId value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setCropId(String cropId) { + this.cropId = cropId; + return this; + } + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingCropVarietyChangedEventData object itself. + */ + public AgriFoodFarmingCropVarietyChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmChangedEventData.java new file mode 100644 index 0000000000000..41f972ad64d8a --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmChangedEventData.java @@ -0,0 +1,281 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmChanged event. */ +@Fluent +public final class AgriFoodFarmingFarmChangedEventData { + /* + * Id of the farmer it belongs to. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the farmerId property: Id of the farmer it belongs to. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Id of the farmer it belongs to. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingFarmChangedEventData object itself. + */ + public AgriFoodFarmingFarmChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.java new file mode 100644 index 0000000000000..42b79019e228f --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData.java @@ -0,0 +1,289 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged event. + */ +@Fluent +public final class AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData { + /* + * Farmer id for which job was created. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Status message to capture more details of the job. + */ + @JsonProperty(value = "message") + private String message; + + /* + * Various states a job can be in. + */ + @JsonProperty(value = "status") + private AgriFoodFarmingJobStatus status; + + /* + * Date-time when last action was taken on job, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "lastActionDateTime") + private OffsetDateTime lastActionDateTime; + + /* + * Flag that gets set when job cancellation is requested. + */ + @JsonProperty(value = "isCancellationRequested") + private Boolean isCancellationRequested; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the farmerId property: Farmer id for which job was created. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Farmer id for which job was created. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the message property: Status message to capture more details of the job. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Set the message property: Status message to capture more details of the job. + * + * @param message the message value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setMessage(String message) { + this.message = message; + return this; + } + + /** + * Get the status property: Various states a job can be in. + * + * @return the status value. + */ + public AgriFoodFarmingJobStatus getStatus() { + return this.status; + } + + /** + * Set the status property: Various states a job can be in. + * + * @param status the status value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setStatus( + AgriFoodFarmingJobStatus status) { + this.status = status; + return this; + } + + /** + * Get the lastActionDateTime property: Date-time when last action was taken on job, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the lastActionDateTime value. + */ + public OffsetDateTime getLastActionDateTime() { + return this.lastActionDateTime; + } + + /** + * Set the lastActionDateTime property: Date-time when last action was taken on job, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param lastActionDateTime the lastActionDateTime value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setLastActionDateTime( + OffsetDateTime lastActionDateTime) { + this.lastActionDateTime = lastActionDateTime; + return this; + } + + /** + * Get the isCancellationRequested property: Flag that gets set when job cancellation is requested. + * + * @return the isCancellationRequested value. + */ + public Boolean isCancellationRequested() { + return this.isCancellationRequested; + } + + /** + * Set the isCancellationRequested property: Flag that gets set when job cancellation is requested. + * + * @param isCancellationRequested the isCancellationRequested value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setIsCancellationRequested( + Boolean isCancellationRequested) { + this.isCancellationRequested = isCancellationRequested; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setCreatedDateTime( + OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData setProperties( + Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmerChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmerChangedEventData.java new file mode 100644 index 0000000000000..fd523025e293d --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFarmerChangedEventData.java @@ -0,0 +1,255 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FarmerChanged event. */ +@Fluent +public final class AgriFoodFarmingFarmerChangedEventData { + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingFarmerChangedEventData object itself. + */ + public AgriFoodFarmingFarmerChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingFarmerChangedEventData object itself. + */ + public AgriFoodFarmingFarmerChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingFarmerChangedEventData object itself. + */ + public AgriFoodFarmingFarmerChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingFarmerChangedEventData object itself. + */ + public AgriFoodFarmingFarmerChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingFarmerChangedEventData object itself. + */ + public AgriFoodFarmingFarmerChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingFarmerChangedEventData object itself. + */ + public AgriFoodFarmingFarmerChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingFarmerChangedEventData object itself. + */ + public AgriFoodFarmingFarmerChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingFarmerChangedEventData object itself. + */ + public AgriFoodFarmingFarmerChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingFarmerChangedEventData object itself. + */ + public AgriFoodFarmingFarmerChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFieldChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFieldChangedEventData.java new file mode 100644 index 0000000000000..c5c0acbcfd34c --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingFieldChangedEventData.java @@ -0,0 +1,307 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.FieldChanged event. */ +@Fluent +public final class AgriFoodFarmingFieldChangedEventData { + /* + * Farmer Id. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Id of the associated Farm. + */ + @JsonProperty(value = "farmId") + private String farmId; + + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the farmerId property: Farmer Id. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Farmer Id. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the farmId property: Id of the associated Farm. + * + * @return the farmId value. + */ + public String getFarmId() { + return this.farmId; + } + + /** + * Set the farmId property: Id of the associated Farm. + * + * @param farmId the farmId value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setFarmId(String farmId) { + this.farmId = farmId; + return this; + } + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingFieldChangedEventData object itself. + */ + public AgriFoodFarmingFieldChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingHarvestDataChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingHarvestDataChangedEventData.java new file mode 100644 index 0000000000000..ae903a27b10da --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingHarvestDataChangedEventData.java @@ -0,0 +1,307 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.HarvestDataChanged event. */ +@Fluent +public final class AgriFoodFarmingHarvestDataChangedEventData { + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Id of the farmer it belongs to. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Source of the farm operation data. + */ + @JsonProperty(value = "source") + private String source; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the farmerId property: Id of the farmer it belongs to. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Id of the farmer it belongs to. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the source property: Source of the farm operation data. + * + * @return the source value. + */ + public String getSource() { + return this.source; + } + + /** + * Set the source property: Source of the farm operation data. + * + * @param source the source value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setSource(String source) { + this.source = source; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingHarvestDataChangedEventData object itself. + */ + public AgriFoodFarmingHarvestDataChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingJobStatus.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingJobStatus.java new file mode 100644 index 0000000000000..ffb5f37730590 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingJobStatus.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for AgriFoodFarmingJobStatus. */ +public final class AgriFoodFarmingJobStatus extends ExpandableStringEnum { + /** Static value Waiting for AgriFoodFarmingJobStatus. */ + public static final AgriFoodFarmingJobStatus WAITING = fromString("Waiting"); + + /** Static value Running for AgriFoodFarmingJobStatus. */ + public static final AgriFoodFarmingJobStatus RUNNING = fromString("Running"); + + /** Static value Succeeded for AgriFoodFarmingJobStatus. */ + public static final AgriFoodFarmingJobStatus SUCCEEDED = fromString("Succeeded"); + + /** Static value Failed for AgriFoodFarmingJobStatus. */ + public static final AgriFoodFarmingJobStatus FAILED = fromString("Failed"); + + /** Static value Cancelled for AgriFoodFarmingJobStatus. */ + public static final AgriFoodFarmingJobStatus CANCELLED = fromString("Cancelled"); + + /** + * Creates or finds a AgriFoodFarmingJobStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding AgriFoodFarmingJobStatus. + */ + @JsonCreator + public static AgriFoodFarmingJobStatus fromString(String name) { + return fromString(name, AgriFoodFarmingJobStatus.class); + } + + /** @return known AgriFoodFarmingJobStatus values. */ + public static Collection values() { + return values(AgriFoodFarmingJobStatus.class); + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingPlantingDataChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingPlantingDataChangedEventData.java new file mode 100644 index 0000000000000..8ecc13b9134d2 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingPlantingDataChangedEventData.java @@ -0,0 +1,307 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.PlantingDataChanged event. */ +@Fluent +public final class AgriFoodFarmingPlantingDataChangedEventData { + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Id of the farmer it belongs to. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Source of the farm operation data. + */ + @JsonProperty(value = "source") + private String source; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the farmerId property: Id of the farmer it belongs to. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Id of the farmer it belongs to. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the source property: Source of the farm operation data. + * + * @return the source value. + */ + public String getSource() { + return this.source; + } + + /** + * Set the source property: Source of the farm operation data. + * + * @param source the source value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setSource(String source) { + this.source = source; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingPlantingDataChangedEventData object itself. + */ + public AgriFoodFarmingPlantingDataChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingResourceActionType.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingResourceActionType.java new file mode 100644 index 0000000000000..9c32c05ac5a0e --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingResourceActionType.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** Defines values for AgriFoodFarmingResourceActionType. */ +public final class AgriFoodFarmingResourceActionType extends ExpandableStringEnum { + /** Static value Created for AgriFoodFarmingResourceActionType. */ + public static final AgriFoodFarmingResourceActionType CREATED = fromString("Created"); + + /** Static value Updated for AgriFoodFarmingResourceActionType. */ + public static final AgriFoodFarmingResourceActionType UPDATED = fromString("Updated"); + + /** Static value Deleted for AgriFoodFarmingResourceActionType. */ + public static final AgriFoodFarmingResourceActionType DELETED = fromString("Deleted"); + + /** + * Creates or finds a AgriFoodFarmingResourceActionType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AgriFoodFarmingResourceActionType. + */ + @JsonCreator + public static AgriFoodFarmingResourceActionType fromString(String name) { + return fromString(name, AgriFoodFarmingResourceActionType.class); + } + + /** @return known AgriFoodFarmingResourceActionType values. */ + public static Collection values() { + return values(AgriFoodFarmingResourceActionType.class); + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.java new file mode 100644 index 0000000000000..b02d5257be1f4 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData.java @@ -0,0 +1,288 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** + * Schema of the Data property of an EventGridEvent for a + * Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged event. + */ +@Fluent +public final class AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData { + /* + * Farmer id for which job was created. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Status message to capture more details of the job. + */ + @JsonProperty(value = "message") + private String message; + + /* + * Various states a job can be in. + */ + @JsonProperty(value = "status") + private AgriFoodFarmingJobStatus status; + + /* + * Date-time when last action was taken on job, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "lastActionDateTime") + private OffsetDateTime lastActionDateTime; + + /* + * Flag that gets set when job cancellation is requested. + */ + @JsonProperty(value = "isCancellationRequested") + private Boolean isCancellationRequested; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the farmerId property: Farmer id for which job was created. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Farmer id for which job was created. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the message property: Status message to capture more details of the job. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Set the message property: Status message to capture more details of the job. + * + * @param message the message value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setMessage(String message) { + this.message = message; + return this; + } + + /** + * Get the status property: Various states a job can be in. + * + * @return the status value. + */ + public AgriFoodFarmingJobStatus getStatus() { + return this.status; + } + + /** + * Set the status property: Various states a job can be in. + * + * @param status the status value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setStatus(AgriFoodFarmingJobStatus status) { + this.status = status; + return this; + } + + /** + * Get the lastActionDateTime property: Date-time when last action was taken on job, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the lastActionDateTime value. + */ + public OffsetDateTime getLastActionDateTime() { + return this.lastActionDateTime; + } + + /** + * Set the lastActionDateTime property: Date-time when last action was taken on job, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param lastActionDateTime the lastActionDateTime value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setLastActionDateTime( + OffsetDateTime lastActionDateTime) { + this.lastActionDateTime = lastActionDateTime; + return this; + } + + /** + * Get the isCancellationRequested property: Flag that gets set when job cancellation is requested. + * + * @return the isCancellationRequested value. + */ + public Boolean isCancellationRequested() { + return this.isCancellationRequested; + } + + /** + * Set the isCancellationRequested property: Flag that gets set when job cancellation is requested. + * + * @param isCancellationRequested the isCancellationRequested value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setIsCancellationRequested( + Boolean isCancellationRequested) { + this.isCancellationRequested = isCancellationRequested; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setCreatedDateTime( + OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData setProperties( + Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonChangedEventData.java new file mode 100644 index 0000000000000..3b1f738257182 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonChangedEventData.java @@ -0,0 +1,255 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonChanged event. */ +@Fluent +public final class AgriFoodFarmingSeasonChangedEventData { + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingSeasonChangedEventData object itself. + */ + public AgriFoodFarmingSeasonChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingSeasonChangedEventData object itself. + */ + public AgriFoodFarmingSeasonChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingSeasonChangedEventData object itself. + */ + public AgriFoodFarmingSeasonChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingSeasonChangedEventData object itself. + */ + public AgriFoodFarmingSeasonChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingSeasonChangedEventData object itself. + */ + public AgriFoodFarmingSeasonChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingSeasonChangedEventData object itself. + */ + public AgriFoodFarmingSeasonChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingSeasonChangedEventData object itself. + */ + public AgriFoodFarmingSeasonChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingSeasonChangedEventData object itself. + */ + public AgriFoodFarmingSeasonChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingSeasonChangedEventData object itself. + */ + public AgriFoodFarmingSeasonChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonalFieldChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonalFieldChangedEventData.java new file mode 100644 index 0000000000000..653cf1a78a651 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingSeasonalFieldChangedEventData.java @@ -0,0 +1,359 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.SeasonalFieldChanged event. */ +@Fluent +public final class AgriFoodFarmingSeasonalFieldChangedEventData { + /* + * Id of the farmer it belongs to. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Id of the season it belongs to. + */ + @JsonProperty(value = "seasonId") + private String seasonId; + + /* + * Id of the field it belongs to. + */ + @JsonProperty(value = "fieldId") + private String fieldId; + + /* + * Id of the associated Farm. + */ + @JsonProperty(value = "farmId") + private String farmId; + + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the farmerId property: Id of the farmer it belongs to. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Id of the farmer it belongs to. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the seasonId property: Id of the season it belongs to. + * + * @return the seasonId value. + */ + public String getSeasonId() { + return this.seasonId; + } + + /** + * Set the seasonId property: Id of the season it belongs to. + * + * @param seasonId the seasonId value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setSeasonId(String seasonId) { + this.seasonId = seasonId; + return this; + } + + /** + * Get the fieldId property: Id of the field it belongs to. + * + * @return the fieldId value. + */ + public String getFieldId() { + return this.fieldId; + } + + /** + * Set the fieldId property: Id of the field it belongs to. + * + * @param fieldId the fieldId value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setFieldId(String fieldId) { + this.fieldId = fieldId; + return this; + } + + /** + * Get the farmId property: Id of the associated Farm. + * + * @return the farmId value. + */ + public String getFarmId() { + return this.farmId; + } + + /** + * Set the farmId property: Id of the associated Farm. + * + * @param farmId the farmId value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setFarmId(String farmId) { + this.farmId = farmId; + return this; + } + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingSeasonalFieldChangedEventData object itself. + */ + public AgriFoodFarmingSeasonalFieldChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingTillageDataChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingTillageDataChangedEventData.java new file mode 100644 index 0000000000000..f5c7fededa917 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingTillageDataChangedEventData.java @@ -0,0 +1,307 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.TillageDataChanged event. */ +@Fluent +public final class AgriFoodFarmingTillageDataChangedEventData { + /* + * Action occurred on a resource. + */ + @JsonProperty(value = "actionType") + private AgriFoodFarmingResourceActionType actionType; + + /* + * Id of the farmer it belongs to. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Status of the resource. + */ + @JsonProperty(value = "status") + private String status; + + /* + * Source of the farm operation data. + */ + @JsonProperty(value = "source") + private String source; + + /* + * Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "modifiedDateTime") + private OffsetDateTime modifiedDateTime; + + /* + * The ETag value to implement optimistic concurrency. + */ + @JsonProperty(value = "eTag") + private String eTag; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the actionType property: Action occurred on a resource. + * + * @return the actionType value. + */ + public AgriFoodFarmingResourceActionType getActionType() { + return this.actionType; + } + + /** + * Set the actionType property: Action occurred on a resource. + * + * @param actionType the actionType value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setActionType(AgriFoodFarmingResourceActionType actionType) { + this.actionType = actionType; + return this; + } + + /** + * Get the farmerId property: Id of the farmer it belongs to. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Id of the farmer it belongs to. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the status property: Status of the resource. + * + * @return the status value. + */ + public String getStatus() { + return this.status; + } + + /** + * Set the status property: Status of the resource. + * + * @param status the status value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setStatus(String status) { + this.status = status; + return this; + } + + /** + * Get the source property: Source of the farm operation data. + * + * @return the source value. + */ + public String getSource() { + return this.source; + } + + /** + * Set the source property: Source of the farm operation data. + * + * @param source the source value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setSource(String source) { + this.source = source; + return this; + } + + /** + * Get the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the modifiedDateTime value. + */ + public OffsetDateTime getModifiedDateTime() { + return this.modifiedDateTime; + } + + /** + * Set the modifiedDateTime property: Date-time when resource was last modified, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param modifiedDateTime the modifiedDateTime value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setModifiedDateTime(OffsetDateTime modifiedDateTime) { + this.modifiedDateTime = modifiedDateTime; + return this; + } + + /** + * Get the eTag property: The ETag value to implement optimistic concurrency. + * + * @return the eTag value. + */ + public String getETag() { + return this.eTag; + } + + /** + * Set the eTag property: The ETag value to implement optimistic concurrency. + * + * @param eTag the eTag value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingTillageDataChangedEventData object itself. + */ + public AgriFoodFarmingTillageDataChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.java new file mode 100644 index 0000000000000..a343a31891786 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData.java @@ -0,0 +1,287 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.Map; + +/** + * Schema of the Data property of an EventGridEvent for a Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged + * event. + */ +@Fluent +public final class AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData { + /* + * Farmer id for which job was created. + */ + @JsonProperty(value = "farmerId") + private String farmerId; + + /* + * Status message to capture more details of the job. + */ + @JsonProperty(value = "message") + private String message; + + /* + * Various states a job can be in. + */ + @JsonProperty(value = "status") + private AgriFoodFarmingJobStatus status; + + /* + * Date-time when last action was taken on job, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "lastActionDateTime") + private OffsetDateTime lastActionDateTime; + + /* + * Flag that gets set when job cancellation is requested. + */ + @JsonProperty(value = "isCancellationRequested") + private Boolean isCancellationRequested; + + /* + * Unique id of resource. + */ + @JsonProperty(value = "id") + private String id; + + /* + * Name to identify resource. + */ + @JsonProperty(value = "name") + private String name; + + /* + * Textual description of resource. + */ + @JsonProperty(value = "description") + private String description; + + /* + * Date-time when resource was created, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + */ + @JsonProperty(value = "createdDateTime") + private OffsetDateTime createdDateTime; + + /* + * A list of key value pairs that describe the resource. + * Only string and numeral values are supported. + */ + @JsonProperty(value = "properties") + private Map properties; + + /** + * Get the farmerId property: Farmer id for which job was created. + * + * @return the farmerId value. + */ + public String getFarmerId() { + return this.farmerId; + } + + /** + * Set the farmerId property: Farmer id for which job was created. + * + * @param farmerId the farmerId value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setFarmerId(String farmerId) { + this.farmerId = farmerId; + return this; + } + + /** + * Get the message property: Status message to capture more details of the job. + * + * @return the message value. + */ + public String getMessage() { + return this.message; + } + + /** + * Set the message property: Status message to capture more details of the job. + * + * @param message the message value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setMessage(String message) { + this.message = message; + return this; + } + + /** + * Get the status property: Various states a job can be in. + * + * @return the status value. + */ + public AgriFoodFarmingJobStatus getStatus() { + return this.status; + } + + /** + * Set the status property: Various states a job can be in. + * + * @param status the status value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setStatus(AgriFoodFarmingJobStatus status) { + this.status = status; + return this; + } + + /** + * Get the lastActionDateTime property: Date-time when last action was taken on job, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @return the lastActionDateTime value. + */ + public OffsetDateTime getLastActionDateTime() { + return this.lastActionDateTime; + } + + /** + * Set the lastActionDateTime property: Date-time when last action was taken on job, sample format: + * yyyy-MM-ddTHH:mm:ssZ. + * + * @param lastActionDateTime the lastActionDateTime value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setLastActionDateTime( + OffsetDateTime lastActionDateTime) { + this.lastActionDateTime = lastActionDateTime; + return this; + } + + /** + * Get the isCancellationRequested property: Flag that gets set when job cancellation is requested. + * + * @return the isCancellationRequested value. + */ + public Boolean isCancellationRequested() { + return this.isCancellationRequested; + } + + /** + * Set the isCancellationRequested property: Flag that gets set when job cancellation is requested. + * + * @param isCancellationRequested the isCancellationRequested value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setIsCancellationRequested( + Boolean isCancellationRequested) { + this.isCancellationRequested = isCancellationRequested; + return this; + } + + /** + * Get the id property: Unique id of resource. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique id of resource. + * + * @param id the id value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setId(String id) { + this.id = id; + return this; + } + + /** + * Get the name property: Name to identify resource. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: Name to identify resource. + * + * @param name the name value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setName(String name) { + this.name = name; + return this; + } + + /** + * Get the description property: Textual description of resource. + * + * @return the description value. + */ + public String getDescription() { + return this.description; + } + + /** + * Set the description property: Textual description of resource. + * + * @param description the description value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ. + * + * @param createdDateTime the createdDateTime value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setCreatedDateTime( + OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @return the properties value. + */ + public Map getProperties() { + return this.properties; + } + + /** + * Set the properties property: A list of key value pairs that describe the resource. Only string and numeral values + * are supported. + * + * @param properties the properties value to set. + * @return the AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData object itself. + */ + public AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData setProperties(Map properties) { + this.properties = properties; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/StorageBlobInventoryPolicyCompletedEventData.java b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/StorageBlobInventoryPolicyCompletedEventData.java new file mode 100644 index 0000000000000..d9f795bbfb0e1 --- /dev/null +++ b/sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/systemevents/StorageBlobInventoryPolicyCompletedEventData.java @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.messaging.eventgrid.systemevents; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobInventoryPolicyCompleted event. */ +@Fluent +public final class StorageBlobInventoryPolicyCompletedEventData { + /* + * The time at which inventory policy was scheduled. + */ + @JsonProperty(value = "scheduleDateTime") + private OffsetDateTime scheduleDateTime; + + /* + * The account name for which inventory policy is registered. + */ + @JsonProperty(value = "accountName") + private String accountName; + + /* + * The rule name for inventory policy. + */ + @JsonProperty(value = "ruleName") + private String ruleName; + + /* + * The status of inventory run, it can be + * Succeeded/PartiallySucceeded/Failed. + */ + @JsonProperty(value = "policyRunStatus") + private String policyRunStatus; + + /* + * The status message for inventory run. + */ + @JsonProperty(value = "policyRunStatusMessage") + private String policyRunStatusMessage; + + /* + * The policy run id for inventory run. + */ + @JsonProperty(value = "policyRunId") + private String policyRunId; + + /* + * The blob URL for manifest file for inventory run. + */ + @JsonProperty(value = "manifestBlobUrl") + private String manifestBlobUrl; + + /** + * Get the scheduleDateTime property: The time at which inventory policy was scheduled. + * + * @return the scheduleDateTime value. + */ + public OffsetDateTime getScheduleDateTime() { + return this.scheduleDateTime; + } + + /** + * Set the scheduleDateTime property: The time at which inventory policy was scheduled. + * + * @param scheduleDateTime the scheduleDateTime value to set. + * @return the StorageBlobInventoryPolicyCompletedEventData object itself. + */ + public StorageBlobInventoryPolicyCompletedEventData setScheduleDateTime(OffsetDateTime scheduleDateTime) { + this.scheduleDateTime = scheduleDateTime; + return this; + } + + /** + * Get the accountName property: The account name for which inventory policy is registered. + * + * @return the accountName value. + */ + public String getAccountName() { + return this.accountName; + } + + /** + * Set the accountName property: The account name for which inventory policy is registered. + * + * @param accountName the accountName value to set. + * @return the StorageBlobInventoryPolicyCompletedEventData object itself. + */ + public StorageBlobInventoryPolicyCompletedEventData setAccountName(String accountName) { + this.accountName = accountName; + return this; + } + + /** + * Get the ruleName property: The rule name for inventory policy. + * + * @return the ruleName value. + */ + public String getRuleName() { + return this.ruleName; + } + + /** + * Set the ruleName property: The rule name for inventory policy. + * + * @param ruleName the ruleName value to set. + * @return the StorageBlobInventoryPolicyCompletedEventData object itself. + */ + public StorageBlobInventoryPolicyCompletedEventData setRuleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Get the policyRunStatus property: The status of inventory run, it can be Succeeded/PartiallySucceeded/Failed. + * + * @return the policyRunStatus value. + */ + public String getPolicyRunStatus() { + return this.policyRunStatus; + } + + /** + * Set the policyRunStatus property: The status of inventory run, it can be Succeeded/PartiallySucceeded/Failed. + * + * @param policyRunStatus the policyRunStatus value to set. + * @return the StorageBlobInventoryPolicyCompletedEventData object itself. + */ + public StorageBlobInventoryPolicyCompletedEventData setPolicyRunStatus(String policyRunStatus) { + this.policyRunStatus = policyRunStatus; + return this; + } + + /** + * Get the policyRunStatusMessage property: The status message for inventory run. + * + * @return the policyRunStatusMessage value. + */ + public String getPolicyRunStatusMessage() { + return this.policyRunStatusMessage; + } + + /** + * Set the policyRunStatusMessage property: The status message for inventory run. + * + * @param policyRunStatusMessage the policyRunStatusMessage value to set. + * @return the StorageBlobInventoryPolicyCompletedEventData object itself. + */ + public StorageBlobInventoryPolicyCompletedEventData setPolicyRunStatusMessage(String policyRunStatusMessage) { + this.policyRunStatusMessage = policyRunStatusMessage; + return this; + } + + /** + * Get the policyRunId property: The policy run id for inventory run. + * + * @return the policyRunId value. + */ + public String getPolicyRunId() { + return this.policyRunId; + } + + /** + * Set the policyRunId property: The policy run id for inventory run. + * + * @param policyRunId the policyRunId value to set. + * @return the StorageBlobInventoryPolicyCompletedEventData object itself. + */ + public StorageBlobInventoryPolicyCompletedEventData setPolicyRunId(String policyRunId) { + this.policyRunId = policyRunId; + return this; + } + + /** + * Get the manifestBlobUrl property: The blob URL for manifest file for inventory run. + * + * @return the manifestBlobUrl value. + */ + public String getManifestBlobUrl() { + return this.manifestBlobUrl; + } + + /** + * Set the manifestBlobUrl property: The blob URL for manifest file for inventory run. + * + * @param manifestBlobUrl the manifestBlobUrl value to set. + * @return the StorageBlobInventoryPolicyCompletedEventData object itself. + */ + public StorageBlobInventoryPolicyCompletedEventData setManifestBlobUrl(String manifestBlobUrl) { + this.manifestBlobUrl = manifestBlobUrl; + return this; + } +} diff --git a/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md b/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md index c22ab03c54679..38600c35c7719 100644 --- a/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md +++ b/sdk/eventgrid/azure-messaging-eventgrid/swagger/README.md @@ -14,16 +14,7 @@ Install Autorest beta with NPM: ## Using -Fork and clone the autorest.java repo (https://github.com/Azure/autorest.java) -and checkout the v4 branch. Then run `mvn clean package -Dlocal` to generate build files. - -Then fork and clone the Azure rest API specs from the repo -(https://github.com/Azure/azure-rest-api-specs) and run `autorest --java readme.md` -in this folder, with the following tags: - -`--use=` - -`--api-spec-location=` +run `autorest readme.md` If you are adding or updating swagger files, please make sure that they are included in the input file list. Also, if you are adding an additional service event, make sure that @@ -82,23 +73,24 @@ custom-types: CloudEvent,EventGridEvent model-override-setter-from-superclass: true input-file: -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.EventHub/stable/2018-01-01/EventHub.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.Devices/stable/2018-01-01/IotHub.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.Media/stable/2018-01-01/MediaServices.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.Maps/stable/2018-01-01/Maps.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.Cache/stable/2018-01-01/RedisCache.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json -- $(api-spec-location)/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.EventHub/stable/2018-01-01/EventHub.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Resources/stable/2018-01-01/Resources.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.EventGrid/stable/2018-01-01/EventGrid.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Devices/stable/2018-01-01/IotHub.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.ContainerRegistry/stable/2018-01-01/ContainerRegistry.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.ServiceBus/stable/2018-01-01/ServiceBus.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Media/stable/2018-01-01/MediaServices.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Maps/stable/2018-01-01/Maps.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.AppConfiguration/stable/2018-01-01/AppConfiguration.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.SignalRService/stable/2018-01-01/SignalRService.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.KeyVault/stable/2018-01-01/KeyVault.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.MachineLearningServices/stable/2018-01-01/MachineLearningServices.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Cache/stable/2018-01-01/RedisCache.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Web/stable/2018-01-01/Web.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Communication/stable/2018-01-01/AzureCommunicationServices.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.PolicyInsights/stable/2018-01-01/PolicyInsights.json +- https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.AgFoodPlatform/stable/2018-01-01/AzureFarmBeats.json ``` ### Customization @@ -142,8 +134,7 @@ public class EventGridCustomization extends Customization { " return Collections.unmodifiableMap(SYSTEM_EVENT_MAPPINGS);\n" + " }\n" + "\n" + - " private SystemEventMappingNames() {\n" + - " // No instances allowed" + + " private SystemEventMappingNames() { \n" + " }"; @Override