
io.kubernetes.client.models.V1SelfSubjectAccessReviewSpecFluentImpl Maven / Gradle / Ivy
package io.kubernetes.client.models;
import com.google.gson.annotations.SerializedName;
import io.kubernetes.client.fluent.Nested;
import java.lang.Deprecated;
import io.kubernetes.client.fluent.BaseFluent;
import java.lang.Object;
import java.lang.Boolean;
public class V1SelfSubjectAccessReviewSpecFluentImpl> extends io.kubernetes.client.fluent.BaseFluent implements V1SelfSubjectAccessReviewSpecFluent{
private V1NonResourceAttributesBuilder nonResourceAttributes;
private V1ResourceAttributesBuilder resourceAttributes;
public V1SelfSubjectAccessReviewSpecFluentImpl(){
}
public V1SelfSubjectAccessReviewSpecFluentImpl(V1SelfSubjectAccessReviewSpec instance){
this.withNonResourceAttributes(instance.getNonResourceAttributes());
this.withResourceAttributes(instance.getResourceAttributes());
}
/**
* This method has been deprecated, please use method buildNonResourceAttributes instead.
*/
@Deprecated public V1NonResourceAttributes getNonResourceAttributes(){
return this.nonResourceAttributes!=null?this.nonResourceAttributes.build():null;
}
public V1NonResourceAttributes buildNonResourceAttributes(){
return this.nonResourceAttributes!=null?this.nonResourceAttributes.build():null;
}
public A withNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes){
_visitables.remove(this.nonResourceAttributes);
if (nonResourceAttributes!=null){ this.nonResourceAttributes= new V1NonResourceAttributesBuilder(nonResourceAttributes); _visitables.add(this.nonResourceAttributes);} return (A) this;
}
public Boolean hasNonResourceAttributes(){
return this.nonResourceAttributes != null;
}
public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributes(){
return new NonResourceAttributesNestedImpl();
}
public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested withNewNonResourceAttributesLike(V1NonResourceAttributes item){
return new NonResourceAttributesNestedImpl(item);
}
public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editNonResourceAttributes(){
return withNewNonResourceAttributesLike(getNonResourceAttributes());
}
public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributes(){
return withNewNonResourceAttributesLike(getNonResourceAttributes() != null ? getNonResourceAttributes(): new V1NonResourceAttributesBuilder().build());
}
public V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested editOrNewNonResourceAttributesLike(V1NonResourceAttributes item){
return withNewNonResourceAttributesLike(getNonResourceAttributes() != null ? getNonResourceAttributes(): item);
}
/**
* This method has been deprecated, please use method buildResourceAttributes instead.
*/
@Deprecated public V1ResourceAttributes getResourceAttributes(){
return this.resourceAttributes!=null?this.resourceAttributes.build():null;
}
public V1ResourceAttributes buildResourceAttributes(){
return this.resourceAttributes!=null?this.resourceAttributes.build():null;
}
public A withResourceAttributes(V1ResourceAttributes resourceAttributes){
_visitables.remove(this.resourceAttributes);
if (resourceAttributes!=null){ this.resourceAttributes= new V1ResourceAttributesBuilder(resourceAttributes); _visitables.add(this.resourceAttributes);} return (A) this;
}
public Boolean hasResourceAttributes(){
return this.resourceAttributes != null;
}
public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributes(){
return new ResourceAttributesNestedImpl();
}
public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested withNewResourceAttributesLike(V1ResourceAttributes item){
return new ResourceAttributesNestedImpl(item);
}
public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editResourceAttributes(){
return withNewResourceAttributesLike(getResourceAttributes());
}
public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributes(){
return withNewResourceAttributesLike(getResourceAttributes() != null ? getResourceAttributes(): new V1ResourceAttributesBuilder().build());
}
public V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested editOrNewResourceAttributesLike(V1ResourceAttributes item){
return withNewResourceAttributesLike(getResourceAttributes() != null ? getResourceAttributes(): item);
}
public boolean equals(Object o){
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
V1SelfSubjectAccessReviewSpecFluentImpl that = (V1SelfSubjectAccessReviewSpecFluentImpl) o;
if (nonResourceAttributes != null ? !nonResourceAttributes.equals(that.nonResourceAttributes) :that.nonResourceAttributes != null) return false;
if (resourceAttributes != null ? !resourceAttributes.equals(that.resourceAttributes) :that.resourceAttributes != null) return false;
return true;
}
public class NonResourceAttributesNestedImpl extends V1NonResourceAttributesFluentImpl> implements V1SelfSubjectAccessReviewSpecFluent.NonResourceAttributesNested,io.kubernetes.client.fluent.Nested{
private final V1NonResourceAttributesBuilder builder;
NonResourceAttributesNestedImpl(V1NonResourceAttributes item){
this.builder = new V1NonResourceAttributesBuilder(this, item);
}
NonResourceAttributesNestedImpl(){
this.builder = new V1NonResourceAttributesBuilder(this);
}
public N and(){
return (N) V1SelfSubjectAccessReviewSpecFluentImpl.this.withNonResourceAttributes(builder.build());
}
public N endNonResourceAttributes(){
return and();
}
}
public class ResourceAttributesNestedImpl extends V1ResourceAttributesFluentImpl> implements V1SelfSubjectAccessReviewSpecFluent.ResourceAttributesNested,io.kubernetes.client.fluent.Nested{
private final V1ResourceAttributesBuilder builder;
ResourceAttributesNestedImpl(V1ResourceAttributes item){
this.builder = new V1ResourceAttributesBuilder(this, item);
}
ResourceAttributesNestedImpl(){
this.builder = new V1ResourceAttributesBuilder(this);
}
public N and(){
return (N) V1SelfSubjectAccessReviewSpecFluentImpl.this.withResourceAttributes(builder.build());
}
public N endResourceAttributes(){
return and();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy