com.pulumi.aws.iam.outputs.GetRoleRoleLastUsed Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.iam.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetRoleRoleLastUsed {
/**
* @return The date and time, in RFC 3339 format, that the role was last used.
*
*/
private String lastUsedDate;
/**
* @return The name of the AWS Region in which the role was last used.
*
*/
private String region;
private GetRoleRoleLastUsed() {}
/**
* @return The date and time, in RFC 3339 format, that the role was last used.
*
*/
public String lastUsedDate() {
return this.lastUsedDate;
}
/**
* @return The name of the AWS Region in which the role was last used.
*
*/
public String region() {
return this.region;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetRoleRoleLastUsed defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String lastUsedDate;
private String region;
public Builder() {}
public Builder(GetRoleRoleLastUsed defaults) {
Objects.requireNonNull(defaults);
this.lastUsedDate = defaults.lastUsedDate;
this.region = defaults.region;
}
@CustomType.Setter
public Builder lastUsedDate(String lastUsedDate) {
if (lastUsedDate == null) {
throw new MissingRequiredPropertyException("GetRoleRoleLastUsed", "lastUsedDate");
}
this.lastUsedDate = lastUsedDate;
return this;
}
@CustomType.Setter
public Builder region(String region) {
if (region == null) {
throw new MissingRequiredPropertyException("GetRoleRoleLastUsed", "region");
}
this.region = region;
return this;
}
public GetRoleRoleLastUsed build() {
final var _resultValue = new GetRoleRoleLastUsed();
_resultValue.lastUsedDate = lastUsedDate;
_resultValue.region = region;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy