com.pulumi.meraki.organizations.outputs.GetApiRequestsOverviewResponseCodesByIntervalResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of meraki Show documentation
Show all versions of meraki Show documentation
A Pulumi package for creating and managing Cisco Meraki resources
// *** 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.meraki.organizations.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.meraki.organizations.outputs.GetApiRequestsOverviewResponseCodesByIntervalItem;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetApiRequestsOverviewResponseCodesByIntervalResult {
/**
* @return adminIds query parameter. Filter by admin ID of user that made the API request
*
*/
private @Nullable List adminIds;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return interval query parameter. The time interval in seconds for returned data. The valid intervals are: 120, 3600, 14400, 21600. The default is 21600. Interval is calculated if time params are provided.
*
*/
private @Nullable Integer interval;
/**
* @return Array of ResponseOrganizationsGetOrganizationApiRequestsOverviewResponseCodesByInterval
*
*/
private List items;
/**
* @return operationIds query parameter. Filter by operation ID of the endpoint
*
*/
private @Nullable List operationIds;
/**
* @return organizationId path parameter. Organization ID
*
*/
private String organizationId;
/**
* @return sourceIps query parameter. Filter by source IP that made the API request
*
*/
private @Nullable List sourceIps;
/**
* @return t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 31 days from today.
*
*/
private @Nullable String t0;
/**
* @return t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
*
*/
private @Nullable String t1;
/**
* @return timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 31 days. If interval is provided, the timespan will be autocalculated.
*
*/
private @Nullable Double timespan;
/**
* @return userAgent query parameter. Filter by user agent string for API request. This will filter by a complete or partial match.
*
*/
private @Nullable String userAgent;
/**
* @return version query parameter. Filter by API version of the endpoint. Allowable values are: [0, 1]
*
*/
private @Nullable Integer version;
private GetApiRequestsOverviewResponseCodesByIntervalResult() {}
/**
* @return adminIds query parameter. Filter by admin ID of user that made the API request
*
*/
public List adminIds() {
return this.adminIds == null ? List.of() : this.adminIds;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return interval query parameter. The time interval in seconds for returned data. The valid intervals are: 120, 3600, 14400, 21600. The default is 21600. Interval is calculated if time params are provided.
*
*/
public Optional interval() {
return Optional.ofNullable(this.interval);
}
/**
* @return Array of ResponseOrganizationsGetOrganizationApiRequestsOverviewResponseCodesByInterval
*
*/
public List items() {
return this.items;
}
/**
* @return operationIds query parameter. Filter by operation ID of the endpoint
*
*/
public List operationIds() {
return this.operationIds == null ? List.of() : this.operationIds;
}
/**
* @return organizationId path parameter. Organization ID
*
*/
public String organizationId() {
return this.organizationId;
}
/**
* @return sourceIps query parameter. Filter by source IP that made the API request
*
*/
public List sourceIps() {
return this.sourceIps == null ? List.of() : this.sourceIps;
}
/**
* @return t0 query parameter. The beginning of the timespan for the data. The maximum lookback period is 31 days from today.
*
*/
public Optional t0() {
return Optional.ofNullable(this.t0);
}
/**
* @return t1 query parameter. The end of the timespan for the data. t1 can be a maximum of 31 days after t0.
*
*/
public Optional t1() {
return Optional.ofNullable(this.t1);
}
/**
* @return timespan query parameter. The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 31 days. If interval is provided, the timespan will be autocalculated.
*
*/
public Optional timespan() {
return Optional.ofNullable(this.timespan);
}
/**
* @return userAgent query parameter. Filter by user agent string for API request. This will filter by a complete or partial match.
*
*/
public Optional userAgent() {
return Optional.ofNullable(this.userAgent);
}
/**
* @return version query parameter. Filter by API version of the endpoint. Allowable values are: [0, 1]
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetApiRequestsOverviewResponseCodesByIntervalResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List adminIds;
private String id;
private @Nullable Integer interval;
private List items;
private @Nullable List operationIds;
private String organizationId;
private @Nullable List sourceIps;
private @Nullable String t0;
private @Nullable String t1;
private @Nullable Double timespan;
private @Nullable String userAgent;
private @Nullable Integer version;
public Builder() {}
public Builder(GetApiRequestsOverviewResponseCodesByIntervalResult defaults) {
Objects.requireNonNull(defaults);
this.adminIds = defaults.adminIds;
this.id = defaults.id;
this.interval = defaults.interval;
this.items = defaults.items;
this.operationIds = defaults.operationIds;
this.organizationId = defaults.organizationId;
this.sourceIps = defaults.sourceIps;
this.t0 = defaults.t0;
this.t1 = defaults.t1;
this.timespan = defaults.timespan;
this.userAgent = defaults.userAgent;
this.version = defaults.version;
}
@CustomType.Setter
public Builder adminIds(@Nullable List adminIds) {
this.adminIds = adminIds;
return this;
}
public Builder adminIds(String... adminIds) {
return adminIds(List.of(adminIds));
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetApiRequestsOverviewResponseCodesByIntervalResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder interval(@Nullable Integer interval) {
this.interval = interval;
return this;
}
@CustomType.Setter
public Builder items(List items) {
if (items == null) {
throw new MissingRequiredPropertyException("GetApiRequestsOverviewResponseCodesByIntervalResult", "items");
}
this.items = items;
return this;
}
public Builder items(GetApiRequestsOverviewResponseCodesByIntervalItem... items) {
return items(List.of(items));
}
@CustomType.Setter
public Builder operationIds(@Nullable List operationIds) {
this.operationIds = operationIds;
return this;
}
public Builder operationIds(String... operationIds) {
return operationIds(List.of(operationIds));
}
@CustomType.Setter
public Builder organizationId(String organizationId) {
if (organizationId == null) {
throw new MissingRequiredPropertyException("GetApiRequestsOverviewResponseCodesByIntervalResult", "organizationId");
}
this.organizationId = organizationId;
return this;
}
@CustomType.Setter
public Builder sourceIps(@Nullable List sourceIps) {
this.sourceIps = sourceIps;
return this;
}
public Builder sourceIps(String... sourceIps) {
return sourceIps(List.of(sourceIps));
}
@CustomType.Setter
public Builder t0(@Nullable String t0) {
this.t0 = t0;
return this;
}
@CustomType.Setter
public Builder t1(@Nullable String t1) {
this.t1 = t1;
return this;
}
@CustomType.Setter
public Builder timespan(@Nullable Double timespan) {
this.timespan = timespan;
return this;
}
@CustomType.Setter
public Builder userAgent(@Nullable String userAgent) {
this.userAgent = userAgent;
return this;
}
@CustomType.Setter
public Builder version(@Nullable Integer version) {
this.version = version;
return this;
}
public GetApiRequestsOverviewResponseCodesByIntervalResult build() {
final var _resultValue = new GetApiRequestsOverviewResponseCodesByIntervalResult();
_resultValue.adminIds = adminIds;
_resultValue.id = id;
_resultValue.interval = interval;
_resultValue.items = items;
_resultValue.operationIds = operationIds;
_resultValue.organizationId = organizationId;
_resultValue.sourceIps = sourceIps;
_resultValue.t0 = t0;
_resultValue.t1 = t1;
_resultValue.timespan = timespan;
_resultValue.userAgent = userAgent;
_resultValue.version = version;
return _resultValue;
}
}
}