public class FunctionDefinition extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
FunctionDefinition.Type |
| Constructor and Description |
|---|
FunctionDefinition()
No args constructor for use in serialization
|
FunctionDefinition(String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthRef()
References an auth definition name to be used to access to resource defined in the operation parameter
|
Map<String,String> |
getMetadata()
Metadata
|
String |
getName()
Function unique name
(Required)
|
String |
getOperation()
If type is `rest`,
|
FunctionDefinition.Type |
getType()
Defines the function type.
|
void |
setAuthRef(String authRef)
References an auth definition name to be used to access to resource defined in the operation parameter
|
void |
setMetadata(Map<String,String> metadata)
Metadata
|
void |
setName(String name)
Function unique name
(Required)
|
void |
setOperation(String operation)
If type is `rest`,
|
void |
setType(FunctionDefinition.Type type)
Defines the function type.
|
FunctionDefinition |
withAuthRef(String authRef) |
FunctionDefinition |
withMetadata(Map<String,String> metadata) |
FunctionDefinition |
withName(String name) |
FunctionDefinition |
withOperation(String operation) |
FunctionDefinition |
withType(FunctionDefinition.Type type) |
public FunctionDefinition()
public FunctionDefinition(String name)
name - public String getName()
public void setName(String name)
public FunctionDefinition withName(String name)
public String getOperation()
public void setOperation(String operation)
public FunctionDefinition withOperation(String operation)
public FunctionDefinition.Type getType()
public void setType(FunctionDefinition.Type type)
public FunctionDefinition withType(FunctionDefinition.Type type)
public String getAuthRef()
public void setAuthRef(String authRef)
public FunctionDefinition withAuthRef(String authRef)
public FunctionDefinition withMetadata(Map<String,String> metadata)
Copyright © 2020–2023 CNCF. All rights reserved.