![JAR search and dependency download from the Maven repository](/logo.png)
com.azure.resourcemanager.securityinsights.fluent.models.SentinelOnboardingStateProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-securityinsights Show documentation
Show all versions of azure-resourcemanager-securityinsights Show documentation
This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-09.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.securityinsights.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
/**
* The Sentinel onboarding state properties.
*/
@Fluent
public final class SentinelOnboardingStateProperties implements JsonSerializable {
/*
* Flag that indicates the status of the CMK setting
*/
private Boolean customerManagedKey;
/**
* Creates an instance of SentinelOnboardingStateProperties class.
*/
public SentinelOnboardingStateProperties() {
}
/**
* Get the customerManagedKey property: Flag that indicates the status of the CMK setting.
*
* @return the customerManagedKey value.
*/
public Boolean customerManagedKey() {
return this.customerManagedKey;
}
/**
* Set the customerManagedKey property: Flag that indicates the status of the CMK setting.
*
* @param customerManagedKey the customerManagedKey value to set.
* @return the SentinelOnboardingStateProperties object itself.
*/
public SentinelOnboardingStateProperties withCustomerManagedKey(Boolean customerManagedKey) {
this.customerManagedKey = customerManagedKey;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeBooleanField("customerManagedKey", this.customerManagedKey);
return jsonWriter.writeEndObject();
}
/**
* Reads an instance of SentinelOnboardingStateProperties from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of SentinelOnboardingStateProperties if the JsonReader was pointing to an instance of it, or
* null if it was pointing to JSON null.
* @throws IOException If an error occurs while reading the SentinelOnboardingStateProperties.
*/
public static SentinelOnboardingStateProperties fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
SentinelOnboardingStateProperties deserializedSentinelOnboardingStateProperties
= new SentinelOnboardingStateProperties();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("customerManagedKey".equals(fieldName)) {
deserializedSentinelOnboardingStateProperties.customerManagedKey
= reader.getNullable(JsonReader::getBoolean);
} else {
reader.skipChildren();
}
}
return deserializedSentinelOnboardingStateProperties;
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy