@Override public AddPermissionRequest build() { return new AddPermissionRequest(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(functionName()); hashCode = 31 * hashCode + Objects.hashCode(statementId()); hashCode = 31 * hashCode + Objects.hashCode(action()); hashCode = 31 * hashCode + Objects.hashCode(principal()); hashCode = 31 * hashCode + Objects.hashCode(sourceArn()); hashCode = 31 * hashCode + Objects.hashCode(sourceAccount()); hashCode = 31 * hashCode + Objects.hashCode(eventSourceToken()); hashCode = 31 * hashCode + Objects.hashCode(qualifier()); hashCode = 31 * hashCode + Objects.hashCode(revisionId()); return hashCode; }
return addPermission(AddPermissionRequest.builder().applyMutation(addPermissionRequest).build());
return addPermission(AddPermissionRequest.builder().applyMutation(addPermissionRequest).build());
/** * 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 String toString() { return ToString.builder("AddPermissionRequest").add("FunctionName", functionName()).add("StatementId", statementId()) .add("Action", action()).add("Principal", principal()).add("SourceArn", sourceArn()) .add("SourceAccount", sourceAccount()).add("EventSourceToken", eventSourceToken()).add("Qualifier", qualifier()) .add("RevisionId", revisionId()).build(); }
PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException { return addPermission(AddPermissionRequest.builder().applyMutation(addPermissionRequest).build());
@Override public AddPermissionRequest build() { return new AddPermissionRequest(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(functionName()); hashCode = 31 * hashCode + Objects.hashCode(statementId()); hashCode = 31 * hashCode + Objects.hashCode(action()); hashCode = 31 * hashCode + Objects.hashCode(principal()); hashCode = 31 * hashCode + Objects.hashCode(sourceArn()); hashCode = 31 * hashCode + Objects.hashCode(sourceAccount()); hashCode = 31 * hashCode + Objects.hashCode(eventSourceToken()); hashCode = 31 * hashCode + Objects.hashCode(qualifier()); hashCode = 31 * hashCode + Objects.hashCode(revisionId()); return hashCode; }
PolicyLengthExceededException, TooManyRequestsException, PreconditionFailedException, AwsServiceException, SdkClientException, LambdaException { return addPermission(AddPermissionRequest.builder().applyMutation(addPermissionRequest).build());
/** * 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 String toString() { return ToString.builder("AddPermissionRequest").add("FunctionName", functionName()).add("StatementId", statementId()) .add("Action", action()).add("Principal", principal()).add("SourceArn", sourceArn()) .add("SourceAccount", sourceAccount()).add("EventSourceToken", eventSourceToken()).add("Qualifier", qualifier()) .add("RevisionId", revisionId()).build(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AddPermissionRequest)) { return false; } AddPermissionRequest other = (AddPermissionRequest) obj; return Objects.equals(functionName(), other.functionName()) && Objects.equals(statementId(), other.statementId()) && Objects.equals(action(), other.action()) && Objects.equals(principal(), other.principal()) && Objects.equals(sourceArn(), other.sourceArn()) && Objects.equals(sourceAccount(), other.sourceAccount()) && Objects.equals(eventSourceToken(), other.eventSourceToken()) && Objects.equals(qualifier(), other.qualifier()) && Objects.equals(revisionId(), other.revisionId()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof AddPermissionRequest)) { return false; } AddPermissionRequest other = (AddPermissionRequest) obj; return Objects.equals(functionName(), other.functionName()) && Objects.equals(statementId(), other.statementId()) && Objects.equals(action(), other.action()) && Objects.equals(principal(), other.principal()) && Objects.equals(sourceArn(), other.sourceArn()) && Objects.equals(sourceAccount(), other.sourceAccount()) && Objects.equals(eventSourceToken(), other.eventSourceToken()) && Objects.equals(qualifier(), other.qualifier()) && Objects.equals(revisionId(), other.revisionId()); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "FunctionName": return Optional.ofNullable(clazz.cast(functionName())); case "StatementId": return Optional.ofNullable(clazz.cast(statementId())); case "Action": return Optional.ofNullable(clazz.cast(action())); case "Principal": return Optional.ofNullable(clazz.cast(principal())); case "SourceArn": return Optional.ofNullable(clazz.cast(sourceArn())); case "SourceAccount": return Optional.ofNullable(clazz.cast(sourceAccount())); case "EventSourceToken": return Optional.ofNullable(clazz.cast(eventSourceToken())); case "Qualifier": return Optional.ofNullable(clazz.cast(qualifier())); case "RevisionId": return Optional.ofNullable(clazz.cast(revisionId())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "FunctionName": return Optional.ofNullable(clazz.cast(functionName())); case "StatementId": return Optional.ofNullable(clazz.cast(statementId())); case "Action": return Optional.ofNullable(clazz.cast(action())); case "Principal": return Optional.ofNullable(clazz.cast(principal())); case "SourceArn": return Optional.ofNullable(clazz.cast(sourceArn())); case "SourceAccount": return Optional.ofNullable(clazz.cast(sourceAccount())); case "EventSourceToken": return Optional.ofNullable(clazz.cast(eventSourceToken())); case "Qualifier": return Optional.ofNullable(clazz.cast(qualifier())); case "RevisionId": return Optional.ofNullable(clazz.cast(revisionId())); default: return Optional.empty(); } }