com.microsoft.azure.management.graphrbac.implementation.GroupCreateParametersInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-graph-rbac Show documentation
Show all versions of azure-mgmt-graph-rbac Show documentation
This package contains Microsoft Azure Graph RBAC Management SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-authorization is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.graphrbac.implementation;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Request parameters for creating a new group.
*/
public class GroupCreateParametersInner {
/**
* Unmatched properties from the message are deserialized this collection.
*/
@JsonProperty(value = "")
private Map additionalProperties;
/**
* Group display name.
*/
@JsonProperty(value = "displayName", required = true)
private String displayName;
/**
* Whether the group is mail-enabled. Must be false. This is because only
* pure security groups can be created using the Graph API.
*/
@JsonProperty(value = "mailEnabled", required = true)
private boolean mailEnabled;
/**
* Mail nickname.
*/
@JsonProperty(value = "mailNickname", required = true)
private String mailNickname;
/**
* Whether the group is a security group. Must be true. This is because
* only pure security groups can be created using the Graph API.
*/
@JsonProperty(value = "securityEnabled", required = true)
private boolean securityEnabled;
/**
* Creates an instance of GroupCreateParametersInner class.
*/
public GroupCreateParametersInner() {
mailEnabled = false;
securityEnabled = true;
}
/**
* Get the additionalProperties value.
*
* @return the additionalProperties value
*/
public Map additionalProperties() {
return this.additionalProperties;
}
/**
* Set the additionalProperties value.
*
* @param additionalProperties the additionalProperties value to set
* @return the GroupCreateParametersInner object itself.
*/
public GroupCreateParametersInner withAdditionalProperties(Map additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}
/**
* Get the displayName value.
*
* @return the displayName value
*/
public String displayName() {
return this.displayName;
}
/**
* Set the displayName value.
*
* @param displayName the displayName value to set
* @return the GroupCreateParametersInner object itself.
*/
public GroupCreateParametersInner withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* Get the mailEnabled value.
*
* @return the mailEnabled value
*/
public boolean mailEnabled() {
return this.mailEnabled;
}
/**
* Set the mailEnabled value.
*
* @param mailEnabled the mailEnabled value to set
* @return the GroupCreateParametersInner object itself.
*/
public GroupCreateParametersInner withMailEnabled(boolean mailEnabled) {
this.mailEnabled = mailEnabled;
return this;
}
/**
* Get the mailNickname value.
*
* @return the mailNickname value
*/
public String mailNickname() {
return this.mailNickname;
}
/**
* Set the mailNickname value.
*
* @param mailNickname the mailNickname value to set
* @return the GroupCreateParametersInner object itself.
*/
public GroupCreateParametersInner withMailNickname(String mailNickname) {
this.mailNickname = mailNickname;
return this;
}
/**
* Get the securityEnabled value.
*
* @return the securityEnabled value
*/
public boolean securityEnabled() {
return this.securityEnabled;
}
/**
* Set the securityEnabled value.
*
* @param securityEnabled the securityEnabled value to set
* @return the GroupCreateParametersInner object itself.
*/
public GroupCreateParametersInner withSecurityEnabled(boolean securityEnabled) {
this.securityEnabled = securityEnabled;
return this;
}
}