diff --git a/eng/jacoco-test-coverage/pom.xml b/eng/jacoco-test-coverage/pom.xml index 936013fbc564..aa31aec8e314 100644 --- a/eng/jacoco-test-coverage/pom.xml +++ b/eng/jacoco-test-coverage/pom.xml @@ -64,22 +64,22 @@ com.azure azure-communication-common - 1.1.0-beta.1 + 1.0.2 com.azure azure-communication-identity - 1.2.0-beta.1 + 1.1.1 com.azure azure-communication-sms - 1.1.0-beta.1 + 1.0.3 com.azure azure-communication-phonenumbers - 1.1.0-beta.1 + 1.0.3 com.azure diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 51b01c4f490e..e4149a025d60 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -53,10 +53,10 @@ com.azure:azure-analytics-synapse-managedprivateendpoints;1.0.0-beta.3;1.0.0-bet com.azure:azure-analytics-synapse-monitoring;1.0.0-beta.3;1.0.0-beta.4 com.azure:azure-communication-callingserver;1.0.0;1.0.0-beta.1 com.azure:azure-communication-chat;1.0.0;1.1.0-beta.1 -com.azure:azure-communication-common;1.0.2;1.1.0-beta.1 -com.azure:azure-communication-sms;1.0.3;1.1.0-beta.1 -com.azure:azure-communication-identity;1.1.1;1.2.0-beta.1 -com.azure:azure-communication-phonenumbers;1.0.3;1.1.0-beta.1 +com.azure:azure-communication-common;1.0.2;1.0.2 +com.azure:azure-communication-sms;1.0.1;1.0.3 +com.azure:azure-communication-identity;1.1.0;1.1.1 +com.azure:azure-communication-phonenumbers;1.0.1;1.0.3 com.azure:azure-containers-containerregistry;1.0.0-beta.2;1.0.0-beta.3 com.azure:azure-core;1.17.0;1.18.0-beta.1 com.azure:azure-core-amqp;2.0.6;2.1.0-beta.1 diff --git a/sdk/communication/azure-communication-callingserver/pom.xml b/sdk/communication/azure-communication-callingserver/pom.xml index e3887b116bea..6fc26747aeba 100644 --- a/sdk/communication/azure-communication-callingserver/pom.xml +++ b/sdk/communication/azure-communication-callingserver/pom.xml @@ -54,7 +54,7 @@ com.azure azure-communication-common - 1.1.0-beta.1 + 1.0.2 com.azure diff --git a/sdk/communication/azure-communication-chat/pom.xml b/sdk/communication/azure-communication-chat/pom.xml index 7ecb235ff57f..396763240119 100644 --- a/sdk/communication/azure-communication-chat/pom.xml +++ b/sdk/communication/azure-communication-chat/pom.xml @@ -50,12 +50,12 @@ com.azure azure-communication-common - 1.1.0-beta.1 + 1.0.2 com.azure azure-communication-identity - 1.2.0-beta.1 + 1.1.1 test diff --git a/sdk/communication/azure-communication-common/CHANGELOG.md b/sdk/communication/azure-communication-common/CHANGELOG.md index 9722f050490e..30c4a04d74f1 100644 --- a/sdk/communication/azure-communication-common/CHANGELOG.md +++ b/sdk/communication/azure-communication-common/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.2 (2021-06-08) +- Updated 'azure-communication-common' version ## 1.0.2 (2021-06-09) diff --git a/sdk/communication/azure-communication-common/pom.xml b/sdk/communication/azure-communication-common/pom.xml index 160255377393..693177a279e4 100644 --- a/sdk/communication/azure-communication-common/pom.xml +++ b/sdk/communication/azure-communication-common/pom.xml @@ -13,7 +13,7 @@ com.azure azure-communication-common jar - 1.1.0-beta.1 + 1.0.2 Microsoft Azure common library for communication service client diff --git a/sdk/communication/azure-communication-identity/CHANGELOG.md b/sdk/communication/azure-communication-identity/CHANGELOG.md index 8be1d1935e7b..942cd76dfe50 100644 --- a/sdk/communication/azure-communication-identity/CHANGELOG.md +++ b/sdk/communication/azure-communication-identity/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History -## 1.2.0-beta.1 (Unreleased) +## 1.1.1 (2021-06-08) +- Updated 'azure-communication-identity' version ## 1.1.1 (2021-06-09) diff --git a/sdk/communication/azure-communication-identity/pom.xml b/sdk/communication/azure-communication-identity/pom.xml index bd75484c5275..99b3393810c3 100644 --- a/sdk/communication/azure-communication-identity/pom.xml +++ b/sdk/communication/azure-communication-identity/pom.xml @@ -16,7 +16,7 @@ com.azure azure-communication-identity jar - 1.2.0-beta.1 + 1.1.1 Microsoft Azure identity client library for communication @@ -63,7 +63,7 @@ com.azure azure-communication-common - 1.1.0-beta.1 + 1.0.2 org.junit.jupiter diff --git a/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md b/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md index b2ac1fccd68e..2ea9955fede6 100644 --- a/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md +++ b/sdk/communication/azure-communication-phonenumbers/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.3 (2021-06-08) +- Updated 'azure-communication-phonenumbers' version ## 1.0.3 (2021-06-09) diff --git a/sdk/communication/azure-communication-phonenumbers/pom.xml b/sdk/communication/azure-communication-phonenumbers/pom.xml index b231fc6d79b9..92e5c6d92dbc 100644 --- a/sdk/communication/azure-communication-phonenumbers/pom.xml +++ b/sdk/communication/azure-communication-phonenumbers/pom.xml @@ -16,7 +16,7 @@ com.azure azure-communication-phonenumbers jar - 1.1.0-beta.1 + 1.0.3 Microsoft Azure client phone numbers library for communication @@ -63,7 +63,7 @@ com.azure azure-communication-common - 1.1.0-beta.1 + 1.0.2 org.junit.jupiter diff --git a/sdk/communication/azure-communication-sms/CHANGELOG.md b/sdk/communication/azure-communication-sms/CHANGELOG.md index 524a170e76b3..7980793937c2 100644 --- a/sdk/communication/azure-communication-sms/CHANGELOG.md +++ b/sdk/communication/azure-communication-sms/CHANGELOG.md @@ -1,6 +1,7 @@ # Release History -## 1.1.0-beta.1 (Unreleased) +## 1.0.3 (2021-06-08) +- Updated 'azure-communication-sms' version ## 1.0.3 (2021-06-09) diff --git a/sdk/communication/azure-communication-sms/pom.xml b/sdk/communication/azure-communication-sms/pom.xml index ea514a14441f..1c0731918dc3 100644 --- a/sdk/communication/azure-communication-sms/pom.xml +++ b/sdk/communication/azure-communication-sms/pom.xml @@ -15,7 +15,7 @@ com.azure azure-communication-sms jar - 1.1.0-beta.1 + 1.0.3 Microsoft Azure library for sending SMS messages @@ -55,7 +55,7 @@ com.azure azure-communication-common - 1.1.0-beta.1 + 1.0.2 com.azure 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 d4f3484fea7b..e4f855316ef0 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; @@ -537,6 +552,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. @@ -695,6 +771,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 3f00883747e1..3de4bc4ae0d9 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; @@ -232,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"; @@ -698,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); 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 000000000000..adc5fed3e3b3 --- /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 000000000000..328031adb257 --- /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 000000000000..e3d7613f1421 --- /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 000000000000..5cab7b0a6323 --- /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 000000000000..41f972ad64d8 --- /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 000000000000..42b79019e228 --- /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 000000000000..fd523025e293 --- /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 000000000000..c5c0acbcfd34 --- /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 000000000000..ae903a27b10d --- /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 000000000000..ffb5f3773059 --- /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 000000000000..8ecc13b9134d --- /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 000000000000..9c32c05ac5a0 --- /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 000000000000..b02d5257be1f --- /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 000000000000..3b1f73825718 --- /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 000000000000..653cf1a78a65 --- /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 000000000000..f5c7fededa91 --- /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 000000000000..a343a3189178 --- /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/monitor/azure-monitor-query/README.md b/sdk/monitor/azure-monitor-query/README.md index 3e31ea70fa51..65d53636eddc 100644 --- a/sdk/monitor/azure-monitor-query/README.md +++ b/sdk/monitor/azure-monitor-query/README.md @@ -90,13 +90,13 @@ LogsQueryAsyncClient logsQueryAsyncClient = new LogsQueryClientBuilder() + "; value = " + logsTableCell.getValueAsString())); } } - +} ``` ### Get logs for a query and read the response as a model type ```java - LogsQueryResult queryResults = logsClient + LogsQueryResult queryResults = logsQueryClient .queryLogs("d2d0e126-fa1e-4b0a-b647-250cdd471e68", "AppRequests", null); // Sample to use a model type to read the results