com.azure.resourcemanager.storage.fluent.models.LocalUserInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-storage Show documentation
Show all versions of azure-resourcemanager-storage Show documentation
This package contains Microsoft Azure Storage Management SDK.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.storage.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.storage.models.PermissionScope;
import com.azure.resourcemanager.storage.models.SshPublicKey;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* The local user associated with the storage accounts.
*/
@Fluent
public final class LocalUserInner extends ProxyResource {
/*
* Storage account local user properties.
*/
@JsonProperty(value = "properties")
private LocalUserProperties innerProperties;
/*
* Metadata pertaining to creation and last modification of the resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
/**
* Creates an instance of LocalUserInner class.
*/
public LocalUserInner() {
}
/**
* Get the innerProperties property: Storage account local user properties.
*
* @return the innerProperties value.
*/
private LocalUserProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
/**
* Get the permissionScopes property: The permission scopes of the local user.
*
* @return the permissionScopes value.
*/
public List permissionScopes() {
return this.innerProperties() == null ? null : this.innerProperties().permissionScopes();
}
/**
* Set the permissionScopes property: The permission scopes of the local user.
*
* @param permissionScopes the permissionScopes value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withPermissionScopes(List permissionScopes) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withPermissionScopes(permissionScopes);
return this;
}
/**
* Get the homeDirectory property: Optional, local user home directory.
*
* @return the homeDirectory value.
*/
public String homeDirectory() {
return this.innerProperties() == null ? null : this.innerProperties().homeDirectory();
}
/**
* Set the homeDirectory property: Optional, local user home directory.
*
* @param homeDirectory the homeDirectory value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withHomeDirectory(String homeDirectory) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withHomeDirectory(homeDirectory);
return this;
}
/**
* Get the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.
*
* @return the sshAuthorizedKeys value.
*/
public List sshAuthorizedKeys() {
return this.innerProperties() == null ? null : this.innerProperties().sshAuthorizedKeys();
}
/**
* Set the sshAuthorizedKeys property: Optional, local user ssh authorized keys for SFTP.
*
* @param sshAuthorizedKeys the sshAuthorizedKeys value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withSshAuthorizedKeys(List sshAuthorizedKeys) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withSshAuthorizedKeys(sshAuthorizedKeys);
return this;
}
/**
* Get the sid property: A unique Security Identifier that is generated by the server.
*
* @return the sid value.
*/
public String sid() {
return this.innerProperties() == null ? null : this.innerProperties().sid();
}
/**
* Get the hasSharedKey property: Indicates whether shared key exists. Set it to false to remove existing shared
* key.
*
* @return the hasSharedKey value.
*/
public Boolean hasSharedKey() {
return this.innerProperties() == null ? null : this.innerProperties().hasSharedKey();
}
/**
* Set the hasSharedKey property: Indicates whether shared key exists. Set it to false to remove existing shared
* key.
*
* @param hasSharedKey the hasSharedKey value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withHasSharedKey(Boolean hasSharedKey) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withHasSharedKey(hasSharedKey);
return this;
}
/**
* Get the hasSshKey property: Indicates whether ssh key exists. Set it to false to remove existing SSH key.
*
* @return the hasSshKey value.
*/
public Boolean hasSshKey() {
return this.innerProperties() == null ? null : this.innerProperties().hasSshKey();
}
/**
* Set the hasSshKey property: Indicates whether ssh key exists. Set it to false to remove existing SSH key.
*
* @param hasSshKey the hasSshKey value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withHasSshKey(Boolean hasSshKey) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withHasSshKey(hasSshKey);
return this;
}
/**
* Get the hasSshPassword property: Indicates whether ssh password exists. Set it to false to remove existing SSH
* password.
*
* @return the hasSshPassword value.
*/
public Boolean hasSshPassword() {
return this.innerProperties() == null ? null : this.innerProperties().hasSshPassword();
}
/**
* Set the hasSshPassword property: Indicates whether ssh password exists. Set it to false to remove existing SSH
* password.
*
* @param hasSshPassword the hasSshPassword value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withHasSshPassword(Boolean hasSshPassword) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withHasSshPassword(hasSshPassword);
return this;
}
/**
* Get the userId property: A unique Identifier that is generated by the server.
*
* @return the userId value.
*/
public Integer userId() {
return this.innerProperties() == null ? null : this.innerProperties().userId();
}
/**
* Get the groupId property: An identifier for associating a group of users.
*
* @return the groupId value.
*/
public Integer groupId() {
return this.innerProperties() == null ? null : this.innerProperties().groupId();
}
/**
* Set the groupId property: An identifier for associating a group of users.
*
* @param groupId the groupId value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withGroupId(Integer groupId) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withGroupId(groupId);
return this;
}
/**
* Get the allowAclAuthorization property: Indicates whether ACL authorization is allowed for this user. Set it to
* false to disallow using ACL authorization.
*
* @return the allowAclAuthorization value.
*/
public Boolean allowAclAuthorization() {
return this.innerProperties() == null ? null : this.innerProperties().allowAclAuthorization();
}
/**
* Set the allowAclAuthorization property: Indicates whether ACL authorization is allowed for this user. Set it to
* false to disallow using ACL authorization.
*
* @param allowAclAuthorization the allowAclAuthorization value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withAllowAclAuthorization(Boolean allowAclAuthorization) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withAllowAclAuthorization(allowAclAuthorization);
return this;
}
/**
* Get the extendedGroups property: Supplementary group membership. Only applicable for local users enabled for
* NFSv3 access.
*
* @return the extendedGroups value.
*/
public List extendedGroups() {
return this.innerProperties() == null ? null : this.innerProperties().extendedGroups();
}
/**
* Set the extendedGroups property: Supplementary group membership. Only applicable for local users enabled for
* NFSv3 access.
*
* @param extendedGroups the extendedGroups value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withExtendedGroups(List extendedGroups) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withExtendedGroups(extendedGroups);
return this;
}
/**
* Get the isNFSv3Enabled property: Indicates if the local user is enabled for access with NFSv3 protocol.
*
* @return the isNFSv3Enabled value.
*/
public Boolean isNFSv3Enabled() {
return this.innerProperties() == null ? null : this.innerProperties().isNFSv3Enabled();
}
/**
* Set the isNFSv3Enabled property: Indicates if the local user is enabled for access with NFSv3 protocol.
*
* @param isNFSv3Enabled the isNFSv3Enabled value to set.
* @return the LocalUserInner object itself.
*/
public LocalUserInner withIsNFSv3Enabled(Boolean isNFSv3Enabled) {
if (this.innerProperties() == null) {
this.innerProperties = new LocalUserProperties();
}
this.innerProperties().withIsNFSv3Enabled(isNFSv3Enabled);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy