models.AclBindingListPage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafka-instance-sdk Show documentation
Show all versions of kafka-instance-sdk Show documentation
Kafka instance SDK for RHOAS API supports interaction with individual Kafka instances
The newest version!
package com.openshift.cloud.api.kas.auth.models;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* A page of ACL binding entries
*/
public class AclBindingListPage extends List implements Parsable {
/** The items property */
private java.util.List items;
/**
* Instantiates a new AclBindingListPage and sets the default values.
* @return a void
*/
@javax.annotation.Nullable
public AclBindingListPage() {
super();
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a AclBindingListPage
*/
@javax.annotation.Nonnull
public static AclBindingListPage createFromDiscriminatorValue(@javax.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new AclBindingListPage();
}
/**
* The deserialization information for the current model
* @return a Map>
*/
@javax.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("items", (n) -> { this.setItems(n.getCollectionOfObjectValues(AclBinding::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the items property value. The items property
* @return a AclBinding
*/
@javax.annotation.Nullable
public java.util.List getItems() {
return this.items;
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
* @return a void
*/
@javax.annotation.Nonnull
public void serialize(@javax.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeCollectionOfObjectValues("items", this.getItems());
}
/**
* Sets the items property value. The items property
* @param value Value to set for the items property.
* @return a void
*/
@javax.annotation.Nonnull
public void setItems(@javax.annotation.Nullable final java.util.List value) {
this.items = value;
}
}