com.pulumi.googlenative.osconfig.v1alpha.outputs.OSPolicyResourceFileResourceResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.googlenative.osconfig.v1alpha.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.osconfig.v1alpha.outputs.OSPolicyResourceFileResponse;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class OSPolicyResourceFileResourceResponse {
/**
* @return A a file with this content. The size of the content is limited to 32KiB.
*
*/
private String content;
/**
* @return A remote or local source.
*
*/
private OSPolicyResourceFileResponse file;
/**
* @return The absolute path of the file within the VM.
*
*/
private String path;
/**
* @return Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
*
*/
private String permissions;
/**
* @return Desired state of the file.
*
*/
private String state;
private OSPolicyResourceFileResourceResponse() {}
/**
* @return A a file with this content. The size of the content is limited to 32KiB.
*
*/
public String content() {
return this.content;
}
/**
* @return A remote or local source.
*
*/
public OSPolicyResourceFileResponse file() {
return this.file;
}
/**
* @return The absolute path of the file within the VM.
*
*/
public String path() {
return this.path;
}
/**
* @return Consists of three octal digits which represent, in order, the permissions of the owner, group, and other users for the file (similarly to the numeric mode used in the linux chmod utility). Each digit represents a three bit number with the 4 bit corresponding to the read permissions, the 2 bit corresponds to the write bit, and the one bit corresponds to the execute permission. Default behavior is 755. Below are some examples of permissions and their associated values: read, write, and execute: 7 read and execute: 5 read and write: 6 read only: 4
*
*/
public String permissions() {
return this.permissions;
}
/**
* @return Desired state of the file.
*
*/
public String state() {
return this.state;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(OSPolicyResourceFileResourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String content;
private OSPolicyResourceFileResponse file;
private String path;
private String permissions;
private String state;
public Builder() {}
public Builder(OSPolicyResourceFileResourceResponse defaults) {
Objects.requireNonNull(defaults);
this.content = defaults.content;
this.file = defaults.file;
this.path = defaults.path;
this.permissions = defaults.permissions;
this.state = defaults.state;
}
@CustomType.Setter
public Builder content(String content) {
this.content = Objects.requireNonNull(content);
return this;
}
@CustomType.Setter
public Builder file(OSPolicyResourceFileResponse file) {
this.file = Objects.requireNonNull(file);
return this;
}
@CustomType.Setter
public Builder path(String path) {
this.path = Objects.requireNonNull(path);
return this;
}
@CustomType.Setter
public Builder permissions(String permissions) {
this.permissions = Objects.requireNonNull(permissions);
return this;
}
@CustomType.Setter
public Builder state(String state) {
this.state = Objects.requireNonNull(state);
return this;
}
public OSPolicyResourceFileResourceResponse build() {
final var o = new OSPolicyResourceFileResourceResponse();
o.content = content;
o.file = file;
o.path = path;
o.permissions = permissions;
o.state = state;
return o;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy