Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
software.amazon.awssdk.services.wellarchitected.model.ReviewTemplateLensReview Maven / Gradle / Ivy
Go to download
The AWS Java SDK for Well Architected module holds the client classes that are used for
communicating with Well Architected.
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.wellarchitected.model;
import java.io.Serializable;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructMap;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
* The lens review of a review template.
*
*/
@Generated("software.amazon.awssdk:codegen")
public final class ReviewTemplateLensReview implements SdkPojo, Serializable,
ToCopyableBuilder {
private static final SdkField LENS_ALIAS_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LensAlias").getter(getter(ReviewTemplateLensReview::lensAlias)).setter(setter(Builder::lensAlias))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LensAlias").build()).build();
private static final SdkField LENS_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LensArn").getter(getter(ReviewTemplateLensReview::lensArn)).setter(setter(Builder::lensArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LensArn").build()).build();
private static final SdkField LENS_VERSION_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LensVersion").getter(getter(ReviewTemplateLensReview::lensVersion)).setter(setter(Builder::lensVersion))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LensVersion").build()).build();
private static final SdkField LENS_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LensName").getter(getter(ReviewTemplateLensReview::lensName)).setter(setter(Builder::lensName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LensName").build()).build();
private static final SdkField LENS_STATUS_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LensStatus").getter(getter(ReviewTemplateLensReview::lensStatusAsString))
.setter(setter(Builder::lensStatus))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LensStatus").build()).build();
private static final SdkField> PILLAR_REVIEW_SUMMARIES_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("PillarReviewSummaries")
.getter(getter(ReviewTemplateLensReview::pillarReviewSummaries))
.setter(setter(Builder::pillarReviewSummaries))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("PillarReviewSummaries").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.SDK_POJO)
.constructor(ReviewTemplatePillarReviewSummary::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField UPDATED_AT_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("UpdatedAt").getter(getter(ReviewTemplateLensReview::updatedAt)).setter(setter(Builder::updatedAt))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("UpdatedAt").build()).build();
private static final SdkField NOTES_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Notes")
.getter(getter(ReviewTemplateLensReview::notes)).setter(setter(Builder::notes))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Notes").build()).build();
private static final SdkField> QUESTION_COUNTS_FIELD = SdkField
.> builder(MarshallingType.MAP)
.memberName("QuestionCounts")
.getter(getter(ReviewTemplateLensReview::questionCountsAsStrings))
.setter(setter(Builder::questionCountsWithStrings))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("QuestionCounts").build(),
MapTrait.builder()
.keyLocationName("key")
.valueLocationName("value")
.valueFieldInfo(
SdkField. builder(MarshallingType.INTEGER)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("value").build()).build()).build()).build();
private static final SdkField NEXT_TOKEN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("NextToken").getter(getter(ReviewTemplateLensReview::nextToken)).setter(setter(Builder::nextToken))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NextToken").build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(LENS_ALIAS_FIELD,
LENS_ARN_FIELD, LENS_VERSION_FIELD, LENS_NAME_FIELD, LENS_STATUS_FIELD, PILLAR_REVIEW_SUMMARIES_FIELD,
UPDATED_AT_FIELD, NOTES_FIELD, QUESTION_COUNTS_FIELD, NEXT_TOKEN_FIELD));
private static final Map> SDK_NAME_TO_FIELD = Collections
.unmodifiableMap(new HashMap>() {
{
put("LensAlias", LENS_ALIAS_FIELD);
put("LensArn", LENS_ARN_FIELD);
put("LensVersion", LENS_VERSION_FIELD);
put("LensName", LENS_NAME_FIELD);
put("LensStatus", LENS_STATUS_FIELD);
put("PillarReviewSummaries", PILLAR_REVIEW_SUMMARIES_FIELD);
put("UpdatedAt", UPDATED_AT_FIELD);
put("Notes", NOTES_FIELD);
put("QuestionCounts", QUESTION_COUNTS_FIELD);
put("NextToken", NEXT_TOKEN_FIELD);
}
});
private static final long serialVersionUID = 1L;
private final String lensAlias;
private final String lensArn;
private final String lensVersion;
private final String lensName;
private final String lensStatus;
private final List pillarReviewSummaries;
private final Instant updatedAt;
private final String notes;
private final Map questionCounts;
private final String nextToken;
private ReviewTemplateLensReview(BuilderImpl builder) {
this.lensAlias = builder.lensAlias;
this.lensArn = builder.lensArn;
this.lensVersion = builder.lensVersion;
this.lensName = builder.lensName;
this.lensStatus = builder.lensStatus;
this.pillarReviewSummaries = builder.pillarReviewSummaries;
this.updatedAt = builder.updatedAt;
this.notes = builder.notes;
this.questionCounts = builder.questionCounts;
this.nextToken = builder.nextToken;
}
/**
* Returns the value of the LensAlias property for this object.
*
* @return The value of the LensAlias property for this object.
*/
public final String lensAlias() {
return lensAlias;
}
/**
*
* The lens ARN.
*
*
* @return The lens ARN.
*/
public final String lensArn() {
return lensArn;
}
/**
*
* The version of the lens.
*
*
* @return The version of the lens.
*/
public final String lensVersion() {
return lensVersion;
}
/**
* Returns the value of the LensName property for this object.
*
* @return The value of the LensName property for this object.
*/
public final String lensName() {
return lensName;
}
/**
*
* The status of the lens.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #lensStatus} will
* return {@link LensStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #lensStatusAsString}.
*
*
* @return The status of the lens.
* @see LensStatus
*/
public final LensStatus lensStatus() {
return LensStatus.fromValue(lensStatus);
}
/**
*
* The status of the lens.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #lensStatus} will
* return {@link LensStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #lensStatusAsString}.
*
*
* @return The status of the lens.
* @see LensStatus
*/
public final String lensStatusAsString() {
return lensStatus;
}
/**
* For responses, this returns true if the service returned a value for the PillarReviewSummaries property. This
* DOES NOT check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the
* property). This is useful because the SDK will never return a null collection or map, but you may need to
* differentiate between the service returning nothing (or null) and the service returning an empty collection or
* map. For requests, this returns true if a value for the property was specified in the request builder, and false
* if a value was not specified.
*/
public final boolean hasPillarReviewSummaries() {
return pillarReviewSummaries != null && !(pillarReviewSummaries instanceof SdkAutoConstructList);
}
/**
*
* Pillar review summaries of a lens review.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasPillarReviewSummaries} method.
*
*
* @return Pillar review summaries of a lens review.
*/
public final List pillarReviewSummaries() {
return pillarReviewSummaries;
}
/**
* Returns the value of the UpdatedAt property for this object.
*
* @return The value of the UpdatedAt property for this object.
*/
public final Instant updatedAt() {
return updatedAt;
}
/**
* Returns the value of the Notes property for this object.
*
* @return The value of the Notes property for this object.
*/
public final String notes() {
return notes;
}
/**
*
* A count of how many questions are answered and unanswered in the lens review.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasQuestionCounts} method.
*
*
* @return A count of how many questions are answered and unanswered in the lens review.
*/
public final Map questionCounts() {
return QuestionCountsCopier.copyStringToEnum(questionCounts);
}
/**
* For responses, this returns true if the service returned a value for the QuestionCounts property. This DOES NOT
* check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasQuestionCounts() {
return questionCounts != null && !(questionCounts instanceof SdkAutoConstructMap);
}
/**
*
* A count of how many questions are answered and unanswered in the lens review.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasQuestionCounts} method.
*
*
* @return A count of how many questions are answered and unanswered in the lens review.
*/
public final Map questionCountsAsStrings() {
return questionCounts;
}
/**
* Returns the value of the NextToken property for this object.
*
* @return The value of the NextToken property for this object.
*/
public final String nextToken() {
return nextToken;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + Objects.hashCode(lensAlias());
hashCode = 31 * hashCode + Objects.hashCode(lensArn());
hashCode = 31 * hashCode + Objects.hashCode(lensVersion());
hashCode = 31 * hashCode + Objects.hashCode(lensName());
hashCode = 31 * hashCode + Objects.hashCode(lensStatusAsString());
hashCode = 31 * hashCode + Objects.hashCode(hasPillarReviewSummaries() ? pillarReviewSummaries() : null);
hashCode = 31 * hashCode + Objects.hashCode(updatedAt());
hashCode = 31 * hashCode + Objects.hashCode(notes());
hashCode = 31 * hashCode + Objects.hashCode(hasQuestionCounts() ? questionCountsAsStrings() : null);
hashCode = 31 * hashCode + Objects.hashCode(nextToken());
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof ReviewTemplateLensReview)) {
return false;
}
ReviewTemplateLensReview other = (ReviewTemplateLensReview) obj;
return Objects.equals(lensAlias(), other.lensAlias()) && Objects.equals(lensArn(), other.lensArn())
&& Objects.equals(lensVersion(), other.lensVersion()) && Objects.equals(lensName(), other.lensName())
&& Objects.equals(lensStatusAsString(), other.lensStatusAsString())
&& hasPillarReviewSummaries() == other.hasPillarReviewSummaries()
&& Objects.equals(pillarReviewSummaries(), other.pillarReviewSummaries())
&& Objects.equals(updatedAt(), other.updatedAt()) && Objects.equals(notes(), other.notes())
&& hasQuestionCounts() == other.hasQuestionCounts()
&& Objects.equals(questionCountsAsStrings(), other.questionCountsAsStrings())
&& Objects.equals(nextToken(), other.nextToken());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public final String toString() {
return ToString.builder("ReviewTemplateLensReview").add("LensAlias", lensAlias()).add("LensArn", lensArn())
.add("LensVersion", lensVersion()).add("LensName", lensName()).add("LensStatus", lensStatusAsString())
.add("PillarReviewSummaries", hasPillarReviewSummaries() ? pillarReviewSummaries() : null)
.add("UpdatedAt", updatedAt()).add("Notes", notes())
.add("QuestionCounts", hasQuestionCounts() ? questionCountsAsStrings() : null).add("NextToken", nextToken())
.build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "LensAlias":
return Optional.ofNullable(clazz.cast(lensAlias()));
case "LensArn":
return Optional.ofNullable(clazz.cast(lensArn()));
case "LensVersion":
return Optional.ofNullable(clazz.cast(lensVersion()));
case "LensName":
return Optional.ofNullable(clazz.cast(lensName()));
case "LensStatus":
return Optional.ofNullable(clazz.cast(lensStatusAsString()));
case "PillarReviewSummaries":
return Optional.ofNullable(clazz.cast(pillarReviewSummaries()));
case "UpdatedAt":
return Optional.ofNullable(clazz.cast(updatedAt()));
case "Notes":
return Optional.ofNullable(clazz.cast(notes()));
case "QuestionCounts":
return Optional.ofNullable(clazz.cast(questionCountsAsStrings()));
case "NextToken":
return Optional.ofNullable(clazz.cast(nextToken()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
@Override
public final Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
private static Function getter(Function g) {
return obj -> g.apply((ReviewTemplateLensReview) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends SdkPojo, CopyableBuilder {
/**
* Sets the value of the LensAlias property for this object.
*
* @param lensAlias
* The new value for the LensAlias property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lensAlias(String lensAlias);
/**
*
* The lens ARN.
*
*
* @param lensArn
* The lens ARN.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lensArn(String lensArn);
/**
*
* The version of the lens.
*
*
* @param lensVersion
* The version of the lens.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lensVersion(String lensVersion);
/**
* Sets the value of the LensName property for this object.
*
* @param lensName
* The new value for the LensName property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lensName(String lensName);
/**
*
* The status of the lens.
*
*
* @param lensStatus
* The status of the lens.
* @see LensStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see LensStatus
*/
Builder lensStatus(String lensStatus);
/**
*
* The status of the lens.
*
*
* @param lensStatus
* The status of the lens.
* @see LensStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see LensStatus
*/
Builder lensStatus(LensStatus lensStatus);
/**
*
* Pillar review summaries of a lens review.
*
*
* @param pillarReviewSummaries
* Pillar review summaries of a lens review.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder pillarReviewSummaries(Collection pillarReviewSummaries);
/**
*
* Pillar review summaries of a lens review.
*
*
* @param pillarReviewSummaries
* Pillar review summaries of a lens review.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder pillarReviewSummaries(ReviewTemplatePillarReviewSummary... pillarReviewSummaries);
/**
*
* Pillar review summaries of a lens review.
*
* This is a convenience method that creates an instance of the
* {@link software.amazon.awssdk.services.wellarchitected.model.ReviewTemplatePillarReviewSummary.Builder}
* avoiding the need to create one manually via
* {@link software.amazon.awssdk.services.wellarchitected.model.ReviewTemplatePillarReviewSummary#builder()}.
*
*
* When the {@link Consumer} completes,
* {@link software.amazon.awssdk.services.wellarchitected.model.ReviewTemplatePillarReviewSummary.Builder#build()}
* is called immediately and its result is passed to {@link
* #pillarReviewSummaries(List)}.
*
* @param pillarReviewSummaries
* a consumer that will call methods on
* {@link software.amazon.awssdk.services.wellarchitected.model.ReviewTemplatePillarReviewSummary.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #pillarReviewSummaries(java.util.Collection)
*/
Builder pillarReviewSummaries(Consumer... pillarReviewSummaries);
/**
* Sets the value of the UpdatedAt property for this object.
*
* @param updatedAt
* The new value for the UpdatedAt property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder updatedAt(Instant updatedAt);
/**
* Sets the value of the Notes property for this object.
*
* @param notes
* The new value for the Notes property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder notes(String notes);
/**
*
* A count of how many questions are answered and unanswered in the lens review.
*
*
* @param questionCounts
* A count of how many questions are answered and unanswered in the lens review.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder questionCountsWithStrings(Map questionCounts);
/**
*
* A count of how many questions are answered and unanswered in the lens review.
*
*
* @param questionCounts
* A count of how many questions are answered and unanswered in the lens review.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder questionCounts(Map questionCounts);
/**
* Sets the value of the NextToken property for this object.
*
* @param nextToken
* The new value for the NextToken property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder nextToken(String nextToken);
}
static final class BuilderImpl implements Builder {
private String lensAlias;
private String lensArn;
private String lensVersion;
private String lensName;
private String lensStatus;
private List pillarReviewSummaries = DefaultSdkAutoConstructList.getInstance();
private Instant updatedAt;
private String notes;
private Map questionCounts = DefaultSdkAutoConstructMap.getInstance();
private String nextToken;
private BuilderImpl() {
}
private BuilderImpl(ReviewTemplateLensReview model) {
lensAlias(model.lensAlias);
lensArn(model.lensArn);
lensVersion(model.lensVersion);
lensName(model.lensName);
lensStatus(model.lensStatus);
pillarReviewSummaries(model.pillarReviewSummaries);
updatedAt(model.updatedAt);
notes(model.notes);
questionCountsWithStrings(model.questionCounts);
nextToken(model.nextToken);
}
public final String getLensAlias() {
return lensAlias;
}
public final void setLensAlias(String lensAlias) {
this.lensAlias = lensAlias;
}
@Override
public final Builder lensAlias(String lensAlias) {
this.lensAlias = lensAlias;
return this;
}
public final String getLensArn() {
return lensArn;
}
public final void setLensArn(String lensArn) {
this.lensArn = lensArn;
}
@Override
public final Builder lensArn(String lensArn) {
this.lensArn = lensArn;
return this;
}
public final String getLensVersion() {
return lensVersion;
}
public final void setLensVersion(String lensVersion) {
this.lensVersion = lensVersion;
}
@Override
public final Builder lensVersion(String lensVersion) {
this.lensVersion = lensVersion;
return this;
}
public final String getLensName() {
return lensName;
}
public final void setLensName(String lensName) {
this.lensName = lensName;
}
@Override
public final Builder lensName(String lensName) {
this.lensName = lensName;
return this;
}
public final String getLensStatus() {
return lensStatus;
}
public final void setLensStatus(String lensStatus) {
this.lensStatus = lensStatus;
}
@Override
public final Builder lensStatus(String lensStatus) {
this.lensStatus = lensStatus;
return this;
}
@Override
public final Builder lensStatus(LensStatus lensStatus) {
this.lensStatus(lensStatus == null ? null : lensStatus.toString());
return this;
}
public final List getPillarReviewSummaries() {
List result = ReviewTemplatePillarReviewSummariesCopier
.copyToBuilder(this.pillarReviewSummaries);
if (result instanceof SdkAutoConstructList) {
return null;
}
return result;
}
public final void setPillarReviewSummaries(Collection pillarReviewSummaries) {
this.pillarReviewSummaries = ReviewTemplatePillarReviewSummariesCopier.copyFromBuilder(pillarReviewSummaries);
}
@Override
public final Builder pillarReviewSummaries(Collection pillarReviewSummaries) {
this.pillarReviewSummaries = ReviewTemplatePillarReviewSummariesCopier.copy(pillarReviewSummaries);
return this;
}
@Override
@SafeVarargs
public final Builder pillarReviewSummaries(ReviewTemplatePillarReviewSummary... pillarReviewSummaries) {
pillarReviewSummaries(Arrays.asList(pillarReviewSummaries));
return this;
}
@Override
@SafeVarargs
public final Builder pillarReviewSummaries(Consumer... pillarReviewSummaries) {
pillarReviewSummaries(Stream.of(pillarReviewSummaries)
.map(c -> ReviewTemplatePillarReviewSummary.builder().applyMutation(c).build()).collect(Collectors.toList()));
return this;
}
public final Instant getUpdatedAt() {
return updatedAt;
}
public final void setUpdatedAt(Instant updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public final Builder updatedAt(Instant updatedAt) {
this.updatedAt = updatedAt;
return this;
}
public final String getNotes() {
return notes;
}
public final void setNotes(String notes) {
this.notes = notes;
}
@Override
public final Builder notes(String notes) {
this.notes = notes;
return this;
}
public final Map getQuestionCounts() {
if (questionCounts instanceof SdkAutoConstructMap) {
return null;
}
return questionCounts;
}
public final void setQuestionCounts(Map questionCounts) {
this.questionCounts = QuestionCountsCopier.copy(questionCounts);
}
@Override
public final Builder questionCountsWithStrings(Map questionCounts) {
this.questionCounts = QuestionCountsCopier.copy(questionCounts);
return this;
}
@Override
public final Builder questionCounts(Map questionCounts) {
this.questionCounts = QuestionCountsCopier.copyEnumToString(questionCounts);
return this;
}
public final String getNextToken() {
return nextToken;
}
public final void setNextToken(String nextToken) {
this.nextToken = nextToken;
}
@Override
public final Builder nextToken(String nextToken) {
this.nextToken = nextToken;
return this;
}
@Override
public ReviewTemplateLensReview build() {
return new ReviewTemplateLensReview(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
@Override
public Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
}
}